/* ═══════════════════════════════════════════════════════════════════
   Frontier Dental Center — Premium Design System 2026
   Inspired by top dental site patterns: Tend, Serenity Smiles,
   Grand Street Dental, Arbor Dental, Aesthetics Dental
   ═══════════════════════════════════════════════════════════════════ */

/* Google Fonts loaded via <link> in HTML — @import removed to prevent render-blocking */

:root {
  --navy:       #5C2A6B;
  --navy-dark:  #3A1545;
  --cyan:       #D4A853;
  --cyan-light: #F9F0DC;
  --warm:       #FEFCF8;
  --cream:      #F5EDD4;
  --gold:       #D4A853;
  --dark:       #1A0A22;
  --text:       #2C1A3A;
  --muted:      #6b7280;
  --border:     #E8DFF0;
  --white:      #ffffff;
  --radius:     16px;
  --shadow-sm:  0 2px 12px rgba(92,42,107,.07);
  --shadow-md:  0 8px 32px rgba(92,42,107,.12);
  --shadow-lg:  0 20px 60px rgba(92,42,107,.16);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─ Utility ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.text-center { text-align: center; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cyan); display: block; }

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-title em { color: var(--cyan); font-style: italic; }

.section-desc { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* ─ Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 30px; border-radius: 50px;
  font-size: 16px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary   { background: var(--navy);  color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(92,42,107,.25); }
.btn-cyan      { background: var(--cyan);  color: var(--white); }
.btn-cyan:hover { background: #B8922A; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,83,.35); }
.btn-outline   { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

/* ─ Sticky Book Bar ─────────────────────────────────────────────────────── */
.sticky-book {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.sticky-book-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--cyan); color: var(--white);
  padding: 14px 22px; border-radius: 50px;
  font-size: 16px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 8px 28px rgba(212,168,83,.4);
  transition: var(--transition);
  cursor: pointer; border: none;
}
.sticky-book-btn:hover { background: #B8922A; transform: translateY(-3px); }
.sticky-phone-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  padding: 11px 18px; border-radius: 50px;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(58,21,69,.3);
  transition: var(--transition);
}
.sticky-phone-btn:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ─ Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(92,42,107,.12); }

.header-top {
  background: var(--navy); padding: 6px 0;
  font-size: 16px;
}
.header-top-inner {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.header-contact-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end;
}
.header-social-row {
  display: flex; align-items: center; gap: 12px;
}
.header-social-link {
  color: rgba(255,255,255,.70); font-size: 16px;
  transition: var(--transition); display: flex; align-items: center;
}
.header-social-link:hover { color: var(--cyan); transform: translateY(-1px); }
.header-contact-link {
  color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px;
  transition: var(--transition); font-weight: 500; white-space: nowrap;
}
.header-contact-link:hover { color: var(--cyan); }
.header-contact-link i { font-size: 13px; }
.header-top-divider { color: rgba(255,255,255,.3); font-size: 16px; }

.header-main { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

/* Logo Rotator — cross-fades between new and old logo every 2 s */
.header-logo {
  position: relative;
  display: inline-block;
  width: 240px;
  height: 84px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: block;
}
.logo-slide.logo-active { opacity: 1; }

.main-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; }
.main-nav a {
  display: block; padding: 8px 16px; border-radius: 8px;
  font-size: 16px; font-weight: 500; color: var(--text);
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--cyan-light); }
.main-nav .btn { padding: 10px 22px; border-radius: 50px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ─ HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a22 0%, #3A1545 45%, #5C2A6B 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center; animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,10,34,.92) 0%,
    rgba(58,21,69,.78) 50%,
    rgba(92,42,107,.45) 100%
  );
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 500px; gap: 40px;
  align-items: center; padding: 60px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,168,83,.15); border: 1px solid rgba(212,168,83,.4);
  color: var(--cyan); font-size: 16px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; color: var(--white); line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--cyan); font-style: italic; display: block; }
.hero p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 500px; margin-bottom: 32px; line-height: 1.75; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 0; margin-top: 48px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { flex: 1; padding-right: 28px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-stat:last-child { border-right: none; padding-right: 0; padding-left: 28px; }
.hero-stat:first-child { padding-left: 0; }
.stat-num {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 700; color: var(--cyan); line-height: 1;
}
.stat-label { font-size: 16px; color: rgba(255,255,255,.65); margin-top: 4px; }

/* Hero booking card */
.hero-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: 24px; padding: 26px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.hero-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 6px;
}
.hero-card p { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.mini-form .form-group { margin-bottom: 14px; }
.mini-form label { font-size: 16px; font-weight: 600; color: var(--text); display: block; margin-bottom: 5px; }
.mini-form input, .mini-form select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 16px; font-family: inherit; color: var(--text);
  background: var(--white); transition: var(--transition);
}
.mini-form input:focus, .mini-form select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(212,168,83,.12);
}
.mini-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.mini-form-msg { font-size: 16px; padding: 10px 14px; border-radius: 8px; margin-top: 12px; display: none; }
.mini-form-msg.success { background: #d1fae5; color: #065f46; display: block; }
.mini-form-msg.error   { background: #fee2e2; color: #991b1b; display: block; }

/* rating badge inside card */
.rating-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--warm);
  border-radius: 10px; margin-bottom: 20px;
}
.rating-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.rating-text strong { display: block; font-size: 16px; color: var(--navy); }
.rating-text span { font-size: 16px; color: var(--muted); }

