/* Reset & Basics */
:root {
  --primary-green: #2e8b57;
  --primary-hover: #246d45;
  --accent-red: #dc2626;
  --base-white: #ffffff;
  --bg-soft: #f8fafc;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header styles */
header {
  background-color: #2e8b57; /* Updated to the green color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

header nav ul li a {
  font-family: "Inter", sans-serif;
}

.hero {
  padding: 6rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.hero-heading {
  color: #28a745; /* Bootstrap green or use your preferred shade */
  white-space: nowrap; /* prevents wrapping */
  overflow: hidden; /* hides overflow */
  line-height: 1.2;
  padding-bottom: 0.1em;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.hero-subtext {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151; /* soft gray */
  max-width: 560px;
  margin: 0 auto;
}

.header-top {
  display: flex;
  flex-direction: column; /* Stack logo and text vertically by default */
  align-items: center; /* Center items horizontally */
  padding: 0 1rem;
  margin-left: 80px;
  text-align: center; /* Ensure text within is centered */
}

.header-top img {
  height: 60px; /* Adjust as needed */
  margin-bottom: 0.5rem; /* Space between logo and text */
  order: 1;
}

.header-top .logo {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem; /* Adjust for responsiveness */
  color: #ffffff !important; /* Changed logo text color to white for contrast */
  font-weight: 600; /* Added font-weight */
  line-height: 1.2; /* Adjust line height for multi-line text */
  order: 2;
}

/* For breaking the logo text into multiple lines on smaller screens */
.v-line {
  white-space: nowrap; /* Prevent individual lines from wrapping */
  font-family: "Inter", sans-serif;
  color: #ffffff !important; /* Ensure mobile multi-line text is white */
}

#navbar ul {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Default gap for larger screens */
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  flex-direction: row; /* Always side-by-side */
  /* Removed flex-wrap: wrap; to prevent wrapping */
}

#navbar .nav-link {
  color: #ffffff; /* Changed nav link color to white for contrast */
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none; /* Ensure no underline */
  display: inline-block; /* Ensure it behaves like a block for flex properties */
  flex-shrink: 1; /* Allow the item to shrink */
  min-width: 0; /* Allow it to shrink smaller than its content if needed */
  text-align: center; /* Ensure text remains centered within the shrinking link */
  font-family: "Inter", sans-serif;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
  background-color: rgba(
    255,
    255,
    255,
    0.2
  ); /* Light white background on hover */
  color: #ffffff; /* Keep text white */
}

/* Responsive adjustments for header */
@media (min-width: 768px) {
  .header-top {
    flex-direction: row; /* Side-by-side on larger screens */
    justify-content: center; /* Center content horizontally */
    text-align: center; /* Align text to center on desktop */
  }
  .header-top img {
    margin-right: 1rem;
    margin-bottom: 0;
    order: 1;
  }
  .header-top .logo {
    font-size: 2rem;
  }
  #navbar ul {
    gap: 2rem; /* Maintain gap */
    margin-top: 1rem; /* Space below header-top */
  }
  .v-line {
    white-space: normal; /* Allow text to wrap naturally on desktop if needed */
  }
  .v1,
  .v2,
  .v3 {
    display: inline; /* Display as inline on desktop */
    margin-left: 0 !important; /* Remove specific mobile margins */
  }
}

@media (max-width: 767px) {
  .header-top {
    flex-direction: column; /* Stack logo and text vertically on small screens */
    text-align: center; /* Center text */
    justify-content: center;
  }
  .header-top img {
    margin-right: 0;
    order: 2;
    margin-bottom: 0.5rem;
  }
  .header-top .logo {
    order: 1; /* Positions the text to the left of the logo */
  }

  #navbar ul {
    /* Reverted nav bar behavior to wrapping */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center items when they wrap */
    gap: 0.5rem; /* Adjust gap for wrapped items */
    margin-top: 0.5rem;
    padding-bottom: 0; /* No need for padding-bottom with wrapping */
    overflow-x: visible; /* No horizontal scrolling */
    -webkit-overflow-scrolling: auto; /* No special scrolling */
    width: 100%;
  }
  #navbar .nav-link {
    padding: 0.5rem 0.8rem; /* Adjusted padding for wrapped links */
    font-size: 0.85rem; /* Maintain larger font size */
    flex-basis: auto;
    min-width: fit-content;
    text-align: center;
    font-family: "Inter", sans-serif;
  }
  .v-line {
    display: block; /* Force each part of the name onto a new line */
    margin-left: 0 !important; /* Reset any previous margin */
    color: #ffffff !important;
  }
  .v1 {
    margin-left: 0rem;
  }
  .v2 {
    margin-left: 1.5rem;
  }
  .v3 {
    margin-left: 3rem;
  }
}

