/* ============================================================
   Wander Community Care — "Eucalyptus & Wattle"
   Palette: deep eucalyptus green · warm sage paper · wattle-gold spark
   Type: Fraunces (display) · Mulish (body)
   ============================================================ */

:root {
  --paper:        #F4F2E9;
  --paper-deep:   #E8E8DA;
  --card:         #FBFAF4;
  --ink:          #1F3327;
  --ink-soft:     #46564A;
  --green:        #2E5D40;   /* logo forest green */
  --green-deep:   #1E3F2C;   /* deep panels / footer */
  --sage:         #84A06C;   /* logo grass green */
  --sage-soft:    #B9CDB0;   /* logo sky-sage */
  --wattle:       #E2B53E;   /* logo sun gold */
  --wattle-soft:  #F1CF6B;
  --clay:         #CE8136;   /* logo walker — warm accent, used sparingly */
  --line:         rgba(46, 93, 64, 0.15);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 20px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* emphasis via weight only — keeps headings calm (colour pop is reserved for the hero) */
h1 em, h2 em { font-style: normal; font-weight: 600; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---- Eyebrow / waypoint marker (signature) ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wattle);
}
.eyebrow.on-dark { color: var(--wattle-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(39,56,41,.7); }
.btn-ghost { border-color: rgba(244,242,233,.55); color: var(--paper); }
.btn-ghost:hover { background: rgba(244,242,233,.12); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 1.25rem 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--paper); transition: color .35s ease; }
.brand .name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: .01em; }
.brand .sub { font-size: 0.64rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 700; margin-top: 3px; opacity: .85; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-weight: 700; font-size: 0.95rem; color: var(--paper); position: relative; padding: 4px 0; transition: color .25s ease, opacity .25s ease; opacity: .92; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--wattle); transition: width .25s ease; }
.nav a:hover { opacity: 1; } .nav a:hover::after, .nav a.active::after { width: 100%; }

/* solid header after scroll */
.site-header.scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 12px 28px -22px rgba(39,56,41,.5); padding: 0.7rem 0; }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .brand .name { color: var(--green); }
.site-header.scrolled .nav a { color: var(--ink-soft); }
.site-header.scrolled .btn-ghost { border-color: var(--green); color: var(--green); }
.site-header.scrolled .btn-ghost:hover { background: var(--green); color: var(--paper); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 5px 0; transition: .3s; color: var(--paper); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(39,56,41,.45) 0%, rgba(39,56,41,0) 30%),
    linear-gradient(15deg, rgba(25,38,28,.92) 5%, rgba(39,56,41,.45) 45%, rgba(39,56,41,.05) 75%);
}
.hero__inner { padding-block: clamp(7rem, 14vh, 11rem) clamp(3.5rem, 8vh, 6rem); max-width: 760px; }
.hero h1 { color: var(--paper); font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 480; margin: 1.3rem 0 1.4rem; }
.hero h1 em { color: var(--wattle-soft); }
.hero p.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 46ch; opacity: .94; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .eyebrow { color: var(--wattle-soft); }

.scroll-cue { position: absolute; bottom: 1.5rem; right: var(--pad); z-index: 1; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; display: flex; align-items: center; gap: .6rem; }
.scroll-cue .line { width: 1px; height: 38px; background: var(--paper); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ============================================================
   Intro / Why Wander
   ============================================================ */
.intro { padding-block: var(--section); }
.intro .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin: 1rem 0 1.4rem; }
.intro p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 52ch; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius); width: 100%; height: 100%; max-height: 560px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(39,56,41,.5); }
.intro__media .tag { position: absolute; left: -1.2rem; bottom: 1.6rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.2rem; box-shadow: 0 20px 40px -24px rgba(39,56,41,.6); display: flex; align-items: center; gap: .8rem; max-width: 250px; }
.intro__media .tag b { font-family: var(--font-display); font-size: 1.05rem; color: var(--green); display:block; }
.intro__media .tag small { color: var(--ink-soft); font-size: .82rem; }
.intro__media .tag .badge { width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(203,154,46,.16); display: grid; place-items: center; color: var(--wattle); }

.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin-top: 1.6rem; }
.ticks li { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; }
.ticks svg { color: var(--green); flex: none; }

/* ============================================================
   Services
   ============================================================ */
.services { padding-block: var(--section); background: var(--paper-deep); }
.services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem,5vw,3.5rem); }
.services__head h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin-top: .8rem; max-width: 16ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem 2.1rem; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(39,56,41,.55); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(59,82,64,.10); color: var(--green); display: grid; place-items: center; margin-bottom: 1.3rem; }
.card h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .more { margin-top: 1.3rem; display: inline-flex; gap: .4rem; align-items: center; font-weight: 800; color: var(--green); font-size: .9rem; }

/* ============================================================
   Approach / Our team (collective) — with contour signature
   ============================================================ */