/* ─ Marquee Ticker ───────────────────────────────────────────────────────── */
.ticker {
  background: linear-gradient(135deg, #3A1545 0%, #5C2A6B 40%, #7B3A8A 60%, #3A1545 100%);
  padding: 0; overflow: hidden;
  border-top: 2px solid rgba(212,168,83,0.40);
  border-bottom: 2px solid rgba(212,168,83,0.40);
  position: relative;
}
.ticker::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(212,168,83,0.04) 0px, rgba(212,168,83,0.04) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.ticker-inner {
  display: flex; align-items: center; gap: 0; white-space: nowrap;
  animation: ticker 38s linear infinite;
  padding: 14px 0;
}
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.92);
  padding: 0 28px; letter-spacing: 0.3px;
}
.ticker-item::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4A853, #C9A84C);
  margin-left: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212,168,83,0.7);
}
.ticker-badge {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  transition: transform 0.3s ease;
}
.ticker-item:hover .ticker-badge { transform: scale(1.15) rotate(-5deg); }
.tb-cyan  { background: linear-gradient(135deg,#D4A853,#C9A84C); color:#fff; box-shadow:0 3px 10px rgba(212,168,83,0.45); }
.tb-gold  { background: linear-gradient(135deg,#ffd060,#f09000); color:#fff; box-shadow:0 3px 10px rgba(240,144,0,0.40); }
.tb-green { background: linear-gradient(135deg,#00f2a9,#00a878); color:#fff; box-shadow:0 3px 10px rgba(0,168,120,0.40); }
.tb-coral { background: linear-gradient(135deg,#ff7eb3,#e6194b); color:#fff; box-shadow:0 3px 10px rgba(230,25,75,0.35); }
.tb-purple{ background: linear-gradient(135deg,#c77dff,#7b2ff7); color:#fff; box-shadow:0 3px 10px rgba(123,47,247,0.40); }

/* ─ Why Choose / Feature Strip ──────────────────────────────────────────── */
.why-strip { padding: 80px 0; background: var(--warm); }
.why-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 52px; }
.why-card {
  background: var(--white); border-radius: 22px; padding: 36px 26px 30px;
  border: 1.5px solid var(--border); position: relative; overflow: hidden;
  transition: var(--transition); cursor: default;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, linear-gradient(90deg,var(--navy),var(--cyan)));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(92,42,107,.18); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover .why-icon { transform: scale(1.1) rotate(-4deg); }
/* Per-card accent colours */
.why-card:nth-child(1) { --card-accent: linear-gradient(90deg,#D4A853,#C9A84C); }
.why-card:nth-child(2) { --card-accent: linear-gradient(90deg,#ffd060,#f09000); }
.why-card:nth-child(3) { --card-accent: linear-gradient(90deg,#00f2a9,#00a878); }
.why-card:nth-child(4) { --card-accent: linear-gradient(90deg,#ff7eb3,#e6194b); }
.why-icon {
  width: 62px; height: 62px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 22px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
}
/* Gradient icon containers — one per card position */
.why-icon--cyan   { background: linear-gradient(135deg,#D4A853 0%,#C9A84C 100%); color:#fff; box-shadow:0 8px 22px rgba(212,168,83,0.38); }
.why-icon--gold   { background: linear-gradient(135deg,#ffd060 0%,#f09000 100%); color:#fff; box-shadow:0 8px 22px rgba(240,144,0,0.35); }
.why-icon--green  { background: linear-gradient(135deg,#00f2a9 0%,#00a878 100%); color:#fff; box-shadow:0 8px 22px rgba(0,168,120,0.35); }
.why-icon--coral  { background: linear-gradient(135deg,#ff7eb3 0%,#e6194b 100%); color:#fff; box-shadow:0 8px 22px rgba(230,25,75,0.30); }
.why-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p { font-size: 16px; color: var(--muted); line-height: 1.7; }

/* ─ Services ─────────────────────────────────────────────────────────────── */
.services-section { background: var(--white); }
/* 3-column 6-unit grid: row 1 → 3 cards (span 2 each), row 2 → 2 cards (span 3 each) */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
/* ─ Service Cards — Premium Redesign ─────────────────────────────────────── */
.service-card {
  border-radius: 20px; overflow: hidden; position: relative;
  aspect-ratio: 4/3; cursor: pointer;
  grid-column: span 2;
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease;
  box-shadow: 0 4px 24px rgba(58,21,69,.12);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(58,21,69,.22); }
/* Row 2: 2 wider cards centered */
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 3; aspect-ratio: 16/7; }
.service-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.service-card:hover .service-card-img { transform: scale(1.07); }

/* Gradient overlay: top accent colour bleeds into deep navy at bottom */
.service-card-overlay {
  position: absolute; inset: 0;
  transition: opacity .4s ease;
}
/* Per-service gradient overlays */
.service-card:nth-child(1) .service-card-overlay {
  background: linear-gradient(180deg,rgba(212,168,83,.15) 0%,rgba(0,20,50,.82) 55%,rgba(0,10,35,.97) 100%);
}
.service-card:nth-child(2) .service-card-overlay {
  background: linear-gradient(180deg,rgba(201,168,76,.12) 0%,rgba(0,20,50,.82) 55%,rgba(0,10,35,.97) 100%);
}
.service-card:nth-child(3) .service-card-overlay {
  background: linear-gradient(180deg,rgba(124,58,237,.12) 0%,rgba(0,20,50,.82) 55%,rgba(0,10,35,.97) 100%);
}
.service-card:nth-child(4) .service-card-overlay {
  background: linear-gradient(180deg,rgba(5,150,105,.12) 0%,rgba(0,20,50,.82) 55%,rgba(0,10,35,.97) 100%);
}
.service-card:nth-child(5) .service-card-overlay {
  background: linear-gradient(180deg,rgba(230,25,75,.12) 0%,rgba(0,20,50,.82) 55%,rgba(0,10,35,.97) 100%);
}

/* Top accent colour strip */
.service-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px; z-index:3;
  transition: height .3s ease;
}
.service-card:hover::before { height: 6px; }
.service-card:nth-child(1)::before { background: linear-gradient(90deg,#D4A853,#C9A84C); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg,#c9a84c,#e8c060); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg,#7c3aed,#a855f7); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg,#059669,#34d399); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg,#e6194b,#ff6b8a); }

/* Service icon badge */
.service-icon-badge {
  position: absolute; top: 18px; left: 18px; z-index: 4;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .3s ease;
}
.service-card:hover .service-icon-badge { transform: scale(1.12) rotate(-4deg); }
.service-card:nth-child(1) .service-icon-badge { background: rgba(212,168,83,.55); }
.service-card:nth-child(2) .service-icon-badge { background: rgba(201,168,76,.55); }
.service-card:nth-child(3) .service-icon-badge { background: rgba(124,58,237,.55); }
.service-card:nth-child(4) .service-icon-badge { background: rgba(5,150,105,.55); }
.service-card:nth-child(5) .service-icon-badge { background: rgba(230,25,75,.55); }

.service-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 24px 24px; z-index: 4;
  background: linear-gradient(0deg, rgba(0,10,35,.85) 0%, transparent 100%);
  backdrop-filter: blur(0px);
}
.service-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cyan); color: var(--white);
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700; color: var(--white);
  margin-bottom: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.service-card p {
  font-size: 16px; color: rgba(255,255,255,.78);
  line-height: 1.65; margin-bottom: 0;
  transform: translateY(8px); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  max-height: 0; overflow: hidden;
}
.service-card:hover p {
  transform: translateY(0); opacity: 1;
  max-height: 100px;
}
.service-learn {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--cyan); font-size: 16px; font-weight: 600;
  margin-top: 12px; opacity: 0; transform: translateY(6px);
  transition: all .3s ease .08s;
  background: rgba(212,168,83,.15); padding: 6px 12px;
  border-radius: 6px; border: 1px solid rgba(212,168,83,.3);
}
.service-card:hover .service-learn { opacity: 1; transform: translateY(0); }
.service-learn:hover { background: var(--cyan); color: #fff; }

/* ─ Counter Stats ────────────────────────────────────────────────────────── */
.stats-band { background: var(--navy); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.stat-item { text-align: center; padding: 28px 18px; position: relative; }
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.12);
}
.stat-item:last-child::after { display: none; }
.stat-big {
  font-family: 'Cormorant Garamond', serif; font-size: 2.6rem;
  font-weight: 700; color: var(--cyan); display: block; line-height: 1;
  word-break: keep-all; white-space: nowrap;
}
.stat-sub { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 6px; }
.stat-desc { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 3px; }

/* ─ About / Doctor ───────────────────────────────────────────────────────── */
.doctor-section { background: var(--cream); }
.doctor-grid { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: start; }
.doctor-img-wrap { position: relative; }
.doctor-img-frame {
  border-radius: 24px 24px 80px 24px; overflow: hidden;
  position: relative; box-shadow: var(--shadow-lg);
}
.doctor-img-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.doctor-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--navy); color: var(--white);
  border-radius: 20px; padding: 22px 26px; text-align: center;
  box-shadow: 0 12px 36px rgba(58,21,69,.3);
  border: 4px solid var(--cream);
}
.doctor-badge strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--cyan); line-height: 1; }
.doctor-badge span { font-size: 16px; color: rgba(255,255,255,.75); }
.doctor-name { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--navy); margin-bottom: 6px; }
.doctor-title { font-size: 16px; color: var(--cyan); font-weight: 600; margin-bottom: 20px; letter-spacing: .5px; }
.doctor-bio { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.cred-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cred-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 9px 14px;
  font-size: 16px; font-weight: 600; color: var(--navy);
}
.cred-chip i { color: var(--cyan); }
.doctor-features { display: flex; flex-direction: column; gap: 14px; }
.doctor-feat { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); }
.feat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }

/* ─ Reviews ──────────────────────────────────────────────────────────────── */
.reviews-section { background: var(--white); }
.google-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 14px; padding: 14px 22px;
  box-shadow: var(--shadow-sm); margin-bottom: 48px;
}
.g-logo { width: 32px; height: 32px; }
.g-score { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.g-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; display: block; }
.g-count { font-size: 16px; color: var(--muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.review-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 22px;
  transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.review-card .review-text { flex: 1; }
.review-card .reviewer { margin-top: auto; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan); }

/* Review us on Google button */
.review-us-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #1e293b;
  border: 2px solid #e2e8f0;
  border-radius: 50px; padding: 13px 28px;
  font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transition: all .2s ease;
}
.review-us-btn:hover {
  border-color: #4285F4;
  box-shadow: 0 6px 24px rgba(66,133,244,.2);
  transform: translateY(-2px);
  color: #1e293b;
}
.review-us-btn svg { flex-shrink: 0; width: 22px; height: 22px; }
.review-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem;
  color: var(--cyan-light); line-height: 1; margin-bottom: 8px;
  position: absolute; top: 20px; right: 24px;
}
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { font-size: 16px; color: var(--text); line-height: 1.75; margin-bottom: 22px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700;
}
.reviewer-name { font-weight: 700; font-size: 16px; color: var(--navy); }
.reviewer-detail { font-size: 16px; color: var(--muted); }

/* ─ Insurance ────────────────────────────────────────────────────────────── */
.insurance-section { background: var(--warm); }
.insurance-scroll {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin-top: 40px;
}
.insurer-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 22px;
  transition: var(--transition); display: flex; align-items: center;
}
.insurer-card:hover { border-color: var(--cyan); box-shadow: 0 4px 16px rgba(212,168,83,.15); transform: translateY(-2px); }
.insurer-card img { height: 36px; width: auto; object-fit: contain; filter: grayscale(30%); transition: var(--transition); }
.insurer-card:hover img { filter: none; }

/* ─ Contact / Vyne Section ───────────────────────────────────────────────── */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 56px; }

.contact-info-block h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--navy); margin-bottom: 8px; }
.contact-info-block p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; background: var(--warm);
  border-radius: 14px; border: 1.5px solid var(--border);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--cyan); }
.ci-icon {
  width: 44px; height: 44px; background: var(--navy); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); flex-shrink: 0;
}
.ci-label { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 3px; }
.ci-value { font-size: 16px; font-weight: 600; color: var(--navy); }
.ci-value a { color: var(--navy); }
.ci-value a:hover { color: var(--cyan); }

.hours-table { width: auto; border-collapse: collapse; font-size: 16px; margin: 12px auto 0; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 7px 16px; color: var(--text); text-align: center; }
.hours-table td:first-child { text-align: center; font-weight: 500; }
.hours-table td:last-child { text-align: center; font-weight: 600; color: var(--navy); }
.hours-closed { color: var(--muted) !important; font-weight: 400 !important; }

/* Vyne booking panel */
.vyne-panel {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vyne-panel-header {
  background: var(--navy); padding: 24px 28px;
  display: flex; align-items: center; gap: 14px;
}
.vyne-panel-header .icon { font-size: 24px; }
.vyne-panel-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 2px; }
.vyne-panel-header p { font-size: 16px; color: rgba(255,255,255,.65); }
.vyne-panel-body { padding: 28px; }

/* Form inside the vyne panel */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 16px; font-family: inherit; color: var(--text);
  background: var(--white); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(212,168,83,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cyan); cursor: pointer; }
.form-check label { font-size: 16px; color: var(--muted); cursor: pointer; font-weight: 400; margin: 0; text-transform: none; letter-spacing: 0; }
.form-submit-btn {
  width: 100%; justify-content: center; padding: 15px;
  font-size: 16px; border-radius: 12px; margin-top: 4px;
  border: none; cursor: pointer; background: var(--navy); color: var(--white);
  display: flex; align-items: center; gap: 9px; font-weight: 600;
  transition: var(--transition);
}
.form-submit-btn:hover { background: var(--navy-dark); }
.form-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.form-msg-banner { display: none; padding: 14px 16px; border-radius: 10px; font-size: 16px; margin-top: 14px; }
.form-msg-banner.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-msg-banner.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }
.input-error { border-color: #ef4444 !important; background: #fff5f5 !important; }
.field-error { display: block; font-size: 16px; color: #dc2626; font-weight: 600; margin-top: 4px; }

/* ── Team Section ─────────────────────────────────────────────────────────── */
.team-section { background: var(--light); }

/* Avatar placeholder — shows initials until real photo is swapped in */
.team-avatar-placeholder {
  width: 100%; aspect-ratio: 1/1; border-radius: 20px;
  background: var(--av-bg, var(--navy));
  color: var(--av-color, var(--white));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 700; letter-spacing: 2px;
  user-select: none;
}
.team-avatar-lg {
  border-radius: 24px; font-size: 3rem;
  box-shadow: 0 16px 48px rgba(58,21,69,.18);
}

/* Lead card */
.team-lead-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px;
  align-items: center;
  background: var(--white); border-radius: 28px;
  padding: 48px; box-shadow: 0 8px 40px rgba(58,21,69,.08);
  border: 1.5px solid var(--border);
}
.team-lead-photo { position: relative; }
.team-lead-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: var(--white);
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
  padding: 6px 18px; border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212,168,83,.4);
}
.team-lead-badge i { margin-right: 5px; }
.team-lead-name {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-weight: 700; color: var(--navy); margin-bottom: 4px;
}
.team-lead-title { font-size: 16px; font-weight: 600; color: var(--cyan); margin-bottom: 20px; letter-spacing: .3px; }
.team-lead-bio { font-size: 16px; color: var(--muted); line-height: 1.85; margin-bottom: 20px; }
.team-lead-stats {
  display: flex; gap: 28px; margin-top: 24px;
  padding-top: 24px; border-top: 1.5px solid var(--border);
}
.tl-stat { text-align: center; }
.tl-stat span { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.tl-stat { font-size: 16px; color: var(--muted); font-weight: 500; }

/* Tags */
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.team-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 16px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 50px;
}
.team-tag i { font-size: 10px; }
.tag-cyan   { background: rgba(212,168,83,.15);  color: #7A5A00; }
.tag-navy   { background: rgba(58,21,69,.12);     color: var(--navy); }
.tag-gold   { background: rgba(201,168,76,.15); color: #8a6d00; }
.tag-green  { background: rgba(5,150,105,.12);  color: #065f46; }
.tag-purple { background: rgba(124,58,237,.12); color: #5b21b6; }
.tag-coral  { background: rgba(230,25,75,.1);   color: #9b0b32; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white); border-radius: 20px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 16px rgba(58,21,69,.06);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(58,21,69,.12); border-color: rgba(212,168,83,.35); }
.team-card .team-avatar-placeholder {
  border-radius: 0; aspect-ratio: 4/3; font-size: 2.5rem;
}
.team-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; }
.team-card-body { padding: 20px; }
.team-member-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.team-member-title { font-size: 16px; font-weight: 600; color: var(--cyan); letter-spacing: .4px; margin-bottom: 10px; text-transform: uppercase; }
.team-member-bio { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }

/* Join the team band */
.team-join-band {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #7B3A8A 100%);
  border-radius: 20px; padding: 28px 36px; margin-top: 48px;
}
.team-join-band h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.team-join-band p  { font-size: 16px; color: rgba(255,255,255,.7); margin: 0; }
.team-join-band > div:nth-child(2) { flex: 1; }
.team-join-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(212,168,83,.2); display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: var(--cyan); flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .team-lead-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .team-lead-photo .team-avatar-placeholder { max-width: 240px; margin: 0 auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-join-band { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-lead-stats { gap: 16px; }
}
.vyne-note { font-size: 16px; color: var(--muted); text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Vyne widget embed area — swap in once you have credentials */
.vyne-widget-embed { padding: 24px 28px; display: none; }
.vyne-widget-embed.active { display: block; }
.vyne-widget-embed iframe { width: 100%; min-height: 480px; border: none; border-radius: 12px; }

/* ─ Map ──────────────────────────────────────────────────────────────────── */
.map-section { background: var(--warm); padding: 0; }
.map-wrap { position: relative; }
.map-wrap iframe { display: block; width: 100%; height: 440px; filter: saturate(.8); }
.map-card {
  position: absolute; top: 28px; left: 28px;
  background: var(--white); border-radius: 16px; padding: 20px 24px;
  box-shadow: var(--shadow-lg); max-width: 260px;
}
.map-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.map-card p { font-size: 16px; color: var(--muted); line-height: 1.5; }
.map-card a { display: inline-flex; align-items: center; gap: 5px; color: var(--cyan); font-size: 16px; font-weight: 600; margin-top: 10px; }

/* ─ CTA Band ─────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #7B3A8A 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(212,168,83,.08); pointer-events: none;
}
.cta-band::after {
  content: ''; position: absolute; bottom: -80px; left: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(212,168,83,.06); pointer-events: none;
}
.cta-band h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem,3vw,2.6rem); color: var(--white); margin-bottom: 12px; position: relative; z-index: 1; }
.cta-band p  { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ─ Inner Banner ─────────────────────────────────────────────────────────── */
.inner-banner {
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 64px 0; position: relative; overflow: hidden;
}
.inner-banner::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 80px solid rgba(212,168,83,.06); pointer-events: none;
}
.inner-banner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white);
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 16px; color: rgba(255,255,255,.55); position: relative; z-index: 1;
}
.breadcrumb a { color: var(--cyan); }

/* ─ Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: linear-gradient(160deg,#1A0A22 0%,#2E1040 45%,#3A1545 100%); color: var(--white); padding-top: 72px; border-top: 3px solid rgba(212,168,83,.30); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-logo img { height: 92px; width: auto; object-fit: contain; margin-bottom: 18px; }
.footer-desc { font-size: 16px; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.fsoc {
  width: 36px; height: 36px; background: rgba(255,255,255,.07);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: rgba(255,255,255,.7); transition: var(--transition);
}
.fsoc:hover { background: var(--cyan); color: var(--white); transform: translateY(-2px); }
.footer-col h5 {
  font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--cyan); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 16px; color: rgba(255,255,255,.6); transition: var(--transition);
  display: flex; align-items: center; gap: 7px;
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.f-contact { display: flex; flex-direction: column; gap: 14px; }
.f-contact-row { display: flex; align-items: flex-start; gap: 12px; }
.f-contact-row i { color: var(--cyan); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.f-contact-row a, .f-contact-row p { font-size: 16px; color: rgba(255,255,255,.65); line-height: 1.5; }
.f-contact-row a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 16px; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: var(--cyan); }

/* ─ Services Detail (services.html) ──────────────────────────────────────── */
.service-detail-section { padding: 80px 0; }
.service-detail-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; margin-bottom: 80px;
  padding-bottom: 80px; border-bottom: 1px solid var(--border);
}
.service-detail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-detail-row.reverse { direction: rtl; }
.service-detail-row.reverse > * { direction: ltr; }
.sd-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); }
.sd-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.sd-img:hover img { transform: scale(1.04); }
.sd-label { font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.sd-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem,2.5vw,2rem); color: var(--navy); margin-bottom: 16px; line-height: 1.25; }
.sd-desc { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.sd-points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 20px 0 28px; }
.sd-points li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text); }
.sd-points li i { color: var(--cyan); font-size: 16px; }

