/* ============================================================
   PINE FAMILY PRACTICE — health-system design language
   Structure modeled on large health-system sites (Sutter-style):
   deep utility bar · white nav · quarter-round hero panel over
   full-bleed photo · chevron quick links · tinted card bands ·
   deep service-link band · cream portal band · columned footer
   with curved accent. Brand: the practice's own forest green +
   cream, sampled from the client logo. Type: Sora + Roboto.
   All original code and copy.
   ============================================================ */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  /* brand greens sampled from the Pine Family Practice logo */
  --deep:    #0f3320;  /* hero panel, dark bands, footer */
  --pine:    #14432a;  /* badge green */
  --primary: #1a5c38;  /* buttons, links, mid band */
  --primary-hover: #237347;
  --mint:    #7fc79b;  /* dash accent, small highlights on dark */
  --tint:    #e9f2ec;  /* light green band */
  --cream:   #f2ecda;  /* portal band (logo cream, lightened) */
  --ink:     #1a2a22;
  --gray:    #52615a;
  --line:    #dbe4de;
  --white:   #ffffff;

  --sora: "Sora", system-ui, sans-serif;
  --roboto: "Roboto", system-ui, sans-serif;

  --t-h1: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);      /* Sora 800 */
  --t-h2: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);     /* Sora 700 */
  --t-h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);     /* Sora 600 */
  --t-body: 1rem;                                     /* Roboto 16 */
  --t-lg: 1.125rem;
  --t-sm: 0.875rem;

  --max: 1280px;
  --margin: clamp(20px, 4vw, 64px);
  --r-card: 12px;
  --r-hero: clamp(120px, 23vw, 334px);
  --shadow: 0 2px 12px rgba(15, 51, 32, 0.10);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--roboto);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--mint); color: var(--deep); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .band-deep :focus-visible, .band-primary :focus-visible { outline-color: var(--mint); }

h1, h2, h3, h4 { font-family: var(--sora); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.18; }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }

.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: clamp(52px, 7vw, 96px); }

