/* Shared styles for the treatment pages. Colours and buttons match the homepage. */
:root {
  --navy-950: #0d1f33;
  --navy-900: #16324f;
  --navy-700: #214263;
  --navy-600: #29537a;
  --navy-500: #386a96;
  --navy-300: #8aafcf;
  --navy-200: #b8cfe4;
  --navy-100: #dbe7f2;
  --navy-50: #f2f6fa;
  --ink: #1c2b3a;
  --muted: #5d6f80;
  --line: rgba(22, 50, 79, 0.1);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fbfcfe;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }

/* ---------------- hero ---------------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 80% -15%, rgba(87, 136, 179, 0.4), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(56, 106, 150, 0.35), transparent 55%),
    linear-gradient(150deg, var(--navy-950) 0%, var(--navy-900) 60%, #1f4a70 100%);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand-link { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-link svg { width: 22px; height: 22px; }
.top-call { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; white-space: nowrap; }
.top-call:hover { background: rgba(255,255,255,0.1); }
.hero-inner { padding: 28px 0 64px; }
@media (min-width: 760px) { .hero-inner { padding: 56px 0 88px; } }
.crumbs { font-size: 13.5px; color: var(--navy-200); }
.crumbs a { color: var(--navy-200); text-decoration: none; border-bottom: 1px solid rgba(184,207,228,0.35); }
.crumbs a:hover { color: #fff; border-color: #fff; }
.crumbs span { margin: 0 7px; opacity: 0.6; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-top: 18px;
  max-width: 20ch;
}
.hero .sub { margin-top: 16px; max-width: 56ch; color: var(--navy-200); font-size: clamp(15px, 2.3vw, 17.5px); line-height: 1.65; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
  transition: transform 0.1s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-call { background: #fff; color: var(--navy-900); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.55); }
.btn-call:hover { filter: brightness(0.95); }
.btn-wa { background: #23c05f; color: #fff; box-shadow: 0 16px 40px -16px rgba(35,192,95,0.7); }
.btn-wa:hover { filter: brightness(1.07); }
.btn-dir { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.btn-dir:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 480px) {
  #hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #hero-cta .btn { padding: 14px 10px; font-size: 15px; }
  #hero-cta .btn-dir { grid-column: 1 / -1; }
}

/* ---------------- article ---------------- */
article { padding: 56px 0 24px; }
@media (min-width: 760px) { article { padding: 72px 0 32px; } }
article h2 {
  font-weight: 700; font-size: clamp(23px, 3.6vw, 29px); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--navy-950); margin: 48px 0 14px;
}
article h2:first-child { margin-top: 0; }
article h3 { font-size: 17.5px; font-weight: 600; color: var(--navy-950); margin: 28px 0 8px; }
article p, article li { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
article p + p { margin-top: 14px; }
article ul, article ol { margin: 12px 0 0 22px; }
article li { margin-top: 8px; padding-left: 4px; }
article li strong, article p strong { color: var(--navy-950); font-weight: 600; }
article a { color: var(--navy-600); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(41,83,122,0.3); }
article a:hover { border-color: var(--navy-600); }
.lede { font-size: 18px; line-height: 1.7; color: var(--ink); }

.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 14px 16px; vertical-align: top; line-height: 1.55; border-bottom: 1px solid var(--line); }
.table-wrap th { font-weight: 600; color: var(--navy-950); background: var(--navy-50); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap td:first-child { font-weight: 600; color: var(--navy-950); white-space: nowrap; }

.dentist {
  display: flex; gap: 22px; align-items: center;
  margin-top: 48px; padding: 24px;
  background: linear-gradient(180deg, #ffffff, var(--navy-50));
  border: 1px solid var(--line); border-radius: 20px;
}
.dentist img { width: 92px; height: 110px; object-fit: cover; border-radius: 14px; flex: none; }
.dentist .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy-500); }
.dentist h2 { margin: 6px 0 6px; font-size: 21px; }
.dentist p { font-size: 15px; line-height: 1.65; color: var(--muted); }
@media (max-width: 520px) { .dentist { flex-direction: column; align-items: flex-start; } }

