/* Globe Smiles preview v3 — Casco accent + Grand Street POV */
:root {
  --teal: #009CA8;
  --teal-deep: #007F88; /* slightly deeper for text contrast on white */
  --ink: #1a1f22;
  --muted: #5a656c;
  --line: #e4e8ea;
  --bg: #ffffff;
  --bg-warm: #f6f4f1; /* Dentologie/Grand Street warmth */
  --bg-hero: #e4e9e8; /* soft teal-grey — a few steps below white for hero contrast */
  --bg-ink: #142028;
  --max: 1140px;
  --radius: 3px;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-serif); }
p { margin: 0 0 1rem; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.accent { color: var(--teal); }
.accent-deep { color: var(--teal-deep); }

.preview-banner {
  background: var(--bg-warm);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
  letter-spacing: .02em;
  text-align: center;
  padding: .4rem 1rem;
  font-family: var(--font-sans);
}
.preview-banner strong { color: var(--ink); font-weight: 600; }

.ph {
  display: inline-flex; align-items: center;
  margin-left: .3rem; padding: .05rem .38rem;
  border: 1px solid #e5d7a6; background: #faf6ea; color: #8a7340;
  border-radius: 999px; font-size: .58rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; vertical-align: middle;
  white-space: nowrap; line-height: 1.4; font-family: var(--font-sans);
}
.ph-block {
  display: inline-block; margin: .4rem 0; padding: .3rem .6rem;
  border: 1px solid #e5d7a6; background: #faf6ea; color: #8a7340;
  border-radius: 999px; font-size: .7rem; font-weight: 600;
  letter-spacing: .03em; font-family: var(--font-sans);
}

/* Header — simple, Casco-clean */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--bg-ink);
  color: rgba(255,255,255,.75);
  font-size: .78rem; letter-spacing: .02em;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: .35rem 1.25rem;
  justify-content: space-between; align-items: center; padding: .4rem 0;
  min-width: 0;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #9fd9de; }
.topbar-addr {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: min(52vw, 28rem);
}
@media (max-width: 1099px) {
  .topbar-addr { max-width: 100%; white-space: normal; }
}
.nav { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; min-width: 0; }
.brand {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; color: inherit; min-width: 0; flex-shrink: 1;
}
.brand picture { display: block; line-height: 0; }
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(58vw, 190px);
}
@media (min-width: 900px) {
  .brand-logo {
    height: 40px;
    max-width: 220px;
  }
}
/* Legacy text wordmark (kept for dark-footer fallback if needed) */
.brand-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.015em;
}
.brand-sub { font-size: .68rem; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }
.brand-sub .ph { font-size: .5rem; padding: .02rem .28rem; margin-left: .25rem; }
/* Footer logo — CV circle + DENTAL CARE banner (no Globe Smiles wordmark) on --bg-ink */
.footer-brand {
  display: inline-block; text-decoration: none; line-height: 0; margin: 0 0 .85rem;
}
.footer-logo {
  display: block;
  height: 45px;
  width: auto;
  max-width: min(100%, 240px);
}
.nav-links { display: none; gap: 1rem; margin-left: auto; align-items: center; flex-shrink: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-sans);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-deep); }
.nav-cta { display: none; gap: .4rem; margin-left: .5rem; flex-shrink: 0; }
.nav-cta .btn-sm { padding: .55rem .85rem; font-size: .68rem; letter-spacing: .06em; white-space: nowrap; }
.menu-toggle {
  margin-left: auto; background: none; border: 0; width: 44px; height: 44px;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.mobile-nav {
  display: none; flex-direction: column; gap: .65rem;
  padding: 0 0 1.1rem; border-top: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; padding: .35rem 0;
  text-transform: uppercase; letter-spacing: .04em; font-size: .88rem;
}
.mobile-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
/* Full desktop nav only when there is room (~1100+) — avoids 1024 cutoff */
@media (min-width: 1100px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}
/* Mid desktop: hide outline Call so Request fits cleanly */
@media (min-width: 1100px) and (max-width: 1279px) {
  .nav-cta .btn-secondary { display: none; }
  .nav-links { gap: .85rem; }
}

/* Buttons — Casco-style: teal primary, outlined secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.35rem; border-radius: var(--radius);
  font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  font-family: var(--font-sans); transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-gold, .btn-on-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.55);
}
.btn-gold:hover, .btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: .6rem 1rem; font-size: .72rem; }

/* Hero — soft teal-grey band (modest contrast vs white below) */
.hero {
  background: var(--bg-hero);
  padding: 4.5rem 0 3.75rem;
  border-bottom: 1px solid #d5dddc;
}
.hero-grid {
  display: grid; gap: 2rem;
  min-width: 0;
}
@media (min-width: 900px) {
  /* v15 — desktop hero: top-align photo with late pill; height follows left column (ends at CTA bottoms) */
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: stretch;
    gap: 2.5rem;
  }
  .hero-grid > .photo-slot--exterior {
    aspect-ratio: auto; /* height from left column only */
    align-self: stretch;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #cfd6d5;
  }
  .hero-grid > .photo-slot--exterior picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-grid > .photo-slot--exterior img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%; /* keep building/sign when height shortens */
  }
  .hero .hero-actions {
    margin-bottom: 0; /* column height ends at button bottoms, not after margin */
  }
}
.eyebrow {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem;
  font-family: var(--font-sans);
}
.hero h1 { margin-bottom: .9rem; max-width: 12ch; }
.hero-lead {
  font-size: 1.08rem; color: var(--muted); max-width: 34rem;
  line-height: 1.7; font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.85rem 0 1.2rem; }
