/* ============================================================
   Richardson Family & Implant Dentistry — Design Layer v1
   Loaded on themed pages only, over the verified clone base.
   Identity kept: Bodoni URW + Raleway, ink/ivory/gold, marble.
   Adds: radius system, layered elevation, motion, refinement.
   ============================================================ */

:root {
  --ink: #12100c;
  --ink-soft: #2b2921;
  --ivory: #faf9f6;
  --paper: #fffdf9;
  --gold: #c9a24b;
  --gold-deep: #a8842f;
  --champagne: #e8d9a8;
  --gold-grad: linear-gradient(135deg, #e6d193 0%, #cda54d 48%, #a8842f 100%);
  --r-card: 20px;
  --r-frame: 24px;
  --r-input: 12px;
  --sh-rest: 0 1px 2px rgba(18, 16, 12, 0.06), 0 20px 44px -26px rgba(18, 16, 12, 0.28);
  --sh-hover: 0 2px 4px rgba(18, 16, 12, 0.08), 0 32px 60px -26px rgba(18, 16, 12, 0.38);
  --sh-gold: 0 6px 18px -6px rgba(168, 132, 47, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: var(--champagne); color: var(--ink); }
body { background: var(--ivory); }

/* ---------- Header: condensing sticky bar + CTA pill ---------- */
#header {
  transition: box-shadow 350ms var(--ease), background-color 350ms var(--ease);
}
body.is-scrolled #header {
  background: rgba(250, 249, 246, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(18, 16, 12, 0.05), 0 12px 32px -18px rgba(18, 16, 12, 0.25);
}
.theme-cta-pill {
  display: none;
  align-self: center;
  margin: 0 22px 0 6px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--ink);
  font-family: raleway, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--sh-gold);
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease);
}
body.is-scrolled .theme-cta-pill {
  display: inline-flex;
  animation: theme-rise 400ms var(--ease) both;
}
.theme-cta-pill:hover {
  box-shadow: 0 10px 26px -8px rgba(168, 132, 47, 0.65);
  transform: translateY(-2px);
}
@media (max-width: 1023.98px) {
  .theme-cta-pill { display: none; }
}

/* ---------- Hero: real typography, staggered entrance ---------- */
.theme-home .theme-hero-copy, .theme-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6vw 7vh;
  pointer-events: none;
}
.theme-hero-copy > * { pointer-events: auto; }
.theme-hero-kicker {
  margin: 0 0 18px;
  font-family: raleway, sans-serif;
  font-size: clamp(1.1rem, 1.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
}
.theme-hero-title {
  margin: 0;
  font-family: bodoni-urw, serif;
  font-weight: 500;
  font-size: clamp(3.4rem, 6.2vw, 7rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.theme-hero-title span { color: #ddba62; }
.theme-hero-quote {
  margin: 22px 0 0;
  font-family: bodoni-urw, serif;
  font-style: italic;
  font-size: clamp(1.7rem, 1.8vw, 2.2rem);
  color: rgba(255, 255, 255, 0.92);
}
.theme-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
}
.theme-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: var(--ink);
  font-family: raleway, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--sh-gold);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.theme-btn-gold .icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--ink);
  transition: transform 250ms var(--ease);
}
.theme-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(168, 132, 47, 0.7);
}
.theme-btn-gold:hover .icon { transform: translateX(4px); }
.theme-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 16, 12, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: raleway, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 250ms var(--ease), border-color 250ms var(--ease);
}
.theme-review-badge:hover {
  background: rgba(18, 16, 12, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}
.theme-stars { color: #e6c76a; letter-spacing: 0.12em; }

/* hero entrance */
.theme-hero-copy > * {
  opacity: 0;
  transform: translateY(26px);
  animation: theme-rise 900ms var(--ease) forwards;
}
.theme-hero-copy > :nth-child(1) { animation-delay: 150ms; }
.theme-hero-copy > :nth-child(2) { animation-delay: 320ms; }
.theme-hero-copy > :nth-child(3) { animation-delay: 520ms; }
.theme-hero-copy > :nth-child(4) { animation-delay: 700ms; }
@keyframes theme-rise {
  to { opacity: 1; transform: none; }
}
/* slow, subtle Ken Burns on the hero photograph */
.sc-4f58533e-1 img {
  animation: theme-kenburns 16s var(--ease) forwards;
  transform-origin: 60% 35%;
}
@keyframes theme-kenburns {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
/* the old bottom Schedule bar is superseded by the in-hero CTA + header pill —
   HOMEPAGE ONLY: on inner pages that bar is the primary hero CTA, keep it */
.theme-home .sc-4f58533e-6 { display: none !important; }

/* ---------- Sheet layering: content plane over the hero ---------- */
#modules {
  position: relative;
  z-index: 40;
  margin-top: -56px;
  border-radius: 36px 36px 0 0;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: 0 -34px 70px -44px rgba(0, 0, 0, 0.55);
}

/* ---------- Feature tiles -> ivory cards with gold medallions ---------- */
.sc-d44b0dfc-0 {
  background: transparent !important;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
}
.sc-9fddad04-2.heKzep { padding: 12px; }
.sc-d44b0dfc-1 {
  background: var(--paper) !important;
  border-radius: var(--r-card);
  border: 1px solid rgba(201, 162, 75, 0.22);
  box-shadow: var(--sh-rest);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.sc-d44b0dfc-1:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-hover);
}
.sc-d44b0dfc-1 h4 { color: var(--ink) !important; }
.sc-d44b0dfc-1 p { color: var(--ink-soft) !important; }
.sc-d44b0dfc-2 {
  width: 68px !important;
  height: 68px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--gold-grad) !important;
  border-radius: 50%;
  box-shadow: var(--sh-gold);
}
.sc-d44b0dfc-2 i {
  color: var(--ink) !important;
  font-size: 2.4rem !important;
}

