/* Bellville Doctors demo website */
:root {
  --teal: #0f6e73;
  --teal-d: #0b5559;
  --navy: #12323f;
  --ink: #23303a;
  --muted: #5a6873;
  --line: #dbe5e8;
  --tint: #f1f7f7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 "Segoe UI", Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.22; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 14px; border: 2px solid var(--teal); }
:focus-visible { outline: 3px solid #e0a021; outline-offset: 2px; }
[hidden] { display: none !important; }
.small { font-size: .86rem; color: var(--muted); }

.demo-bar { background: #fff4d6; color: #5c4300; font-size: .86rem; border-bottom: 1px solid #eedc9f; }
.demo-bar .wrap { padding-top: 6px; padding-bottom: 6px; text-align: center; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { flex: none; }
.logo .name { display: block; font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.2; }
.logo .tag { display: block; font-size: .78rem; color: var(--muted); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 6px; }
.nav a:hover { background: var(--tint); color: var(--teal-d); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--teal); }
.nav .cta a { background: var(--teal); color: #fff; margin-left: 8px; }
.nav .cta a:hover { background: var(--teal-d); color: #fff; }
.has-sub { position: relative; }
.has-sub .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 14px 34px rgba(18, 50, 63, .16); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a span { display: block; font-weight: 400; font-size: .83rem; color: var(--muted); }
.menu-btn { display: none; font: inherit; font-weight: 600; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 6px; padding: 9px 16px; cursor: pointer; }

/* hero and title bands */
.hero { background: linear-gradient(135deg, #12323f 0%, #0f6e73 100%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: 2.7rem; }
.hero p { font-size: 1.1rem; color: #dcecee; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem !important; font-weight: 700; margin-bottom: .6em; }
.building { width: 100%; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 8px; padding: 12px 22px; cursor: pointer; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--navy); }
.btn.light:hover { background: #e4f2f2; color: var(--navy); }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.band { background: var(--navy); color: #d6e6e9; }
.band .wrap { padding-top: 40px; padding-bottom: 30px; }
.band h1 { color: #fff; }

/* layout */
.section { padding: 52px 0; }
.section.tint { background: var(--tint); }
.lead { color: var(--muted); font-size: 1.05rem; }
.spaced { margin-top: 44px; }
.grid { display: grid; gap: 22px; margin-bottom: 22px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card.pad { padding: 20px 22px; }
.card.edge { border-top: 5px solid var(--accent, var(--teal)); }
.tone-teal { --accent: #0f6e73; --wash: #eaf6f6; }
.tone-plum { --accent: #7a3f74; --wash: #f7eef6; }
.tone-navy { --accent: #27507e; --wash: #edf2f9; }

/* doctor cards */
.doctor-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18, 50, 63, .15); color: var(--ink); }
.avatar { display: block; }
.avatar.wide { width: 100%; height: 210px; background: var(--wash); }
.doctor-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--accent); }
.doctor-card h3 { margin-bottom: 2px; font-size: 1.3rem; }
.focus { color: var(--accent, var(--teal)); font-weight: 600; margin-bottom: .4em; }
.meta { font-size: .9rem; color: var(--muted); }
.more { margin-top: auto; font-weight: 700; color: var(--accent); }
.chips { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { background: var(--wash, var(--tint)); border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; font-size: .86rem; }
.pill { display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 14px; margin: 0 6px 6px 0; font-size: .88rem; font-weight: 600; text-decoration: none; }
.pill:hover { border-color: var(--teal); }
.who { margin-bottom: 0; }

/* tables */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare { min-width: 620px; }
.compare thead th { background: var(--tint); color: var(--navy); }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.hours th { font-weight: 600; padding-right: 10px; }
.hours td { text-align: right; white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* profile */
.profile-head { background: var(--wash); border-bottom: 4px solid var(--accent); }
.profile-head .wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 38px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.avatar.portrait { width: 100%; height: auto; border-radius: 18px; border: 6px solid #fff; box-shadow: 0 12px 30px rgba(18, 50, 63, .16); }
.crumb { font-size: .86rem; margin-bottom: .4em; }
.role { font-weight: 700; color: var(--accent); font-size: 1.08rem; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; min-width: 130px; }
.facts .big { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.facts span:last-child { font-size: .82rem; color: var(--muted); }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.main-col h2 { margin-top: 1.4em; }
.main-col h2:first-child { margin-top: 0; }
.side-col { display: grid; gap: 18px; }
.timeline { list-style: none; margin: 0 0 1em; padding: 0 0 0 20px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 6px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-sizing: content-box; margin-left: -2px; }
.timeline li > * { display: block; }
.timeline .when { font-size: .84rem; font-weight: 700; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
dl { margin: 0 0 1em; }
dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
dd { margin: 0 0 .7em; overflow-wrap: anywhere; }
.others { margin-top: 26px; }
.others span { display: block; font-weight: 700; margin-bottom: 8px; }

/* how it works */
.steps { list-style: none; counter-reset: step; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 12px; }

.emergency { border: 1px solid #f0c3bb; background: #fff1ee; color: #7c2415; border-radius: 10px; padding: 13px 18px; margin-top: 8px; }

/* form */
.request { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; scroll-margin-top: 100px; }
.request .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.request label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.request input, .request select, .request textarea { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #b9c9ce; border-radius: 8px; padding: 10px 12px; }
.request .small { margin: 10px 0 0; }
.form-result { background: var(--tint); border: 1px solid var(--teal); border-radius: 8px; padding: 12px 16px; margin: 12px 0 0; }
.map { border: 2px dashed #b9c9ce; border-radius: 10px; min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: .9rem; }

/* footer */
.site-footer { background: var(--navy); color: #c3d6da; padding: 40px 0 22px; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 24px; padding-top: 16px; font-size: .84rem; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(18, 50, 63, .14); padding: 10px 20px 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { display: block; }
  .has-sub .sub { display: block; position: static; min-width: 0; border: 0; border-left: 3px solid var(--line); border-radius: 0; box-shadow: none; margin: 0 0 6px 12px; padding: 0; }
  .nav .cta a { margin: 8px 0 0; text-align: center; }
  .hero .wrap, .columns, .profile-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .avatar.portrait { max-width: 200px; }
  .building { max-width: 340px; justify-self: center; }
  .grid.three, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  h1, .hero h1 { font-size: 1.9rem; }
  .grid.two, .ticks, .request .fields, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-header { position: relative; }
  .logo .tag { display: none; }
  .section { padding: 36px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doctor-card { transition: none; }
}