/* v15 — mobile only: pull exterior up under CTAs / late pill (desktop gap unchanged) */
@media (max-width: 899px) {
  .hero-grid { gap: .75rem; }
  .hero-actions { margin: 1.5rem 0 .55rem; }
  /* Mobile CTA align: content-sized buttons stack with unequal widths (and
     centered stacks stagger both edges). Stretch to full row so Call / Request line up.
     Desktop (≥900px) unchanged — row + content width + any inline justify-content. */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    box-sizing: border-box;
  }
  /* Membership pair: override inline margin-left:.5rem that offsets the wrapped 2nd btn */
  .membership-card > .btn {
    width: 100%;
    margin-left: 0 !important;
    box-sizing: border-box;
  }
  .membership-card > .btn + .btn {
    margin-top: .65rem;
  }
  .hero { padding-bottom: 2.25rem; }
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .45rem 1.25rem;
  font-size: .88rem; color: var(--muted); font-weight: 400;
}
.hero-meta a { color: var(--ink); text-decoration: none; font-weight: 500; }
.hero-meta a:hover { color: var(--teal-deep); }
.hero-meta .sep { color: #c5ccd0; }

.photo-slot {
  aspect-ratio: 4 / 3;
  background: #dfe5e4;
  border: 1px solid #c8d0cf;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  min-width: 0; max-width: 100%; width: 100%;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.photo-slot--portrait { aspect-ratio: 4 / 5; max-width: 320px; }
.photo-slot--featured { max-width: none; width: 100%; }

/* v15 — Cottle: restore native ~4:5 (959×1200); cover fills slot; top-weighted so hairline isn't cropped; no pad/bg band */
.meet--featured .photo-slot--portrait.photo-slot--featured {
  aspect-ratio: 4 / 5;
  background: transparent;
}
.meet--featured .photo-slot--portrait.photo-slot--featured img {
  object-fit: cover;
  object-position: center top;
}
.photo-slot img,
.photo-slot picture {
  width: 100%; height: 100%; display: block;
}
.photo-slot picture { height: 100%; }
.photo-slot img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.photo-slot-label {
  position: absolute; inset: auto 0 0 0;
  padding: .65rem .85rem;
  background: rgba(255,255,255,.88);
  color: var(--muted);
  font-size: .72rem; font-family: var(--font-sans); font-weight: 500;
  letter-spacing: .02em; text-align: center;
  border-top: 1px solid rgba(0,0,0,.06);
}
.photo-slot--empty .photo-slot-label {
  position: static; background: transparent; border: 0;
  padding: 1.5rem 1.25rem; max-width: 16rem; line-height: 1.45;
}
/* Office exterior — real crops via <picture>; aspect matches crop */
.photo-slot--exterior {
  aspect-ratio: 4 / 3;
  background: #cfd6d5;
}
.photo-slot--exterior img {
  object-fit: cover;
  object-position: center center;
}

/* v22 — About hero duo (dentists at door) */
.photo-slot--duo {
  aspect-ratio: 4 / 3;
  background: transparent;
  max-width: none;
  width: 100%;
}
.photo-slot--duo img {
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 799px) {
  .photo-slot--duo {
    aspect-ratio: 4 / 3;
    max-height: min(55vh, 280px);
  }
}
@media (max-width: 899px) {
  .photo-slot--exterior {
    aspect-ratio: 4 / 5;
  }
}

.rating-line {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem; color: var(--muted);
}
.rating-line a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rating-line a:hover { color: var(--teal-deep); }
.rating-line .ph { margin-left: .35rem; }

.meet {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 800px) {
  .meet { grid-template-columns: 280px 1fr; gap: 2.75rem; }
  .meet--featured { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: center; }
}
.meet-links {
  display: flex; flex-direction: column; align-items: flex-start; gap: .65rem;
  margin-top: .85rem;
}
.meet-links .meet-link {
  font-weight: 600; font-size: .95rem; color: var(--teal-deep); text-decoration: none;
}
.meet-links .meet-link:hover { text-decoration: underline; }
.quote-slot--inline { margin: 1.25rem 0 0; max-width: 28rem; }
.meet-copy .role {
  color: var(--teal-deep); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem;
  font-family: var(--font-sans);
}
.meet-copy h2 { margin-bottom: .35rem; }
.meet-copy .cred {
  font-family: var(--font-sans); font-size: .85rem; font-weight: 600;
  letter-spacing: .06em; color: var(--ink); margin: -.15rem 0 .85rem;
}
.meet-copy .subhead {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink);
  margin-bottom: 1rem; font-weight: 700;
}
.meet-copy p { color: var(--muted); max-width: 36rem; }

.urgent {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: #fff;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
}
.urgent h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.urgent p { margin: 0; color: var(--muted); font-size: .95rem; }

.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .quotes { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.quote-slot {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius);
  min-height: 8rem;
}
.quote-slot p {
  margin: 0; color: var(--muted); font-size: .95rem; font-style: italic;
  line-height: 1.55;
}
.quote-slot .ph { font-style: normal; margin-top: .75rem; display: inline-flex; }

.membership-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  max-width: 36rem;
}
.membership-card h2 { margin-bottom: .4rem; }
.membership-card .lede { color: var(--muted); margin-bottom: 1rem; }
.membership-card .price {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
  color: var(--ink); margin-bottom: 1rem;
}
.membership-card h3 {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .5rem;
  font-weight: 600;
}
.membership-card ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.membership-card li {
  position: relative; padding: .35rem 0 .35rem 1.15rem;
  color: var(--muted); font-size: .95rem; border-bottom: 1px solid var(--line);
}
.membership-card li:last-child { border-bottom: 0; }
.membership-pending {
  color: var(--muted); font-size: .95rem; margin: 0 0 1.25rem;
  padding: .85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.membership-inquiry {
  color: var(--muted); font-size: 1rem; margin: 0 0 1.25rem; line-height: 1.55;
}
.services-explore { margin-top: 1.5rem; }
.membership-card li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: .35rem; height: .35rem; border-radius: 50%; background: var(--teal);
}

