/* ==========================================================================
   Viera Heart & Vascular Clinic
   Shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* --------------------------------------------------------------------------
   Tokens
   The practice has two divisions. Cardiology is keyed arterial garnet,
   vascular and cosmetic are keyed venous slate. The colour tells the reader
   which side of the practice they are reading about.
   -------------------------------------------------------------------------- */

:root {
  --ink:      #14202B;
  --ink-soft: #46586A;
  --paper:    #F7F5F1;
  --surface:  #FFFFFF;
  --garnet:   #8C2F39;
  --garnet-d: #6E242C;
  --slate:    #3E5C6B;
  --slate-d:  #2C4552;
  --sand:     #E4DED4;

  --accent:      var(--garnet);
  --accent-dark: var(--garnet-d);

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --wrap: 1120px;
  --gut:  clamp(1.25rem, 4vw, 2.5rem);
}

/* Division keys ---------------------------------------------------------- */
body.k-cardio   { --accent: var(--garnet); --accent-dark: var(--garnet-d); }
body.k-vascular { --accent: var(--slate);  --accent-dark: #2C4552; }

/* --------------------------------------------------------------------------
   Reset & base
   Base size is 18px. This practice's patients skew older; legibility is a
   clinical requirement here, not a stylistic preference.
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 999;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }

h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1.15em; max-width: 68ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
  display: block;
}

.lede { font-size: clamp(1.06rem, 1.9vw, 1.22rem); color: var(--ink-soft); }

.rule { border: 0; border-top: 1px solid var(--sand); margin: 0; }

/* --------------------------------------------------------------------------
   Utility bar + header
   -------------------------------------------------------------------------- */

.util {
  background: var(--ink);
  color: #C9D4DD;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
}
.util .wrap {
  display: flex; flex-wrap: wrap; gap: .4rem 1.75rem;
  align-items: center; justify-content: space-between;
  padding-block: .55rem;
}
.util a { color: #fff; text-decoration: none; font-weight: 500; }
.util a:hover { text-decoration: underline; }
.util span { white-space: nowrap; }

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--sand);
  position: sticky; top: 0; z-index: 50;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .9rem;
}

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
.brand img { width: auto; max-height: 56px; display: block; }
.brand:has(img) .brand-text { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: .22rem;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--sand);
  border-radius: 3px; padding: .55rem .8rem; font-family: var(--mono);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
}

.nav ul { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: .93rem; font-weight: 500; text-decoration: none; color: var(--ink);
  padding-block: .3rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--sand); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent-dark); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--sand);
    box-shadow: 0 18px 32px rgba(20,32,43,.09);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gut) 1.25rem; }
  .nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--sand); font-size: 1.02rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
}

/* --------------------------------------------------------------------------
   Hero
   No stock photography. This is a word-of-mouth practice: visitors arrive
   already knowing the name and are looking for confirmation, so the opening
   move is the physician's standing, not a persuasion image.
   -------------------------------------------------------------------------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--sand); }
.hero .wrap { padding-block: clamp(3rem, 7vw, 5.25rem); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 46ch; }

.hero-status {
  display: flex; flex-wrap: wrap; gap: .5rem .65rem;
  margin: 1.75rem 0 0; padding: 0; list-style: none;
}
.hero-status li {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--sand); border-radius: 999px; padding: .4rem .85rem;
  background: var(--paper);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Credential block — the signature element -------------------------------- */

.creds {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-top: 3px solid var(--accent);
  padding: 1.6rem 1.5rem 1.35rem;
}
.creds h2, .creds h3 {
  font-family: var(--body); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.creds .name { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 0 0 .15rem; line-height: 1.2; }
.creds .role { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.25rem; }
.creds dl { margin: 0; }
.creds dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  padding-top: .95rem; margin-top: .95rem; border-top: 1px solid var(--sand);
}
.creds dt:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.creds dd { margin: .5rem 0 0; }
.creds ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.creds li { font-size: .95rem; padding: .16rem 0 .16rem 1rem; position: relative; }
.creds li::before {
  content: ''; position: absolute; left: 0; top: .78em;
  width: 5px; height: 1px; background: var(--accent);
}

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head { background: var(--surface); border-bottom: 1px solid var(--sand); }
.page-head .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { max-width: 60ch; margin-bottom: 0; }

.crumb {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem;
}
.crumb a { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Sections & layout helpers
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--sand); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1.15rem; }

/* --------------------------------------------------------------------------
   Division cards (home)
   -------------------------------------------------------------------------- */

.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .divisions { grid-template-columns: 1fr; } }

.division {
  background: var(--surface);
  border: 1px solid var(--sand);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease;
}
.division:hover { box-shadow: 0 14px 30px rgba(20,32,43,.10); transform: translateY(-3px); color: var(--ink); }
.division:hover .division-more { text-decoration: underline; }

.division-img {
  aspect-ratio: 16 / 10;
  background-color: var(--sand);
  background-size: cover; background-position: center;
  border-bottom: 3px solid var(--key, var(--garnet));
}
.division-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.division h3 { margin-bottom: .45rem; }
.division p { font-size: .97rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.division-more {
  margin-top: auto; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--key, var(--garnet)); font-weight: 500;
}

/* --------------------------------------------------------------------------
   Conditions / content lists
   -------------------------------------------------------------------------- */

.conditions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 800px) { .conditions { grid-template-columns: 1fr; } }

