/* =========================================================
   FERN GROVE — design tokens
   ========================================================= */
:root {
  /* Palette — warm cream + forest green + brass */
  --cream:        #F5EFE2;
  --cream-soft:   #FBF7EE;
  --cream-deep:   #ECE3D0;
  --ink:          #1F2A24;
  --ink-soft:     #4A5650;
  --ink-mute:     #7A847E;
  --line:         #DBD2BE;
  --forest:       #1F3D2F;
  --forest-2:     #2C5040;
  --moss:         #6B8B6E;
  --sage:         #A9BFA0;
  --brass:        #B58A3F;
  --brass-soft:   #D9B97E;
  --rose:         #C26F5C;

  /* Type */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--ink);
  line-height: 1.08;
}
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Eyebrow tag */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  padding: 4px 0;
  position: relative;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--moss);
  vertical-align: middle;
  margin-right: 12px;
}
.eyebrow--light { color: var(--brass-soft); }
.eyebrow--light::before { background: var(--brass-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--forest); color: var(--cream-soft); }
.btn--primary:hover { background: var(--forest-2); transform: translateY(-1px); box-shadow: 0 12px 24px -16px rgba(31,61,47,.6); }
.btn--ghost { border: 1px solid currentColor; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream-soft); }
.btn--text {
  padding: 6px 0;
  font-weight: 600;
  color: var(--forest);
  position: relative;
}
.btn--text::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor;
  transform: scaleX(.6); transform-origin: left;
  transition: transform .35s var(--ease);
}
.btn--text:hover::after { transform: scaleX(1); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--full { width: 100%; }

/* =========================================================
   Topbar
   ========================================================= */
.topbar {
  background: var(--forest);
  color: var(--cream-soft);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  padding: 10px var(--gutter);
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.92;
  transition: opacity .2s ease;
}
.topbar__item:hover { opacity: 1; }
.topbar__item--accent { margin-left: auto; color: var(--brass-soft); font-weight: 600; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(245,239,226,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245,239,226,0.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}
.logo__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo__sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.logo--light { color: var(--cream); }
.logo--light .logo__sub { color: var(--brass-soft); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__menu a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav__menu a:not(.btn):hover { color: var(--forest); }
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%;
  background: var(--forest);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
}
.nav__toggle span {
  display: block; height: 1.5px; background: var(--forest); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.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); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
}
.hero::before {
  /* soft texture */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 110% -10%, rgba(169,191,160,.30), transparent 60%),
    radial-gradient(600px 400px at -10% 30%, rgba(181,138,63,.10), transparent 60%);
  pointer-events: none;
}
.hero__leaves {
  position: absolute;
  top: 0; right: -40px; bottom: 0;
  width: 160px;
  color: var(--moss);
  opacity: .35;
  pointer-events: none;
}
.hero__leaves svg { width: 100%; height: 100%; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__content { max-width: 560px; }
.hero__title {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 400;
  margin: 8px 0 24px;
}
.hero__title-accent {
  display: block;
  font-style: italic;
  color: var(--forest);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero__lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-bottom: 56px;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__facts > div { margin: 0; }
.hero__facts dt {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 4px;
}
.hero__facts dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* Hero media collage */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.hero__image {
  position: absolute;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  background-color: var(--moss);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 30px 60px -30px rgba(31,61,47,.45);
}
.hero__image--main {
  inset: 0 18% 12% 0;
  background-image:
    linear-gradient(180deg, rgba(31,61,47,.05), rgba(31,61,47,.18)),
    url('pic-1.png');
}
.hero__image--small {
  width: 50%;
  aspect-ratio: 4/5;
  bottom: 0;
  right: 0;
  background-image:
    linear-gradient(180deg, rgba(31,61,47,0), rgba(31,61,47,.15)),
    url('pic-2.png');
  border: 6px solid var(--cream);
}
.hero__badge {
  position: absolute;
  bottom: 28%; left: -36px;
  width: 110px; height: 110px;
  background: var(--cream-soft);
  border-radius: 50%;
  color: var(--forest);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px -16px rgba(31,61,47,.4);
  animation: spin 22s linear infinite;
}
.hero__badge svg { width: 86%; height: 86%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Welcome
   ========================================================= */
section { padding: clamp(72px, 9vw, 120px) 0; }
.welcome {
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.welcome__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}
.welcome__heading h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
}
.welcome__body p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.welcome__body p + p { margin-top: 14px; }
.welcome__body .btn--text { margin-top: 18px; }

/* =========================================================
   Section header
   ========================================================= */
.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section__head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
}
.section__head--center {
  text-align: center;
  margin-left: auto; margin-right: auto;
}

/* =========================================================
   Services
   ========================================================= */
.services { background: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--cream-soft);
  padding: 38px 34px 36px;
  transition: background .35s var(--ease), transform .35s var(--ease);
  position: relative;
}
.card:hover { background: #fff; transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--forest);
  margin-bottom: 22px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.card:hover .card__icon { background: var(--forest); color: var(--cream-soft); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.65;
}

/* =========================================================
   Why
   ========================================================= */
.why {
  background: var(--cream-soft);
  position: relative;
}
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.why__media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.why__image {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(180deg, rgba(31,61,47,0), rgba(31,61,47,.2)),
    url('https://images.unsplash.com/photo-1631815589968-fdb09a223b1e?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  background-color: var(--moss);
  box-shadow: 0 30px 60px -30px rgba(31,61,47,.45);
}
.why__quote {
  position: absolute;
  right: -20px; bottom: 30px;
  width: min(80%, 320px);
  background: var(--cream);
  padding: 24px 26px;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(31,61,47,.4);
  border: 1px solid var(--line);
}
.why__quote svg { color: var(--brass); margin-bottom: 8px; }
.why__quote p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 12px;
  color: var(--ink);
}
.why__quote span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.why__content h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 400;
  margin-bottom: 30px;
}
.why__list { display: grid; gap: 22px; }
.why__list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.why__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 1.5px;
  background: var(--brass);
}
.why__list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 16px;
}

