/* =========================================================
   LAYOUT STYLES
   Section-level structure: nav, hero, content sections.
   No buttons/cards/forms here — those live in components.css.
   ========================================================= */

/* ---------- Navigation Bar ----------
   Sticky at top. Adds background + shadow on scroll
   via the .nav--scrolled class toggled in main.js. */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav--scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.nav__logo img {
  height: 44px;
  width: auto;
  /* Soft hover lift */
  transition: transform var(--transition);
}
.nav__logo:hover img { transform: translateY(-2px); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--forest);
  position: relative;
}
/* Animated underline that grows from center on hover */
.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 2px;
  background: var(--sage);
  transition: width var(--transition), left var(--transition);
}
.nav__links a:hover::after { width: 100%; left: 0; }

.nav__cta { white-space: nowrap; }

/* Hamburger button — hidden on desktop */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--forest);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
/* Animate hamburger -> X when menu is open */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay — slides down from top */
.nav__mobile {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--cream);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(-120%);
  transition: transform 0.5s var(--ease);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile a { font-size: 1.1rem; padding: var(--space-1) 0; }


/* ---------- Hero Section ----------
   First fold. Two-column layout with copy + visual cards. */
.hero {
  position: relative;
  padding: 9rem 0 var(--space-7);
  overflow: hidden;
  /* Subtle gradient wash from cream to a hint of sage */
  background: linear-gradient(180deg, var(--cream) 0%, var(--sage-tint) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: var(--space-2) 0 var(--space-3);
}
.hero__sub {
  font-size: 1.2rem;
  color: var(--forest-light);
  max-width: 560px;
  margin-bottom: var(--space-4);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* Trust strip — three small stats below the CTAs */
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-300);
  max-width: 540px;
}
.trust__item {
  display: flex;
  flex-direction: column;
}
.trust__item strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--forest);
  line-height: 1;
}
.trust__item span {
  font-size: 0.78rem;
  color: var(--forest-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.trust__divider {
  width: 1px;
  height: 32px;
  background: var(--gray-300);
}

/* Hero visual column — relative-positioned for floating cards */
.hero__visual {
  position: relative;
  height: 480px;
}
.hero__fern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  color: var(--sage);
  opacity: 0.35;
  /* Slow gentle rotation for a calm, organic feel */
  animation: floatRotate 18s ease-in-out infinite;
}


/* ---------- Problems Section ---------- */
.problems {
  padding: var(--space-7) 0;
  background: var(--cream);
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
/* Solution callout sits inside the same section to keep the
   "problem -> solution" narrative tight */
.problems__solution {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.problems__solution h3 {
  margin-bottom: var(--space-2);
  font-size: 1.8rem;
}
.problems__solution p {
  color: var(--forest-light);
  font-size: 1.1rem;
}


/* ---------- Process / How It Works ---------- */
.process {
  padding: var(--space-7) 0;
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.process h2, .process h3 { color: var(--cream); }
.process .eyebrow { color: var(--sage); }
.process .text-accent { color: var(--sage); }
.process .section__sub { color: rgba(232, 232, 232, 0.7); }

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  position: relative;
}
/* Decorative connecting dotted line spans the three cards on desktop */
.process__grid::before {
  content: '';
  position: absolute;
  top: 50px; left: 12%; right: 12%;
  height: 2px;
  background-image: linear-gradient(to right, var(--sage) 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  opacity: 0.4;
  z-index: 0;
}


/* ---------- Services Section ---------- */
.services {
  padding: var(--space-7) 0;
  background: var(--cream);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

/* Pricing callout below services */
.pricing {
  position: relative;
  background: linear-gradient(135deg, var(--forest) 0%, #2a3a30 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: var(--cream);
  overflow: hidden;
}
.pricing__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.pricing h3 { color: var(--cream); margin: var(--space-2) 0; font-size: 1.8rem; }
.pricing .text-accent { color: var(--sage); }
.pricing .eyebrow { color: var(--sage); }
.pricing p { color: rgba(232, 232, 232, 0.8); margin-bottom: var(--space-3); }
.pricing__fern {
  position: absolute;
  right: -40px; top: -20px;
  width: 280px;
  color: var(--sage);
  opacity: 0.18;
  pointer-events: none;
}


/* ---------- Results / Stats ---------- */
.results {
  padding: var(--space-7) 0;
  background: var(--sage-tint);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}


/* ---------- About Section ---------- */
.about {
  padding: var(--space-7) 0;
  background: var(--cream);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.about__copy h2 { margin: var(--space-2) 0 var(--space-3); }
.about__copy p { color: var(--forest-light); margin-bottom: var(--space-3); font-size: 1.075rem; }

.why {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}


/* ---------- FAQ Section ---------- */
.faq {
  padding: var(--space-7) 0;
  background: var(--cream);
}
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}


/* ---------- Final CTA Section ---------- */
.cta {
  padding: var(--space-7) 0;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(31,42,35,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta__copy h2 { color: var(--cream); margin: var(--space-2) 0 var(--space-3); }
.cta__copy p { color: rgba(250, 247, 240, 0.92); font-size: 1.15rem; margin-bottom: var(--space-3); }
.cta__copy .eyebrow { color: var(--cream); }
.cta__copy .text-accent { color: var(--forest); font-style: italic; }

.cta__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.cta__list li {
  color: var(--cream);
  font-weight: 500;
  font-size: 1.05rem;
}


/* ---------- Footer ---------- */
.footer {
  padding: var(--space-5) 0 var(--space-3);
  background: var(--forest);
  color: rgba(232, 232, 232, 0.75);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: var(--space-4);
  align-items: center;
}
.footer__brand img { height: 48px; margin-bottom: var(--space-1); }
.footer__brand p { font-size: 0.9rem; color: rgba(232, 232, 232, 0.6); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.9rem;
}
.footer__links a:hover { color: var(--sage); }
.footer__copy { text-align: right; font-size: 0.82rem; opacity: 0.7; }