.condition { padding-block: 1.6rem; border-top: 1px solid var(--sand); }
.condition h3 { margin-bottom: .4rem; }
.condition p { font-size: .98rem; margin-bottom: 0; }
.condition p + p { margin-top: .9em; }

.services { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 620px) { .services { columns: 1; } }
.services li {
  break-inside: avoid; padding: .62rem 0 .62rem 1.4rem;
  border-bottom: 1px solid var(--sand); position: relative; font-size: 1rem;
}
.services li::before {
  content: ''; position: absolute; left: 0; top: 1.28em;
  width: 8px; height: 1px; background: var(--accent);
}

.risk-list { margin: 0 0 1.5rem; padding-left: 1.15rem; }
.risk-list li { padding: .18rem 0; }
.risk-list ul { margin: .3rem 0 .3rem; padding-left: 1.15rem; color: var(--ink-soft); }

/* Pricing ----------------------------------------------------------------- */

.pricing { border: 1px solid var(--sand); border-top: 3px solid var(--accent); background: var(--surface); padding: 1.5rem; }
.pricing h3 { font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
.pricing dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.pricing dt { padding: .7rem 0; border-top: 1px solid var(--sand); font-weight: 500; }
.pricing dd {
  padding: .7rem 0; border-top: 1px solid var(--sand); margin: 0;
  font-family: var(--mono); font-size: 1.02rem; text-align: right; color: var(--accent-dark);
}
.pricing dt:first-of-type, .pricing dl > dt:first-of-type + dd { border-top: 0; }
.pricing .note { font-size: .85rem; color: var(--ink-soft); margin: 1rem 0 0; }

/* --------------------------------------------------------------------------
   Staff
   -------------------------------------------------------------------------- */

.person { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.person + .person { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--sand); }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 260px; } }

.person-photo {
  aspect-ratio: 4 / 5;
  background-color: var(--sand);
  background-size: cover; background-position: center top;
  border-bottom: 3px solid var(--accent);
}
.person h2 { margin-bottom: .1em; }
.person .role { font-family: var(--mono); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.25rem; }

.cred-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--sand); }
@media (max-width: 560px) { .cred-cols { grid-template-columns: 1fr; } }
.cred-cols h3 { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .7rem; }
.cred-cols ul { list-style: none; margin: 0; padding: 0; }
.cred-cols li { font-size: .95rem; padding: .18rem 0 .18rem 1rem; position: relative; }
.cred-cols li::before { content: ''; position: absolute; left: 0; top: .8em; width: 5px; height: 1px; background: var(--accent); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--sand); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.4rem; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq .answer { padding: 0 0 1.5rem; }
.faq .answer > *:last-child { margin-bottom: 0; }
.faq .answer ul { margin: 0 0 1em; padding-left: 1.15rem; }

/* --------------------------------------------------------------------------
   Callouts, CTA band, buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block; font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.6rem; border-radius: 3px; text-decoration: none;
  border: 2px solid var(--accent-dark); background: var(--accent-dark); color: #fff;
  transition: background .16s ease, color .16s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-dark); }
.btn--ghost:hover { background: var(--accent-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

.callout {
  background: var(--surface); border: 1px solid var(--sand);
  border-left: 3px solid var(--accent); padding: 1.35rem 1.5rem;
}
.callout > *:last-child { margin-bottom: 0; }
.callout h3 { font-family: var(--body); font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem; }

.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem;
}
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: #B9C6D1; margin: 0; font-size: .97rem; }
.cta-phone {
  font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 600;
  color: #fff; text-decoration: none; letter-spacing: -0.01em; display: block;
}
.cta-phone:hover { color: #fff; text-decoration: underline; }
.cta-band .hours { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; color: #90A3B2; margin-top: .35rem; }

/* Embed slot -------------------------------------------------------------- */

.slot {
  border: 1px dashed #B9AF9F; background: #FBF9F5;
  padding: 1.5rem; font-family: var(--mono); font-size: .84rem;
  color: #6E6355; line-height: 1.6;
}
.slot strong { font-family: var(--body); display: block; margin-bottom: .4rem; color: var(--ink); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.detail { padding-block: 1.15rem; border-top: 1px solid var(--sand); }
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail dt {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .4rem;
}
.detail dd { margin: 0; font-size: 1.05rem; }
.detail dd a { font-weight: 500; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: .6rem 0; border-top: 1px solid var(--sand); font-size: .97rem; }
.hours-table th { font-weight: 500; }
.hours-table td { font-family: var(--mono); font-size: .9rem; text-align: right; color: var(--ink-soft); }
.hours-table tr:first-child th, .hours-table tr:first-child td { border-top: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-foot { background: var(--surface); border-top: 1px solid var(--sand); }
.site-foot .wrap { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }

.site-foot h2 {
  font-family: var(--body); font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .9rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: .28rem 0; }
.site-foot a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-foot a:hover { text-decoration: underline; }
.site-foot address { font-style: normal; font-size: .95rem; color: var(--ink-soft); line-height: 1.7; }

.colophon {
  border-top: 1px solid var(--sand); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--ink-soft);
}
.colophon p { margin: 0; max-width: none; }

/* Print ------------------------------------------------------------------- */
@media print {
  .util, .site-head, .cta-band, .slot { display: none; }
  body { background: #fff; font-size: 12pt; }
}
