/* Stratavos Group: shared styles
   Brand palette (from the brand doc):
   Slate Blue #4F6D7A, Soft White #F9FAFB, Cool Mint #C2F5E9,
   Deep Teal #1C4F4A, Ash Gray #D9E2E8 */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #4F6D7A;
  --soft-white: #F9FAFB;
  --mint: #C2F5E9;
  --teal: #1C4F4A;
  --ash: #D9E2E8;

  --ink: #16252C;          /* body text, darkened slate for AA+ contrast */
  --ink-soft: #46616D;     /* secondary text (slate, slightly deeper for contrast) */
  --teal-hover: #143B37;
  --surface: #FFFFFF;
  --mint-soft: #EAFBF6;
  --line: #D9E2E8;

  --font-head: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Poppins", var(--font-head);

  --wrap: 1120px;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top keeps jump-link targets clear of the sticky header */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--soft-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-hover); text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--mint { background: var(--mint-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--mint); color: var(--teal-hover); }
.btn--small { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Header ---------- */
/* Sticky header: stays visible while scrolling */
.site-header { background: var(--soft-white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
/* Logo (supplied logo.png; never redraw or recolor beyond the derived white footer version) */
.brand { display: inline-flex; flex: none; line-height: 0; }
.brand img { width: 143px; height: 44px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--mint); color: var(--teal); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 8px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); font-weight: 600; }
  .js .site-nav { display: none; }
  /* Open mobile menu scrolls inside itself if taller than the screen */
  .js .site-nav.is-open { display: flex; max-height: calc(100vh - 77px); max-height: calc(100dvh - 77px); overflow-y: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 14em; }
.hero .lede { margin-top: 8px; }
.portrait {
  margin: 0;
  position: relative;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.portrait picture { display: block; position: relative; }
.portrait picture::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--mint);
  border-radius: var(--radius);
  z-index: 0;
}
.portrait img, .portrait .portrait-fallback {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ash);
}
.portrait figcaption { position: relative; z-index: 1; margin-top: 32px; font-size: 0.9375rem; color: var(--ink-soft); }
.portrait figcaption strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 240px; }
}

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof li { padding: 28px 24px; border-left: 1px solid var(--line); }
.proof li:first-child { border-left: 0; padding-left: 0; }
.stat { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--teal); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 880px) {
  .proof ul { grid-template-columns: repeat(2, 1fr); }
  .proof li { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .proof li:nth-child(-n+2) { border-top: 0; }
  .proof li:nth-child(odd) { padding-left: 0; }
  .proof li:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
}
.section--tint .card { background: var(--soft-white); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-family: var(--font-head); text-decoration: none; }
.card .more::after { content: " \2192"; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.card:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(22,37,44,.35); color: inherit; }
a.card:hover .more { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint); color: var(--teal);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 16px;
}

.fit-list { list-style: none; padding: 0; margin: 0; }
.fit { border-top: 2px solid var(--teal); padding-top: 18px; }
.fit p { margin: 0; font-size: 1.0625rem; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.result-stat { font-family: var(--font-head); font-weight: 600; color: var(--teal); font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; }
.result-kicker { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; font-family: var(--font-head); }

/* CTA band */
.cta-band { background: var(--teal); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta-band h2 { color: #fff; max-width: 20em; }
.cta-band p { color: #D7EEE9; max-width: 36em; }
.cta-band .btn--primary { background: var(--mint); color: var(--teal); }
.cta-band .btn--primary:hover { background: #fff; color: var(--teal-hover); }
.cta-band :focus-visible { outline-color: var(--mint); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 16em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid .portrait { justify-self: end; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .about-grid .portrait { justify-self: start; max-width: 300px; order: -1; } }
.prose p { max-width: 40em; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ash); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--soft-white); border: 2px solid var(--slate);
}
.timeline li:last-child::before { background: var(--teal); border-color: var(--teal); }
.timeline strong { font-family: var(--font-head); font-weight: 600; }
.timeline span { color: var(--ink-soft); }

.principles { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.principles li { counter-increment: p; }

.callout {
  background: var(--mint-soft);
  border: 1px solid #BFE9DE;
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.callout h3 { margin-bottom: 6px; }

.cred-list { columns: 2; column-gap: 32px; padding-left: 1.1em; margin: 0; }
.cred-list li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 640px) { .cred-list { columns: 1; } }

/* ---------- Results ---------- */
.case { padding: clamp(24px, 3.4vw, 40px); }
.case + .case { margin-top: 24px; }
.case-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.case-header h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0; max-width: 28em; }
.case-tag { font-size: 0.875rem; color: var(--ink-soft); font-weight: 500; }
.case dl { display: grid; grid-template-columns: 170px 1fr; gap: 14px 28px; margin: 0; }
.case dt { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; }
.case dd { margin: 0; }
.case dd.outcome { font-weight: 500; color: var(--ink); }
.case dd.outcome strong { color: var(--teal); }
.case dd.miss { color: var(--ink-soft); font-style: italic; }
@media (max-width: 640px) { .case dl { grid-template-columns: 1fr; gap: 4px; } .case dd { margin-bottom: 14px; } }
.case ul { margin: 0; padding-left: 1.1em; }
.case ul li + li { margin-top: 8px; }

.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 20px; font-size: 1.0625rem; line-height: 1.65; }
.quote blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-head);
  font-size: 3.2rem; line-height: 0.8; color: var(--slate); margin-bottom: 6px;
}
.quote figcaption { margin-top: auto; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.5; }
.quote figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }

/* ---------- Services ---------- */
.offer { padding: clamp(24px, 3.4vw, 40px); }
.offer + .offer { margin-top: 24px; }
.offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; margin-bottom: 8px; }
.offer h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0; }
.pill { display: inline-block; background: var(--mint); color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; padding: 4px 12px; border-radius: 999px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; margin-top: 20px; }
.offer-grid h3 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 6px; }
.offer-grid p, .offer-grid ul { margin: 0; }
.offer-grid ul { padding-left: 1.1em; }
@media (max-width: 720px) { .offer-grid { grid-template-columns: 1fr; } }

.faq { max-width: 50em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.125rem;
  padding: 20px 40px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px;
  font-size: 1.5rem; color: var(--teal); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 20px; color: var(--ink); max-width: 44em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-family: var(--font-head); margin-bottom: 6px; font-size: 0.975rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--soft-white);
  border: 1.5px solid #B8C6CF;
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--mint); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 14px; }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status.is-error { color: #9B2C2C; }
.thanks { display: none; }
.thanks:target, .thanks.is-visible { display: block; }
.thanks h2 { font-size: 1.6rem; }
.thanks + form { }
.thanks:target + form, .thanks.is-visible + form { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D6DC; padding: 56px 0 40px; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.footer-title { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: 12px; font-size: 0.9375rem; }
.footer-legal { border-top: 1px solid #2D4049; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #A9BCC4; font-size: 0.875rem; }
.footer-legal p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--mint); }

/* ---------- 404 ---------- */
.notfound { padding: clamp(80px, 14vw, 160px) 0; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