/* Hero Section Specific Styles */
#home {
  background: linear-gradient(
    to bottom,
    #2e8b57 0%,
    /* green */ #2e8b57 30%,
    #ffffff 50%,
    /* white fade */ #f5dede 70%,
    #c0392b 100% /* red */
  );
  background-image: none;
  color: white; /* Keep text dark */
  text-align: center;
  padding: 8rem 1rem; /* Adjust padding for height */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px; /* Minimum height for the hero section */
  position: relative;
}

#home::before {
  content: none; /* Remove the overlay */
}

#home .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

#home h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
  color: #000000; /* Changed to black */
}

#home p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  color: #000000; /* Changed to black */
}

/* Sections */
section {
  padding: 4rem 0;
  text-align: center;
}

section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #28a745;
}

/* Services List */
.services-list {
  list-style: none;
  padding: 1rem 0;
}

.services-list li {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

/* Brand Logos */
#services img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.brand-logos .brand-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  /* Removed grayscale filter to restore original color */
  transition: none; /* No transition for filter */
}

.brand-logos .brand-logo:hover {
  /* Removed grayscale filter on hover */
  filter: none;
}

.brand-logos img[src*="carrier"] {
  width: 130px;
}

/* Footer */
footer {
  font-family: "Inter", sans-serif;
  background-color: #0f5234;
  color: #f9fafb;
  padding: 40px 0 20px;
  font-size: 0.9rem;
  border-top: 5px solid #28a745;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 280px;
  margin-bottom: 20px;
  padding-right: 20px;
}

.footer-section h3 {
  color: #fff; /* White heading */
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 5px;
  font-weight: 700;
}

.footer-section p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-section p i {
  margin-right: 10px; /* Space between icon and text */
  color: #a3e635; /* Lighter green for icons */
}

.footer-section a {
  color: #fff; /* White links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #a3e635; /* Lighter green on hover */
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  font-size: 1.5em;
  margin: 0 7.5px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #a3e635;
}

/* Bottom copyright section */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  color: rgba(255, 255, 255, 0.8); /* Slightly faded white for copyright */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  body,
  html {
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100vw; /* Ensure nothing can go wider than viewport */
  }

  /* Keep your existing footer related styles here. */
  /* Keep your existing Responsive Hero Section styles below this: */
  #home {
    padding: 60px 20px;
    text-align: center;
  }

  #home h2 {
    font-size: 24px;
  }

  #home p {
    font-size: 16px;
  }

  /* Keep header-top and logo responsive adjustments below this: */
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    width: 100%;
    max-width: 100vw; /* Ensures header stays within screen */
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
  }

  .header-top img {
    max-width: 120px;
    margin-bottom: 10px;
    order: 1;
  }

  .logo {
    font-size: 18px;
  }

  .checkout-btn {
    padding: 10px 18px;
    font-size: 1rem;
    max-width: 280px;
    margin: 15px auto 0 auto; /* Ensures it's centered on smaller screens */
    text-align: center; /* Explicitly center text here too */
  }

  .login-register {
    position: static; /* Remove absolute positioning on small screens */
    transform: none;
    margin-left: auto; /* Push to right if space allows, or center if wrapped */
    margin-right: auto; /* For centering if it's the only element on a line */
    padding: 5px 0; /* Add some padding */
  }

  #menu-toggle {
    display: block; /* Show menu toggle */
  }
}

/* Team Gallery */
.team-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  max-width: 150px;
  text-align: center;
}

.team-member img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease forwards;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  margin-top: 0;
  margin-bottom: 2rem;
}

.slide-up {
  opacity: 0;
  transform: translateY(60px);
  animation: slideUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.1);
  animation: fadeInForm 1s ease forwards;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.25);
  outline: none;
}

.contact-form button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.contact-form button:hover {
  background-color: #bd2130;
  transform: translateY(-2px);
}

