/* Cove Cardiology design system
   One stylesheet for the whole site. Quiet and refined: light Outfit headings over Open Sans text,
   a white header, warm off-white bands, generous space, magenta used sparingly for actions. */

:root {
  --ink: #2b2d33;        /* headings, key text */
  --text: #44474f;       /* body text */
  --muted: #767a84;      /* captions, labels */
  --rule: #dcdde0;       /* dividers, borders */
  --paper: #ffffff;      /* page */
  --soft: #f7f5f1;       /* alternate bands, panels (warm off-white) */
  --night: #303841;      /* header and footer (from the current site) */
  --accent: #b81d5a;     /* Cove magenta: buttons, links, small rules */
  --accent-dark: #951548;
  --warm: #f2852a;       /* Cove orange: used only for the entrance highlight */
  --warm-soft: #fff7e8;
  --alert: #c62828;      /* emergency note only */

  --font: "Open Sans", Arial, Helvetica, sans-serif;
  --display: "Outfit", "Open Sans", Arial, sans-serif;
  --max: 1120px;
  --gutter: 20px;
  --radius: 4px;
  --step-1: 14px;
  --step0: 16px;
  --step1: 18px;
  --step2: 24px;
  --step3: 32px;
  --step4: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
h2 a, h3 a, .rows a { color: var(--ink); text-decoration: none; }
h2 a:hover, h3 a:hover, .rows a:hover { color: var(--accent); }
.section > .wrap > p > a, .section-title a { color: var(--ink); text-decoration-color: var(--rule); font-weight: 600; font-size: 15px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 14px; font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; }
h3 { font-size: 20px; font-weight: 500; }
h4 { font-size: var(--step0); }
.lead { font-size: var(--step1); color: var(--ink); }
.small { font-size: var(--step-1); color: var(--muted); }
.label {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
@media (max-width: 700px) { .section { padding: 56px 0; } }
.section--soft { background: var(--soft); }
.section-title { margin-bottom: 28px; }
.section-title h2 { margin-bottom: 8px; }
.section-title h2::after { content: none; }
.section-title p { color: var(--muted); max-width: 60ch; }

/* Grids that stack on phones */
.grid { display: grid; gap: 32px 48px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1.2 var(--font); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--rule); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--quiet { background: none; color: var(--ink); padding-left: 0; padding-right: 0; border: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.btn--quiet:hover { text-decoration-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { background: rgba(255,255,255,0.96); color: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #ecebe7; backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-header .brand, .site-header .brand strong { color: var(--ink); }
.site-header .brand span span { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand strong { display: block; font: 500 19px/1.1 var(--display); letter-spacing: -0.01em; color: #fff; }
.brand span { display: block; font-size: 12px; color: #c9ccd3; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; margin: 0; }
.nav > li > a, .nav > li > button {
  display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font: 400 15px/1 var(--font);
  background: none; border: 0; cursor: pointer; border-radius: 3px;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li:focus-within > button { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.nav .menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18); padding: 8px; list-style: none; margin: 6px 0 0;
  display: none;
}
.nav > li:hover .menu, .nav > li:focus-within .menu { display: block; }
.nav .menu a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 3px; font-size: 15px; }
.nav .menu a:hover { background: var(--soft); }
.header-call { margin-left: 8px; }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .nav, .header-call { display: none; }
  .menu-toggle {
    display: inline-flex; background: none; border: 1px solid var(--rule); color: var(--ink);
    border-radius: 999px; padding: 8px 16px; font: 500 14px var(--font); letter-spacing: 0.02em;
  }
  .site-header.open .nav {
    display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.open .nav .menu { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 8px 12px; margin: 0; }
  .site-header.open .nav > li > a, .site-header.open .nav > li > button { font: 400 22px/1.3 var(--display); color: var(--ink); padding: 12px 0; }
  .site-header.open .nav .menu a { color: var(--text); }
}

/* Sticky call bar on phones */
.call-bar { display: none; }
@media (max-width: 700px) {
  .hero .actions .btn--primary { display: none; }
  .call-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.97); border-top: 1px solid #ecebe7;
  }
  .call-bar .btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: 14px; }
  body { padding-bottom: 66px; }
}

/* Hero: text left, photo right; photo stacks above text on phones */
.hero { padding: 80px 0 64px; background: var(--soft); }
.hero .grid { grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 78%; border-radius: var(--radius); }
.hero-photo figcaption { margin-top: 8px; font-size: var(--step-1); color: var(--muted); }
.hero .who { color: var(--muted); margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 34em; }
.hero .lead + p { color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; align-items: center; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 44px; }
  .hero .grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .lead { font-size: 17px; }
  .hero .lead + p { display: none; }
  .hero-photo { max-width: 420px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 60% 72%; }
}

/* Address strip */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.facts > div { padding: 28px 24px; border-left: 1px solid var(--rule); font-size: 15px; }
.facts > div:first-child { padding-left: 0; }
.facts a { color: var(--ink); text-decoration-color: var(--rule); }
.facts > div:first-child { border-left: 0; }
.facts .entrance .label { color: var(--warm); }
.facts .entrance strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-left: 0; border-top: 1px solid var(--rule); padding: 20px 0; }
  .facts > div:first-child { border-top: 0; }
}

/* Door cards: three ways in */
.door {
  display: block; padding: 24px 0 0; border-top: 1px solid var(--ink);
  text-decoration: none; color: var(--text); height: 100%;
}
.door h3 { margin-bottom: 6px; }
.door h3 { font-size: 24px; font-weight: 300; }
.door .go { color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.door:hover { border-top-color: var(--accent); color: var(--text); }
.door:hover .go { color: var(--accent); }

/* Test list with round photos */
.test { display: flex; gap: 16px; align-items: flex-start; }
.test img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.test h3 { margin-bottom: 4px; }
.test p { margin: 0; font-size: 15px; }

/* Rows separated by thin rules */
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.rows li strong { color: var(--ink); }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; line-height: 25px;
}
.steps strong { color: var(--ink); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 20px 0; font: 400 18px/1.4 var(--display); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 8px; }

/* Panels */
.panel { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.note-emergency { border-left: 3px solid var(--alert); padding: 4px 0 4px 14px; font-size: 15px; }
.refer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.refer strong { display: block; color: var(--ink); font-size: var(--step1); word-break: break-word; }
@media (max-width: 760px) { .refer { grid-template-columns: 1fr; } }

/* Articles */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 36px; font-size: var(--step2); }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.breadcrumb { font-size: var(--step-1); color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* Footer */
.site-footer { background: var(--night); color: #c9ccd3; padding: 48px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h4 { color: #fff; font: 600 11px/1.4 var(--font); text-transform: uppercase; letter-spacing: 0.14em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .grid { grid-template-columns: 1fr; } }

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

/* Page scaffolding */
.page-head { padding: 44px 0 8px; }
.page-head h1 { max-width: 24ch; }
.page-body { padding-bottom: 56px; }
.page-body .prose { max-width: 72ch; }
.block + .block { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.block h2 { margin-bottom: 18px; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink); }
.nav > li.active > button, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--accent); }
.nav .menu a[aria-current="page"] { box-shadow: none; color: var(--accent); }

/* Cards (services) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 15px; margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Two columns: text + image */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.split > img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } .split > img { width: 100%; max-width: 420px; } }