.band-deep { background: var(--deep); color: #fff; }
.band-deep :is(h1, h2, h3) { color: #fff; }
.band-primary { background: var(--primary); color: #fff; }
.band-primary :is(h1, h2, h3) { color: #fff; }
.band-tint { background: var(--tint); }
.band-cream { background: var(--cream); }

.lead { font-size: var(--t-lg); color: var(--gray); max-width: 38em; }
.band-deep .lead, .band-primary .lead { color: rgba(255, 255, 255, 0.88); }

/* signature dash accent above headings on dark panels */
.dash { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--mint); margin-bottom: 20px; }

/* ---------- buttons: pills, Roboto 700 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--roboto); font-weight: 700; font-size: 1rem;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
  text-align: center;
}
.btn--solid { background: var(--primary); color: #fff; }
.btn--solid:hover { background: var(--primary-hover); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { background: var(--tint); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--tint); }
.on-dark .btn--outline, .band-deep .btn--outline, .band-primary .btn--outline { border-color: #fff; color: #fff; }
.on-dark .btn--outline:hover, .band-deep .btn--outline:hover, .band-primary .btn--outline:hover { background: rgba(255,255,255,0.12); }

/* text links */
.link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--primary-hover); }
.band-deep .link, .band-primary .link { color: #fff; }

/* chevron link row item */
.chev { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.chev::after { content: "›"; font-family: var(--sora); font-weight: 700; font-size: 1.2em; color: var(--primary); transition: transform 150ms var(--ease); }
.chev:hover::after { transform: translateX(3px); }

/* ---------- utility bar ---------- */
.utility { background: var(--deep); color: #fff; font-size: var(--t-sm); font-weight: 500; }
.utility__inner { display: flex; justify-content: flex-end; align-items: center; gap: 28px; min-height: 40px; padding-block: 4px; }
.utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
.utility .es { color: var(--mint); }
@media (max-width: 720px) { .utility__inner { justify-content: center; gap: 18px; flex-wrap: wrap; } .utility .hide-m { display: none; } }

/* ---------- primary nav ---------- */
.nav { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav.is-stuck { box-shadow: 0 2px 14px rgba(15, 51, 32, 0.12); }
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 60px; width: auto; }
.brand__name { font-family: var(--sora); font-weight: 700; font-size: 1.15rem; color: var(--pine); line-height: 1.15; }
.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { font-weight: 500; font-size: 1rem; padding-block: 6px; color: var(--ink); border-bottom: 3px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--mint); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--primary); font-weight: 700; }
.nav__cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav__phone { font-weight: 700; color: var(--primary); white-space: nowrap; }
.nav__phone:hover { text-decoration: underline; }
.nav__burger { display: none; margin-left: auto; flex-direction: column; gap: 6px; padding: 10px 4px; }
.nav__burger span { width: 26px; height: 3px; border-radius: 2px; background: var(--pine); }
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .brand img { height: 52px; }
}

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: 200; background: var(--deep); color: #fff; display: flex; flex-direction: column; padding: var(--margin); overflow: auto; }
.menu[hidden] { display: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__top img { height: 52px; background: #fff; border-radius: 10px; padding: 4px; }
.menu__close { font-weight: 700; border: 2px solid rgba(255,255,255,0.5); border-radius: 999px; min-height: 42px; padding: 0 20px; }
.menu__links { display: flex; flex-direction: column; margin-top: 40px; }
.menu__links a { font-family: var(--sora); font-weight: 700; font-size: 1.5rem; padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.menu__cta { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }

/* ---------- sticky mobile bar ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; box-shadow: 0 -2px 12px rgba(15,51,32,0.14);
  height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  grid-template-columns: 1fr 1fr; gap: 10px; padding-inline: 10px; align-items: center;
}
.mobile-bar .btn { min-height: 44px; width: 100%; }
.mobile-bar--call-only { grid-template-columns: 1fr; }
@media (max-width: 768px) { .mobile-bar { display: grid; } body { padding-bottom: 68px; } }

/* ---------- hero: quarter-round panel over full-bleed photo ---------- */
.hero { position: relative; min-height: min(64vh, 620px); display: flex; align-items: stretch; }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
/* over-width crop shifts the subject right, centering the family in the
   visible area beside the panel (the panel hides the left overflow) */
.hero__photo img { width: 110%; max-width: none; margin-left: 21%; height: 100%; object-fit: cover; object-position: 50% 39.5%; }
.hero__panel {
  /* text column stays a constant width; the panel grows with the viewport
     so wide screens never squeeze the copy */
  --hero-inset: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin)));
  --hero-copy: 420px;
  --hero-pad-r: clamp(48px, 5vw, 104px);
  position: relative; z-index: 2;
  background: var(--deep); color: #fff;
  width: min(calc(var(--hero-inset) + var(--hero-copy) + var(--hero-pad-r)), 92%);
  min-height: 100%;
  border-radius: 0 var(--r-hero) 0 0;
  padding: clamp(40px, 6vw, 84px) var(--hero-pad-r) clamp(40px, 6vw, 72px) var(--hero-inset);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__panel h1 { color: #fff; max-width: 11ch; }
.hero__panel .sub { margin-top: 18px; font-size: var(--t-lg); color: rgba(255,255,255,0.9); max-width: 30ch; }
.hero__panel .sub-es { margin-top: 8px; color: var(--mint); font-weight: 500; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero__photo { position: relative; height: 300px; }
  .hero__photo img { margin-left: -5%; }
  .hero__panel { width: 100%; border-radius: 0 96px 0 0; margin-top: -48px; min-height: 0; }
}

/* ---------- quick links strip ---------- */
.quick { background: #fff; border-bottom: 1px solid var(--line); }
.quick__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.quick a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 10px 12px; text-align: center;
  font-weight: 700; font-size: 0.98rem;
  border-left: 1px solid var(--line);
}
.quick a:first-child { border-left: 0; }
.quick a:hover { background: var(--tint); }
.quick a::after { content: "›"; font-family: var(--sora); color: var(--primary); font-size: 1.2em; }
@media (max-width: 860px) { .quick__inner { grid-template-columns: 1fr 1fr; } .quick a:nth-child(3) { border-left: 0; } .quick a { border-top: 1px solid var(--line); } .quick a:nth-child(-n+2) { border-top: 0; } }

/* ---------- photo action cards (2x2) ---------- */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcard { background: #fff; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(15,51,32,0.16); }
.pcard .ph { aspect-ratio: 16 / 9.5; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-weight: 700; font-size: 0.98rem; }
.pcard__label .go { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--sora); font-weight: 700; }
@media (max-width: 560px) { .cards2 { grid-template-columns: 1fr; } }

/* split: copy left, cards right */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- deep band: service link columns ---------- */
.svc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; margin-top: 28px; }
.svc-cols a {
  display: block; padding: 11px 2px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.svc-cols a:hover { text-decoration-color: var(--mint); color: var(--mint); }
@media (max-width: 860px) { .svc-cols { grid-template-columns: 1fr; } }

/* ---------- facts band ---------- */
.facts { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.facts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }
.fact b { display: block; font-family: var(--sora); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.fact span { display: block; margin-top: 4px; font-size: var(--t-sm); color: rgba(255,255,255,0.85); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts__grid { grid-template-columns: 1fr; } }

/* curved accent (band corners, footer) */
.curve { position: relative; overflow: hidden; }
.curve::after {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--mint); opacity: 0.22; pointer-events: none;
}

/* ---------- portal band ---------- */
.portal-band { position: relative; overflow: hidden; }
.portal-band__inner { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.portal-band .logo-badge { max-width: 300px; margin-inline: auto; }
@media (max-width: 860px) { .portal-band__inner { grid-template-columns: 1fr; } .portal-band .logo-badge { max-width: 220px; } }

/* ---------- info cards / lists ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.tile h3 { color: var(--pine); }
.tile p { color: var(--gray); font-size: 0.95rem; }
.tile .chev { margin-top: auto; padding-top: 10px; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tile-grid { grid-template-columns: 1fr; } }

.check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.check-cols li { position: relative; padding-left: 30px; font-size: 1rem; }
.check-cols li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tint);
}
.check-cols li::after {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
@media (max-width: 640px) { .check-cols { grid-template-columns: 1fr; } }

/* plan chips */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.plan-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font-weight: 500; min-height: 84px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.plan-grid .note { font-size: var(--t-sm); color: var(--gray); font-weight: 400; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .plan-grid { grid-template-columns: 1fr; } }

/* hours table */
.hours { display: grid; max-width: 420px; }
.hours li { display: flex; justify-content: space-between; gap: 18px; padding-block: 9px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.band-deep .hours li, .band-primary .hours li { border-bottom-color: rgba(255,255,255,0.2); }
.hours .d { font-weight: 700; }
.hours .h { white-space: nowrap; }

/* service detail rows */
.svc-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.svc-detail:first-of-type { border-top: 0; }
.svc-detail h2 { font-size: 1.5rem; color: var(--pine); }
.svc-detail .what { color: var(--gray); margin-top: 8px; }
.svc-detail ul { margin-top: 10px; display: grid; gap: 6px; }
.svc-detail ul li { position: relative; padding-left: 26px; }
.svc-detail ul li::before { content: "›"; position: absolute; left: 4px; color: var(--primary); font-family: var(--sora); font-weight: 700; }
@media (max-width: 760px) { .svc-detail { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: var(--t-sm); }
.field label .req { color: #b3462e; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9c6bf; border-radius: 8px;
  min-height: 48px; padding: 10px 14px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 92, 56, 0.15);
}
.field--error input, .field--error select, .field--error textarea { border-color: #b3462e; }
.field__error { color: #b3462e; font-size: var(--t-sm); }
.radio-row { display: flex; gap: 22px; min-height: 44px; align-items: center; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 1rem; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-note { font-size: var(--t-sm); color: var(--gray); }

/* FAQ accordion */
.faq { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; font-family: var(--sora); font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--tint); }
.faq__x { position: relative; width: 14px; height: 14px; flex: none; }
.faq__x::before, .faq__x::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--primary); transition: transform 200ms var(--ease); }
.faq__x::before { width: 14px; height: 2.5px; border-radius: 2px; }
.faq__x::after { width: 2.5px; height: 14px; border-radius: 2px; }
.faq[open] .faq__x::after { transform: rotate(90deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 18px 16px; color: var(--gray); }

/* notice */
.notice { border-left: 4px solid #b3462e; background: #fdf1ec; color: #6d2a18; border-radius: 8px; padding: 14px 18px; font-size: 0.95rem; }

/* media default: light rounded photos */
.ph { overflow: hidden; border-radius: var(--r-card); background: var(--tint); }
.ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.96); }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.footer::after {
  content: ""; position: absolute; right: -120px; bottom: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: var(--primary); opacity: 0.5; pointer-events: none;
}
.footer__top { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; padding-block: 30px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.footer__top img { height: 72px; background: #fff; border-radius: 12px; padding: 6px; }
.footer__mission { font-family: var(--sora); font-weight: 600; font-size: 1.05rem; max-width: 34ch; }
.footer__top .btn { margin-left: auto; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 36px; position: relative; z-index: 2; }
.footer h3 { color: var(--mint); font-size: 0.85rem; font-family: var(--roboto); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.footer__grid a, .footer__grid p, .footer__grid address { font-size: 0.95rem; }
.footer__grid nav { display: grid; gap: 8px; }
.footer__grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__phone { font-family: var(--sora); font-weight: 700; font-size: 1.3rem; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 28px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,0.18); font-size: var(--t-sm); color: rgba(255,255,255,0.85); position: relative; z-index: 2; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__top .btn { margin-left: 0; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } }

/* skip link */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 300; background: var(--deep); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 0 0 8px 8px; transition: top 200ms; }
.skip-link:focus { top: 0; }

/* page hero (inner pages): compact deep panel */
.page-head { background: var(--deep); color: #fff; }
.page-head__inner { padding-block: clamp(36px, 5vw, 64px); max-width: 760px; }
.page-head h1 { color: #fff; }
.page-head .lead { color: rgba(255,255,255,0.88); margin-top: 12px; }
.page-head .sub-es { color: var(--mint); margin-top: 6px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard, .pcard:hover, .btn, .chev::after { transition: none; transform: none; }
}

/* ---------- services page: layered left panel + tint rail (Sutter-style) ---------- */
.svc-hero { position: relative; background: var(--deep); color: #fff; overflow: visible; z-index: 1; }
.svc-hero::before {
  /* mid-green panel with rounded bottom-right corner, hanging past the hero —
     kept left of the text column so the seam never crosses the words */
  content: ""; position: absolute; left: 0; top: 0;
  width: max(32px, calc((100vw - var(--max)) / 2 + var(--margin) - 96px));
  height: calc(100% + 64px);
  background: var(--primary);
  border-radius: 0 0 clamp(48px, 7vw, 120px) 0;
  z-index: 0;
}
.svc-hero .container { position: relative; z-index: 2; }
.svc-hero__crumb { display: flex; align-items: center; gap: 8px; padding-top: 18px; font-size: var(--t-sm); font-weight: 500; color: rgba(255,255,255,0.9); }
.svc-hero__crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc-hero__crumb .sep { opacity: 0.6; }
.svc-hero__inner { padding-block: clamp(36px, 5vw, 64px); max-width: 760px; }
.svc-hero h1 { color: #fff; }
.svc-hero .lead { color: rgba(255,255,255,0.9); margin-top: 12px; }
.svc-hero .sub-es { color: var(--mint); margin-top: 6px; font-weight: 500; }

/* the tint field that continues down the page on the left */
.svc-body { position: relative; }
.svc-body::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: clamp(28px, 7vw, 96px);
  background: var(--tint);
}
.svc-body > .container { position: relative; }
@media (max-width: 860px) {
  .svc-hero::before { width: 18px; height: calc(100% + 40px); border-radius: 0 0 18px 0; }
  .svc-body::before { width: 12px; }
}

/* service category headers */
.svc-cat { margin-top: clamp(44px, 6vw, 72px); padding-bottom: 6px; }
.svc-cat:first-child { margin-top: 0; }
.svc-cat .dash { background: var(--primary); }
.svc-cat h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--ink); }
.svc-detail h3 { font-size: 1.4rem; color: var(--pine); font-weight: 600; }
.svc-cat + .svc-detail { border-top: 0; }