.note { margin-top: 40px; font-size: 14px; line-height: 1.65; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------------- other treatments ---------------- */
.more { padding: 40px 0 80px; }
.more h2 { font-weight: 700; font-size: 22px; color: var(--navy-950); letter-spacing: -0.02em; }
.more-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 620px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-grid a {
  display: block; padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  color: var(--navy-950); text-decoration: none; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.more-grid a:hover { transform: translateY(-2px); border-color: rgba(22,50,79,0.18); box-shadow: 0 20px 40px -26px rgba(13,31,51,0.4); }
.more-grid a span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.more .all { display: inline-block; margin-top: 18px; color: var(--navy-600); font-weight: 600; text-decoration: none; }

/* ---------------- visit ---------------- */
section { padding: 72px 0; }
.visit-band { background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 65%, #1e4568); color: #fff; }
.visit-band h2 { text-align: center; font-weight: 700; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; }
.v-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
@media (min-width: 760px) { .v-grid { grid-template-columns: 1fr 1fr; } }
.v-card { border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; background: rgba(255,255,255,0.06); padding: 28px; }
.v-card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.v-card h3 svg { width: 19px; height: 19px; color: var(--navy-300); }
.v-card p { color: var(--navy-200); line-height: 1.7; margin-top: 12px; font-size: 15.5px; }
.v-card p a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 1px; }
.v-card .cta-row { margin-top: 20px; }
.v-card .btn { padding: 12px 20px; font-size: 14.5px; }


/* ---------------- sticky mobile action bar ---------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.actionbar.visible { transform: translateY(0); }
.actionbar .btn { flex: 1; padding: 13px 8px; font-size: 14px; }
.actionbar .btn-call { background: #fff; color: var(--navy-900); box-shadow: none; border: 1px solid var(--line); }
.actionbar .btn-wa { box-shadow: none; }
.actionbar .btn-dir { background: var(--navy-900); color: #fff; border: none; }
@media (min-width: 760px) { .actionbar { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .actionbar { transition: none; }
  html { scroll-behavior: auto; }
}

/* opening hours card (markup copied from the homepage) */
@media (min-width: 760px) { .v-hours { grid-column: 2; grid-row: 1 / span 2; } }
.hours { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.hours th { text-align: left; font-weight: 500; color: var(--navy-200); padding: 8px 12px 8px 0; white-space: nowrap; vertical-align: top; }
.hours td { text-align: right; color: #fff; padding: 8px 0; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid rgba(255,255,255,0.1); }
.hours tr.today th, .hours tr.today td { color: #fff; font-weight: 700; }
.v-card p.hours-note { font-size: 13.5px; color: var(--navy-300); margin-top: 14px; }

/* ---------------- diagrams (blueprint plates) ---------------- */
figure.fig { margin: 30px 0 10px; }
.fig-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .fig-row.two { grid-template-columns: 1fr 1fr; } }
.fig-row.steps { grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 620px) {
  .fig-row.steps.three { grid-template-columns: repeat(3, 1fr); }
  .fig-row.steps.four { grid-template-columns: repeat(4, 1fr); }
}
.fig-row.one { max-width: 460px; margin: 0 auto; }
.fig-row.one.wide { max-width: 600px; }
.plate {
  position: relative; padding: 12px 12px 10px; border-radius: 14px;
  border: 1px solid rgba(22, 50, 79, 0.16);
  background-color: #fff;
  background-image:
    linear-gradient(rgba(56, 106, 150, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 106, 150, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
}
.plate .step {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--navy-900);
  font-size: 12.5px; font-weight: 700; color: var(--navy-900);
}
article .plate p.cap { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-align: center; }
article .plate p.cap strong { display: block; color: var(--navy-950); font-weight: 600; font-size: 14px; }
article figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
article figcaption b { margin-right: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-600); }

/* line styles shared by every diagram */
.bp { font-family: var(--sans, sans-serif); display: block; width: 100%; height: auto; }
.bp .ln { fill: none; stroke: #16324f; stroke-width: 1.6; stroke-linejoin: round; }
.bp .thin { fill: none; stroke: #386a96; stroke-width: 0.9; stroke-linecap: round; }
.bp .hid { fill: none; stroke: #386a96; stroke-width: 1; stroke-dasharray: 4 3; }
.bp .ghost { fill: none; stroke: #386a96; stroke-width: 1.2; stroke-dasharray: 5 4; }
.bp .dentine { fill: #fff; stroke: none; }
.bp .enamel { fill: url(#bp-enamel); stroke: #16324f; stroke-width: 0.9; }
.bp .pulp { fill: url(#bp-pulp); stroke: #16324f; stroke-width: 1; }
.bp .pulp-bad { fill: url(#bp-infect); stroke: #16324f; stroke-width: 1; }
.bp .decay { fill: url(#bp-decay); stroke: #16324f; stroke-width: 0.9; }
.bp .lesion { fill: url(#bp-infect); stroke: #16324f; stroke-width: 1; stroke-dasharray: 3 2; }
.bp .lesion-heal { fill: none; stroke: #386a96; stroke-width: 1; stroke-dasharray: 3 3; }
.bp .bone { fill: url(#bp-bone); stroke: #16324f; stroke-width: 1.3; }
.bp .bone-cut { fill: #fff; stroke: none; }
.bp .newbone { fill: url(#bp-newbone); stroke: none; }
.bp .gum { fill: url(#bp-gum); stroke: #16324f; stroke-width: 1.1; }
.bp .pdl { fill: #fff; stroke: #16324f; stroke-width: 0.8; }
.bp .metal { fill: url(#bp-metal); stroke: #16324f; stroke-width: 1.3; }
.bp .metalx { fill: url(#bp-metalx); stroke: #16324f; stroke-width: 1.2; }
.bp .ceramic { fill: url(#bp-ceramic); stroke: #16324f; stroke-width: 1.5; stroke-linejoin: round; }
.bp .ceramic-joint { fill: url(#bp-ceramic); stroke: none; }
.bp .crack { fill: none; stroke: #16324f; stroke-width: 1.2; }
.bp .open { fill: #fff; stroke: none; }
.bp .open-ln { fill: none; stroke: #16324f; stroke-width: 1.1; }
.bp .gp { fill: #16324f; stroke: #16324f; stroke-width: 0.6; }
.bp .core { fill: url(#bp-metalx); stroke: #16324f; stroke-width: 1; }
.bp .temp { fill: url(#bp-decay); stroke: #16324f; stroke-width: 1; }
.bp .file { fill: none; stroke: #16324f; stroke-width: 2.4; stroke-linecap: round; }
.bp .handle { fill: #dbe7f2; stroke: #16324f; stroke-width: 1.2; }
.bp .stop { fill: #386a96; stroke: #16324f; stroke-width: 0.8; }
.bp .base { fill: url(#bp-gum); stroke: #16324f; stroke-width: 1.4; stroke-linejoin: round; }
.bp .denture-tooth { fill: #fff; stroke: #16324f; stroke-width: 1.2; stroke-linejoin: round; }
.bp .nat-tooth { fill: url(#bp-enamel); stroke: #16324f; stroke-width: 1.2; }
.bp .clasp { fill: none; stroke: #16324f; stroke-width: 3; stroke-linecap: round; }
.bp .clip { fill: #fff; stroke: #16324f; stroke-width: 1; }
.bp .arw { fill: none; stroke: #386a96; stroke-width: 1.2; stroke-dasharray: 4 3; }
.bp .tartar { fill: url(#bp-tartar); stroke: #16324f; stroke-width: 1; }
.bp .gum-sore { fill: url(#bp-gumsore); stroke: #16324f; stroke-width: 1.1; }
.bp .wire { fill: none; stroke: #16324f; stroke-width: 2.2; stroke-linejoin: round; }
.bp .tie { fill: #fff; stroke: #386a96; stroke-width: 2; stroke-linejoin: round; }
.bp .shade-stain { fill: url(#bp-stain); stroke: none; }
.bp .shade-white { fill: url(#bp-white); stroke: none; }
.bp .ln-tooth { fill: none; stroke: #16324f; stroke-width: 1.3; stroke-linejoin: round; }
.bp .fill-ln { fill: none; stroke: #16324f; stroke-width: 1; stroke-dasharray: 3 2; }
.bp .dot { fill: #16324f; }
.bp .lead { fill: none; stroke: #386a96; stroke-width: 0.9; }
.bp .lbl { font-size: 13.5px; font-weight: 600; fill: #16324f; }
.bp .lbl2 { font-size: 12px; fill: #5d6f80; }

/* ---------------- HTML charts: drive times, trip planner, implant timeline ---------------- */
.plate.chart { padding: 18px 18px 14px; }
article .plate .chart-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy-600); line-height: 1.4; }
article .hbars { list-style: none; margin: 0; padding: 0; }
article .hbars li, .hbars-axis { display: grid; grid-template-columns: 7.4em 1fr 6.8em; align-items: center; gap: 10px; }
article .hbars li { margin: 0; padding: 3px 4px; border-radius: 6px; font-size: 14.5px; line-height: 1.3; }
article .hbars li:hover { background: rgba(56, 106, 150, 0.08); }
.hbars .lab { color: var(--navy-950); font-weight: 500; }
.hbars .track {
  position: relative; height: 12px;
  background-image: linear-gradient(90deg, rgba(22, 50, 79, 0.16) 1px, transparent 1px);
  background-size: calc(100% / 16 * 5) 100%;
}
.hbars .bar { display: block; height: 100%; width: calc(var(--v) / 16 * 100%); background: var(--navy-500); border-radius: 0 4px 4px 0; }
.hbars li:hover .bar { background: var(--navy-700); }
.hbars li.hl .bar { background: var(--navy-950); }
.hbars li.hl .lab, .hbars li.hl .val { font-weight: 700; color: var(--navy-950); }
.hbars .val { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbars .val small { margin-left: 4px; font-size: 12.5px; color: var(--muted); }
.hbars-axis { margin-top: 6px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.hbars-axis .ticks { position: relative; height: 14px; }
.hbars-axis i { position: absolute; left: calc(var(--t) / 16 * 100%); transform: translateX(-50%); font-style: normal; }
.hbars-axis i:first-child { transform: none; }
@media (max-width: 480px) {
  article .hbars li, .hbars-axis { grid-template-columns: 6.2em 1fr 4.4em; gap: 8px; }
  article .hbars li { font-size: 13.5px; }
  .hbars .val small { display: none; }
}

table.trips { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.trips th, .trips td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
.trips thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-600); }
.trips tbody th { font-weight: 600; color: var(--navy-950); }
.trips tbody tr:last-child th, .trips tbody tr:last-child td { border-bottom: none; }
.trips tbody tr:hover { background: rgba(56, 106, 150, 0.06); }
.trips .viz { width: 30%; }
.tbar { display: block; height: 10px; width: calc(var(--d) / 28 * 100%); min-width: 6px; background: var(--navy-500); border-radius: 0 4px 4px 0; }
.tbar.two { display: flex; align-items: center; gap: 6px; width: 100%; height: auto; background: none; }
.tbar.two .t1, .tbar.two .t2 { display: block; flex: none; height: 10px; background: var(--navy-500); border-radius: 0 4px 4px 0; }
.tbar.two .t1 { width: 25%; }
.tbar.two .t2 { width: 30%; }
.tbar.two .gap { flex: 1; padding-top: 3px; border-top: 1.5px dashed var(--navy-300); font-size: 11px; line-height: 1.2; text-align: center; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 620px) {
  .trips .viz { display: none; }
  .trips th, .trips td { padding: 9px 6px; font-size: 13.5px; }
}

.plate.timeline { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 22px 16px 16px; }
@media (min-width: 680px) { .plate.timeline { grid-template-columns: 1fr 20px 1fr 20px 1fr; gap: 8px; align-items: stretch; } }
.stage { position: relative; padding: 18px 14px 12px; background: #fff; border: 1.5px solid var(--navy-900); border-radius: 12px; }
.stage.home { border-style: dashed; border-color: var(--navy-500); background: rgba(255, 255, 255, 0.7); }
.plate .stage .step { top: -13px; left: 12px; }
article .stage .st-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy-950); line-height: 1.3; }
article .stage .st-when { margin: 2px 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-600); line-height: 1.4; }
article .stage ul { margin: 0 0 0 18px; }
article .stage li { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.timeline .arrow {
  align-self: center; justify-self: center; width: 20px; height: 20px; transform: rotate(90deg);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23386a96' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
@media (min-width: 680px) { .timeline .arrow { transform: none; } }
