/* =========================================================================
   SITE COMPONENTS  --  Rubin Orthodontics
   Layout + components only. ALL colors/fonts/spacing come from theme.css
   tokens, so this file rarely changes. To re-skin, edit theme.css instead.
   ========================================================================= */

/* ---- Reset / base ---------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg-2); font-family: var(--font-body);
  font-size: var(--base-font-size); line-height: var(--base-line);
  -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--fg); font-weight: 700;
  line-height: 1.1; letter-spacing: var(--tracking-display); }
.wrap { max-width: var(--maxw); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 0.78rem;
  font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--meta); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent-soft); }

/* ---- Action button (coral, the page's only action color) ------------- */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--cta); color: var(--cta-on); font-weight: 700; font-size: 1.04rem;
  padding: 16px 28px; border-radius: var(--radius-pill); border: 1px solid var(--cta);
  box-shadow: var(--elev-cta); transition: background 150ms ease; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-ghost { display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
  color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 15px 26px; transition: border-color 150ms ease; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.ic { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- Header ---------------------------------------------------------- */
header.nav { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft); }
.nav-in { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand b { font-family: var(--font-script); font-style: italic; font-weight: 700;
  font-size: 1.7rem; color: var(--accent); letter-spacing: -0.01em; }
.brand small { font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--fg); margin-top: 2px; font-weight: 600; }
.nav-links { display: flex; gap: 24px; font-size: 0.95rem; font-weight: 500; color: var(--fg); }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-current { color: var(--accent); }
.nav-phone { font-weight: 700; color: var(--fg); font-size: 0.95rem; display:inline-flex; align-items:center; gap:7px; }
.nav-phone .ic { color: var(--accent); }
.nav .nav-cta { padding: 11px 20px; font-size: 0.95rem; box-shadow: none; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-phone { margin-left: auto; }
  .nav .nav-cta { display: none; }   /* sticky bottom bar covers the CTA on mobile */
}

/* ---- Home hero (asymmetric image-bleed) ------------------------------ */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 0; align-items: stretch; }
.hero-copy { padding-top: 76px; padding-bottom: 84px; padding-right: 48px; align-self: center; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4rem); font-weight: 800; margin: 16px 0 18px; max-width: 13ch; }
.hero h1 .swoosh { color: var(--accent); }
.hero .lede { font-size: 1.16rem; color: var(--fg-2); max-width: 42ch; margin-bottom: 28px; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 26px; }
.hero-call { font-weight: 700; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.hero-call .ic { color: var(--accent); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust span { font-size: 0.8rem; font-weight: 600; color: var(--meta); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 14px; }
.hero-photo { position: relative; min-height: 520px; background: var(--surface-warm); overflow: hidden;
  border-bottom-left-radius: 64px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 0 32px; }
  .hero-photo { min-height: 320px; border-bottom-left-radius: 0;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .btn-cta { width: 100%; }
}

/* ---- Interior page hero (banner over warm tint) ---------------------- */
.page-hero { background: var(--surface-warm); border-bottom: 1px solid var(--border-soft); }
.page-hero .wrap { padding-top: 64px; padding-bottom: 60px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; margin: 14px 0 16px; max-width: 18ch; }
.page-hero .lede { font-size: 1.12rem; color: var(--fg-2); max-width: 56ch; }
.page-hero .hero-cta-row { margin-top: 26px; }
.crumb { font-size: 0.82rem; color: var(--fg-2); }   /* fg-2 clears AA on the warm-tint hero */
.crumb a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
.crumb a:hover { color: var(--accent); }

/* ---- Trust strip ----------------------------------------------------- */
.trust { background: var(--fg); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding-top: 26px; padding-bottom: 26px; }
.trust-item { padding-left: 20px; border-left: 1px solid rgba(231,242,239,0.18); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b { font-family: var(--font-display); font-weight: 700; color: var(--on-dark);
  font-size: 1.18rem; display: block; }
.trust-item span { color: var(--accent-soft); font-size: 0.82rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; } }

/* ---- Sections -------------------------------------------------------- */
.sec { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); }
.sec-soft { background: var(--surface-warm); }
.sec h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin: 10px 0 14px; }
.sec .sub { max-width: 56ch; color: var(--fg-2); margin-bottom: 40px; }

/* ---- Prose (article body) ------------------------------------------- */
.prose { max-width: 68ch; }
.prose.center { margin-left: auto; margin-right: auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 14px; }
.prose h3 { font-size: 1.28rem; color: var(--fg); margin: 30px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent-soft); }
.prose a:not(.btn-cta):not(.btn-ghost) { color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; }

/* two-column: prose + aside card */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.aside-card { background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--elev); position: sticky; top: 90px; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.aside-card p { font-size: 0.95rem; margin-bottom: 14px; }
.aside-card .row { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--fg);
  margin-bottom: 10px; font-size: 0.96rem; }
