/* -------------------- Reset -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Bahnschrift SemiBold", Arial, sans-serif;
  font-size: 18px;
  background: #e6e2d3;
  color: #000;
  line-height: 1.6;
}

/* Prevent background scroll when mobile menu open */
.no-scroll {
  overflow: hidden;
}

/* -------------------- Navbar -------------------- */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | logo | right */
  align-items: center;
  padding: 15px 40px;
  background: #c4b7a6;
  position: relative;
  z-index: 20;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 17px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-left {
  justify-content: flex-start;
}
.nav-right {
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #7e4a35;
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: #7e4a35;
}
.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown (desktop only) */
.dropdown {
  position: relative;
}
.dropdown a {
  cursor: pointer;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #c4b7a6;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 100;
}
.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.dropdown-menu a:hover {
  background: #c4b7a6;
  color: #7e4a35;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #7e4a35;
}


/* Center Logo with U-shape */
.logo {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  position: relative;
  z-index: 30;
}
.logo img {
  display: block;
  height: 68px;
  width: auto;
  max-width: 100%;
}

.navbar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -55px;
  width: 240px;
  height: 110px;
  background: #e6e2d3;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  z-index: 10;
}

/* -------------------- Hero Section -------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 8%;
  min-height: 100vh;
  background: url("https://www.treehousealmonds.com/wp-content/uploads/2023/02/Group-38645.png") no-repeat center/cover;
  position: relative;
  color: #111;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}
.hero .content {
  position: relative;
  max-width: 600px;
  z-index: 1;
}
.hero h1 {
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 18px;
  color: #333;
}

/* -------------------- Discount Banner -------------------- */
.discount-banner {
  background: #7e4a35;
  color: white;
  text-align: center;
  padding: 0.8rem;
  font-size: 18px;
  font-weight: 500;
}

/* -------------------- Products -------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}
.product-card {
  background: #e6e2d3;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.product-info {
  padding: 15px;
}
.price {
  font-weight: bold;
}
.add-cart {
  border: 1px solid #333;
  background: #e6e2d3;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}
.add-cart:hover {
  background: #333;
  color: white;
}

/* -------------------- FAQ Section -------------------- */
.faq-section {
  padding: 6rem 2rem;
  text-align: center;
  background: #e6e2d3;
}
.faq-section h2 {
  font-size: 23px;
  font-weight: bold;
  margin-bottom: 1rem;
}
.faq-section p {
  font-size: 18px;
  margin-bottom: 2rem;
}
.faq-section .btn {
  background: #7e4a35;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-section .btn:hover {
  background: #5c3426;
}

/* -------------------- Footer -------------------- */
.footer {
  background: #c4b7a6;
  padding: 3rem 2rem 1rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo img {
  height: 80px;
  margin-bottom: 1rem;
}
.footer-column h2 {
  color: hsl(25, 47%, 15%);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.footer-column a {
  color: hsl(25, 47%, 25%);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: hsl(25, 47%, 35%);
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: hsl(25, 47%, 88%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-links a:hover {
  color: white;
  background: #7e4a35;
}
.footer-bottom {
  border-top: 1px solid hsl(25, 47%, 70%);
  padding-top: 1.5rem;
  text-align: center;
  color: hsl(25, 47%, 25%);
  font-size: 0.875rem;
}

/* -------------------- WhatsApp Button -------------------- */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 20px;
  left: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}
.whatsapp-float i {
  line-height: 55px;
}
.whatsapp-float:hover {
  background: #1ebe57;
}

/* -------------------- Mobile Navbar -------------------- */

/* Hamburger button */
.menu-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle div {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #000;
  transition: all 0.3s ease;
}
.menu-toggle div {
  top: 50%;
  transform: translateY(-50%);
}
.menu-toggle::before { top: 0; }
.menu-toggle::after { bottom: 0; }

.menu-toggle.open::before {
  transform: rotate(45deg);
  top: 50%;
}
.menu-toggle.open::after {
  transform: rotate(-45deg);
  bottom: 50%;
}
.menu-toggle.open div { opacity: 0; }

/* Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #c4b7a6;
  padding: 3rem 2rem;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}

/* Mobile nav links */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-nav-links a,
.mobile-nav-links button.mobile-dropdown-toggle {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: color 0.3s;
}
.mobile-nav-links a:hover {
  color: #7e4a35;
}

/* Mobile dropdown */
.mobile-submenu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  list-style: none;
}
.mobile-dropdown.open > .mobile-submenu {
  display: block;
}

/* Mobile social icons */
.mobile-social {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
    grid-column: 1;
    justify-self: start;
  }

  .logo {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    position: relative;
    transform: none;
  }
  .logo img { height: 50px; }

  .nav-right, .nav-left, .desktop-only { display: none !important; }

  .navbar::after {
    width: 180px;
    height: 90px;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero {
    padding: 2.25rem 6%;
    min-height: 70vh;
  }
  .hero .content { max-width: 520px; }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
  }
  .product-card img { height: 320px; }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .logo img { height: 40px; }

  .mobile-menu {
    width: 100%;
    max-width: none;
  }

  .mobile-nav-links a,
  .mobile-nav-links button.mobile-dropdown-toggle { font-size: 18px; }

  .navbar::after {
    width: 140px;
    height: 70px;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero {
    padding: 1.75rem 5%;
    min-height: 60vh;
  }
  .product-card img { height: 260px; }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   Mobile Fix for Navbar Logo
   ============================== */
@media (max-width: 991px) {
  /* Keep logo centered inside U-shape */
  .navbar-brand {
    position: absolute;
    left: 50%;
    top: 20px;                  /* fix logo from top */
    transform: translateX(-50%);
    z-index: 20;
  }

  .navbar-brand img {
    height: 55px;               /* smaller for mobile */
    top: 0;
  }

  /* Adjust U-shape for mobile */
  .navbar-custom::after {
    top: 15px;                  /* place U-shape below logo */
    width: 180px;
    height: 90px;
    bottom: auto;               /* override desktop bottom positioning */
  }

  /* Push menu down so it opens below logo + U-shape */
  .navbar-collapse {
    margin-top: 120px;          /* ensures menu doesn’t overlap logo */
    text-align: center;
  }
}