/* ==========================================================================
   NetSmart Digital Solutions — styles.css
   Aesthetic: "Grounded editorial" — warm paper, deep navy anchor, green accent,
   oversized GW Grack Condensed display type, full-bleed Eastern Iowa photo bands.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "GW Grack Condensed";
  src: url("../assets/fonts/GWGrack-Condensed.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/PlusJakartaSans-Italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --navy:        #32365e;   /* brand navy — headings, anchors */
  --navy-deep:   #23253f;   /* darker — footer, hero overlays */
  --green:       #66bc46;   /* brand green — fills, rules, accents */
  --green-ink:   #2f6a1c;   /* accessible green for text/links on paper */
  --green-bright:#76d152;   /* hover lift on green fills */

  /* Neutrals */
  --paper:   #f7f4ed;   /* warm off-white base */
  --paper-2: #efe9dc;   /* alternating section tint */
  --ink:     #23252f;   /* body text */
  --ink-soft:#565c70;   /* muted text */
  --white:   #ffffff;
  --line:    rgba(50, 54, 94, 0.14);   /* hairline rules */
  --line-strong: rgba(50, 54, 94, 0.28);

  /* Type */
  --font-display: "GW Grack Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 10vw, 8.5rem);
  --radius: 18px;
  --radius-lg: 26px;
  --pill: 999px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(35, 37, 47, 0.06);
  --shadow:    0 18px 50px -24px rgba(35, 37, 63, 0.45);
  --shadow-lift: 0 30px 60px -28px rgba(35, 37, 63, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 0.97rem + 0.25vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Subtle paper grain for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--green-ink); text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--green); color: var(--navy-deep); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 0.96;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.h-hero {
  font-size: clamp(3.1rem, 1.6rem + 7vw, 7.2rem);
  line-height: 0.92;
}
h2, .h2 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); }
h3, .h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.02; }
h4 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); }