.aside-card .row .ic { color: var(--accent); }
@media (max-width: 860px) { .aside-card { position: static; } }

/* ---- Service grid ---------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 30px; transition: box-shadow 150ms ease; display: block; }
.svc:hover { box-shadow: var(--elev); }
.svc .tag { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-warm);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent); }
.svc h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc p { font-size: 0.96rem; }
.svc .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 700; font-size: 0.9rem; color: var(--accent); }

/* ---- Why / generic cards (3-up) -------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }
.why { background: var(--surface); border-radius: var(--radius-lg); border-top: 4px solid var(--accent-soft);
  padding: 28px; box-shadow: var(--elev); }
.why h3 { font-size: 1.18rem; margin-bottom: 8px; }
.why p { font-size: 0.95rem; }

/* ---- Steps (numbered process) ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; }
.step .n { counter-increment: step; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-warm);
  color: var(--accent); font-family: var(--font-display); font-weight: 800; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 14px; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: 0.94rem; }

/* ---- Doctor ---------------------------------------------------------- */
.doc-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-photo { background: var(--surface-warm); border-radius: var(--radius-lg); aspect-ratio: 4/5;
  overflow: hidden; box-shadow: var(--elev); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doc h2 { margin-bottom: 14px; }
.doc p { margin-bottom: 14px; max-width: 52ch; }

/* ---- Reviews band (real Google reviews connect here; none fabricated) -- */
.rev { border: 1px dashed var(--accent-soft); border-radius: var(--radius-lg); background: var(--surface);
  padding: 34px; text-align: center; }
.rev .stars { color: var(--star); letter-spacing: 3px; font-size: 1.1rem; }
.rev p { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* ---- FAQ (accordion via <details>) ----------------------------------- */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-display);
  font-weight: 700; color: var(--fg); font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 24px 20px; color: var(--fg-2); font-size: 0.98rem; }

/* ---- Contact / location --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.contact-card .row .ic { color: var(--accent); margin-top: 3px; }
.contact-card .row b { font-family: var(--font-display); color: var(--fg); display: block; }
.map-frame { border: 0; width: 100%; height: 360px; border-radius: var(--radius-lg);
  box-shadow: var(--elev); background: var(--surface-warm); }
.note-pending { font-size: 0.86rem; color: var(--muted); font-style: italic; }

/* ---- Consult band ---------------------------------------------------- */
.consult { background: linear-gradient(135deg, var(--ink-grad-from) 0%, var(--ink-grad-to) 100%); color: var(--on-dark); }
.consult .wrap { padding-top: 70px; padding-bottom: 70px; text-align: center; }
.consult h2 { color: var(--on-dark); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.consult p { color: var(--accent-soft); max-width: 50ch; margin: 0 auto 28px; }
.consult-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.consult-call { color: var(--on-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius-pill); padding: 15px 26px; }

/* ---- Footer ---------------------------------------------------------- */
footer { background: var(--ink-deep); color: var(--on-dark-soft); padding-top: 56px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
footer b.fbrand { font-family: var(--font-script); font-style: italic; color: var(--on-dark);
  font-size: 1.4rem; display: block; margin-bottom: 10px; }
footer h4 { font-family: var(--font-display); color: var(--on-dark); font-size: 0.82rem;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: 0.93rem; }
footer a:hover { color: var(--on-dark); }
.foot-social { display: flex; gap: 12px; margin-top: 14px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22);
  display: inline-flex; align-items: center; justify-content: center; }
.foot-social a:hover { border-color: var(--accent-soft); color: var(--on-dark); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.8rem; opacity: 0.82;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- Sticky mobile call/consult bar ---------------------------------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  background: var(--surface); border-top: 1px solid var(--border); padding: 8px 10px; gap: 8px; }
.bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: var(--radius-sm); padding: 13px; }
.bar .b-call { border: 1px solid var(--accent); color: var(--accent); }
.bar .b-cta { background: var(--cta); color: var(--cta-on); }
@media (max-width: 900px) { .bar { display: flex; } footer { padding-bottom: 84px; } }

/* Official logo images (LOGOS.zip 2026-07-14) */
.brand img { height: 52px; width: auto; display: block; }
.foot-logo { height: 36px; width: auto; display: block; margin-bottom: 4px; }
@media (max-width: 720px) { .brand img { height: 40px; } }


/* Homepage hero: faded logo-animation backdrop under the header text */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; mix-blend-mode: multiply; opacity: 0; pointer-events: none;
  animation: heroVideoFade 2.2s ease 0.4s forwards; }
@keyframes heroVideoFade { to { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .hero-bg-video { display: none; } }

/* Homepage hero without photo: single column, video backdrop carries the band */
.hero-grid:not(:has(.hero-photo)) { grid-template-columns: 1fr; }
.hero-grid:not(:has(.hero-photo)) .hero-copy { padding: 104px 0 96px; max-width: 660px; }