/* =========================================================
   Stories
   ========================================================= */
.stories { background: var(--cream); }
.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.quote {
  margin: 0;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(31,61,47,.35);
}
.quote__stars {
  color: var(--brass);
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.quote blockquote {
  margin: 0 0 18px;
}
.quote blockquote p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 0;
}
.quote figcaption {
  margin-top: auto;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* =========================================================
   CTA / Contact
   ========================================================= */
.cta {
  background: var(--forest);
  color: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 90% 110%, rgba(217,185,126,.15), transparent 60%),
    radial-gradient(600px 400px at -10% -10%, rgba(169,191,160,.12), transparent 60%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.cta__copy h2 {
  color: var(--cream-soft);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 400;
  margin-bottom: 20px;
}
.cta__copy p {
  color: rgba(245,239,226,.78);
  font-size: 17px;
  max-width: 50ch;
  margin-bottom: 40px;
}
.cta__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,239,226,.18);
}
.cta__contact > div { display: flex; flex-direction: column; gap: 4px; }
.cta__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 600;
}
.cta__contact a {
  color: var(--cream-soft);
  font-size: 16px;
  line-height: 1.4;
  transition: color .2s ease;
}
.cta__contact a:hover { color: var(--brass-soft); }

/* Form */
.cta__form {
  background: var(--cream-soft);
  color: var(--ink);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
}
.cta__form h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}
.cta__form label { display: grid; gap: 6px; }
.cta__form span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.cta__form input,
.cta__form select,
.cta__form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, background .2s ease;
}
.cta__form input:focus,
.cta__form select:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
}
.cta__form textarea { resize: vertical; min-height: 80px; }
.cta__form button { margin-top: 6px; }
.cta__form-success {
  margin: 0;
  padding: 12px 14px;
  background: rgba(107,139,110,.15);
  color: var(--forest);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: #182921;
  color: rgba(245,239,226,.78);
  padding: 80px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand p {
  margin-top: 18px;
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.65;
}
.footer__col h4 {
  color: var(--cream-soft);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer__col p,
.footer__col li { font-size: 14.5px; line-height: 1.7; }
.footer__col a { transition: color .2s ease; }
.footer__col a:hover { color: var(--brass-soft); }
.footer__col ul { display: grid; gap: 6px; }
.footer__base {
  margin-top: 64px;
  padding: 22px 0;
  border-top: 1px solid rgba(245,239,226,.12);
  font-size: 13px;
}
.footer__base-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(245,239,226,.5);
}
.footer__legal a { margin: 0 4px; }

/* =========================================================
   Reveal animation (progressive-enhancement)
   Content is visible by default. The .js class enables fade-up.
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner,
  .welcome__inner,
  .why__inner,
  .cta__inner { grid-template-columns: 1fr; }

  .hero__media { max-width: 520px; margin: 0 auto; }
  .why__media { max-width: 520px; margin: 0 auto; }
  .why__quote { right: 10px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .topbar__item:not(.topbar__item--accent) { display: none; }
  .topbar__item--accent { margin: 0 auto; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__menu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu a:last-child {
    border-bottom: 0;
    margin-top: 8px;
    padding: 12px 18px;
    align-self: flex-start;
  }
  .nav__menu a:not(.btn)::after { display: none; }

  .hero { padding-top: 40px; }
  .hero__badge { width: 86px; height: 86px; left: -8px; bottom: 22%; }
  .hero__facts { grid-template-columns: 1fr; gap: 18px; }

  .why__media { margin-bottom: 80px; } /* leave room for the floating quote */
  .why__quote { width: 88%; right: 6%; bottom: -60px; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding-top: 60px; }
}

@media (max-width: 460px) {
  .card { padding: 30px 24px; }
  .quote { padding: 26px 22px; }
  .cta__form { padding: 28px 22px; }
}