.location-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .location-grid { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
}
.hours-note {
  font-size: .9rem; color: var(--muted); margin: .5rem 0 0;
}
.hours-note strong { color: var(--ink); font-weight: 600; }

.hero-late-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  margin: 0 0 1rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #c5d0ce;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.hero-late-pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.hours-late-note {
  margin: .75rem 0 0;
  font-size: .88rem; color: var(--muted); line-height: 1.45;
}
.hours-late-note strong { color: var(--ink); font-weight: 600; }
.footer-hours-note {
  margin: .55rem 0 0;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}
.footer-hours-note strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* Hours strip */
.hours-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 1.05rem 0;
}
.hours-strip-inner {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  align-items: baseline; justify-content: space-between;
  font-size: .86rem; color: var(--muted);
}
.hours-strip-inner strong {
  color: var(--ink); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .72rem; font-family: var(--font-sans);
}
.hours-inline { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.hours-inline span { white-space: nowrap; }
.hours-inline b { font-weight: 600; color: var(--ink); margin-right: .3rem; }

.hours-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .4rem 0; border-bottom: 1px solid var(--line);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { font-weight: 600; color: var(--ink); }
.hours-list .hours-cell {
  display: block;
  min-width: 0;
  text-align: inherit;
}
.hours-list li.hours-alt .hours-cell:last-child {
  text-align: right;
}
.hours-list .hours-line1 {
  display: block !important;
  white-space: nowrap;
}
.hours-list .hours-line2 {
  display: block !important;
  font-size: .82em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
  line-height: 1.25;
}
.hours-list li.hours-alt {
  align-items: flex-start;
}
/* Footer: each line stacked; day+sub then time+sub */
.site-footer li.hours-alt {
  display: block;
  margin: .55rem 0;
  line-height: 1.35;
}
.site-footer .hours-line1 {
  display: block !important;
  white-space: nowrap;
}
.site-footer .hours-line2 {
  display: block !important;
  font-size: .82em;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  margin-top: 2px;
  line-height: 1.25;
}
.site-footer li.hours-alt .hours-line1 + .hours-line2 + .hours-line1 {
  margin-top: .3rem; /* gap before time line group */
}
/* Global safety net — any hours-line2 anywhere is always below */
.hours-line2 {
  display: block !important;
}
.hours-line1 {
  display: block !important;
}
.address-line { margin-top: 1rem; font-size: .92rem; color: var(--muted); }
.address-line strong { color: var(--ink); display: block; margin-bottom: .2rem; font-weight: 600; }

/* Sections */
section { padding: 4.25rem 0; }
.section-alt { background: var(--bg-warm); }
.section-navy { background: var(--bg-ink); color: rgba(255,255,255,.78); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .accent { color: #5ec4cc; }
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-navy .section-head p { color: rgba(255,255,255,.62); }

/* Point-of-view blocks — Grand Street rhythm */
.pov-grid {
  display: grid; gap: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
@media (min-width: 900px) {
  .pov-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
}
.pov {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .pov {
    padding: 0 1.75rem;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .pov:first-child { padding-left: 0; border-left: 0; }
  .pov:last-child { padding-right: 0; }
}
.pov h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-bottom: .55rem; letter-spacing: -.015em;
}
.pov p { color: var(--muted); margin: 0; font-size: .98rem; max-width: 28rem; }

.grid-3 { display: grid; gap: 1.5rem; }
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.card, .feature {
  background: transparent; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; padding: 1.35rem 0 0; box-shadow: none;
}
.card h3, .feature h3 { margin-bottom: .4rem; }
.card p, .feature p { color: var(--muted); font-size: .95rem; }
.card p:last-child, .feature p:last-child { margin-bottom: 0; }
.card .icon { display: none; }
.card-panel {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 1.35rem 1.4rem !important;
}
.section-alt .card-panel { background: #fff !important; }

/* Reviews */
.reviews {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0; background: transparent; border: 0; box-shadow: none;
}
.reviews-score { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.reviews-score .stars { color: var(--teal); font-size: .85rem; letter-spacing: 2px; font-weight: 600; }
.reviews-score .num {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--ink);
}
.reviews-score .count { color: var(--muted); font-size: .9rem; }

/* Services brief */
.services-brief {
  display: grid; gap: 0; border-top: 1px solid var(--line);
}
@media (min-width: 700px) {
  .services-brief { grid-template-columns: repeat(3, 1fr); }
}
.services-brief a {
  display: block; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
}
@media (min-width: 700px) {
  .services-brief a { padding: 1.25rem 1.25rem 1.25rem 0; }
  .services-brief a:nth-child(3n+2),
  .services-brief a:nth-child(3n+3) { padding-left: 1.25rem; }
}
.services-brief a:hover { color: var(--teal-deep); }
.services-brief a span {
  display: block; font-family: var(--font-sans); font-size: .85rem; font-weight: 400;
  color: var(--muted); margin-top: .25rem; letter-spacing: 0; text-transform: none;
}


/* Homepage service cards — 3x2 desktop, 1 col mobile */
.services-cards {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .services-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
}
@media (min-width: 1024px) {
  .services-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.service-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.25rem;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.service-card:hover { border-color: var(--teal); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.service-card h3 {
  font-family: var(--font-serif); font-size: 1.15rem; margin: 0 0 .45rem;
  color: var(--ink); letter-spacing: -.01em;
}
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

.services-grid { display: grid; gap: 0; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 0 1.5rem; } }
.service-item { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.service-item h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.service-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Membership */
.membership { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) {
  .membership { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
}
.membership-copy .price {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--ink); font-weight: 700;
}
.membership img {
  border-radius: var(--radius); width: 100%; border: 1px solid var(--line);
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.step {
  position: relative; background: transparent; border: 0;
  padding: 1.25rem 0 0; border-top: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  color: var(--teal); margin-bottom: .85rem; font-family: var(--font-sans);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }


/* Home team strip — scales to more people */
.team-strip-wrap { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.team-strip-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.team-strip-head h3 {
  font-family: var(--font-serif); font-size: 1.15rem; margin: 0; color: var(--ink);
}
.team-strip-head a {
  font-size: .88rem; font-weight: 600; color: var(--teal-deep); text-decoration: none;
}
.team-strip-head a:hover { text-decoration: underline; }
.team-strip {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.team-chip {
  display: grid; grid-template-columns: 72px 1fr; gap: .85rem; align-items: center;
  padding: .75rem .9rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.team-chip:hover { border-color: var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.team-chip img,
.team-chip picture { width: 72px; height: 72px; display: block; border-radius: 2px; overflow: hidden; }
.team-chip img { width: 72px; height: 72px; object-fit: cover; object-position: center 15%; }
.team-chip-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.team-chip-text strong { font-size: .95rem; color: var(--ink); }
.team-chip-text .role {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-deep); font-family: var(--font-sans);
}
.team-chip-text .line {
  font-size: .82rem; color: var(--muted); line-height: 1.35;
}

/* About page hero with team photo placeholder */
.page-hero-with-photo {
  display: grid; gap: 1.75rem; align-items: center;
}
@media (min-width: 800px) {
  .page-hero-with-photo { grid-template-columns: 1.2fr .8fr; gap: 2.5rem; }
}
.page-hero-with-photo .photo-slot { min-height: 180px; }


/* Single team member — keep horizontal card balanced, not stretched sparse */
.team-profiles:has(> .team-profile:only-child) {
  max-width: 40rem;
}
/* Team profiles — stacked horizontal cards */
.team-profiles { display: grid; gap: 2.5rem; max-width: 44rem; }
.team-profile {
  display: grid; gap: 1.35rem; align-items: start;
}
@media (min-width: 640px) {
  .team-profile { grid-template-columns: 200px 1fr; gap: 1.75rem; }
}
.team-profile picture {
  display: block; border-radius: 2px; overflow: hidden;
  background: var(--bg-warm); aspect-ratio: 4 / 5; max-width: 220px;
}
.team-profile img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block;
}
.team-profile-copy h3 { margin-bottom: .15rem; }
.team-profile-copy .role {
  color: var(--teal-deep); font-weight: 600; font-size: .8rem; margin-bottom: .65rem;
  letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-sans);
}
.team-profile-copy p { color: var(--muted); font-size: .95rem; max-width: 32rem; }

.team-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.team-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
}
.team-card picture { width: 96px; height: 96px; display: block; border-radius: 2px; overflow: hidden; }
.team-card img {
  width: 96px; height: 96px; object-fit: cover; object-position: center 15%; border-radius: 2px; background: var(--bg-warm);
}
.team-card h3 { margin-bottom: .15rem; }
.team-card .role {
  color: var(--teal-deep); font-weight: 600; font-size: .8rem; margin-bottom: .45rem;
  letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-sans);
}
.team-card p { color: var(--muted); font-size: .9rem; }

/* Forms */
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; max-width: 36rem;
}
.form label {
  display: block; font-weight: 600; font-size: .78rem; color: var(--ink);
  margin: .85rem 0 .3rem; letter-spacing: .04em; text-transform: uppercase;
}
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 2px;
  font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}
.form .hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-note {
  background: #faf6ea; border: 1px solid #e5d7a6; color: #8a7340;
  border-radius: 2px; padding: .55rem .75rem; font-size: .8rem; font-weight: 500; margin-bottom: 1rem;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 320px; background: var(--bg-warm); box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
.site-footer {
  background: var(--bg-ink); color: rgba(255,255,255,.65); padding: 3rem 0 6.5rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9fd9de; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; } }
.site-footer h3 {
  color: #fff; font-size: .7rem; margin-bottom: 1rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  font-family: var(--font-sans);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .4rem 0; font-size: .92rem; }
.site-footer p { font-size: .92rem; }
.footer-bottom {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  color: rgba(255,255,255,.4);
}

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { width: 100%; padding: .8rem .3rem; font-size: .72rem; letter-spacing: .03em; }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
}

.page-hero {
  background: var(--bg-warm);
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}
.page-hero::before { display: none; }
.comfort {
  border-left: 2px solid var(--teal);
  background: transparent;
  padding: .85rem 0 .85rem 1.15rem;
  color: var(--muted); font-size: .98rem;
}
.comfort strong { color: var(--ink); font-weight: 600; }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { position: relative; padding-left: 1.35rem; margin: .5rem 0; color: var(--muted); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--teal);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.cta-band .hero-actions { margin-bottom: 0; }

.footer-endorsement {
  font-size: .85rem; color: rgba(255,255,255,.55); margin-top: -.25rem;
}
.footer-endorsement .ph { border-color: rgba(229,215,166,.5); }

/* About closing */
.about-close {
  display: grid; gap: 2.5rem;
  padding-bottom: .5rem;
}
@media (min-width: 800px) {
  .about-close { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
.about-close p { color: var(--muted); max-width: 36rem; }
.about-cta {
  background: var(--bg-warm); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
}
.about-cta h2 { margin-bottom: .5rem; }
.about-cta p { margin-bottom: 1.1rem; }

/* FAQ */
.faq-layout {
  display: grid; gap: 1.75rem; align-items: start;
}
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 3rem; }
}
.faq-intro h2 { margin-bottom: .5rem; }
.faq-intro p { color: var(--muted); max-width: 22rem; margin: 0; }
.faq-panel { min-width: 0; }
.faq-list {
  background: #fff;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  padding: 19px 48px 19px 22px;
  position: relative;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-weight: 500; font-size: 1.15rem; color: var(--teal-deep);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.faq-body {
  padding: 0 22px 22px;
}
.faq-body p {
  margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 40rem;
}
.faq-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.faq-cta h3 {
  font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 .35rem;
}
.faq-cta p { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.reviews-summary .section-head { margin-bottom: 0; }


/* Static map (Google embed unreliable without API key; OSM tiles saved locally) */
.map-static {
  display: block; position: relative; text-decoration: none; color: inherit;
  overflow: hidden; border-radius: inherit;
}
.map-static img {
  width: 100%; height: 340px; object-fit: cover; display: block;
  background: var(--bg-warm);
}
.map-static-label {
  position: absolute; left: .85rem; bottom: .85rem;
  background: rgba(20,32,40,.88); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .45rem .7rem; border-radius: 2px;
}
.map-static:hover .map-static-label { background: var(--teal-deep); }
.map-attr {
  margin: .55rem 0 0; font-size: .72rem; color: var(--muted); line-height: 1.4;
}
.map-attr a { color: var(--muted); text-decoration: underline; }
.map-wrap { position: relative; }

/* v8 mobile polish */
@media (max-width: 899px) {
  .faq-item summary { min-height: 48px; }
  .map-static img { height: 240px; }
  .form input, .form select, .form textarea { font-size: 16px; min-height: 44px; }
  .form textarea { min-height: 6.5rem; }
  .nav-cta .btn, .mobile-bar .btn { min-height: 44px; }
}


/* v9 — mobile chrome (desktop composition unchanged) */
@media (max-width: 899px) {
  .topbar-addr { display: none; }
  .topbar .container { justify-content: flex-start; }
  .nav { padding: .65rem 0; }
  /* Space for fixed mobile bar so content is never covered (v13: bar ~68px + headroom) */
  body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 1.5rem; }
  body.mobile-bar-hidden { padding-bottom: 0; }
  body.mobile-bar-hidden .mobile-bar {
    display: none !important;
  }
  /* While appointment form is in view: single-tier compact header (no sticky two-tier) */
  body.form-in-view .topbar { display: none; }
  body.form-in-view .site-header {
    position: static;
    backdrop-filter: none;
  }
}

/* v15 — mobile dentist / profile: native 4:5 (no top crop); size-capped so bio isn't dominated */
@media (max-width: 799px) {
  .meet--featured .photo-slot--portrait.photo-slot--featured {
    aspect-ratio: 4 / 5;
    max-height: min(55vh, 320px);
    max-width: min(100%, 256px); /* 320 * 4/5 */
    width: 100%;
    margin-inline: 0;
    background: transparent;
  }
  .meet--featured .photo-slot--portrait.photo-slot--featured img {
    object-fit: cover;
    object-position: center top;
  }
  /* Extra space beneath image before bio */
  .meet--featured {
    gap: 2.25rem;
    align-items: start;
  }
  .meet--featured .meet-copy {
    padding-top: .35rem;
  }
  /* Team profile — mobile portrait restraint */
  .team-profile picture {
    aspect-ratio: 1 / 1;
    max-height: min(55vh, 240px);
    max-width: min(100%, 240px);
  }
  .team-profile img {
    object-position: center 18%;
  }
  .team-profile {
    gap: 1.75rem;
  }
}

@media (max-width: 899px) {
  /* Sticky bar clearance: padding = bar height + safe-area (bar ~68px; keep headroom for 44px buttons + padding) */
  body {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
  body.mobile-bar-hidden {
    padding-bottom: 0;
  }
  /* Scroll targets clear the fixed bar when navigated to */
  .meet--featured,
  .meet-copy,
  .team-profile,
  .team-profile-copy,
  section {
    scroll-margin-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
  /* Last interactive bits in dentist block stay clear of the bar when scrolled into view */
  .meet--featured .meet-links,
  .meet--featured .meet-copy > :last-child,
  .team-profile-copy > :last-child {
    scroll-margin-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
}

.form-success {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  max-width: 36rem;
  outline: none;
}
.form-success h2 {
  margin: 0 0 .65rem;
  font-size: 1.45rem;
}
.form-success p { color: var(--muted); margin: 0 0 .85rem; }
.form-success p:last-child { margin-bottom: 0; }
.form-success a { font-weight: 600; }

/* —— Google reviews section (mockup; scoped — does not alter existing layouts) —— */
.reviews-section {
  padding: 3.25rem 0 3.5rem;
  background: var(--bg-warm);
}
.reviews-section .section-head { margin-bottom: 1.5rem; }
.reviews-section .section-head p {
  color: var(--muted); max-width: 36rem; margin: 0;
}
.reviews-overall {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  margin: 0 0 1.75rem;
}
.reviews-overall-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
}
.reviews-overall .stars {
  color: var(--teal); letter-spacing: .08em; font-size: 1.15rem;
  line-height: 1;
}
.reviews-overall .score {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.reviews-overall .count {
  margin: 0;
  color: var(--muted); font-size: .95rem;
}
.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.25rem;
  display: flex; flex-direction: column; gap: .65rem;
  min-height: 100%;
}
.review-card .stars {
  color: var(--teal); letter-spacing: .06em; font-size: .95rem; line-height: 1;
}
.review-card blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.review-card footer {
  margin-top: .35rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--muted);
}
.review-card footer strong {
  color: var(--ink); font-weight: 600; display: block;
  font-size: .92rem; margin-bottom: .1rem;
}
.reviews-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.25rem;
  margin-top: 1.75rem;
}
.reviews-leave-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
}
.reviews-leave-link:hover,
.reviews-leave-link:focus-visible {
  color: var(--teal);
}
.reviews-dots {
  display: none;
  justify-content: center;
  gap: .45rem;
  margin: 0 0 1rem;
}
.reviews-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.reviews-dot.is-active {
  background: var(--teal);
}
.reviews-dot:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
@media (max-width: 799px) {
  .reviews-dots { display: flex; }
  .reviews-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: .5rem;
    margin-inline: calc(-1 * min(1.25rem, 5vw));
    padding-inline: min(1.25rem, 5vw);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reviews-track::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 min(88%, 300px);
    scroll-snap-align: start;
    min-height: 0;
    height: auto;
    gap: .45rem;
    padding: 1.15rem 1.15rem 1rem;
  }
  .review-card blockquote { flex: 0 1 auto; }
  .review-card footer {
    margin-top: 0; /* cut gap above the name so card hugs text */
  }
}
.mockup-banner {
  background: #faf6ea;
  border-bottom: 1px solid #e5d7a6;
  color: #8a7340;
  font-size: .85rem;
  padding: .65rem 0;
}
.mockup-banner .container { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; }
.mockup-banner strong { color: var(--ink); font-weight: 600; }
.mockup-context {
  padding: 1.5rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.mockup-context code {
  font-size: .85em;
  background: var(--bg-warm);
  padding: .1rem .35rem;
  border-radius: 2px;
}