/* Recent activities list */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.post-card { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
.post-card img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--radius); }
.post-card h3 { font-size: 17px; margin-bottom: 6px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 15px; margin: 0; }
@media (max-width: 860px) { .post-list { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .post-card { grid-template-columns: 96px 1fr; } .post-card img { width: 96px; height: 72px; } }

/* Embedded tools */
.app-frame { width: 100%; min-height: 1400px; border: 0; }
.cta-band .panel { background: #fff; border: 1px solid var(--rule); }
.cta-band .panel h2 { font-size: var(--step2); }
.header-call svg { width: 16px; height: 16px; }
.post-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-list--3 .post-card { grid-template-columns: 1fr; }
.post-list--3 .post-card img { width: 100%; height: 160px; }
@media (max-width: 860px) { .post-list--3 { grid-template-columns: 1fr; } .post-list--3 .post-card { grid-template-columns: 120px 1fr; } .post-list--3 .post-card img { width: 120px; height: 90px; } }
.post-card:not(:has(img)) { grid-template-columns: 1fr; }
.app-frame { min-height: 900px; }

/* Facts strip with four items (For GPs) */
.facts--4 { grid-template-columns: 1fr 1fr 1.7fr 1fr; border-top: 1px solid var(--rule); }
.facts .big { display: block; font: 400 22px/1.3 var(--display); color: var(--ink); text-decoration: none; }
.facts--4 > div { overflow-wrap: break-word; }
@media (max-width: 960px) { .facts--4 { grid-template-columns: 1fr 1fr; } .facts--4 > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 760px) { .facts--4 { grid-template-columns: 1fr; } }
.steps--single { grid-template-columns: 1fr; }
.block > .facts { border-top: 1px solid var(--rule); }
.page-body .split .btn { margin: 4px 8px 4px 0; }
.page-body .split > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.more { margin-top: 24px; }
.hero-photo { margin: 0; }
