/* The Health Clinic at Eagle — homepage styles
   Tokens come from the brand design system. Breakpoints: 1280px (nav collapses), 860px (columns stack), 520px (phone). */

/* Fonts */
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/Montserrat-Light.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/Montserrat-Medium.woff2") format("woff2"); }

/* Tokens */
:root {
  --surface: #ffffff;
  --surface-sage: #f0f4f2;
  --surface-sand: #f2eeec;
  --ink: #1f2c26;
  --ink-muted: #5a6d64;
  --brand: #375446;
  --brand-hover: #2a4336;
  --accent: #91816f;
  --accent-text: #6e6055;
  --border: #c3d5cb;
  --border-strong: #688a7a;
  --on-green: #ffffff;
  --on-green-muted: #ccd9d2;
  --sage-600: #688a7a;
  --sand-200: #c1afa0;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --max: 1200px;
  --header-h: 68px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.on-green :focus-visible { outline-color: var(--on-green); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--brand); color: #fff; text-decoration: none; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; }
.section { padding: var(--section) var(--gutter); }

/* Type */
.eyebrow { font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); }
.on-green .eyebrow { color: var(--on-green-muted); }
.h-xl { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.06; font-weight: 300; letter-spacing: -0.015em; text-wrap: balance; }
.h-lg { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 300; letter-spacing: -0.01em; color: var(--brand); text-wrap: balance; }
.h-md { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; font-weight: 300; letter-spacing: -0.01em; color: var(--brand); text-wrap: balance; }
.on-green .h-lg, .on-green .h-md { color: var(--on-green); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.eyebrow + .h-lg, .eyebrow + .h-md { margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 1px solid transparent; border-radius: 2px; font-family: inherit; font-size: 15px; line-height: 1.2; font-weight: 500; letter-spacing: 0.04em; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-hover); }
.btn--light { background: var(--on-green); color: var(--brand); }
.btn--light:hover { background: var(--on-green-muted); color: var(--brand-hover); }
.btn--outline-light { background: transparent; color: var(--on-green); border-color: var(--on-green-muted); }
.btn--outline-light:hover { border-color: var(--on-green); color: var(--on-green); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 13px; }
.link-quiet { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--border-strong); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: var(--brand); text-decoration: none; }
.link-quiet:hover { border-bottom-color: var(--brand); }

.tag { display: inline-block; padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--surface); font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
.tag--pending { border-style: dashed; color: var(--accent-text); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); padding: 10px clamp(16px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand__name { font-size: 12px; line-height: 1.3; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }
.brand__name span { display: block; color: var(--brand); }
/* At the very top of the page the logo is 50% larger; it shrinks to the compact size once scrolling starts.
   Scoped to .js so the header stays compact if the script doesn't run. */
.site-header__bar { transition: min-height .25s ease; }
.brand img { transition: height .25s ease; }
.brand__name { transition: font-size .25s ease; }
.js .site-header:not(.is-scrolled) .site-header__bar { min-height: calc(var(--header-h) + 24px); }
.js .site-header:not(.is-scrolled) .brand img { height: 66px; }
.js .site-header:not(.is-scrolled) .brand__name { font-size: 18px; }
@media (min-width: 1281px) and (max-width: 1399px) {
  /* Full nav on a smaller laptop: tighten the links and grow only the mark so everything fits on one line. */
  .site-header .site-nav { gap: 18px; }
  .js .site-header:not(.is-scrolled) .brand__name { font-size: 12px; }
}
@media (max-width: 620px) {
  /* On a phone there is only room to grow the mark, not the name beside it. */
  .js .site-header:not(.is-scrolled) .site-header__bar { min-height: calc(var(--header-h) + 8px); }
  .js .site-header:not(.is-scrolled) .brand img { height: 48px; }
  .js .site-header:not(.is-scrolled) .brand__name { font-size: 10px; }
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { padding: 6px 0; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.site-nav a.site-nav__utility { color: var(--ink-muted); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--surface); color: var(--brand); cursor: pointer; }
.menu-toggle .icon-close { display: none; }

@media (max-width: 1280px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(16px, 3vw, 40px) 24px; background: var(--surface); border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border); white-space: normal; }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .menu-toggle .icon-open { display: none; }
  .site-header.is-open .menu-toggle .icon-close { display: block; }
  /* Without JavaScript the menu button can't work, so show the links. */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; }
  html:not(.js) .site-nav { display: flex; position: static; width: 100%; padding: 0; border: 0; max-height: none; }
}
@media (max-width: 520px) {
  .brand img { height: 36px; }
  .brand__name { font-size: 10px; letter-spacing: 0.16em; }
  .site-header__bar { gap: 10px; }
  .site-header .btn--sm { padding: 8px 14px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: var(--brand); color: var(--on-green); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 72px); }
.hero__title { margin-top: 24px; color: var(--on-green); }
.hero__lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(28px, 3vw, 40px); }
.hero__meta { margin-top: clamp(28px, 3vw, 40px); padding-top: 20px; border-top: 1px solid var(--sage-600); font-size: 14px; line-height: 1.5; color: var(--on-green-muted); }
.hero__media { position: relative; min-height: 560px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__media { aspect-ratio: 1 / 1; }
}

