/* ── GENERAL UTILITY CLASS FOR CENTERED CONTAINERS (E.G. TERMS, PRIVACY) ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.container h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 5vw, 56px);
  color: var(--green);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-align: left;
}

.container>p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  text-align: left;
}

.container section {
  background: var(--white);
  border: 1px solid #e8ede9;
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  text-align: left;
}

.container section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  border-bottom: 1.5px solid #e8ede9;
  padding-bottom: 8px;
}

.container section p,
.container section ul,
.container section ol {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.container section ul,
.container section ol {
  padding-left: 20px;
  margin-top: 8px;
}

.container section li {
  margin-bottom: 8px;
}

/* ── DESKTOP HOVER GAP FIX ── */
header .nav-item {
  position: relative;
}

header .nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  display: none;
  z-index: 10;
}

header .nav-item:hover::after {
  display: block;
}

header .dropdown,
header .mega-dropdown {
  top: 100% !important;
}

.nav-mobile-header {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-toggle {
  display: none !important;
}

.nav-mobile-cta {
  display: none !important;
}

/* animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

.delay-1 {
  animation-delay: .1s;
}

.delay-2 {
  animation-delay: .2s;
}

.delay-3 {
  animation-delay: .3s;
}

.delay-4 {
  animation-delay: .4s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .quote-inner {
    grid-template-columns: 1fr;
  }

  .finishes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .form-card {
    padding: 24px;
  }

  .topbar-right {
    display: none;
  }

  .topbar {
    padding: 8px 20px;
    display: flex;
    justify-content: center;
  }

  .footer-bottom-links {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 1rem;
  }

  .header-inner {
    padding: 0 20px;
  }

  /* Disable hover dropdowns on mobile touch/tap */
  header .nav-item:hover:not(.open-mobile) .dropdown,
  header .nav-item:hover:not(.open-mobile) .mega-dropdown {
    display: none !important;
  }

  /* Hamburger button */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    margin-left: auto;
  }

  .mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Hamburger active/open animation (cross button in drawer top right) */
  .mobile-menu-toggle.active {
    position: fixed;
    top: 26px;
    right: 24px;
    z-index: 1010;
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Slide-in drawer navigation */
  header nav {
    display: flex !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    padding: 24px 20px 40px;
    /* Reduced top padding since logo header is inside */
    flex-direction: column;
    gap: 10px;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    align-items: stretch;
    justify-content: flex-start;
  }

  header nav.active {
    right: 0;
  }

  /* Mobile menu drawer header (Logo on left, cross space on right) */
  .nav-mobile-header {
    display: flex !important;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #e8ede9;
    margin-bottom: 20px;
  }

  .nav-mobile-header .logo {
    font-size: 24px;
  }

  .nav-mobile-header .logo-leaf {
    width: 30px;
    height: 30px;
  }

  /* Nav Links in mobile menu */
  header .nav-item {
    width: 100%;
  }

  header .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    color: var(--text);
  }

  /* Accordion dropdown toggle icon flip */
  header .nav-item.open-mobile>.nav-link .arrow {
    transform: rotate(180deg);
  }

  header .nav-link .arrow {
    transition: transform 0.2s ease;
  }

  /* Dropdowns */
  header .dropdown,
  header .mega-dropdown {
    position: static;
    display: none;
    width: 100% !important;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 16px;
    background: var(--light);
    margin-top: 4px;
    border-radius: var(--radius);
  }

  header .mega-cols {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  header .mega-heading {
    display: none;
  }

  /* Toggle visibility */
  header .nav-item.open-mobile>.dropdown,
  header .nav-item.open-mobile>.mega-dropdown {
    display: block !important;
  }

  /* Mobile CTA at the bottom of drawer */
  .nav-mobile-cta {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1.5px solid #e8ede9;
  }

  .nav-mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hide default header CTA in normal header flow on mobile */
  header .header-cta {
    display: none !important;
  }

  .hero-inner {
    padding: 48px 20px;
  }

  .section {
    padding: 56px 20px;
  }

  .trust {
    padding: 20px;
  }

  .trust-divider {
    display: none;
  }

  /* .trust-inner {
    gap: 16px;
  } */

  .finishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .why-inner {
    padding: 0 20px;
  }

  .finishes-inner {
    padding: 0 20px;
  }

  .quote-inner {
    padding: 0 20px;
  }

  .testimonials-inner {
    padding: 0 20px;
  }

  .blog-inner {
    padding: 0 20px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Consolidated from custom.min.css */
@media (max-width: 1200px) {
  .homepage-product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .homepage-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-img {
      font-size: 18rem;
  }
}

@media (max-width: 768px) {
  .homepage-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .homepage-product-grid {
    grid-template-columns: 1fr;
  }
}