/* ---------- Doctor section: cinematic rounded frame ---------- */
.sc-553fbfa1-15 {
  border-radius: var(--r-frame);
  overflow: hidden;
  box-shadow: var(--sh-hover);
}
.sc-553fbfa1-3 { padding: 0 clamp(20px, 4vw, 64px) clamp(24px, 3vw, 48px); }

/* ---------- Accreditation logos: quiet by default, colorful on hover ---------- */
.sc-4fea4bc2-1 .slick-slide img {
  filter: grayscale(1) opacity(0.55);
  transition: filter 300ms var(--ease), transform 300ms var(--ease);
}
.sc-4fea4bc2-1 .slick-slide:hover img {
  filter: none;
  transform: scale(1.06);
}

/* ---------- Services rows: round the two painted panels only (the gold
   step-number badges overlap the column edges and must never be clipped) ---------- */
.sc-41110d84-0 .sc-c109d6c4-0 {
  border-radius: var(--r-frame);
  overflow: hidden;
  box-shadow: var(--sh-rest);
}
.sc-41110d84-0 .sc-41110d84-9 {
  border-radius: var(--r-frame);
  box-shadow: var(--sh-rest);
}
.sc-41110d84-0 .sc-41110d84-14 {
  box-shadow: var(--sh-gold);
}
.sc-2719011e-1.evRaze {
  transition: color 250ms var(--ease);
}
.sc-2719011e-1.evRaze:hover { color: var(--gold-deep); }
.sc-2719011e-1.evRaze .icon {
  transition: transform 250ms var(--ease);
}
.sc-2719011e-1.evRaze:hover .icon { transform: translateX(5px); }

/* ---------- Reviews: elevated cards + oversized quote mark ---------- */
#reviews .ti-review-item { padding: 10px 12px; }
#reviews .ti-review-item .ti-inner {
  position: relative;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 75, 0.18);
  box-shadow: var(--sh-rest);
  padding: 22px 20px 18px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
  overflow: visible;
}
#reviews .ti-review-item:hover .ti-inner {
  transform: translateY(-5px);
  box-shadow: var(--sh-hover);
}
#reviews .ti-review-item .ti-inner::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  right: 18px;
  font-family: bodoni-urw, serif;
  font-size: 6.4rem;
  line-height: 1;
  color: rgba(201, 162, 75, 0.4);
  pointer-events: none;
}
#reviews .ti-profile-img img { border-radius: 50%; }

/* ---------- Footer CTA: one rounded card ---------- */
footer > div:first-child {
  border-radius: var(--r-frame);
  overflow: hidden;
  margin-left: clamp(20px, 4vw, 64px);
  margin-right: clamp(20px, 4vw, 64px);
  box-shadow: var(--sh-hover);
}