/* Statement */
.statement__text { max-width: 1040px; font-size: clamp(27px, 3.6vw, 44px); line-height: 1.25; font-weight: 300; letter-spacing: -0.01em; color: var(--accent); text-wrap: balance; margin-top: 24px; }
.statement__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; margin-top: clamp(36px, 5vw, 56px); padding-top: 32px; border-top: 1px solid var(--border); }
.doctor-card { display: flex; align-items: center; gap: 20px; }
.doctor-card img { width: 96px; height: 96px; object-fit: cover; flex: none; }
.doctor-card__name { font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--brand); }
.doctor-card__role { margin: 2px 0 10px; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
@media (max-width: 860px) { .statement__row { grid-template-columns: 1fr; } }

/* Split sections (image beside copy) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--wide-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.split__media { position: relative; min-height: 560px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 72px); }
.split__copy > p { margin-top: 20px; max-width: 34em; }
.split__copy > .btn { margin-top: 32px; }
.bg-sand { background: var(--surface-sand); }
.bg-sage { background: var(--surface-sage); }
@media (max-width: 860px) {
  .split, .split--wide-media { grid-template-columns: 1fr; }
  .split__media { min-height: 0; aspect-ratio: 3 / 2; }
  .split--media-last .split__media { order: -1; }
}

.numbered { align-self: stretch; margin-top: 40px; border-top: 1px solid var(--sand-200); }
.numbered li { display: flex; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--sand-200); font-size: clamp(17px, 1.6vw, 20px); color: var(--brand); }
.numbered li span { flex: none; width: 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--accent-text); }

/* Care options */
.care__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: clamp(32px, 5vw, 56px); }
.care__head > div { flex: 1 1 520px; min-width: 0; }
.care__head > p { flex: 0 1 380px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.care__list { border-top: 2px solid var(--brand); }
.care__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 230px auto; gap: 16px 48px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--border); }
.care__row .tag { justify-self: start; }
.care__row h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: 300; color: var(--brand); }
.care__cta { margin-top: 40px; }
@media (max-width: 1100px) {
  .care__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .care__row .tag { justify-self: start; }
  .care__row .link-quiet { justify-self: start; }
}
@media (max-width: 860px) {
  .care__row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .care__row .tag { order: -1; }
}

/* Services */
.services { background: var(--brand); color: var(--on-green); }
.services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px 96px; }
.services__intro p { margin: 24px 0 40px; color: var(--on-green-muted); }
.services__list { border-top: 1px solid var(--sage-600); }
.services__list li { padding: 18px 0; border-bottom: 1px solid var(--sage-600); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; font-weight: 300; }
@media (max-width: 860px) { .services__grid { grid-template-columns: 1fr; } }

/* Physician */
.physician__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px 80px; align-items: end; }
.physician__grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.physician__copy p { margin: 24px 0 32px; }
@media (max-width: 860px) { .physician__grid { grid-template-columns: 1fr; } }

/* Employers */
.employers__row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 24px 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.employers__row h2 { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.25; font-weight: 400; color: var(--brand); }
.employers__row p:not(.eyebrow) { margin-top: 12px; max-width: 40em; }
@media (max-width: 1100px) { .employers__row { grid-template-columns: 1fr; justify-items: start; } }

/* Location */
.location__photo { width: 100%; height: clamp(280px, 44vw, 640px); object-fit: cover; object-position: 50% 60%; }
.location__body { padding: 0 var(--gutter) clamp(64px, 8vw, 112px); }
.location__panel-row { position: relative; display: flex; justify-content: flex-end; margin-top: clamp(-260px, -18vw, -48px); }
.location__panel { width: 100%; max-width: 520px; padding: clamp(28px, 4vw, 56px); background: var(--surface); }
.location__panel address { margin-top: 24px; }
.location__panel .contact { margin: 12px 0 28px; color: var(--ink-muted); }
.location__panel .small { margin-top: 16px; }
@media (max-width: 860px) {
  .location__panel-row { margin-top: -48px; justify-content: stretch; }
  .location__panel { max-width: none; }
}
@media (max-width: 520px) { .location__panel .btn { width: 100%; } }

/* Notice */
.notice { margin-top: clamp(40px, 5vw, 64px); padding: 24px clamp(20px, 3vw, 32px); border: 1px solid var(--border-strong); border-top: 3px solid var(--ink); font-size: 15px; line-height: 1.6; }
.notice__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }

/* Footer */
.site-footer { padding: clamp(48px, 6vw, 64px) var(--gutter) 32px; background: var(--brand); color: var(--on-green); font-size: 15px; line-height: 1.6; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer__logo { width: 200px; margin-bottom: 24px; }
.site-footer address { color: var(--on-green-muted); }
.site-footer a { color: var(--on-green); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer h2 { margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-green-muted); }
.site-footer li + li { margin-top: 8px; }
.site-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--sage-600); font-size: 13px; color: var(--on-green-muted); }
.site-footer__legal p { max-width: 70em; }
.site-footer__legal p + p { margin-top: 8px; }
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer li + li { margin-top: 12px; }
}