@keyframes fadeInForm {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-details {
  padding: 20px;
  text-align: center;
}

.contact-form {
  margin-bottom: 20px;
}

/* Services Styles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  transition: transform 0.4s ease;
}

.services-grid.shrink {
  transform: translateX(-120px);
}

.service-card {
  background-color: #ffffff;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: 
    transform 0.6s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.6s cubic-bezier(0.22,1,0.36,1);
  text-align: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-green);
}

.service-card i {
  color: var(--primary-green);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  transition: transform 0.35s ease;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: var(--primary-green);
  opacity: 0.9;
}

/* Search Field & Cart Positioning */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between search and cart */
  margin: 0;
  padding: 0; /* Remove padding if it's external spacing */
  width: auto; /* Allow width to be determined by content */
  max-width: none; /* Remove max-width constraint */
}

.search-container {
  display: flex;
  align-items: center;
  position: relative;

  flex-grow: 1;
  max-width: 300px; /*before 250px*/
  margin: 0;
  width: auto;
  gap: 0;
}

.search-container input {
  flex-grow: 1;
  padding: 8px 35px 8px 16px;
  border-radius: 40px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 100%;
  max-width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease all;
}

.search-container input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  top: 50%;

  right: 10px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.8;
  pointer-events: none;
}

.search-container button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
}

.search-container button .fas.fa-search {
  font-size: 1.2rem;
  color: #555;
  transition: color 0.2s ease;
}

.search-container button:hover .fas.fa-search {
  color: #007bff;
}

.cart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
}

.cart-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}

@media (max-width: 480px) {
  .search-wrapper {
    padding: 0 10px; /* Further reduce padding for tiny screens */
    gap: 8px; /* Slightly smaller gap */
  }

  .cart-container {
    margin-left: 10px; /* Adjust cart margin for very small screens */
  }

  .checkout-btn {
    padding: 10px 18px;
    font-size: 1rem;
    max-width: 280px;
    margin: 15px auto 0 auto; /* Ensures it's centered on smaller screens */
    text-align: center; /* Explicitly center text here too */
  }
}

/* Button Group */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease forwards;
}

.button-group .hover-button {
  padding: 0.75rem 1.5rem;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  position: relative;
  cursor: pointer;
}