.approach { position: relative; padding-block: var(--section); background: var(--green-deep); color: var(--paper); overflow: hidden; }
.approach .contours { position: absolute; inset: 0; z-index: 0; opacity: .055; pointer-events: none; }
.approach .container { position: relative; z-index: 1; }
.approach .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.approach h2 { color: var(--paper); font-size: clamp(2rem, 4vw, 3.05rem); margin: 1rem 0 1.3rem; }
.approach h2 em { color: inherit; }
.approach p { opacity: .9; margin-bottom: 1.1rem; max-width: 54ch; }
.approach__media img { border-radius: var(--radius); box-shadow: 0 40px 70px -34px rgba(0,0,0,.6); width:100%; object-fit: cover; max-height: 540px; }
.values { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.values .n { font-family: var(--font-display); font-style: italic; color: var(--sage-soft); opacity: .55; font-size: 1.35rem; line-height: 1; padding-top: 2px; }
.values b { display:block; font-size: 1.02rem; }
.values span { opacity: .82; font-size: .94rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta { padding-block: clamp(3.5rem, 7vw, 6rem); text-align: center; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); max-width: 18ch; margin: .8rem auto 1.6rem; }
.cta .row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.cta .phone { font-weight: 800; color: var(--green); display: inline-flex; gap: .5rem; align-items: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--green-deep); color: var(--paper); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(244,242,233,.14); }
.site-footer .brand { color: var(--paper); } .site-footer .brand .name { font-size: 1.6rem; }
.site-footer p { opacity: .82; font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; opacity: .7; margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.site-footer ul a { opacity: .88; } .site-footer ul a:hover { opacity: 1; color: var(--wattle-soft); }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-top: 1.5rem; font-size: .82rem; opacity: .7; }

/* ============================================================
   Reveal animation
   ============================================================ */
/* hidden state only applies when JS is active, so content is never lost */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; color: var(--paper); }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 1.2rem; background: var(--paper); padding: 1.5rem var(--pad) 2rem; box-shadow: 0 20px 40px -24px rgba(39,56,41,.6); }
  .nav.open a { color: var(--ink); }
  .intro .grid, .approach .grid { grid-template-columns: 1fr; }
  .intro__media { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 560px) {
  .hero { min-height: 92svh; }
  .intro__media .tag { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Inner-page hero (compact)
   ============================================================ */
.page-hero { position: relative; color: var(--paper); padding-block: clamp(9rem, 18vh, 13rem) clamp(3.5rem, 8vh, 6rem); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(8deg, rgba(25,38,28,.92), rgba(39,56,41,.6) 55%, rgba(39,56,41,.35)); }
.page-hero h1 { color: var(--paper); font-size: clamp(2.4rem, 5.2vw, 4rem); margin: 1rem 0 1rem; }
.page-hero p { max-width: 50ch; opacity: .94; font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.page-hero .eyebrow { color: var(--wattle-soft); }

/* ============================================================
   Values grid (About)
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; }
.value-card .card__icon { margin-bottom: 1rem; }
.value-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.value-card p { color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Service detail rows (alternating)
   ============================================================ */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; padding-block: clamp(2.5rem,5vw,4rem); }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media img { border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; box-shadow: 0 30px 60px -34px rgba(39,56,41,.5); }
.service-row h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .8rem 0 1rem; }
.service-row p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.feature-list { list-style: none; display: grid; gap: .75rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.feature-list svg { color: var(--green); margin-top: 3px; flex: none; }
@media (max-width: 880px) { .service-row { grid-template-columns: 1fr; } .service-row:nth-child(even) .service-row__media { order: -1; } .service-row__media { order: -1; } }

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: 0 30px 60px -40px rgba(39,56,41,.5); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(59,82,64,.14); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.form .note { font-size: .82rem; color: var(--ink-soft); margin-top: .9rem; text-align: center; }
.form-status { display: none; padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 700; font-size: .92rem; }
.form-status.ok { display: block; background: rgba(59,82,64,.12); color: var(--green); }
.form-status.err { display: block; background: rgba(180,70,50,.12); color: #9c4631; }

.contact-aside { display: grid; gap: 1.2rem; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.contact-card .line { display: flex; gap: .8rem; align-items: center; margin-bottom: .7rem; font-weight: 700; }
.contact-card .line svg { color: var(--green); flex: none; }
.contact-card .line small { display:block; font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } .form .row2 { grid-template-columns: 1fr; } }

/* ============================================================
   People (About) — founder bios
   ============================================================ */
.people { padding-block: var(--section); }
.people__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.people__head h2 { font-size: clamp(2rem, 4vw, 3.05rem); margin-top: .8rem; max-width: 18ch; }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(39,56,41,.5); }
/* Square box: both source photos are taller than 4:3, and a wide box cropped
   heads off. 1:1 removes the vertical crop from Brooke's and costs Boaz's ~9%. */
.person__photo { aspect-ratio: 1 / 1; background: var(--paper-deep); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.person__body { padding: clamp(1.5rem, 3vw, 2.2rem); }
.person__body h3 { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.45rem, 2.4vw, 1.9rem); color: var(--green); margin-bottom: 1rem; }
.person__body p { color: var(--ink-soft); margin-bottom: .95rem; }
.person__body p:last-child { margin-bottom: 0; }
@media (max-width: 880px) { .people-grid { grid-template-columns: 1fr; } }

/* focus visibility */
a:focus-visible, .btn:focus-visible, button:focus-visible { outline: 3px solid var(--wattle); outline-offset: 3px; border-radius: 6px; }