/* ---------- Menu drawer: blur, rounded edge, cascading items ---------- */
.sc-e3d635ca-0.is-open {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sc-e3d635ca-1 {
  border-radius: 28px 0 0 28px;
  box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.6);
}
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li {
  opacity: 0;
  transform: translateX(26px);
  animation: theme-menu-in 480ms var(--ease) forwards;
}
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(1) { animation-delay: 60ms; }
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(2) { animation-delay: 120ms; }
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(3) { animation-delay: 180ms; }
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(4) { animation-delay: 240ms; }
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(5) { animation-delay: 300ms; }
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(6) { animation-delay: 360ms; }
.sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li:nth-child(7) { animation-delay: 420ms; }
@keyframes theme-menu-in {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Authored sections (holistic dentistry + reusable th- system)
   ============================================================ */
.th-section { padding: clamp(48px, 6vw, 96px) clamp(20px, 5vw, 72px); }
.th-wrap { max-width: 1240px; margin: 0 auto; }
.th-kicker {
  margin: 0 0 14px;
  font-family: raleway, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.th-h2 {
  margin: 0 0 22px;
  font-family: bodoni-urw, serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 3.4vw, 4.2rem);
  line-height: 1.12;
  color: var(--ink);
}
.th-h2 strong { color: var(--gold); font-weight: 500; }
.th-center { text-align: center; }
.th-body p {
  margin: 0 0 16px;
  font-family: raleway, sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.th-2col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.th-media {
  margin: 0;
  border-radius: var(--r-frame);
  overflow: hidden;
  box-shadow: var(--sh-hover);
}
.th-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.th-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.th-card {
  background: var(--paper);
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: var(--r-card);
  box-shadow: var(--sh-rest);
  padding: 30px 24px;
  text-align: center;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.th-card:hover { transform: translateY(-6px); box-shadow: var(--sh-hover); }
.th-card .th-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: var(--sh-gold);
}
.th-card .th-ico i { font-size: 2.2rem; color: var(--ink); }
.th-card h3 {
  margin: 0 0 10px;
  font-family: bodoni-urw, serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--ink);
}
.th-card p {
  margin: 0;
  font-family: raleway, sans-serif;
  font-size: 1.4rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.th-creds {
  background: var(--ink);
  border-radius: var(--r-frame);
  margin-left: clamp(20px, 4vw, 64px);
  margin-right: clamp(20px, 4vw, 64px);
  box-shadow: var(--sh-hover);
}
.th-creds .th-kicker { color: var(--champagne); }
.th-creds h2 { color: #fff; }
.th-creds p { color: rgba(255, 253, 249, 0.75); }
.th-cred-logos {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.th-cred-logos img {
  height: 72px;
  width: auto;
  background: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--sh-rest);
}

.th-faq { max-width: 900px; margin: 0 auto; }
.th-faq-item { border-bottom: 1px solid rgba(18, 16, 12, 0.12); }
.th-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 6px;
  font-family: bodoni-urw, serif;
  font-size: 2rem;
  color: var(--ink);
  cursor: pointer;
}
.th-faq-q .icon { width: 1.6rem; height: 1.6rem; fill: var(--gold-deep); flex: 0 0 auto; }
.th-faq-a { padding: 0 6px 22px; }
.th-faq-a p {
  margin: 0;
  font-family: raleway, sans-serif;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.th-cta {
  text-align: center;
  background: var(--gold-grad);
  border-radius: var(--r-frame);
  margin: 0 clamp(20px, 4vw, 64px) clamp(48px, 6vw, 88px);
  padding: clamp(40px, 5vw, 72px) 24px;
  box-shadow: var(--sh-gold);
}
.th-cta h2 { color: var(--ink); margin-bottom: 10px; }
.th-cta p { font-family: raleway, sans-serif; font-size: 1.6rem; color: rgba(18, 16, 12, 0.75); margin: 0 0 26px; }
.th-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: raleway, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.th-btn-dark .icon { width: 1.5rem; height: 1.5rem; fill: #fff; transition: transform 250ms var(--ease); }
.th-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(18, 16, 12, 0.5); }
.th-btn-dark:hover .icon { transform: translateX(4px); }

/* homepage holistic band */
.th-holistic-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  border-radius: var(--r-frame);
  overflow: hidden;
  margin: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 64px);
  background: var(--ink);
  box-shadow: var(--sh-hover);
}
.th-holistic-band .th-band-media { position: relative; min-height: 340px; }
.th-holistic-band .th-band-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.th-holistic-band .th-band-copy {
  padding: clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.th-holistic-band .th-kicker { color: var(--champagne); }
.th-holistic-band h2 { color: #fff; }
.th-holistic-band h2 strong { color: #ddba62; }
.th-holistic-band p {
  font-family: raleway, sans-serif;
  font-size: 1.55rem;
  line-height: 1.7;
  color: rgba(255, 253, 249, 0.8);
  margin: 0 0 28px;
}

@media (max-width: 1023.98px) {
  .th-2col, .th-holistic-band { grid-template-columns: 1fr; }
  .th-grid4 { grid-template-columns: 1fr 1fr; }
  .th-holistic-band .th-band-media { min-height: 260px; }
}
@media (max-width: 599.98px) {
  .th-grid4 { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveals (elements tagged by motion.js) ---------- */
.theme-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.theme-reveal.theme-in {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion: calm everything ---------- */
@media (prefers-reduced-motion: reduce) {
  .theme-hero-copy > *,
  .sc-4f58533e-1 img,
  .sc-e3d635ca-0.is-open .sc-e3d635ca-8 ul.is-current > li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .theme-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   Inner pages — hash-agnostic polish
   motion.js tags real content imagery as .theme-media (size-gated,
   excludes hero/logo/icons/before-after), so rounding never clips
   overlapping badges or full-bleed heroes.
   ============================================================ */
.theme-media {
  border-radius: var(--r-frame);
  overflow: hidden;
  box-shadow: var(--sh-rest);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
a:hover > .theme-media,
.theme-media:hover {
  box-shadow: var(--sh-hover);
}

/* FAQ / accordion rows */
.react-slidedown { border-radius: 0 0 var(--r-input) var(--r-input); }
[data-acc-wired] {
  border-radius: var(--r-input);
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
[data-acc-wired]:hover { color: var(--gold-deep); }

/* form controls */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
textarea, select {
  border-radius: var(--r-input) !important;
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.28);
}