.button-group button {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button-group button,
.button-group .hover-button {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.check-icon-img {
  display: inline-block;
  width: 16px;
  height: 16px;
  font-size: 16px;
  margin-right: 0.1rem;
  margin-left: -0.75rem;
  color: green;
  position: relative;
  top: 1.5px;
}

.button-group .hover-button:hover {
  background-color: #bd2130;
}

.brand-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.hover-button:hover .brand-box,
.brand-box:hover {
  display: block;
}

.free-shipping-list {
  display: none;
}

.free-shipping-list.show {
  display: block;
}

/* Product List - Vertical Layout */
.products {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.product-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  color: black;
}

.product-options label {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.product-options select,
.product-options input[type="number"] {
  flex: 1;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.menu-item {
  background: white;
  flex: 1 1 300px;
  border-radius: 12px;
  padding: 1.25rem;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.menu-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.menu-item:hover {
  transform: scale(1.03);
}

.menu-item h3 {
  margin: 0.8rem 0 0.5rem;
}

.menu-item p {
  font-size: 0.95rem;
  color: #555;
}

.menu-item .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #28a745;
  margin-top: 0.5rem;
}

.menu-item select,
.menu-item input[type="number"] {
  margin-top: 0.3rem;
  padding: 0.3rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* List Reset */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  max-width: 500px;
  max-height: 90vh; /* Limit height and enable scrolling */
  width: 350px;
  animation: zoomIn 0.3s ease-in-out;
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border: 1px solid #888;
  width: 95%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.add-to-cart-btn {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 15px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.add-to-cart-btn:hover {
  background-color: #bd2130;
  transform: translateY(-2px);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  text-align: center;
  color: #28a745;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

#cartItems {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #555;
}

.cart-item:last-child {
  border-bottom: none;
}

.delete-item {
  color: #dc3545;
  cursor: pointer;
  font-weight: bold;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.delete-item:hover {
  color: #bd2130;
  text-decoration: underline;
}

#emptyCartMessage {
  text-align: center;
  color: #777;
  padding: 20px;
}

.cart-summary {
  border-top: 2px solid #ddd;
  padding-top: 15px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.cart-summary span {
  color: #007bff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Styles for the chatbot icon */
.chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: green;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.chatbot-icon:hover {
  background-color: #0056b3;
}

/* Styles for the chatbot window */
.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 450px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease-in-out;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
}

.chatbot-window.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background-color: #007bff;
  color: white;
  padding: 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header .close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0 5px;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #e9eef6;
  border-bottom: 1px solid #eee;
}

/* Message styling */
.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 14px;
}

.message.user {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
}

.message.bot {
  background-color: #ffffff;
  align-self: flex-start;
  margin-right: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  padding: 0;
}

.message.bot .bot-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: contain;
  background: none !important;
  padding: 0;
  filter: none !important;
  image-rendering: crisp-edges;
}

.message.bot .text {
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  font-family: "Inter", sans-serif;
}

/* Input area with icons (both for chatbot and main page) */
.chat-input-area {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.chat-input-area input[type="text"] {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 8px;
}

.chat-input-area .icon-placeholder,
.chat-input-area .icon-wrapper {
  font-size: 20px;
  cursor: pointer;
  margin: 0 5px;
  transition: color 0.2s ease;
}

.chat-input-area .icon-placeholder:hover,
.chat-input-area .icon-wrapper:hover {
  color: #007bff;
}

/* NEW/UPDATED STYLE FOR THE SEND BUTTON */
.chat-input-area .send-button {
  border: none;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.chat-input-area .send-button:hover {
  transform: translateY(-1px);
}

.chat-input-area .send-button .send-icon-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  margin-right: 33px;
}

.chat-input-area button {
  background-color: transparent;
  border-radius: 0;
  border: none;
}

/* Styles specifically for the main page message input */
.main-message-input-container {
  width: 90%;
  max-width: 600px;
  margin: 2rem auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.main-message-input-container input[type="text"] {
  flex-grow: 1;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  outline: none;
}

.main-message-input-container .icon-placeholder {
  font-size: 22px;
  color: #777;
  cursor: pointer;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.main-message-input-container .icon-placeholder:hover {
  color: #007bff;
}

.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.icon-wrapper:hover {
  opacity: 0.7;
}

.icon-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Specific adjustments for chatbot input icons */
.chat-input-area .icon-wrapper {
  margin: 0 5px;
}

.chat-input-area .icon-image {
  width: 20px;
  height: 20px;
}

/* Specific adjustments for main page input icons */
.main-message-input-container .icon-wrapper {
  margin: 0 8px;
}

.main-message-input-container .icon-image {
  width: 24px;
  height: 24px;
}

.icon-placeholder {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin: 0 5px;
  vertical-align: middle;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.icon-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Add this new CSS rule for the checkout button */
.checkout-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px; /* Base padding for desktop/larger screens */
  font-size: 1.1rem; /* Base font size */
  border-radius: 8px;
  cursor: pointer;
  width: 100%; /* Keeps it full width of its container */
  max-width: 300px; /* Optional: set a max-width for desktop to prevent it from being too wide */
  margin: 20px auto 0 auto; /* Center it horizontally with auto margins */
  display: block; /* Ensures auto margins work */
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.checkout-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* General Header Layout adjustments */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* This will push elements to left and right */
  padding: 10px 20px; /* Adjust padding as needed */
  position: relative; /* Needed for absolute positioning of login/register */
  flex-wrap: wrap;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between logo and title */
  margin-left: 20px;
  margin-bottom: 0;
}

/* Navbar Centering */
#navbar {
  flex-grow: 1; /* Allows the navbar to take available space */
  display: flex;
  justify-content: center; /* Centers the actual nav links */
  align-items: center;
  margin: 0 20px;
}

#navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navbar ul li {
  margin: 0 15px; /* Spacing between nav items */
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Login/Register Specific Styles */
.login-register {
  /*position: absolute;*/
  right: -135px; /* Adjust this value to move it further to the right */
  top: 75%; /* Adjust this value to move it down */
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px; /* Space between icon and text */
}

.login-register-link {
  color: #fff; /* White color for the link text */
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: flex; /* To align icon and text */
  align-items: center;
}

.login-register-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.login-icon {
  width: 20px; /* Adjust width of your custom icon */
  height: 20px; /* Adjust height of your custom icon */
  vertical-align: middle; /* Helps align the image with text */
  margin-right: 8px;
}

/* Responsive adjustments if you have a menu-toggle */
#menu-toggle {
  display: none; /* Hide by default for larger screens */
  /* Add media queries to display it for smaller screens */
}

/* Example media query for smaller screens */
@media (max-width: 768px) {
  header .container {
    flex-wrap: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
  }

  #navbar {
    order: 3; /* Push nav below logo/title and login/register */
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .checkout-btn {
    padding: 10px 18px;
    font-size: 1rem;
    max-width: 280px;
    margin: 15px auto 0 auto; /* Ensures it's centered on smaller screens */
    text-align: center; /* Explicitly center text here too */
  }

  .login-register {
    position: static; /* Remove absolute positioning on small screens */
    transform: none;
    margin-left: auto; /* Push to right if space allows, or center if wrapped */
    margin-right: auto; /* For centering if it's the only element on a line */
    padding: 5px 0; /* Add some padding */
  }

  #menu-toggle {
    display: block; /* Show menu toggle */
  }
}

.track-order-link {
  display: inline-block;
  padding: 12px 26px;
  background: #e11d48; /* refined red */
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 10px;

  position: relative;
  overflow: hidden;

  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Hover — subtle lift */
.track-order-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* Pressed state */
.track-order-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.track-order-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.8s ease;
}

/* Only on hover */
.track-order-link:hover::after {
  left: 140%;
}

.quantity-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1rem;
}

.quantity-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* space between label and input */
  width: 100%;
}

.quantity-input-wrapper label {
  width: 100px; /* force alignment to match Horse Power label */
  font-weight: 500;
}

.quantity-input {
  width: 140px; /* increase input width */
  padding: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.product-stock {
  margin-left: 100px; /* aligns stock text with input */
  margin-top: 4px;
  font-size: 13px;
  color: #555;
}

#cartModal .cart-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 10px;
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

/* Booking Form CSS */
/* Scoped only to the booking section */
#booking {
  background-color: #f9fafb;
  padding: 2rem 1rem;
  border-radius: 1rem;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  font-family: "Inter", sans-serif;
}

#booking h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: #111827;
}

#booking form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#booking input,
#booking select,
#booking textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #ffffff;
  transition: border 0.2s ease;
}