/* ─ Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─ Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1300px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: block; margin-top: 32px; max-width: 520px; }
  .hero p { max-width: 100%; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { grid-column: span 2; aspect-ratio: 4/3; }
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 2; aspect-ratio: 4/3; }
  .doctor-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .why-strip-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .header-top { display: none; }
  .hero-inner { padding: 40px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 16px; }
  .hero-stats { display: none; }
  .hero-card { max-width: 100%; }
  .why-strip-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1; }
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; aspect-ratio: 4/3; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-img-wrap { display: block; max-width: 320px; margin: 0 auto 28px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .hamburger { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 16px; z-index: 300; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .service-detail-row { grid-template-columns: 1fr; gap: 32px; }
  .service-detail-row.reverse { direction: ltr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .sticky-book { bottom: 16px; right: 16px; }
  .map-card { display: none; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; aspect-ratio: 4/3; }
  .why-strip-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-lg { padding: 14px 24px; }
}

/* ═══════════════════════════════════════════════════════════════════
   INDUSTRY STANDARDS — SEO, Accessibility, Browser Compatibility
   ═══════════════════════════════════════════════════════════════════ */

/* ─ Skip to main content (accessibility) ────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  font-size: 16px; font-weight: 600; z-index: 9999;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ─ Focus styles (WCAG 2.1 AA) ──────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ─ Print styles ─────────────────────────────────────────────────────────── */
@media print {
  .sticky-book, .hamburger, .ticker, .hero-overlay,
  .site-footer .footer-socials, .cta-band { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .site-header { box-shadow: none; border-bottom: 1pt solid #ccc; }
  .section { padding: 24pt 0; }
}

/* ─ High-contrast / forced-colors mode ──────────────────────────────────── */
@media (forced-colors: active) {
  .btn-primary, .btn-cyan { border: 2px solid ButtonText; }
  .fsoc { border: 1px solid ButtonText; }
}

/* ─ Reduced motion (accessibility) ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─ Mobile touch targets (WCAG 2.5.5 — min 44×44px) ────────────────────── */
.main-nav a, .footer-links a, .fsoc,
.sticky-phone-btn, .sticky-book-btn {
  min-height: 44px;
}
.fsoc { min-width: 44px; min-height: 44px; }

/* ─ Better mobile header-top on very small screens ──────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 1.5rem; }
  .sticky-book { gap: 6px; }
  .sticky-phone-btn, .sticky-book-btn { font-size: 16px; padding: 10px 14px; }
}

/* ─ Ensure hero text never clips on any mobile width ─────────────────────── */
@media (max-width: 480px) {
  .hero .container { padding: 0 20px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); overflow-wrap: break-word; }
  .hero-card { border-radius: 16px; padding: 20px; }
  .rating-badge { flex-direction: column; gap: 10px; }
  .appt-row { flex-direction: column; }
  .appt-row-dt { flex-direction: column; }
}

/* ─ Cross-browser image rendering ───────────────────────────────────────── */
img {
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
}

/* ─ Cross-browser scroll behavior ───────────────────────────────────────── */
html {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* ─ iOS tap highlight removal ────────────────────────────────────────────── */
a, button { -webkit-tap-highlight-color: transparent; }

/* ─ Better font rendering cross-browser ─────────────────────────────────── */
body {
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─ Selection color ──────────────────────────────────────────────────────── */
::selection { background: var(--cyan); color: var(--white); }
::-moz-selection { background: var(--cyan); color: var(--white); }

/* ─ Scrollbar styling (Chrome/Edge) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ─ Social icon YouTube color ────────────────────────────────────────────── */
.fsoc:has(.fa-youtube):hover { background: #ff0000; }
.fsoc:has(.fa-instagram):hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ─ Blog card styles (used in blog.html) ────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-top { height: 6px; }
.blog-card-top.cat-invisalign { background: linear-gradient(90deg, #01b6ef, #0066dd); }
.blog-card-top.cat-implants   { background: linear-gradient(90deg, #c9a84c, #e8c060); }
.blog-card-top.cat-rootcanal  { background: linear-gradient(90deg, #cc1122, #ff3344); }
.blog-card-top.cat-whitening  { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.blog-card-top.cat-preventive { background: linear-gradient(90deg, #059669, #10b981); }
.blog-card-top.cat-kids       { background: linear-gradient(90deg, #d97706, #f59e0b); }
.blog-card-top.cat-general    { background: linear-gradient(90deg, #5C2A6B, #D4A853); }
.blog-card-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px;
}
.blog-cat.cat-invisalign { background: #e6f7fd; color: #0066dd; }
.blog-cat.cat-implants   { background: #fef9e7; color: #a07800; }
.blog-cat.cat-rootcanal  { background: #fff0f0; color: #cc1122; }
.blog-cat.cat-whitening  { background: #f5f0ff; color: #7c3aed; }
.blog-cat.cat-preventive { background: #ecfdf5; color: #059669; }
.blog-cat.cat-kids       { background: #fff7ed; color: #d97706; }
.blog-cat.cat-general    { background: #f5f0ff; color: #5C2A6B; }
.blog-date { font-size: 16px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.blog-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin-bottom: 10px;
}
.blog-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 16px; }
.blog-read-more {
  font-size: 16px; font-weight: 600; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 5px; margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.blog-read-more:hover { gap: 9px; color: var(--navy); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; }
.blog-filter-btn {
  padding: 8px 18px; border-radius: 24px; border: 1.5px solid var(--border);
  background: var(--white); font-size: 16px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.blog-filter-btn:hover, .blog-filter-btn.active {
  background: var(--cyan); color: var(--white); border-color: var(--cyan);
}
.newsletter-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 72px 0; text-align: center;
}
.newsletter-band h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--white); margin-bottom: 10px;
}
.newsletter-band p { color: rgba(255,255,255,.65); margin-bottom: 28px; font-size: 16px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: 14px 18px; border-radius: 10px; border: none;
  font-size: 16px; outline: none; font-family: inherit;
}
.newsletter-input:focus { box-shadow: 0 0 0 3px rgba(212,168,83,.4); }

/* ─ Blog post article styles ─────────────────────────────────────────────── */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.article-meta .blog-cat { margin-bottom: 0; }
.article-body { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--navy); margin: 36px 0 14px; }
.article-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--navy); margin: 28px 0 10px; }
.article-body p  { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy-dark); }
.article-body blockquote {
  border-left: 4px solid var(--cyan); padding: 14px 20px;
  background: var(--cyan-light); border-radius: 0 8px 8px 0; margin: 24px 0;
  font-style: italic; color: var(--navy);
}
.article-sidebar { position: sticky; top: 110px; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.related-card { border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 12px; }
.related-card h5 { font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 6px; }
.related-card span { font-size: 16px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--cyan); margin-bottom: 28px; }
.back-link:hover { color: var(--navy); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .article-body h2 { font-size: 1.3rem; }
}

/* ── Appointment Form — Horizontal 2-column grid ─────────────────────────────
   Used on: Hero sidebar (miniForm), Homepage booking, Contact page
   ────────────────────────────────────────────────────────────────────────── */
.appt-form { display: flex; flex-direction: column; gap: 13px; }

.appt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.appt-row.appt-row-full { grid-template-columns: 1fr; }

.appt-field { display: flex; flex-direction: column; gap: 4px; }

.appt-field label {
  font-size: 16px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--text);
}

/* ── All text inputs + textarea ──────────────────────────────────────────── */
.appt-field input,
.appt-field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 16px; line-height: 48px; color: var(--text); background: #fff;
  font-family: inherit; transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.appt-field textarea {
  height: auto; line-height: 1.5; padding: 12px 14px;
}
.appt-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(212,168,83,.15); }

/* ── Select wrapper: height lives on the DIV — works in Safari + Chrome + FF ─ */
.appt-field .select-wrap {
  position: relative;
  height: 48px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  overflow: hidden;
}
.appt-field .select-wrap:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(212,168,83,.15);
}
.appt-field .select-wrap.input-error {
  border-color: #dc2626;
}
.appt-field .select-wrap::after {
  content: '';
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 7px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpolyline points='1,1 5.5,6 10,1' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.appt-field .select-wrap select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; height: 100%; border: none; background: transparent;
  padding: 0 34px 0 14px;
  font-size: 16px; font-family: inherit; color: var(--text);
  cursor: pointer; outline: none;
  box-sizing: border-box;
}
.appt-field .select-wrap select:focus { outline: none; }

/* ── Service + DateTime row: wider datetime column (40 / 60 split) ─────────── */
.appt-row.appt-row-dt {
  grid-template-columns: 2fr 3fr;
}

/* ── Datetime picker input: same 48px height as .select-wrap ──────────────── */
.appt-field .datetime-wrap { position: relative; display: block; }
.appt-field .datetime-wrap input {
  height: 48px !important;
  line-height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 36px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.appt-field .datetime-wrap .dt-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--cyan); font-size: 16px; pointer-events: none;
}

/* Bottom row: checkbox left, submit right */
.appt-row-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 14px; margin-top: 2px;
}
.appt-check { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--muted); }
.appt-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cyan); cursor: pointer; }
.appt-check label { cursor: pointer; }

/* ── Flatpickr calendar — Frontier Dental theme ──────────────────────────── */
.flatpickr-calendar {
  font-family: 'Inter', sans-serif;
  border-radius: 14px !important;
  box-shadow: 0 16px 48px rgba(58,21,69,.18) !important;
  overflow: hidden;
}

/* Header band: navy background */
.flatpickr-months { background: var(--navy) !important; border-radius: 14px 14px 0 0 !important; }
.flatpickr-months .flatpickr-month { background: transparent !important; }

/* Month + year text → white */
.flatpickr-current-month { color: #fff !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #fff !important;
  background: transparent !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  -webkit-appearance: none; appearance: none;
}
.flatpickr-current-month input.cur-year {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

/* Left / right navigation arrows → white */
.flatpickr-prev-month,
.flatpickr-next-month {
  color: #fff !important;
  fill: #fff !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: #fff !important;
  stroke: #fff !important;
}
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover { opacity: .75; }

/* Year spinner arrows (▲▼) → white */
.numInputWrapper span { border-color: rgba(255,255,255,.35) !important; }
.numInputWrapper span:after {
  border-top-color: #fff !important;
  border-bottom-color: #fff !important;
}
.numInputWrapper span.arrowUp:after  { border-bottom-color: #fff !important; }
.numInputWrapper span.arrowDown:after { border-top-color: #fff !important; }

/* Weekday labels */
.flatpickr-weekdays { background: var(--navy) !important; }
.flatpickr-weekday  { background: var(--navy) !important; color: rgba(255,255,255,.65) !important; font-weight: 600 !important; }

/* Day cells */
.flatpickr-day.selected,
.flatpickr-day.selected:hover   { background: var(--cyan) !important; border-color: var(--cyan) !important; color: #fff !important; }
.flatpickr-day:hover:not(.disabled) { background: rgba(212,168,83,.15) !important; }
.flatpickr-day.today            { border-color: var(--cyan) !important; }
.flatpickr-day.disabled         { color: #ccc !important; }

/* Time picker section */
.flatpickr-time { border-top: 1px solid var(--border) !important; }
.flatpickr-time input { color: var(--navy) !important; font-weight: 600 !important; }

@media (max-width: 640px) {
  .appt-row { grid-template-columns: 1fr; }
  .appt-row-bottom { flex-direction: column; align-items: stretch; }
  .appt-row-bottom .form-submit-btn { width: 100%; }
}

/* ─ Hide Simplifeye widget's floating "Schedule Appointment" iframe button ────
   The widget injects an <iframe id="self-scheduling-widget-button-iframe-{ts}">
   We use our own sticky Book Appointment button, so this iframe is suppressed.
────────────────────────────────────────────────────────────────────────────── */
iframe[id^="self-scheduling-widget-button-iframe"],
iframe[id*="self-scheduling-widget-button"],
iframe[id*="sfe-widget-button"],
[id^="self-scheduling-widget-button-iframe"],
[id*="self-scheduling-widget-button"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