p { text-wrap: pretty; }
.lead {
  font-size: clamp(1.18rem, 1.05rem + 0.7vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow::before {
  content: "";
  width: 1.8em;
  height: 2px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.is-light { color: var(--green); }

/* Inline emphasis in headings */
.accent { color: var(--green); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy-deep); color: rgba(255,255,255,0.86); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy .lead { color: rgba(255,255,255,0.72); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: var(--pill);
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.35s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--green);
  color: var(--navy-deep);
  box-shadow: 0 10px 26px -12px rgba(102, 188, 70, 0.8);
}
.btn--primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(102, 188, 70, 0.9);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn--on-dark { background: var(--green); color: var(--navy-deep); }
.btn--on-dark.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--on-dark.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn--lg { font-size: 1.08rem; padding: 1.05em 1.9em; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--green-ink);
}
.link-arrow .arrow { transition: transform 0.3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.section--navy .link-arrow { color: var(--green); }

/* ==========================================================================
   Floating navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: clamp(0.6rem, 1.6vw, 1.1rem);
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1.25rem;
  background: rgba(247, 244, 237, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease),
              transform 0.4s var(--ease);
}
.nav.is-scrolled .nav__inner {
  background: rgba(247, 244, 237, 0.92);
  box-shadow: 0 12px 40px -18px rgba(35, 37, 63, 0.4);
}

.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__brand img { height: clamp(40px, 3.6vw, 48px); width: auto; }
.nav__brand .logo-white { display: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6rem 0.95rem;
  border: none;
  background: transparent;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__link:hover { background: rgba(50, 54, 94, 0.08); }
.nav__link[aria-current="page"] { color: var(--green-ink); }

/* Dropdown */
.nav__item--has-menu { position: relative; }
.nav__caret { width: 0.7em; transition: transform 0.3s var(--ease); }
.nav__item--has-menu:hover .nav__caret,
.nav__item--has-menu:focus-within .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav__item--has-menu:hover .nav__dropdown,
.nav__item--has-menu:focus-within .nav__dropdown,
.nav__item--has-menu.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  color: var(--navy);
}
.nav__dropdown a:hover { background: var(--paper-2); }
.nav__dropdown a span {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}
.nav__dropdown a strong { font-weight: 700; }

.nav__cta { flex-shrink: 0; }
.nav__cta-mobile { display: none; }   /* shown only inside the mobile menu */

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--pill);
  z-index: 200;
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(94vh, 920px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(187deg, rgba(35,37,63,0.18) 0%, rgba(35,37,63,0.12) 38%, rgba(35,37,63,0.78) 100%),
    linear-gradient(90deg, rgba(35,37,63,0.55) 0%, rgba(35,37,63,0.06) 60%);
}
.hero__inner { width: 100%; max-width: 960px; }
.hero .eyebrow { color: #cdeec0; margin-bottom: 1.4rem; }
.hero .eyebrow::before { background: var(--green); }
.h-hero { color: var(--white); text-shadow: 0 2px 30px rgba(20, 22, 40, 0.35); }
.hero__sub {
  margin-top: 1.5rem;
  max-width: 640px;
  font-size: clamp(1.12rem, 1.02rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}
.hero__actions {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero__scroll {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.hero__scroll .dot {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: grid; place-items: center;
}
.hero__scroll .dot svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%,100%{transform:translateY(-2px);} 50%{transform:translateY(3px);} }

/* ==========================================================================
   Trust / stats bar
   ========================================================================== */
.trust {
  margin-top: calc(var(--section-y) * -0.5);
  position: relative;
  z-index: 5;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust__cell {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  text-align: center;
  border-left: 1px solid var(--line);
}
.trust__cell:first-child { border-left: none; }
.trust__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.5rem + 4vw, 4.4rem);
  line-height: 0.9;
  color: var(--navy);
}
.trust__num .accent { color: var(--green); }
.trust__label {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ==========================================================================
   Services — editorial bento
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 1.5vw, 1.4rem);
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.svc::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.svc:hover::after { transform: scaleX(1); }

.svc--feature { grid-column: span 3; grid-row: span 2; background: var(--navy-deep); color: rgba(255,255,255,0.82); }
.svc--feature h3 { color: var(--white); }
.svc--feature .svc__desc { color: rgba(255,255,255,0.72); }
.svc--feature .link-arrow { color: var(--green); margin-top: auto; }
.svc--feature .svc__icon { background: rgba(255,255,255,0.08); color: var(--green); }
.svc--wide { grid-column: span 3; }
.svc--half { grid-column: span 3; }
.svc--third { grid-column: span 2; }

.svc__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(102, 188, 70, 0.14);
  color: var(--green-ink);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { margin-bottom: 0.5rem; }
.svc__desc { color: var(--ink-soft); margin-bottom: 1.3rem; }
.svc .link-arrow { margin-top: auto; }

/* ==========================================================================
   How we work — numbered steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-strong);
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.5rem + 2.5vw, 3.4rem);
  line-height: 0.8;
  color: var(--green);
  -webkit-text-stroke: 0;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); }

/* ==========================================================================
   Full-bleed photo band
   ========================================================================== */
.band {
  position: relative;
  color: var(--white);
  isolation: isolate;
  padding-block: clamp(5rem, 13vw, 11rem);
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media picture { display: block; width: 100%; height: 100%; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(35,37,63,0.86) 0%, rgba(35,37,63,0.55) 55%, rgba(35,37,63,0.25) 100%);
}
.band__inner { max-width: 720px; }
.band h2 { color: var(--white); }
.band .lead { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Who we serve
   ========================================================================== */
.serve {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.serve__cards { display: grid; gap: 1.2rem; margin-top: 2rem; }
.serve__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}
.serve__card .svc__icon { margin-bottom: 0; }
.serve__card h3 { margin-bottom: 0.3rem; font-size: 1.35rem; }
.serve__card p { color: var(--ink-soft); font-size: 0.98rem; }
.serve__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.serve__media picture { display: block; width: 100%; height: 100%; }
.serve__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.serve__media figcaption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.quote {
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--green);
  height: 0.5em;
}
.quote__text { font-size: 1.12rem; line-height: 1.55; color: var(--ink); margin: 1.2rem 0; }
.quote__by { margin-top: auto; font-size: 0.92rem; color: var(--ink-soft); }
.quote__by strong { display: block; color: var(--navy); font-size: 1rem; }
.is-placeholder { opacity: 0.92; }
.is-placeholder .quote__text { color: var(--ink-soft); font-style: italic; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.member {
  display: grid;
  grid-template-columns: clamp(120px, 22vw, 190px) 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.member__photo {
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(102,188,70,0.25), transparent 60%),
    var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.member__photo .initials {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--navy);
}
.member__photo .ph-tag {
  position: absolute;
  bottom: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.member__role {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 0.45rem;
}
.member h3 { font-size: 1.7rem; line-height: 1.15; margin-bottom: 0.5rem; }
.member p { color: var(--ink-soft); font-size: 0.98rem; }

/* ==========================================================================
   Final CTA (warm photo invitation)
   ========================================================================== */
.invite {
  position: relative;
  color: var(--white);
  isolation: isolate;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}
.invite__media { position: absolute; inset: 0; z-index: -2; }
.invite__media picture { display: block; width: 100%; height: 100%; }
.invite__media img { width: 100%; height: 100%; object-fit: cover; }
.invite__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,37,63,0.55), rgba(35,37,63,0.78));
}
.invite__inner { max-width: 760px; margin-inline: auto; }
.invite h2 { color: var(--white); }
.invite p { color: rgba(255,255,255,0.88); margin: 1.2rem auto 2.2rem; max-width: 560px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand img { height: 52px; margin-bottom: 1.2rem; }
.footer__brand p { font-size: 0.95rem; max-width: 30ch; }
.footer__col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.1rem;
}
.footer__col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer__col a { color: rgba(255,255,255,0.78); font-weight: 500; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--green); }
.footer__contact a { display: block; color: rgba(255,255,255,0.78); }
.footer__contact .placeholder { color: rgba(255,255,255,0.45); font-style: italic; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer__social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.78);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer__social a:hover { background: var(--green); border-color: var(--green); color: var(--navy-deep); }
.footer__bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom a { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-hero {
  padding-top: clamp(8rem, 16vw, 12rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero .lead { margin-top: 1.2rem; max-width: 620px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-aside .stack > * + * { margin-top: 2rem; }
.contact-block h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 0.6rem;
}
.contact-block a { color: var(--navy); font-weight: 600; }
.contact-block .placeholder { color: var(--ink-soft); font-style: italic; font-weight: 500; }
.contact-block p { color: var(--ink-soft); }

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.field .req { color: var(--green-ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(102, 188, 70, 0.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  display: none;
}
.form-status.is-success { display: block; background: rgba(102,188,70,0.15); color: var(--green-ink); }
.form-status.is-error { display: block; background: rgba(192, 57, 43, 0.12); color: #a3271b; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

/* Hero load-in (runs once, no scroll dependency) */
.hero [data-load] { opacity: 0; transform: translateY(28px); }
.hero.loaded [data-load] { animation: heroIn 0.9s var(--ease) forwards; }
.hero.loaded [data-load="1"] { animation-delay: 0.05s; }
.hero.loaded [data-load="2"] { animation-delay: 0.18s; }
.hero.loaded [data-load="3"] { animation-delay: 0.32s; }
.hero.loaded [data-load="4"] { animation-delay: 0.46s; }
.hero.loaded [data-load="5"] { animation-delay: 0.6s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero__media img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.hero.loaded .hero__media img { transform: scale(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .svc--feature { grid-column: span 6; grid-row: auto; }
  .svc--wide, .svc--half { grid-column: span 3; }
  .svc--third { grid-column: span 3; }
}

@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav__cta { display: none; }
  .nav__inner { padding: 0.35rem 0.45rem 0.35rem 0.65rem; }
  .nav.is-open .nav__inner { border-radius: var(--radius-lg); }

  /* Mobile menu panel */
  .nav__menu.is-mobile {
    display: flex;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 0.8rem;
  }
  .nav__menu.is-mobile .nav__link { padding: 0.9rem 1rem; font-size: 1.05rem; }
  .nav__menu.is-mobile .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: var(--paper-2);
    margin: 0.2rem 0 0.4rem;
    padding: 0.3rem;
  }
  .nav__menu.is-mobile .nav__caret { display: none; }
  .nav__menu.is-mobile .nav__cta-mobile { display: block; margin-top: 0.4rem; }
  .nav__menu.is-mobile .nav__cta-mobile .btn { width: 100%; justify-content: center; }

  /* Hero: image banner with header on it, supporting copy in its own
     solid section below — no awkward overlap across the image edge. */
  .hero {
    --hero-banner: clamp(340px, 74vw, 460px);
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }
  .hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: var(--hero-banner);
  }
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(35,37,63,0.12) 0%,
      rgba(35,37,63,0.22) 45%,
      rgba(35,37,63,0.72) 100%);
  }
  .hero__inner {
    position: relative;
    z-index: 1;
    max-width: none;
    padding-inline: 0;
  }
  .hero__head {
    height: var(--hero-banner);
    margin-top: calc(-1 * var(--hero-banner));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--gutter) 1.6rem;
  }
  .hero .h-hero { font-size: clamp(2.5rem, 1.5rem + 5vw, 3.4rem); }
  .hero__body {
    background: var(--navy-deep);
    padding: 2.1rem var(--gutter) 2.6rem;
  }
  .hero__sub { margin-top: 0; max-width: none; }
  .hero__actions { margin-top: 2rem; }
  .hero__scroll { margin-top: 2.4rem; }

  /* Community band: heading on the image, supporting copy in its own
     solid section below — same treatment as the hero. */
  .band {
    --band-banner: clamp(300px, 68vw, 420px);
    padding-block: 0;
    overflow: visible;
  }
  .band__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: var(--band-banner);
  }
  .band__media::after {
    background: linear-gradient(180deg,
      rgba(35,37,63,0.18) 0%,
      rgba(35,37,63,0.3) 45%,
      rgba(35,37,63,0.74) 100%);
  }
  .band .container { padding-inline: 0; }
  .band__inner { max-width: none; }
  .band__head {
    height: var(--band-banner);
    margin-top: calc(-1 * var(--band-banner));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--gutter) 1.6rem;
    position: relative;
    z-index: 1;
  }
  .band__body {
    background: var(--navy-deep);
    padding: 2.1rem var(--gutter) 2.6rem;
  }
  .band__body .lead { margin-top: 0; }

  /* Final CTA: same banner-plus-solid-section treatment. */
  .invite {
    --invite-banner: clamp(280px, 62vw, 400px);
    padding-block: 0;
    overflow: visible;
  }
  .invite__media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: var(--invite-banner);
  }
  .invite__media::after {
    background: linear-gradient(180deg,
      rgba(35,37,63,0.2) 0%,
      rgba(35,37,63,0.32) 45%,
      rgba(35,37,63,0.74) 100%);
  }
  .invite__inner { max-width: none; padding-inline: 0; }
  .invite__head {
    height: var(--invite-banner);
    margin-top: calc(-1 * var(--invite-banner));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--gutter) 1.6rem;
    position: relative;
    z-index: 1;
  }
  .invite__body {
    background: var(--navy-deep);
    padding: 2.2rem var(--gutter) 2.8rem;
  }
  .invite__body p { margin-top: 0; max-width: none; }

  .trust__grid { grid-template-columns: 1fr; }
  .trust__cell { border-left: none; border-top: 1px solid var(--line); }
  .trust__cell:first-child { border-top: none; }

  .steps { grid-template-columns: 1fr; }
  .serve { grid-template-columns: 1fr; }
  .serve__media { aspect-ratio: 16 / 11; max-height: 420px; }
  .quotes { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .svc--feature, .svc--wide, .svc--half, .svc--third { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; }
  .member__photo { max-width: 160px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero [data-load] { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}