#booking input:focus,
#booking select:focus,
#booking textarea:focus {
  border-color: var(--primary-green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.1);
}

#booking button {
  background-color: #28a745;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#booking button:hover {
  background-color: #2563eb;
}

.location-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.location-item {
  text-align: center;
  width: 200px;
  overflow: hidden; /* Prevents image from spilling out when it scales */
  border-radius: 12px;
}

.location-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s ease;
  will-change: transform;
}

.location-item p {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #333;
}

.location-item:hover img {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111827;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .utility-title {
    font-size: 0.9rem;
  }

  .order-cta {
    padding: 0.4rem 0.75rem;
  }
}

/* =========================
   SITE HEADER (APPLE STYLE)
   ========================= */

.site-header {
  background-color: var(--primary-green);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);

  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.utility-title,
.lang-switch,
.cart-icon {
  color: #ffffff;
}

.site-header.scrolled {
  background-color: rgba(46, 139, 87, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0;
}

/* Header background */
.utility-header {
  background: #2e8b57;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Inner layout (DESKTOP GRID) */
.utility-header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;

  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

/* LEFT */
.utility-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 28px;
}

.utility-logo {
  height: 28px;
}

/* Back button (mobile only) */
.back-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* CENTER */
.utility-center {
  text-align: center;
}

.utility-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

/* RIGHT */
.utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Cart */
.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
}

.cart-icon-wrapper i {
  font-size: 1.2rem;
  color: #ffffff;
}

.cart-popover {
  position: absolute;
  top: 140%;
  right: 0;

  width: 280px;
  background: #ffffff;
  border-radius: 16px;

  padding: 1.25rem 1.25rem 1rem;

  background: #ffffff;
  border-radius: 16px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;

  z-index: 50;

  pointer-events: auto;
}

.cart-icon-wrapper:hover .cart-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cart-icon-wrapper:hover ~ .page-blur-overlay,
.cart-icon-wrapper:hover + .page-blur-overlay {
  opacity: 1;
}

.cart-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1.25rem;
}

.cart-btn.primary {
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  font-weight: 600;
}

.cart-btn.primary:hover {
  background: #f5f5f7;
}

.cart-btn.secondary {
  color: #0066cc;
  font-weight: 500;
}

/* SHOW ON HOVER (DESKTOP) */
.cart-icon-wrapper:hover + .cart-popover,
.cart-popover:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-icon-wrapper:hover .cart-icon {
  opacity: 0.85;
  transform: translateY(-1px);
}

.page-blur-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.35s ease;
  z-index: 20;
}

/* TEXT */
.cart-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 1.25rem;
}

