/* 32 Dental Pearls Clinic — call-first landing page
   Mobile first, single column, 360px up. One strong colour, used only on Call. */

:root {
  --ink: #1F2024;
  --muted: #55575F;
  --brand: #6B5280;          /* strong colour: Call only */
  --brand-ink: #4E3A60;
  --brand-soft: #F4F1F8;
  --line: #E3E1E9;
  --bg: #FFFFFF;
  --ok: #1B7F46;
  --radius: 14px;
  --tap: 52px;               /* >= 48px tap targets */
  --wrap: 600px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 84px;      /* room for the sticky call bar */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

h1, h2, h3 { line-height: 1.22; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
p a[href^="tel:"], li a[href^="tel:"] { white-space: nowrap; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }

.section { padding-block: 40px; border-top: 1px solid var(--line); }   /* block only: .wrap owns the side gutters */
.section > .lede { margin-bottom: 20px; }   /* section intro -> its content */
.section--plain { border-top: 0; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--brand-ink); margin: 0 0 8px;
}
.lede { color: var(--muted); }

/* 1. Brand bar — identity only, no menu */
.brandbar {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
}
.brandbar img { width: 42px; height: 42px; }
.brandbar b { display: block; font-size: 17px; line-height: 1.25; }
.brandbar span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* 2-5. First screen */
.hero { padding: 16px 0 8px; }
.hero h1 { margin-bottom: 10px; }
.hero .sub { font-size: 17px; color: var(--muted); margin-bottom: 16px; }

/* 3. Proof row */
.proof {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none;
}
.proof li {
  font-size: 13px; font-weight: 600; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 999px; padding: 5px 10px;
}
.proof a { color: inherit; }

/* 4. Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--tap); width: 100%; padding: 12px 18px;
  border-radius: var(--radius); font-size: 17px; font-weight: 700;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn-call, .btn-primary { background: var(--brand); color: #fff; font-size: 18px; }   /* the dominant action */
.btn-call:active, .btn-primary:active { background: var(--brand-ink); }
.section-call { margin-top: 24px; }
.btn-2nd { background: #fff; color: var(--ink); border-color: var(--line); font-size: 16px; font-weight: 600; }
.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.btn-row .btn { width: 50%; }

/* 5. What happens next */
.next { font-size: 14.5px; color: var(--muted); margin: 11px 0 0; }

/* 6. Entrance photo + landmark caption */
figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; font-weight: 600; }

/* 7. Dentist */
.doc { display: flex; gap: 15px; align-items: flex-start; }
.doc img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.doc h2 { font-size: 21px; margin-bottom: 6px; }
.dentist .doc { margin-bottom: 16px; }
.dentist .lede { margin-bottom: 20px; }
.room-photo { margin-top: 28px; }
.room-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.doc .cred { font-size: 14.5px; color: var(--muted); margin: 0 0 6px; }

/* 8. Reviews */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; color: var(--muted); }
.rating b { font-size: 28px; line-height: 1; color: var(--ink); }
.rating .stars { font-size: 18px; }
.reviews { display: grid; gap: 14px; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.cta-pair, .loc-actions { display: grid; gap: 10px; margin-top: 24px; }
.review p { margin: 0 0 8px; font-size: 16px; }
.review .who { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0; }
.stars { color: #E8A33D; letter-spacing: 2px; font-size: 15px; }
.proof .stars { letter-spacing: 0; }

/* 9. Location */
.facts { list-style: none; margin: 0 0 20px; padding: 0; }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts li:last-child { border-bottom: 0; }
.facts b { display: block; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 3px; font-weight: 700; }
.mapbox {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--brand-soft); margin-bottom: 20px;
}
.mapbox iframe { display: block; flex: 1 1 auto; width: 100%; height: 230px; border: 0; }
.loc-actions { margin-top: 0; }
.entrance { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.entrance img { flex: 0 0 88px; width: 88px; border-radius: 10px; }
.entrance figcaption { margin: 0; }

/* 10. Treatments */
.treatments { list-style: none; margin: 0; padding: 0; }
.treatments li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.treatments li:last-child { border-bottom: 0; }
.treatments b { display: block; font-weight: 700; }
.treatments span { color: var(--muted); font-size: 15.5px; }

/* 11. First visit */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 44px; font-size: 16px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps b { display: block; }

/* 12. FAQ */
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 15px 30px 15px 0; position: relative;
  font-weight: 600; font-size: 16.5px; min-height: var(--tap); display: flex; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 2px; font-size: 22px; font-weight: 400; color: var(--brand-ink);
}
details[open] summary::after { content: "\2013"; }
details p { padding: 0 0 15px; color: var(--muted); font-size: 16px; margin: 0; }

/* 13. Closing band */
.closing { background: var(--brand-soft); border-top: 1px solid var(--line); padding: 40px 0; }
.closing h2 { margin-bottom: 8px; }

/* 14. Footer */
.foot { padding: 32px 0 36px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.foot p { margin: 0 0 7px; }

/* 15. Sticky call bar */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,0.97); border-top: 1px solid var(--line);
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  display: flex; gap: 9px;
  transform: translateY(110%); transition: transform 0.22s ease;
}
.stickybar.show { transform: none; }
.stickybar .btn-call { flex: 1 1 62%; }
.stickybar .btn-2nd { flex: 1 1 38%; }

