/* Parkview Dental — site styles
   The design is the price list (see DESIGN.md): a menu on warm paper,
   set in Franklin at full size, ink the colour of the clinic's green
   door darkened down, bronze rationed to the things that matter.
   Every photograph on the site carries the same warm monochrome grade. */

:root {
  --pine: #123332;        /* the door, darkened to ink */
  --pine-dark: #0a2320;
  --pine-soft: #efe9dd;   /* warm tint where a soft fill is needed */
  --bronze: #b38c61;
  --bronze-deep: #8a683c; /* bronze dark enough for white text */
  --amber: #8a683c;
  --amber-soft: #f5eddc;
  --ink: #22312d;
  --ink-soft: #4a5a55;
  --paper: #faf8f4;
  --mist: #f3efe7;
  --line: #e0d9cb;
  --danger: #a33327;
  --radius: 3px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16.5px;
}

h1, h2, h3 {
  font-family: "Libre Franklin", "Public Sans", sans-serif;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--pine);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--pine); text-underline-offset: 2px; }
a:hover { color: var(--bronze-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bronze-deep); outline-offset: 2px;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; font-style: italic; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-tint { background: var(--mist); }
.narrow { max-width: 640px; }
.small-print { font-size: 0.9rem; color: var(--ink-soft); max-width: 640px; }

/* ---------- header ---------- */

.topbar {
  background: var(--pine-dark);
  color: #d9d2c2;
  font-size: 0.86rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.wordmark { text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark .wm-name {
  font-family: "Libre Franklin", sans-serif; font-weight: 800;
  font-size: 1.55rem; letter-spacing: -0.02em; color: var(--pine);
}
.wordmark .wm-sub {
  display: block; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 3px;
}
.mainnav { display: flex; align-items: center; gap: 26px; }
.mainnav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-solid { background: var(--pine); color: #fff; }
.btn-solid:hover { background: var(--pine-dark); color: #fff; }
.btn-book { background: var(--bronze-deep); color: #fff; }
.btn-book:hover { background: #77572f; color: #fff; }
.btn-amber { background: var(--bronze-deep); color: #fff; }
.btn-amber:hover { background: #77572f; color: #fff; }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine-soft); }
.btn-text { padding-left: 4px; padding-right: 4px; color: var(--pine); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- hero ---------- */

.hero { padding: 64px 0 0; }
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 0.35em;
}
.hero-lower {
  display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: stretch;
}
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 14px; }
.hero-photo { display: flex; flex-direction: column; }
.hero-photo img { flex: 1; min-height: 400px; width: 100%; object-fit: cover; }
@media (min-width: 1184px) {
  /* the room runs off the right edge of the page, like walking past it */
  .hero-photo { margin-right: calc((1184px - 100vw) / 2); }
  .hero-photo figcaption { padding-right: 22px; }
}

/* the clinic's figures, set as a ruled line — not chips in boxes */
.figures-line {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid var(--pine); border-bottom: 1px solid var(--line);
  padding: 16px 0 14px; margin-top: 34px; max-width: 640px;
}
.figures-line strong {
  display: block; font-family: "Libre Franklin", sans-serif; font-weight: 800;
  font-size: 1.55rem; line-height: 1.05; color: var(--pine);
  font-variant-numeric: tabular-nums;
}
.figures-line span { display: block; font-size: 0.78rem; line-height: 1.35; color: var(--ink-soft); margin-top: 3px; }

/* ---------- info strip ---------- */

.infobar { border-bottom: 1px solid var(--line); margin-top: 56px; }
.infobar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  padding-top: 24px; padding-bottom: 24px;
}
.infobar p { margin: 0; font-size: 0.97rem; }
.infobar-label {
  display: block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pine); margin-bottom: 6px;
}

/* ---------- the price list (the ledger) ---------- */
/* The centre of the site. Item, dotted leader, price — like the list
   pinned up at the front desk, except this one you can order from:
   every row is a link into booking with that service picked. */

.ledger-head { max-width: 640px; }
.ledger-group { margin-top: 44px; }
.ledger-group > h3 {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
  border-bottom: 2px solid var(--pine); padding-bottom: 8px; margin-bottom: 2px;
}
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-item {
  display: block; text-decoration: none; color: var(--ink);
  padding: 13px 6px 12px; border-bottom: 1px solid var(--line);
}
.ledger-row { display: flex; align-items: baseline; gap: 12px; }
.ledger-name { font-weight: 600; font-size: 1.05rem; }
.ledger-dots { flex: 1; border-bottom: 2px dotted #c9bba3; transform: translateY(-4px); min-width: 24px; }
.ledger-price {
  font-family: "Libre Franklin", sans-serif; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-size: 1.08rem; color: var(--pine);
  transition: color 0.2s var(--ease-out);
}
.ledger-detail {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.28s var(--ease-out), opacity 0.28s var(--ease-out);
  font-size: 0.92rem; color: var(--ink-soft); max-width: 620px;
}
.ledger-item:hover .ledger-detail,
.ledger-item:focus-visible .ledger-detail { max-height: 90px; opacity: 1; padding-top: 5px; }
.ledger-item:hover .ledger-price, .ledger-item:focus-visible .ledger-price { color: var(--bronze-deep); }
.ledger-item:hover .ledger-name { color: var(--pine); }

/* the services page tables get the same treatment */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 54px; align-items: start; }
.split-flip { grid-template-columns: 6fr 5fr; }
.side-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.price-list li:first-child { border-top: 1px solid var(--line); }
.price-list strong { font-family: "Libre Franklin", sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- whitening: the before/after slider ---------- */

.ba-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.ba-price {
  font-family: "Libre Franklin", sans-serif; font-weight: 800; color: var(--pine);
  font-size: 2.2rem; font-variant-numeric: tabular-nums; line-height: 1; margin: 18px 0 4px;
}
.ba {
  position: relative; aspect-ratio: 768 / 341; overflow: hidden;
  background: var(--mist); --pos: 50%;
}
.ba img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; max-width: none; user-select: none; -webkit-user-drag: none;
}
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: var(--bronze); transform: translateX(-1px); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bronze-deep); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 0.72rem; line-height: 1; box-shadow: 0 2px 10px rgba(10, 35, 32, 0.35);
}
.ba-tag {
  position: absolute; top: 12px; z-index: 3;
  background: rgba(10, 35, 32, 0.82); color: var(--paper);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; pointer-events: none;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; z-index: 4;
}
.ba input[type="range"]:focus-visible { outline: none; }
.ba:focus-within { outline: 2px solid var(--bronze-deep); outline-offset: 3px; }

/* ---------- full-bleed photo chapter ---------- */

.bleed-photo { position: relative; height: min(74vh, 660px); min-height: 420px; }
.bleed-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bleed-panel {
  position: absolute; bottom: 38px;
  left: max(22px, calc((100vw - 1140px) / 2 + 22px));
  background: var(--paper); max-width: 470px; padding: 30px 32px 24px;
}
.bleed-panel h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.bleed-panel p { color: var(--ink-soft); }
.bleed-panel p:last-child { margin-bottom: 0; }

/* ---------- the dentists, as an index ---------- */

.doc-index { border-bottom: 1px solid var(--line); }
.doc-row {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 8px 36px; align-items: baseline;
  padding: 24px 6px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.doc-row:hover { background: #fffdf8; }
.doc-name { font-family: "Libre Franklin", sans-serif; font-weight: 800; font-size: 1.55rem; color: var(--pine); letter-spacing: -0.015em; line-height: 1.1; }
.doc-role { display: block; font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0; }
.doc-line { color: var(--ink-soft); font-size: 1rem; }
.doc-arrow { font-family: "Libre Franklin", sans-serif; font-size: 1.4rem; color: var(--bronze-deep); }

/* ---------- one review at a time, set large ---------- */

.quote-wrap { max-width: 880px; }
.quote-stars { color: var(--bronze-deep); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.quote-text {
  font-family: "Libre Franklin", sans-serif; font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.32;
  letter-spacing: -0.01em; color: var(--pine); margin: 0;
  transition: opacity 0.3s var(--ease-out);
}
.quote-text.fading { opacity: 0; }
.quote-meta { margin-top: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.quote-meta strong { color: var(--ink); }
.quote-controls { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.quote-btn {
  background: none; border: none; padding: 4px 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--pine); font-size: 0.95rem;
}
.quote-btn:hover { color: var(--bronze-deep); }
.quote-count { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- why patients switch ---------- */
/* Two ruled lists, no boxes. The left one is every clinic you've
   already been to; the right one is this page, making promises the
   rest of the site has to keep. */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 30px; }
.compare-col { border-top: 2px solid var(--pine); padding-top: 16px; }
.compare-col h3 { margin-bottom: 10px; font-size: 1.25rem; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  position: relative; padding: 9px 0 9px 28px;
  border-bottom: 1px dotted var(--line); font-size: 0.98rem;
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li::before { position: absolute; left: 2px; top: 9px; font-weight: 700; }
.compare-usual { color: var(--ink-soft); }
.compare-usual li::before { content: '×'; color: var(--ink-soft); }
.compare-park h3 { color: var(--pine); }
.compare-park li::before { content: '✓'; color: var(--pine); }

.insurer-cols {
  list-style: none; margin: 18px 0; padding: 0;
  columns: 3; column-gap: 40px; max-width: 900px;
}
.insurer-cols li { padding: 7px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; font-weight: 600; }

.reviews { columns: 3; column-gap: 22px; margin-top: 26px; }
.review {
  break-inside: avoid; background: #fffdf8; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 22px;
}
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--pine-soft);
  color: var(--pine); font-weight: 700; display: flex; align-items: center;
  justify-content: center; font-size: 0.95rem; flex: none;
}
.review-name { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.review-meta { font-size: 0.82rem; color: var(--ink-soft); }
.review-stars { color: var(--bronze-deep); letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 6px; }
.review p { font-size: 0.96rem; margin: 0; }
.review .review-source { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 15px 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { font-family: "Libre Franklin", sans-serif; font-weight: 700; cursor: pointer; font-size: 1.05rem; color: var(--pine); }
.faq-list details p { margin: 10px 0 2px; color: var(--ink-soft); max-width: 640px; }

.emergency-band { background: var(--pine); padding: 44px 0; }
.emergency-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.emergency-inner h2 { margin-bottom: 6px; color: #fff; }
.emergency-inner p { margin: 0; max-width: 560px; color: #d5cdbb; }
.emergency-inner .btn { font-size: 1.15rem; padding: 14px 26px; }

/* ---------- inner pages ---------- */

.page-head { padding: 56px 0 10px; }
.page-head p { color: var(--ink-soft); max-width: 620px; font-size: 1.08rem; }

.price-group { margin-bottom: 46px; max-width: 820px; }
.price-group h2 { font-size: 1.9rem; margin-bottom: 4px; }
.price-group .group-note { color: var(--ink-soft); margin-bottom: 10px; max-width: 620px; }
table.prices { width: 100%; border-collapse: collapse; }
table.prices td { padding: 13px 4px; border-bottom: 1px dotted #c9bba3; vertical-align: top; font-size: 1.02rem; }
table.prices td:last-child {
  text-align: right; font-weight: 700; white-space: nowrap;
  font-family: "Libre Franklin", sans-serif; font-variant-numeric: tabular-nums; color: var(--pine);
}
table.prices td .item-note { display: block; font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }

.team-list { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 54px; margin-top: 34px; }
.dentist { display: grid; grid-template-columns: 180px 1fr; gap: 22px; }
.dentist figure img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.dentist figcaption { font-size: 0.82rem; }
.dentist h3 { margin-bottom: 2px; font-size: 1.3rem; }
.dentist .dentist-role { color: var(--bronze-deep); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.dentist p { font-size: 0.97rem; color: var(--ink-soft); }
.dentist p strong { color: var(--ink); }

.hours-table { border-collapse: collapse; margin: 8px 0 20px; }
.hours-table td { padding: 6px 26px 6px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { font-weight: 600; }
.hours-table tr.today td { color: var(--pine); font-weight: 700; }

.map-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-block img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.map-caption { padding: 14px 18px; background: var(--mist); font-size: 0.94rem; }

/* ---------- booking ---------- */

.book-layout { display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: start; padding-bottom: 70px; }
.book-step { margin-bottom: 34px; }
.book-step h2 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 10px; }
.step-num {
  font-family: "Public Sans", sans-serif; font-size: 0.8rem; font-weight: 700;
  background: var(--pine); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  flex: none; transform: translateY(-1px);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.94rem; margin-bottom: 6px; }
.field select, .field input, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c4bba6; border-radius: var(--radius);
  font: inherit; font-size: 1rem; background: #fffdf8; color: var(--ink);
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: 2px solid var(--bronze-deep); outline-offset: 1px; border-color: var(--bronze-deep);
}
.field .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.field-error { color: var(--danger); font-size: 0.9rem; font-weight: 600; display: none; }

.date-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.date-chip, .slot-chip {
  border: 1px solid #c4bba6; background: #fffdf8; border-radius: var(--radius);
  padding: 9px 13px; font: inherit; font-size: 0.95rem; cursor: pointer; text-align: center;
}
.date-chip small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.date-chip:hover, .slot-chip:hover { border-color: var(--pine); }
.date-chip.selected, .slot-chip.selected { background: var(--pine); color: #fff; border-color: var(--pine); }
.date-chip.selected small { color: #d9d2c2; }
.slot-chip[disabled] { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-empty { color: var(--ink-soft); font-style: italic; }

.book-summary {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 20px;
}
.book-summary h3 { margin-bottom: 12px; }
.book-summary dl { margin: 0; }
.book-summary .sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dotted var(--line); font-size: 0.96rem; }
.book-summary dt { color: var(--ink-soft); }
.book-summary dd { margin: 0; font-weight: 600; text-align: right; }
.book-summary .sum-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 14px; }

.confirmation {
  border: 2px solid var(--pine); border-radius: var(--radius); padding: 28px; max-width: 640px;
  background: #fffdf8; margin-bottom: 60px;
}
.confirmation h2 { color: var(--pine); }
.confirmation .ref {
  font-family: "Libre Franklin", sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em;
}
.hidden { display: none !important; }

/* ---------- admin ---------- */

.admin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.admin-stats { display: flex; gap: 34px; margin: 20px 0 8px; flex-wrap: wrap; }
.admin-stat .stat-num { font-family: "Libre Franklin", sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--pine); display: block; line-height: 1; }
.admin-stat .stat-label { font-size: 0.88rem; color: var(--ink-soft); }
table.admin-table { width: 100%; border-collapse: collapse; margin: 14px 0 44px; font-size: 0.95rem; }
table.admin-table th {
  text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--pine);
  font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pine);
}
table.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin-table tr.cancelled td { color: var(--ink-soft); }
.status-pill { font-size: 0.8rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.status-pending { background: var(--amber-soft); color: #77572f; }
.status-confirmed { background: var(--pine-soft); color: var(--pine); }
.status-cancelled { background: #f3e3e0; color: var(--danger); }
table.admin-table select { font: inherit; font-size: 0.9rem; padding: 4px 6px; }
.lead-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; max-width: 720px; background: #fffdf8; }
.lead-item .lead-meta { font-size: 0.85rem; color: var(--ink-soft); }
.empty-note { color: var(--ink-soft); font-style: italic; }

/* ---------- footer ---------- */

footer { background: var(--pine-dark); color: #d5cdbb; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  padding-top: 44px; padding-bottom: 36px;
}
footer h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
footer p, footer li { font-size: 0.93rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 3px 0; }
footer a { color: #d5cdbb; }
footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e3a36; padding: 16px 0 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: #a79e8b;
}

/* ---------- chat widget ---------- */

.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: var(--pine); color: #fff; border: none; cursor: pointer;
  border-radius: 30px; padding: 13px 20px; font: inherit; font-weight: 700;
  box-shadow: 0 6px 22px rgba(10, 35, 32, 0.35); display: flex; gap: 9px; align-items: center;
}
.chat-launcher:hover { background: var(--pine-dark); }
.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 61;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px));
  background: #fffdf8; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 50px rgba(10, 35, 32, 0.28); display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { background: var(--pine); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-head .chat-title { font-family: "Libre Franklin", sans-serif; font-weight: 700; }
.chat-head .chat-sub { font-size: 0.8rem; color: #d9d2c2; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 12px; font-size: 0.94rem; line-height: 1.45; }
.msg-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-user { background: var(--pine); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.msg p { margin: 0 0 6px; }
.msg p:last-child { margin-bottom: 0; }
.msg .chat-link-btn {
  display: inline-block; margin-top: 6px; background: var(--pine); color: #fff; text-decoration: none;
  padding: 7px 13px; border-radius: var(--radius); font-weight: 700; font-size: 0.88rem;
}
.msg-typing { display: flex; gap: 5px; padding: 13px 15px; }
.msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a79e8b; animation: blink 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.chat-quick { display: flex; gap: 7px; flex-wrap: wrap; padding: 10px 12px 0; background: var(--mist); }
.chat-quick button {
  border: 1px solid var(--pine); color: var(--pine); background: #fff; border-radius: 20px;
  padding: 5px 12px; font: inherit; font-size: 0.84rem; cursor: pointer; font-weight: 600;
}
.chat-quick button:hover { background: var(--pine-soft); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fffdf8; }
.chat-form input {
  flex: 1; padding: 10px 12px; border: 1px solid #c4bba6; border-radius: var(--radius); font: inherit; font-size: 0.95rem;
}
.chat-form button { background: var(--pine); color: #fff; border: none; border-radius: var(--radius); padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .hero-lower, .split, .split-flip, .book-layout, .ba-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-photo img { min-height: 300px; }
  .compare-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-row { grid-template-columns: 1fr auto; }
  .doc-line { grid-column: 1 / -1; }
  .infobar-grid { grid-template-columns: 1fr 1fr; }
  .team-list { grid-template-columns: 1fr; }
  .reviews { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .book-summary { position: static; }
  .bleed-photo { height: auto; min-height: 0; }
  .bleed-photo > img { position: static; height: 300px; }
  .bleed-panel { position: static; max-width: none; padding: 26px 22px 6px; }
  .section { padding: 60px 0; }
}
@media (max-width: 620px) {
  .figures-line { grid-template-columns: 1fr 1fr; }
  .mainnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 16px 22px; gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .mainnav.open { display: flex; }
  .masthead .wrap { position: relative; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px 13px; font: inherit; font-weight: 700; cursor: pointer;
  }
  .reviews { columns: 1; }
  .insurer-cols { columns: 2; }
  .dentist { grid-template-columns: 120px 1fr; }
  .hero h1 { font-size: clamp(2.7rem, 13.5vw, 3.4rem); }
}
