/* Dr Sebastian Zeki — conventional medical-professional design
   White / Navy / Clinical blue · Lora + Source Sans 3 */

:root {
  --white: #FFFFFF;
  --navy: #1F3A5F;
  --blue: #2C6BAA;
  --blue-dark: #1E4E80;
  --tint: #F2F6FA;
  --ink: #24313F;
  --grey: #5B6B7A;
  --rule: #DDE5EC;
  --max: 1100px;
  --serif: "Lora", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 3px rgba(31,58,95,.06);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}
.brand { text-decoration: none; color: var(--navy); line-height: 1.15; }
.brand .name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.brand .role { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--grey); display: block; margin-top: 2px; }

nav.primary { display: flex; gap: 1.5rem; align-items: center; }
nav.primary a {
  text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 600;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
nav.primary a.cta {
  background: var(--blue); color: #fff; padding: .6rem 1.2rem; border-radius: 5px;
  border-bottom: none;
}
nav.primary a.cta:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 5px;
  padding: .45rem .7rem; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.primary {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: .75rem 1.5rem 1.25rem; gap: .2rem;
    box-shadow: 0 8px 16px rgba(31,58,95,.08);
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  nav.primary a.cta { text-align: center; margin-top: .6rem; }
}

/* trace divider retired — kept as invisible spacer for template compatibility */
.trace { display: none; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); padding: 3.8rem 0 3.2rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.eyebrow {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue); font-weight: 700; margin-bottom: .9rem;
}
h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.18; color: var(--navy); margin-bottom: 1.2rem;
}
h1 em { font-style: normal; color: var(--blue); }
.lede { font-size: 1.15rem; color: var(--grey); max-width: 36em; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .97rem;
  padding: .8rem 1.5rem; border-radius: 5px; border: 1px solid var(--blue);
}
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { color: var(--blue); background: #fff; }
.btn.ghost:hover { background: var(--tint); }

.hero-photo { text-align: center; }
.hero-photo img {
  width: 100%; max-width: 330px; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31,58,95,.16); display: inline-block;
}
.hero-photo .caption { font-size: .85rem; color: var(--grey); margin-top: .7rem; }

.fact-card {
  border: 1px solid var(--rule); background: #fff; padding: 1.6rem 1.6rem 1.2rem;
  border-radius: 8px; box-shadow: 0 4px 14px rgba(31,58,95,.07);
}
.fact-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.fact-card dl { display: grid; gap: .85rem; }
.fact-card dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); font-weight: 700; }
.fact-card dd { font-size: .95rem; margin-top: .15rem; }
.fact-card dd a { color: var(--blue); }

@media (max-width: 900px) {
  .hero { padding: 2.6rem 0 2.4rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 240px; }
}

/* ---------- sections ---------- */
section.band { padding: 3.6rem 0; }
section.band.tint { background: var(--tint); }
h2.section-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25; color: var(--navy); margin-bottom: .9rem; max-width: 26em;
}
.section-intro { color: var(--grey); max-width: 40em; margin-bottom: 2.2rem; }

/* condition cards */
.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cond-item {
  background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  padding: 1.4rem 1.5rem; box-shadow: 0 2px 8px rgba(31,58,95,.05);
}
section.band.tint .cond-item { box-shadow: 0 3px 10px rgba(31,58,95,.07); }
.cond-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: .45rem; }
.cond-item h3 a { color: var(--navy); text-decoration: none; }
.cond-item h3 a:hover { color: var(--blue); text-decoration: underline; }
.cond-item p { font-size: .95rem; color: var(--grey); }
.cond-item .more { font-size: .88rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.cond-item .more:hover { text-decoration: underline; }
@media (max-width: 720px) { .cond-grid { grid-template-columns: 1fr; } }

/* testing strip */
.tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.test {
  background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--blue);
  border-radius: 8px; padding: 1.4rem; box-shadow: 0 3px 10px rgba(31,58,95,.06);
}
.test h3 { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; margin-bottom: .5rem; color: var(--navy); }
.test p { font-size: .93rem; color: var(--grey); }
@media (max-width: 900px) { .tests { grid-template-columns: 1fr; } }

/* two-column prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* clinic photos */
.clinic-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.6rem; }
.clinic-photos figure { border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); background: #fff; box-shadow: 0 3px 10px rgba(31,58,95,.06); }
.clinic-photos img { width: 100%; height: 230px; object-fit: cover; display: block; }
.clinic-photos figcaption { padding: .8rem 1rem; font-size: .92rem; font-weight: 600; color: var(--navy); }
.clinic-photos figcaption span { display: block; font-weight: 400; color: var(--grey); font-size: .85rem; }
@media (max-width: 720px) { .clinic-photos { grid-template-columns: 1fr; } }

/* article pages */
article.page { padding: 3.2rem 0 3.6rem; }
article.page .wrap { max-width: 800px; }
article.page h1 { margin-bottom: 1rem; }
article.page .lede { margin-bottom: 2.2rem; }
article.page h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: var(--navy);
  margin: 2.2rem 0 .8rem;
}
article.page h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; color: var(--navy); margin: 1.5rem 0 .5rem; }
article.page p { margin-bottom: 1rem; }
article.page ul, article.page ol { margin: 0 0 1.1rem 1.3rem; }
article.page li { margin-bottom: .45rem; }
article.page a { color: var(--blue); }
.note {
  border-left: 4px solid var(--blue); background: var(--tint); border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem; margin: 1.6rem 0; font-size: .95rem;
}

/* fee table */
table.fees { width: 100%; border-collapse: collapse; margin: 1.4rem 0; background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
table.fees th, table.fees td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); font-size: .97rem; }
table.fees th { background: var(--tint); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); font-weight: 700; }
table.fees tr:last-child td { border-bottom: none; }
table.fees td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }

/* insurer list */
.insurers { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.insurers span {
  border: 1px solid var(--rule); background: var(--tint); border-radius: 4px;
  padding: .4rem .8rem; font-size: .88rem; font-weight: 600; color: var(--navy);
}

/* CTA band */
.cta-band { background: var(--navy); color: #fff; padding: 3.2rem 0; }
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .6rem; }
.cta-band p { opacity: .88; margin-bottom: 1.6rem; max-width: 38em; }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn.solid { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn.solid:hover { background: var(--tint); }
.cta-band .btn.ghost { background: transparent; }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.12); }

/* footer */
footer.site-footer { background: var(--tint); border-top: 1px solid var(--rule); padding: 2.6rem 0 2rem; font-size: .92rem; color: var(--grey); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin-bottom: .7rem; }
footer a { color: var(--grey); text-decoration: none; }
footer a:hover { color: var(--blue); text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: .4rem; }
footer .legal { border-top: 1px solid var(--rule); padding-top: 1.4rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }

/* headshot on article pages */
.headshot { width: 100%; max-width: 340px; border-radius: 8px; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(31,58,95,.12); display: block; }

/* focus visibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