@media (prefers-reduced-motion: reduce) { .stickybar { transition: none; } }

/* 6. Entrance photo: 5:4 from the top keeps the signboard and the door lettering in frame */
.hero-photo { margin-top: 16px; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center top; }

/* Brand bar phone: desktop only */
.brandbar-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto;
  min-width: 44px; min-height: 44px; margin-left: auto; padding: 0 12px;
  border: 1.5px solid var(--brand); border-radius: 999px;
  color: var(--brand-ink); font-size: 15px; font-weight: 700; text-decoration: none;
}
.brandbar-tel span { display: none; }

/* Treatment pages: "Care for every age" checklist; this page's own treatment comes first and is tinted */
.care { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.care li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 600;
}
.care li::before { content: "\2713"; color: var(--brand-ink); font-weight: 700; }
.care li:first-child { background: var(--brand-soft); border-color: transparent; }
.dentist-card .doc { margin-bottom: 16px; }
.care--all li:first-child { background: none; border-color: var(--line); }

/* Treatments page: one card per treatment, each reachable by its own #anchor */
.tx-grid { display: grid; gap: 14px; }
.tx { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: 24px; }
.tx h3 { font-size: 19px; margin-bottom: 8px; }
.tx .tag {
  align-self: flex-start; margin: 0 0 10px; padding: 5px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 600;
}
.tx p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.tx .btn { margin-top: auto; }

/* Narrowest phones (360px): keep each proof chip on one line so the first screen fits */
@media (max-width: 374px) { .proof li { font-size: 12px; padding: 5px 9px; } }

