/* ============================================================
   Elevate GI — styles (Brand Guidelines v1, November 2026)
   Evergreen leads, gold accents, ivory is the ground.
   ~70% ivory/white, 25% evergreen, 5% gold. One family: Jost.
   ============================================================ */

:root {
  --evergreen: #1F4D3A;       /* primary: headings, buttons, bands */
  --evergreen-dark: #163829;  /* hover / pressed */
  --evergreen-tint: #E6EFE8;  /* soft section backgrounds, never text */
  --gold: #B5832C;            /* accent graphics, 24px+ text only */
  --gold-text: #8A6220;       /* small gold text: eyebrows, links */
  --gold-light: #D4A64A;      /* gold on evergreen */
  --ivory: #FAF7F0;           /* page background */
  --white: #FFFFFF;
  --ink: #1E2A24;             /* body text */
  --ink-muted: #55625B;       /* captions, hints */
  --line: #DDD8CC;            /* dividers, card borders */

  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --header-h: 76px;
  --gutter: 48px;
  --section: 96px;
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 64px; --header-h: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;      /* Body 17/28 */
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
}

img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--evergreen); }
h1 { font-size: clamp(2.375rem, 5.2vw, 3.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; } /* Display 56/60 */
h2 { font-size: clamp(1.75rem, 3vw, 2rem); line-height: 1.25; font-weight: 500; }                           /* H2 32/40 */
h3 { font-size: 1.375rem; line-height: 1.36; font-weight: 500; }                                             /* H3 22/30 */
p { margin: 0 0 1em; }
a { color: var(--gold-text); }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--evergreen); color: var(--white); padding: 10px 16px;
  border-radius: var(--radius-btn); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Eyebrow 13/18 600 caps ---------- */
.eyebrow {
  font-size: .8125rem; line-height: 1.38; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--gold-text); margin-bottom: 14px;
}
.lede { font-size: 1.1875rem; line-height: 1.58; }   /* Body large 19/30 */
.small { font-size: .875rem; line-height: 1.57; color: var(--ink-muted); }

/* ---------- Buttons: 8px corners, 48px tall ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn);
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--evergreen); color: var(--white); border-color: var(--evergreen); }
.btn-primary:hover { background: var(--evergreen-dark); border-color: var(--evergreen-dark); }
.btn-secondary { background: transparent; color: var(--evergreen); border-color: var(--evergreen); }
.btn-secondary:hover { background: var(--evergreen-tint); }
.btn-on-dark { background: var(--gold-light); color: var(--evergreen-dark); border-color: var(--gold-light); }
.btn-on-dark:hover { background: #DDB566; border-color: #DDB566; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 40px; width: auto; min-width: 140px; } /* brand minimum 140px wide */
@media (max-width: 640px) { .logo img { height: 34px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250, 247, 240, .96); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.site-nav ul a:hover { color: var(--evergreen); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: var(--radius-btn);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--evergreen);
  border-radius: 2px; transition: transform .2s; content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 12px; }
}

/* ---------- Sections: alternate ivory and evergreen tint ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--evergreen-tint); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--ink-muted); font-size: 1.1875rem; line-height: 1.58; margin: 0; }

/* Short gold rule: the single rising accent */
.rule { display: block; width: 40px; height: 3px; border-radius: 2px; background: var(--gold); margin-bottom: 18px; }

/* Line icons: 2px stroke, rounded ends */
.icon {
  width: 32px; height: 32px; fill: none; stroke: var(--evergreen); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero .lede { color: var(--ink); max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-note { margin: 0; }
.hero-art {
  background: var(--evergreen-tint); border-radius: 24px; aspect-ratio: 1 / 1;
  display: grid; place-items: center; padding: 14%;
}
.hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 260px; width: 100%; order: -1; }
}

/* ---------- Cards: white on ivory, 1px line, 16px corners ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-muted); margin: 0; }

/* ---------- Who it's for ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fit > div > p:last-child { color: var(--ink-muted); font-size: 1.1875rem; line-height: 1.58; margin: 0; }
.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-list li {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; font-weight: 500; color: var(--evergreen);
}
.fit-list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 24px; }
.step p { color: var(--ink-muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--evergreen); color: var(--white); font-weight: 600; margin-bottom: 16px;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px; }
.service .eyebrow { margin-bottom: 8px; }
.service h3 { font-size: 1.5rem; }

.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--evergreen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Why ---------- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.why-grid li { border-top: 1px solid var(--line); padding-top: 24px; }
.section-tint .why-grid li { border-top-color: #C9D9CD; }
.why-grid h3 { font-size: 1.25rem; }
.why-grid p { color: var(--ink-muted); margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Gains ---------- */
.gain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.gain-list h3 { font-size: 1.25rem; }
.gain-list p { color: var(--ink-muted); margin: 0; }
@media (max-width: 700px) { .gain-list { grid-template-columns: 1fr; } }

/* ---------- Physicians ---------- */
.physicians { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.physicians > div > p { color: var(--ink-muted); font-size: 1.1875rem; line-height: 1.58; max-width: 56ch; }
.physicians .checklist { margin-bottom: 28px; }
.physicians-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .physicians { grid-template-columns: 1fr; }
  .physicians-art { display: none; }
}

/* ---------- Contact: the one evergreen band ---------- */
.section-evergreen { background: var(--evergreen); color: var(--ivory); }
.section-evergreen h2 { color: var(--ivory); }
.section-evergreen .eyebrow { color: var(--gold-light); }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 32px; } }
.contact-intro > p { font-size: 1.1875rem; line-height: 1.58; color: #E3E9E2; }
.contact-email { margin-top: 28px; font-size: 1rem !important; }
.contact-email a { color: var(--gold-light); font-weight: 500; font-size: 1.25rem; }

.contact-form { background: var(--white); color: var(--ink); border-radius: var(--radius-card); padding: clamp(22px, 4vw, 36px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: 6px; color: var(--evergreen); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #B9B3A5; border-radius: var(--radius-btn); padding: 12px 14px;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D3A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--evergreen); }
.field [aria-invalid="true"] { border-color: #B42318; }
.form-note { font-size: .875rem; color: var(--ink-muted); }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.6em; }
.form-status.is-error { color: #B42318; }
.form-status.is-success { color: var(--evergreen); }

/* ---------- Footer (reversed logo) ---------- */
.site-footer { background: var(--evergreen); color: #C9D5CD; padding-block: 40px 48px; font-size: .9375rem; border-top: 1px solid rgba(250,247,240,.14); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; }
.footer-tag { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ivory); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold-light); }
.copyright { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid rgba(250,247,240,.14); }
.site-footer :focus-visible { outline-color: var(--gold-light); }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
