/* =========================================================
   Radiant Dental — Design System (mobile-first)
   ========================================================= */

:root {
  /* Brand colors, sampled from the logo */
  --blue-900: #16264d;
  --blue-800: #1f3670;
  --blue-700: #274694;
  --blue-600: #2c4fa3;   /* primary */
  --blue-500: #3d63c2;
  --blue-100: #e7edfb;
  --blue-50:  #f3f6fd;

  --orange-600: #e07f0a;
  --orange-500: #f7941d; /* accent */
  --orange-100: #fef0dc;

  --ink: #182238;
  --body: #4f5867;
  --muted: #838da0;
  --border: #e7e4da;

  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-alt: #f6f3ec;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(22, 38, 77, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 38, 77, 0.10);
  --shadow-lg: 0 20px 48px rgba(22, 38, 77, 0.16);

  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --header-h: 68px;
  --stickybar-h: 64px;

  --font-display: 'Marcellus', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 400;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section { padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); }
.section-tint { background: var(--blue-50); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 0.6em;
}
.section-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--body); font-size: 1.05rem; }
.lede { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-600); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: var(--blue-800); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--blue-900); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0.55rem 1.15rem; font-size: 0.88rem; }

/* ---------- Trust badges ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
}
.badge i { color: var(--orange-500); }
.badge-row.on-light .badge {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-800);
}
.badge-row.on-light .badge i { color: var(--orange-600); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 1.05rem;
}

.nav-links {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  left: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--surface);
  flex-direction: column;
  padding: 1.5rem var(--pad) 2rem;
  overflow-y: auto;
  z-index: 899;
}
.nav-links.show { display: flex; }
.nav-links a {
  text-decoration: none;
  color: var(--blue-900);
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-links a.is-active { color: var(--orange-600); }
.nav-links .btn { margin-top: 1.25rem; color: #fff; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Mobile sticky booking bar — the whole point: zero friction
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem var(--pad);
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(22,38,77,0.08);
}
.sticky-cta a { flex: 1; }
.sticky-cta .btn { width: 100%; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(2.5rem, 10vw, 5rem) 0 clamp(3rem, 12vw, 6rem);
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 85% 20%, rgba(247,148,29,0.25), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero-eyebrow i { color: var(--orange-500); }
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero .lede { color: rgba(255,255,255,0.86); max-width: 46ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.8rem;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slideshow { position: absolute; inset: 0; }
.hero-slideshow img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow img.active { opacity: 1; }
.hero-media-badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: var(--surface);
  color: var(--blue-900);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: calc(100% - 2rem);
}
.hero-media-badge i { color: var(--orange-500); font-size: 1.2rem; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Simple inner hero (non-home pages) */
.page-hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: #fff;
  padding: clamp(3rem, 10vw, 4.5rem) 0 clamp(2rem, 6vw, 3rem);
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 58ch; margin: 0 auto; }

/* =========================================================
   Cards & grids
   ========================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
/* 6 items specifically: 2 cols on mobile, 3 cols (2 clean rows) everywhere wider —
   never lets a 4-col grid leave an orphaned trailing row of 2 */
.stat-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }

.service-card { display: flex; flex-direction: column; }
.service-card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.service-card p { font-size: 0.94rem; margin-bottom: 0; }

.stat-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-sm);
}
.stat-tile img { width: 100%; height: 100%; object-fit: cover; }
.stat-tile span {
  position: absolute;
  left: 0.6rem; bottom: 0.6rem; right: 0.6rem;
  background: rgba(24, 34, 56, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.team-card { text-align: center; }
.team-card img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.team-card .card-body { padding: 1.25rem 1.25rem 1.5rem; }
.team-card .role {
  color: var(--orange-600);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: block;
}
.team-card h3 { margin-bottom: 0.1rem; }
.team-card p:last-child { margin-bottom: 0; font-size: 0.92rem; }

.blog-card { display: flex; flex-direction: column; }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blog-card .card-body { display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 1.1rem; }
.blog-card p { font-size: 0.94rem; flex: 1; }
.blog-card .read-more { font-weight: 600; color: var(--blue-600); text-decoration: none; font-size: 0.9rem; }

.quote-card { padding: 1.5rem; }
.quote-card .stars { color: var(--orange-500); margin-bottom: 0.6rem; font-size: 0.9rem; }
.quote-card p { font-size: 0.95rem; color: var(--ink); }
.quote-card .who { font-weight: 600; color: var(--blue-800); font-size: 0.85rem; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue-900);
  cursor: pointer;
}
.faq-q i { color: var(--orange-500); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--body); font-size: 0.95rem; margin: 0; }
.faq-item.open .faq-a { max-height: 400px; }

/* =========================================================
   Hours / map / contact strip
   ========================================================= */
.info-strip { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .info-strip { grid-template-columns: 1fr 1.4fr; } }
.hours-card, .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.hours-card table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-card td { padding: 0.45rem 0; border-bottom: 1px dashed var(--border); }
.hours-card tr:last-child td { border-bottom: none; }
.hours-card td:last-child { text-align: right; color: var(--ink); font-weight: 500; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem;
}
.contact-list i {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* =========================================================
   Bottom CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4rem) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 1.6rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.75); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { height: 40px; margin-bottom: 0.9rem; background: #fff; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: underline; }

/* Give room at the bottom on mobile so the sticky bar never covers content */
@media (max-width: 899px) {
  body { padding-bottom: var(--stickybar-h); }
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
  .hamburger { display: none; }
  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    background: none;
    padding: 0;
    top: auto;
    right: auto;
    left: auto;
    height: auto;
    overflow: visible;
  }
  .nav-links a { border-bottom: none; padding: 0.5rem 0; font-size: 0.95rem; }
  .nav-links .btn { margin-top: 0; margin-left: 0.5rem; }
}

/* =========================================================
   Cookie notice
   ========================================================= */
#cookie-notice {
  position: fixed;
  left: 1rem; right: 1rem;
  bottom: calc(var(--stickybar-h) + 0.75rem);
  z-index: 940;
  background: var(--blue-900);
  color: #fff;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}
#cookie-notice p { margin: 0; font-size: 0.85rem; flex: 1 1 240px; color: rgba(255,255,255,0.85); }
#cookie-notice a { color: var(--orange-500); }
#cookie-notice button {
  background: var(--orange-500);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
#cookie-notice button:hover { background: var(--orange-600); }
@media (min-width: 900px) {
  #cookie-notice { bottom: 1rem; }
}

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