/* BUTTONS */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-btn {
  display: block;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* PRIMARY */
.cart-btn.primary {
  display: block;
  width: 100%;

  padding: 0.55rem 0;
  text-align: center;

  border-radius: 999px;
  border: 1px solid #d2d2d7;

  background: #ffffff;
  color: #1d1d1f;

  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;

  transition: background 0.15s ease;
}

.cart-btn.primary:hover {
  background: #f5f5f7;
}

/* SECONDARY */
.cart-btn.secondary {
  display: block;
  width: 100%;

  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;

  color: #0066cc;
  text-decoration: none;
}

.cart-btn.secondary:hover {
  text-decoration: underline;
}

.cart-btn:hover {
  opacity: 0.9;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
}

/* =========================
   MOBILE BEHAVIOR
   ========================= */

@media (max-width: 768px) {
  /* Hide logo & language */
  .utility-logo,
  .lang-switch {
    display: none;
  }

  /* Show back button */
  .back-btn {
    display: inline-block;
  }

  .utility-header-inner {
    padding: 0.65rem 1rem;
  }

  .utility-title {
    font-size: 0.9rem;
  }
}

.fade-in-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.fade-in-out.show {
  opacity: 1;
}

/* Booking button */
.book-btn {
  background-color: #4caf50; /* primary green */
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.book-btn:hover {
  background-color: #388e3c; /* darker green */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.2);
}

.book-btn:active {
  transform: translateY(0);
}

.booking-form ::placeholder {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #9ca3af; /* soft gray */
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  font-family: "Inter", sans-serif;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--base-white);
}

#services p.fade-in {
  max-width: 720px;
  margin: 2rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  letter-spacing: -0.01em;
}

/* Mobile-friendly cart toggle */
.cart-popover.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Optional: bigger tap target on mobile */
@media (max-width: 768px) {
  .cart-icon {
    width: 26px;
    height: 26px;
  }
}

@media (hover: none) {
  .cart-icon-wrapper:hover .cart-popover {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (hover: none) and (pointer: coarse) {
  .cart-popover {
    display: none; /* no popover on mobile */
  }

  .cart-link {
    pointer-events: auto; /* link is active */
  }
}

.booking-note {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.location-note {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.service-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  z-index: 1200;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  transition: right 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-drawer.open {
  right: 0;
}

.service-drawer img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.service-drawer h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
}

.service-drawer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

.service-drawer > * {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s ease 0.2s;
}

.service-drawer.open > * {
  opacity: 1;
  transform: translateY(0);
}

.drawer-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

#drawerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

#drawerOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .service-drawer {
    width: 100%;
  }

  .services-grid.shrink {
    transform: none;
  }
}

/* =========================
   MOBILE TITLE + LOGO
   ========================= */

.utility-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Logo beside title */
.utility-title-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: none; /* hidden by default (desktop) */
}

/* Mobile only */
@media (max-width: 768px) {
  .utility-title-logo {
    display: inline-block;
  }

  .utility-title {
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
  }
  .utility-title-wrap {
    padding-left: 0; /* from 20px */
  }
}

