/* Roseville Family Dentistry — cosmetic LP. Mobile first. */

:root {
  --bg: #f6f3ee;          /* warm off-white */
  --bg-panel: #efe5e0;    /* hero right panel */
  --surface: #ffffff;
  --surface-soft: #faf8f5;
  --ink: #2b2a29;         /* charcoal */
  --ink-soft: #55514e;
  --muted: #7b7571;
  --mauve: #7a4f5c;       /* accent */
  --blush: #d9a79c;       /* borders, eyebrows on dark */
  --line: #e4ddd6;
  --dark: #2d2c2b;
  --dark-card: #3a3938;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 8px;
  --wrap: 1180px;
  --gutter: 20px;
  --mobile-bar: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  padding-bottom: var(--mobile-bar);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:target, #book { scroll-margin-top: 96px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.35rem, 7vw, 3.9rem); margin-bottom: 1.1rem; }
h1 em { font-style: normal; color: var(--mauve); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.eyebrow {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mauve); margin-bottom: 0.8rem;
}
.small { font-size: 0.9rem; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 0.95rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border-radius: 6px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blush); outline-offset: 2px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); }
.btn-outline { border-color: var(--mauve); color: var(--mauve); background: transparent; }
.btn-outline:hover { background: var(--mauve); color: #fff; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand img { width: 72px; height: auto; }
.header-nav, .header-cta { display: none; }
.header-phone {
  margin-left: auto; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.header-phone::before { content: "☎\FE0E"; margin-right: 0.4rem; color: var(--mauve); }

/* Hero */
.hero { position: relative; padding: 36px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; position: relative; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 36rem; }
.lede strong { color: var(--ink); }
.hero-ticks { font-size: 1.05rem; margin: 0; max-width: 34rem; }
.form-card { order: 2; }
.hero-photo { order: 3; margin: 0; position: relative; }
.hero-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 920 / 790; object-fit: cover; }
.hero-photo figcaption {
  background: var(--surface); border-left: 3px solid var(--mauve);
  padding: 0.9rem 1.1rem; font-size: 0.92rem; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin: -32px 16px 0; position: relative; max-width: 22rem;
}

/* Form */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 20px; box-shadow: 0 10px 30px rgba(43,42,41,.07);
}
.form-title { font-size: 1.6rem; margin-bottom: 0.35rem; }
.form-sub { font-size: 0.95rem; color: var(--ink-soft); }
/* Jotform iframe. min-height holds its space while it loads (no layout jump). */
.form-embed { min-height: 675px; margin: 0 -8px; }
.form-embed iframe { width: 100% !important; }
.form-micro { font-size: 0.82rem; color: var(--muted); margin: 0.5rem 0 0; }
.form-card.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--blush); } to { box-shadow: 0 10px 30px rgba(43,42,41,.07); } }

/* Split sections (heading left, body right) */
.split { display: grid; gap: 28px; }
.split-head p { color: var(--ink-soft); }

/* Specials */
.specials { background: var(--surface); }
.split-body { display: grid; gap: 16px; align-content: start; }
.offer-card {
  background: var(--surface-soft); border: 1px solid var(--line); border-left: 3px solid var(--blush);
  border-radius: var(--radius); padding: 24px 22px;
}
.offer-card h3 { margin-bottom: 0.8rem; }
.offer-card p { color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.8rem; height: 0.45rem;
  border-left: 2px solid var(--mauve); border-bottom: 2px solid var(--mauve); transform: rotate(-45deg);
}
.ticks-light li::before { border-color: var(--blush); }

/* Gallery */
.dark { background: var(--dark); color: #f3f0ec; }
.dark .eyebrow { color: var(--blush); }
.section-intro { max-width: 36rem; color: #d8d3ce; }
.cases {
  list-style: none; padding: 0; margin: 32px calc(var(--gutter) * -1) 32px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px;
  scrollbar-width: thin;
}
.case {
  scroll-snap-align: start; background: var(--dark-card); border: 1px solid #4a4847;
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.case img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.case-text { padding: 14px 16px 18px; }
.case h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; margin-bottom: 0.3rem; }
.case p { font-size: 0.86rem; color: #cfc9c3; margin: 0; line-height: 1.45; }

/* Dr. Reddy */
.doctor { background: var(--surface-soft); }
.creds { list-style: none; padding: 1.1rem 0 0; margin: 1.4rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.55rem; }
.creds li { padding-left: 1.4rem; position: relative; }
.creds li::before { content: "—"; position: absolute; left: 0; color: var(--blush); }
.trust-line { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; color: var(--ink) !important; margin: 0; }
.doctor-photos { position: relative; padding-bottom: 64px; }
.doc-main { border-radius: var(--radius); width: 88%; }
.doc-sign {
  position: absolute; right: 0; bottom: 0; width: 42%;
  border-radius: var(--radius); border: 6px solid var(--surface-soft);
}

/* Reviews */
.review-grid { display: grid; gap: 16px; margin-top: 24px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.review figcaption { font-size: 0.88rem; color: var(--muted); }

/* FAQ */
.faq { background: var(--surface); }
.faq-list { gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0; font-size: 1.05rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 300; color: var(--mauve);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); padding-right: 1rem; margin-bottom: 1.2rem; }

/* Final CTA */
.final { background: var(--surface); padding-top: 0; }
.cta-card {
  background: var(--dark); color: #f3f0ec; border-radius: 12px; padding: 36px 24px;
  display: grid; gap: 24px;
}
.cta-card p { color: #d8d3ce; }
.cta-card .ticks { margin-bottom: 1.5rem; }
.cta-call { margin: 1rem 0 0; font-size: 0.95rem; }
.cta-call a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.86rem; color: var(--ink-soft); }
.footer-inner { display: grid; gap: 16px; }
.footer-logo { width: 88px; }
.nap { color: var(--ink); }
.nap a { font-weight: 600; }
.disclaimer { font-size: 0.8rem; color: var(--muted); margin: 0; max-width: 46rem; }

/* Mobile sticky bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .form-card { padding: 28px; }
  .cases { grid-auto-columns: 44%; }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .section { padding: 96px 0; }

  .site-header { position: sticky; top: 0; z-index: 40; }
  .header-inner { min-height: 76px; }
  .brand img { width: 84px; margin: 6px 0; }
  .header-nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.9rem; }
  .header-nav a { text-decoration: none; color: var(--ink-soft); }
  .header-nav a:hover { color: var(--ink); }
  .header-phone { margin-left: 0.5rem; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 0.6rem 1.1rem; font-size: 0.88rem; }

  .hero { padding: 64px 0 88px; }
  .hero::before {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 26%;
    background: var(--bg-panel);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-areas: "copy photo" "form photo";
    column-gap: 56px; row-gap: 32px; align-items: start;
  }
  .hero-copy { grid-area: copy; }
  .form-card { grid-area: form; max-width: 520px; }
  .hero-photo { grid-area: photo; align-self: start; margin-top: 32px; position: sticky; top: 108px; }
  .hero-photo img { aspect-ratio: 440 / 560; }
  .hero-photo figcaption { position: absolute; left: -28px; bottom: 36px; margin: 0; max-width: 250px; }

  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split-head { position: sticky; top: 110px; }
  .doctor .split-head { position: static; }

  .cases { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 40px 0; padding: 0; }

  .doctor .split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .doctor-photos { padding-bottom: 96px; }

  .cta-card { grid-template-columns: 1.1fr 1fr; padding: 56px; gap: 56px; align-items: center; }
  .cta-card h2 { font-size: 2.6rem; }

  .footer-inner { grid-template-columns: auto 1fr; }
}
