/* Hartwell Health — shared stylesheet.
   Single dependency-free design system used by every page. Cardiology palette:
   teal-blue (trust) + a warm coral accent (the "heart"). */

/* ---------- Tokens ---------- */
:root {
  --brand: #0e6e8a;
  --brand-600: #0b5a72;
  --brand-700: #08475c;
  --brand-050: #eef7fa;
  --brand-100: #d7ecf2;
  --accent: #df5b52;
  --accent-600: #c4453d;
  --ink: #14242c;
  --ink-2: #3a4d57;
  --muted: #647781;
  --line: #e2eaed;
  --line-2: #eef3f5;
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --bg-tint: #e9f3f6;
  --ok: #1f9d6b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 50, .05), 0 1px 3px rgba(15, 40, 50, .07);
  --shadow: 0 6px 22px rgba(15, 40, 50, .08);
  --shadow-lg: 0 22px 55px rgba(15, 40, 50, .15);
  --container: 1160px;
  --gap: 28px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { color: var(--ink-2); }
strong { color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 4vw + 36px, 96px); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #f3fafc); }
.section--brand { background: linear-gradient(155deg, var(--brand-700), var(--brand) 70%, var(--brand-600)); color: #fff; }
.section--tight { padding-block: clamp(40px, 3vw + 24px, 64px); }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 65ch; }
.center { text-align: center; }
.center .lead, .center .section-head__sub { margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: 14px;
}
.section--brand .eyebrow { color: var(--brand-100); }
.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.section-head__sub { margin-top: 14px; font-size: 1.1rem; color: var(--ink-2); }
.section--brand .section-head__sub { color: rgba(255,255,255,.85); }

/* grids */
.grid { display: grid; gap: var(--gap); }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(223, 91, 82, .28); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-secondary { background: var(--brand); color: #fff; }
.btn-secondary:hover { background: var(--brand-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-050); }
.btn-on-brand { background: #fff; color: var(--brand-700); }
.btn-on-brand:hover { background: #f1f8fb; color: var(--brand-700); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

.topbar { background: var(--brand-700); color: rgba(255,255,255,.92); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__note { color: rgba(255,255,255,.78); }
.topbar__links { display: flex; gap: 18px; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.brand__name span { color: var(--brand); }
.brand__tag { display: block; font-family: var(--font-sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-2); font-weight: 500; font-size: .98rem; padding: 9px 13px; border-radius: 8px;
  transition: background .14s ease, color .14s ease;
}
.main-nav a:hover { background: var(--brand-050); color: var(--brand-700); }
.main-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-050); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; font-size: .98rem; }
.header-phone:hover { color: var(--brand-700); }
.header-phone svg { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 9px; width: 46px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin-inline: auto; }

@media (max-width: 1040px) {
  .header-phone { display: none; }
}
@media (max-width: 940px) {
  .nav-toggle { display: flex; align-items: center; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 90px 22px 40px;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav a { padding: 13px 14px; font-size: 1.06rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,30,38,.4); z-index: 90; }
  .header-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #f3fafc 0%, #e9f3f6 55%, #dcedf2 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(circle at 82% 18%, rgba(14, 110, 138, .14), transparent 42%),
                    radial-gradient(circle at 12% 88%, rgba(223, 91, 82, .10), transparent 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: clamp(48px, 5vw, 92px); }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { margin-bottom: 28px; }
.hero__points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; }
.hero__points li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-weight: 500; }
.hero__points svg { color: var(--brand); flex: none; margin-top: 3px; }
.hero__visual { position: relative; }
.hero__card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; }
.hero__ecg { width: 100%; height: auto; }
.hero__statline { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.hero__statline div { flex: 1; min-width: 120px; }
.hero__statline b { font-family: var(--font-serif); font-size: 1.7rem; color: var(--brand-700); display: block; line-height: 1; }
.hero__statline span { font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } .hero__visual { order: -1; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card__icon { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-050); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card__icon svg { width: 27px; height: 27px; }
.card__more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--brand-600); }
.card--accent .card__icon { background: #fdecea; color: var(--accent); }

/* feature list w/ check */
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-2); }
.checklist svg { color: var(--ok); flex: none; margin-top: 4px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.pill-list li { background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: var(--radius-pill); padding: 8px 16px; font-size: .93rem; font-weight: 500; }

/* ---------- Provider cards ---------- */
.provider { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align: center; }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: #fff; letter-spacing: .02em; }
.avatar--1 { background: linear-gradient(145deg, #0e6e8a, #0b5a72); }
.avatar--2 { background: linear-gradient(145deg, #2a8aa3, #14627a); }
.avatar--3 { background: linear-gradient(145deg, #df5b52, #c4453d); }
.avatar--4 { background: linear-gradient(145deg, #3f9c86, #2a7d69); }
.avatar--5 { background: linear-gradient(145deg, #5a7d99, #3d5e78); }
.provider h3 { font-size: 1.22rem; margin-bottom: 3px; }
.provider .provider__role { color: var(--brand-600); font-weight: 600; font-size: .95rem; }
.provider .provider__cred { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.provider p { font-size: .94rem; margin-top: 13px; text-align: left; }
.provider--sm .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.provider--sm h3 { font-size: 1.05rem; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat b { font-family: var(--font-serif); font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3rem); color: #fff; display: block; line-height: 1; }
.stats .stat span { color: rgba(255,255,255,.82); font-size: .96rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }

/* ---------- Split (image/text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { background: linear-gradient(150deg, var(--brand-050), var(--bg-tint)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } .split--reverse .split__media { order: 0; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 60ch; margin: 0 auto 26px; font-size: 1.12rem; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero { background: linear-gradient(160deg, #f3fafc, #e9f3f6); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(40px, 4vw, 72px); }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--brand-600); }
.breadcrumb span { color: var(--muted); }
.page-hero h1 { margin-bottom: 14px; max-width: 22ch; }
.page-hero p { max-width: 62ch; font-size: 1.15rem; }

/* ---------- Prose (legal / long-form) ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin-top: 38px; margin-bottom: 12px; }
.prose h3 { margin-top: 26px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin-bottom: 16px; display: grid; gap: 7px; }
.prose .updated { color: var(--muted); font-size: .92rem; }

/* ---------- Info / contact blocks ---------- */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: 14px; }
.info-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 13px; align-items: flex-start; }
.info-list svg { color: var(--brand); flex: none; margin-top: 3px; }
.info-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.info-list a, .info-list span { color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .97rem; }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { color: var(--ink-2); text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }

/* map placeholder */
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); min-height: 280px; display: flex; align-items: center; justify-content: center; position: relative; }
.map svg { width: 100%; height: 100%; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row-2 { grid-template-columns: 1fr; } }
.form__note { font-size: .85rem; color: var(--muted); }
.form-callout { background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 13px; align-items: flex-start; }
.form-callout svg { color: var(--brand); flex: none; margin-top: 2px; }
.form-callout p { font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0c2630; color: rgba(255,255,255,.74); padding-block: 56px 30px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name span { color: var(--brand-100); }
.footer-brand p { color: rgba(255,255,255,.68); font-size: .92rem; margin-top: 14px; max-width: 38ch; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-contact { display: grid; gap: 8px; margin-top: 16px; font-size: .92rem; color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-disclaimer { color: rgba(255,255,255,.5); font-size: .82rem; max-width: 70ch; margin-top: 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.notice-bar { background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 20px 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.notice-bar svg { color: var(--brand); flex: none; }
.notice-bar p { margin: 0; font-size: .98rem; }
.tag { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-050); border: 1px solid var(--brand-100); padding: 4px 11px; border-radius: var(--radius-pill); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }
.text-balance { text-wrap: balance; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