.back-btn {
  background: none;
  border: none;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Subtle interaction */
.back-btn:hover .back-icon-img {
  transform: translateX(-2px);
  opacity: 0.85;
}

.back-btn:active .back-icon-img {
  transform: translateX(-3px) scale(0.95);
}

/* Desktop & tablet: HIDE */
@media (min-width: 769px) {
  .back-btn {
    display: none !important;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.drawer-open {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .services-grid.shrink {
    transform: none;
  }
}

/* =========================
   FIX SERVICE DRAWER OVERFLOW (MOBILE)
   ========================= */
@media (max-width: 768px) {
  .service-drawer {
    width: 100%;
    right: 0;
    top: 0;
    height: 100vh;

    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .service-drawer.open {
    transform: translateX(0);
  }
}

/* =========================
   REMOVE SHADOWS ON MOBILE
   ========================= */
@media (max-width: 768px) {
  .site-header {
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  section,
  .container,
  #home,
  #track-order {
    box-shadow: none !important;
    overflow: hidden;
  }
}

#home {
  overflow: hidden;
}

/* =========================
   HEADER MUST NEVER SCROLL
   ========================= */
.site-header,
.utility-header,
.utility-header-inner {
  overflow: visible !important;
}

.site-header {
  height: auto;
  min-height: unset;
  max-height: none;
}

.utility-header-inner {
  align-items: center;
}

/* header,
header * {
  overflow: visible;
} */

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================
   PREMIUM BOOKING SECTION
   ========================= */

.booking-premium {
  background: #f8fafc;
  padding: 4rem 1rem;
}

.booking-shell {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px; /* boxy, not soft */
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.booking-header {
  margin-bottom: 2.5rem;
}

.booking-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.booking-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Grid layout */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.75rem;
}

.booking-grid .full {
  grid-column: span 2;
}

/* Fields */
.booking-grid .field {
  display: flex;
  flex-direction: column;
}

.booking-grid label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
  margin-bottom: 0.4rem;
}

.booking-grid input,
.booking-grid select,
.booking-grid textarea {
  border-radius: 6px; /* sharper */
  border: 1px solid #d1d5db;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.booking-grid input:focus,
.booking-grid select:focus,
.booking-grid textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(46,139,87,0.15);
  outline: none;
}

/* CTA */
.booking-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.booking-action button {
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 0.9rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.booking-action button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46,139,87,0.25);
}

.booking-hint {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Mobile */
@media (max-width: 768px) {
  .booking-shell {
    padding: 2rem 1.5rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-grid .full {
    grid-column: span 1;
  }

  .booking-action {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* =========================
   BOOKING — PREMIUM V2
   ========================= */

.booking-shell {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fbfbfc 100%
  );
  border-radius: 14px;
  padding: 3.5rem 3.25rem;
  border: 1px solid #e6e8eb;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Header */
.booking-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
}

.booking-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.booking-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 480px;
}

/* Grid refinement */
.booking-grid {
  margin-top: 2.75rem;
  gap: 1.75rem 2rem;
}

/* Labels — more editorial */
.booking-grid label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #475569;
}

/* Inputs — heavier + cleaner */
.booking-grid input,
.booking-grid select,
.booking-grid textarea {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #d6dae1;
  font-size: 0.95rem;
  background-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.booking-grid input:hover,
.booking-grid select:hover,
.booking-grid textarea:hover {
  border-color: #cbd5e1;
}

.booking-grid input:focus,
.booking-grid select:focus,
.booking-grid textarea:focus {
  border-color: var(--primary-green);
  box-shadow:
    0 0 0 4px rgba(46,139,87,0.18),
    inset 0 1px 2px rgba(0,0,0,0.04);
}

/* CTA Area — feels decisive */
.booking-action {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid #eef0f3;
}

.booking-action button {
  background: linear-gradient(
    180deg,
    #2e8b57 0%,
    #246d45 100%
  );
  border-radius: 999px; /* authority pill */
  padding: 0.95rem 3rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 12px 25px rgba(46,139,87,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.booking-action button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 35px rgba(46,139,87,0.45),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.booking-action button:active {
  transform: translateY(0);
  box-shadow:
    0 10px 20px rgba(46,139,87,0.3);
}

.booking-hint {
  font-size: 0.8rem;
  color: #64748b;
}

/* Mobile polish */
@media (max-width: 768px) {
  .booking-shell {
    padding: 2.5rem 1.75rem;
    border-radius: 12px;
  }

  .booking-header h2 {
    font-size: 1.7rem;
  }

  .booking-action button {
    width: 100%;
    text-align: center;
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  text-align: center;
  flex-wrap: wrap;
}

.hero-stats .stat {
  min-width: 140px;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-green);
}

.hero-stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6b7280;
}

#home .hero-stats strong {
  color: #1f2937; /* dark slate */
}

#home .hero-stats span {
  color: #6b7280; /* muted gray */
}

@media (max-width: 640px) {
  .hero-stats {
    gap: 1.75rem;
  }

  .hero-stats strong {
    font-size: 1.3rem;
  }
}


.timeline {
  max-width: 700px;
  margin: 3rem auto 0;
  display: grid;
  gap: 1.75rem;
}

.event {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
}

.event span {
  font-weight: 700;
  color: var(--primary-green);
}

.event p {
  color: #4b5563;
  line-height: 1.6;
}

.services-grid {
  max-width: 1100px;
  margin: 3rem auto 0;
  justify-content: center;
}

/* ===== TIMELINE CONTAINER ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0;
}

/* Siguraduhing walang global line sa container level */
.timeline::before {
  display: none;
}

/* ===== EVENT ROW ===== */
.event {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 2rem;
  position: relative;
  margin: 0;
  padding: 0 0 5rem 0; /* Espasyo sa pagitan ng mga rows */
}

/* ANG LINYA (NAKADIKIT SA TAON) */
.event::before {
  content: "";
  position: absolute;
  /* Gitna ng 100px column */
  left: 50px; 
  /* Magsisimula sa mismong dulo ng text ng taon */
  top: 1.9rem;   
  /* Hahaba hanggang sa dulo ng padding para tumama sa susunod na year label */
  bottom: -0.5rem; 
  width: 2px;
  background-color: #d1d5db;
  z-index: 1;
  transform: translateX(-50%);
}

/* Alisin ang linya pagkatapos ng "Today" */
.event:last-child::before {
  display: none;
}

/* ===== TAON (YEAR) ===== */
.year {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-green, #2e7d32);
  text-align: center; 
  position: relative;
  z-index: 2;
  padding: 0.5rem 0;
  height: min-content;
  align-self: start;
  line-height: 1.4rem;
}

/* ===== NILALAMAN (CONTENT) ===== */
.content {
  color: #374151;
  line-height: 1.6;
  padding-top: 0.4rem; 
}

/* Tanggalin ang extra space sa huling event */
.event:last-child {
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .timeline {
    padding-left: 0;
  }

  .event {
    grid-template-columns: 1fr;
    padding-left: 2.25rem;
    padding-bottom: 3rem;
  }

  .event::before {
    left: 12px;
    top: 1.6rem;
    height: calc(100% - 2.2rem);
    width: 1.5px;
    background-color: #e5e7eb;
  }

  .year {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .content {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
  }

  .event::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    z-index: 2;
  }

  .event:last-child {
    padding-bottom: 1rem;
  }
}

/* =========================
   BOOKING — CLEAN EDITION
   ========================= */

.booking-section {
  background: #f8fafc;
  padding: 4rem 1rem;
}

.booking-wrapper {
  max-width: 760px;
  background: #ffffff;
  border-radius: 14px;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Header */
.booking-header {
  text-align: center;
  margin-bottom: 2.25rem;
  background-color: transparent;
}

.booking-header h2,
.booking-header p,
.booking-header strong {
  color: black;
}

#booking .booking-header h2 {
  color: black !important;
}

.booking-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.booking-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 0.4rem;
}

.booking-note {
  font-size: 0.85rem;
  color: #475569;
  margin-top: 0.75rem;
}

/* Alert */
.booking-alert {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  font-family: "Inter", sans-serif;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

.form-grid .full {
  grid-column: span 2;
}

/* Inputs */
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.15);
  outline: none;
}