/* ---- Tablet: more air, lists go two-up ---- */
@media (min-width: 760px) {
  :root { --wrap: 720px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 19px; }
  body { font-size: 17.5px; }
  .section { padding-block: 56px; }
  .hero { padding: 30px 0 10px; }
  .mapbox iframe { height: 320px; }
  .treatments { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .steps li { padding-bottom: 0; }
  .btn-call, .btn-row { max-width: 470px; }
  .doc img { width: 112px; height: 112px; }
  .brandbar-tel { padding: 0 16px; }
  .brandbar-tel span { display: inline; }
  .brandbar span { font-size: 13.5px; }
  .care { grid-template-columns: 1fr 1fr; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Desktop: two-column first screen, split location, no sticky bar ---- */

/* ---- Desktop: same reading order as phones, laid out for a wide screen ---- */
@media (min-width: 1040px) {
  :root { --wrap: 1060px; }
  html { scroll-padding-top: 96px; }   /* anchors land below the sticky header */
  body { padding-bottom: 0; }
  h1 { font-size: clamp(40px, 3.5vw, 52px); }
  h2 { font-size: 31px; }
  .section { padding-block: 76px; }
  .section > .lede { margin-bottom: 28px; }

  /* Header lines up with the content column and stays on screen, so the
     number is always one glance away (phones get the sticky bar instead) */
  .brandbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    padding: 14px max(18px, calc((100% - var(--wrap)) / 2 + 18px));
  }
  .brandbar-tel { padding: 0 18px; font-size: 16px; }
  .brandbar-tel:hover { background: var(--brand-soft); }

  /* 2-6: promise and Call left, clinic photo right */
  .firstscreen {
    display: grid; grid-template-columns: 1.02fr 0.98fr;
    column-gap: 56px; align-items: center;
    padding-top: 48px; padding-bottom: 56px;
  }
  .hero { padding: 0; }
  .hero .sub { font-size: 19px; }
  .hero-photo { margin: 0; }
  .hero-photo img { border-radius: 20px; }
  .btn-call, .btn-row { max-width: none; }

  /* running text stays readable instead of stretching the full width */
  .sec-narrow > *, .closing .lede { max-width: 820px; }
  .sec-narrow > .btn-2nd { max-width: 330px; }

  /* 7. Dentist left, treatment room right */
  .dentist { display: grid; grid-template-columns: 1.05fr 0.95fr; column-gap: 64px; align-items: center; }
  .dentist .lede { max-width: 560px; }
  .dentist .btn-call { max-width: 470px; }
  .doc h2 { font-size: 26px; }
  .room-photo { margin: 0; }
  .room-photo img { border-radius: 20px; }

  /* Treatment pages: dentist and reviews as two equal cards in one row */
  .trust-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    max-width: var(--wrap); margin: 0 auto; padding: 76px 18px;
    border-top: 1px solid var(--line);
  }
  .trust-row > .section {
    display: flex; flex-direction: column;
    max-width: none; margin: 0; padding: 30px 32px;
    border: 1px solid var(--line); border-radius: 18px;
  }
  .trust-row .reviews { grid-template-columns: 1fr; gap: 14px; }
  .trust-row .cta-pair { margin-top: auto; padding-top: 24px; }
  .care { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tx-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .tx { padding: 22px; scroll-margin-top: 0; }   /* html scroll-padding-top already clears the sticky header */

  /* 8. Three reviews side by side */
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .review { padding: 22px; }
  /* side by side when they fit; a button that doesn't fit moves down whole, never wraps its label */
  .cta-pair, .loc-actions { display: flex; flex-wrap: wrap; }
  .cta-pair .btn, .loc-actions .btn { width: auto; padding: 12px 24px; white-space: nowrap; }
  .section-call { max-width: 470px; margin-top: 32px; }
  .cta-pair { margin-top: 32px; }
  .doc { gap: 22px; }
  .doc img { width: 120px; height: 120px; }

  /* Tinted full-bleed bands break up the run of white sections */
  .band {
    background: var(--brand-soft);
    box-shadow: 0 0 0 100vmax var(--brand-soft);
    clip-path: inset(0 -100vmax);
    border-top: 0;
  }
  .band + .section { border-top: 0; }
  .band .mapbox { background: #fff; }

  /* 9. Location: details left, map right */
  .loc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; align-items: start; }
  .loc > .eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .loc > h2 { grid-column: 1 / -1; grid-row: 2; }
  .loc > .lede { grid-column: 1 / -1; grid-row: 3; max-width: 820px; }
  .loc > .facts { grid-column: 1; grid-row: 4; margin-bottom: 14px; }
  .loc > .loc-actions { grid-column: 1; grid-row: 5; }
  .loc > .entrance { grid-column: 1; grid-row: 6; }
  .loc > .mapbox { grid-column: 2; grid-row: 4 / span 3; margin: 0; height: 100%; }
  .loc .mapbox iframe { height: auto; min-height: 340px; }

  /* 10. Treatments: three columns of cards */
  .treatments { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .treatments li, .treatments li:last-child {
    padding: 18px 20px;
    border: 1px solid var(--line); border-radius: 14px;
  }

  /* 11. First visit: three cards on the band */
  .steps { gap: 20px; }
  .steps li {
    padding: 22px 22px 22px 66px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
  }
  .steps li::before { left: 22px; top: 22px; }

  /* 12. FAQ: heading and call prompt on the left, questions on the right */
  .faq--split { display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .faq--split > .faq-head { position: sticky; top: 104px; }
  .faq--split > .faq-list { max-width: none; }

  /* 13. Closing band centres on a wide screen */
  .closing { padding: 72px 0; }
  .closing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .closing .btn-call, .closing .btn-row { width: 100%; max-width: 470px; }

  .foot { padding: 36px 0 40px; }

  /* 15. Sticky bar is a phone affordance only */
  .stickybar { display: none; }
}

@media (min-width: 1240px) {
  :root { --wrap: 1140px; }
  .firstscreen { column-gap: 64px; }
}