/* Placeholder typography */
.booking-form ::placeholder {
  font-family: "Inter", sans-serif;
  color: #9ca3af;
  font-weight: 400;
}

/* Button */
.booking-form .book-btn {
  margin-top: 2rem;
  width: 100%;
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e8b57, #246d45);
  box-shadow: 0 12px 25px rgba(46, 139, 87, 0.35);
}

.booking-form .book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(46, 139, 87, 0.45);
}

/* Mobile */
@media (max-width: 640px) {
  .booking-wrapper {
    padding: 2.25rem 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: span 1;
  }
}

/* =========================
   LOCATIONS — MOBILE GRID
   ========================= */
@media (max-width: 640px) {

  .location-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .location-item {
    width: 100%;          /* override fixed width */
    text-align: center;
  }

  .location-item img {
    width: 100%;
    height: 120px;        /* tighter for mobile */
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  }

  .location-item p {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #374151;
  }

  .location-gallery .location-item:last-child {
    grid-column: 1 / -1;          /* span both columns */
    justify-self: center;
    max-width: 55%;
  }
}

/* =========================
   SERVICES — MOBILE GRID
   ========================= */
@media (max-width: 640px) {

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 1.25rem;
  }

  .service-card {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    text-align: center;
  }

  .service-card img {
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
  }

  .service-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.6rem 0 0.3rem;
    line-height: 1.25;
  }

  .service-card p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #4b5563;
    margin: 0 auto;
    max-width: 100%;        /* prevents awkward narrow lines */
    word-break: normal;
    hyphens: none;   
  }
}

/* =========================
   GLOBAL BOXY MODE
   ========================= */

*,
*::before,
*::after {
  border-radius: var(--box-radius) !important;
}

/* Remove pill shapes */
.cart-btn,
.booking-action button,
.track-order-link,
.checkout-btn,
.book-btn {
  border-radius: 0 !important;
}

/* Inputs */
input,
select,
textarea,
button {
  border-radius: 0 !important;
}

/* Cards & Containers */
.service-card,
.booking-shell,
.menu-item,
.modal-content,
.cart-popover,
.contact-form,
.glass-card {
  border-radius: 0 !important;
}

/* Chat bubbles (if you want them square too) */
.message,
.message.user,
.message.bot .text {
  border-radius: 0 !important;
}
