/* ============================================
   IDC Website — styles.css
   Brand: Warm grayscale + Brand Blue #00a0e2
   Fonts: Libre Baskerville (headings) + Inter (body)
   ============================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-100: #f6f6ee;
  --color-200: #f6f6ee;
  --color-300: #dfe2db;
  --color-400: #e7e5d9;
  --color-500: #e3e0d7;
  --color-600: #d9d3c3;
  --color-700: #7f6e5c;
  --color-800: #5f5450;
  --color-900: #4c4c4a;
  --color-1000: #1e1e1e;

  --brand-blue: #00a0e2;
  --brand-blue-hover: #008bc4;

  --bg-primary: #f6f6ee;
  --bg-warm: var(--color-100);
  --text-primary: #5F5450;
  --text-secondary: #5F5450;
  --text-muted: var(--color-700);
  --heading-color: #3a302c;
  --border-light: var(--color-300);

  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --section-py: clamp(4rem, 8vw, 6.5rem);
  --container-max: 1140px;
  --container-px: clamp(1.25rem, 4vw, 2rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography ragging */
p, li, dd, blockquote, figcaption, .hero-subtitle, .mega-link-desc,
.faq-answer p, .footer-col p, .service-text {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-blue-hover); }
ul { list-style: none; }

/* Skip Link */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  background: var(--brand-blue); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 6px 6px;
  z-index: 1000; font-size: .875rem;
}
.skip-link:focus { left: 1rem; top: 0; width: auto; height: auto; overflow: visible; }

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: .875rem;
  padding: .75rem 1.75rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none; line-height: 1.2;
  letter-spacing: .01em; gap: .5rem;
  will-change: transform;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); transition-duration: .15s; }
.btn-sm { padding: .5rem 1.25rem; font-size: .8125rem; border-radius: 8px; }
.btn-primary { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.btn-primary:hover { background: var(--color-800); border-color: var(--color-800); color: #fff; }
.btn-shadow { box-shadow: 0 2px 8px rgba(95,84,80,.12); }
.btn-shadow:hover { box-shadow: 0 4px 16px rgba(95,84,80,.18); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--color-800); border-width: 1.5px; }
.btn-outline:hover { background: var(--color-800); border-color: var(--color-800); color: #fff; }
.btn-dark { background: var(--color-1000); color: #fff; border-color: var(--color-1000); }
.btn-dark:hover { background: var(--color-900); border-color: var(--color-900); color: #fff; }

/* ---- Section Headings ---- */
.section-heading {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.25; text-align: center; margin-bottom: .5rem;
  color: var(--heading-color);
}
.section-heading em { font-style: italic; color: var(--brand-blue); }
.section-subheading {
  text-align: center; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto 2.5rem; font-size: .9375rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: rgba(95,84,80,.08); border-bottom: 1px solid var(--border-light);
  padding: .375rem 0; font-size: .8125rem;
}
.top-bar-inner { text-align: center; }
.top-bar-msg { color: var(--text-secondary); }
.top-bar-msg strong { color: var(--text-primary); }
.top-bar-msg a { font-weight: 500; color: var(--text-primary); text-decoration: underline; }
.top-bar-msg a:hover { color: var(--color-800); }
.top-bar-divider { margin: 0 .75rem; color: var(--color-600); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  background: rgba(246,246,238,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  transition: transform .35s ease, box-shadow .3s var(--ease);
}
.main-nav { position: static; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
  position: relative; z-index: 101;
  max-width: none; padding-right: 0;
}
.logo { display: flex; align-items: center; color: var(--brand-blue); flex-shrink: 0; }
.logo svg { height: 48px; width: auto; }

.nav-list { display: flex; align-items: center; gap: clamp(.25rem, 1.5vw, 1rem); flex-wrap: nowrap; }
.nav-list a {
  font-size: .875rem; color: var(--text-secondary); font-weight: 400;
  padding: .4rem .75rem; border-radius: 0;
  transition: color .2s var(--ease), font-weight .2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: .75rem; right: .75rem;
  height: 1.5px;
  background: var(--color-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-list a:hover { color: #3a302c; }
.nav-list a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: stretch; gap: 0; flex-shrink: 0; align-self: stretch; white-space: nowrap; }
.header-right .btn {
  border-radius: 0; border: none; padding: 0 1.75rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
}
.header-right .btn-primary {
  background: var(--color-700); color: #fff; border-color: var(--color-700);
}
.header-right .btn-primary:hover { background: var(--color-600); border-color: var(--color-600); }
.header-right .btn-dark {
  background: var(--color-800); color: #fff; border-color: var(--color-800);
}
.header-right .btn-dark:hover { background: var(--color-900); border-color: var(--color-900); }
.header-phone { font-size: .8125rem; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; width: 40px; height: 40px; position: relative;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all .3s var(--ease); position: absolute; left: 9px;
}
.hamburger { top: 19px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 700px;
  padding: 0;
  background: var(--bg-primary);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 2rem; align-items: stretch;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  color: var(--heading-color);
}
.hero-logo {
  display: block; width: clamp(200px, 30vw, 420px); height: auto; color: var(--brand-blue);
  margin: 0 0 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--brand-blue); }
.tablet-br { display: none; }
.mobile-only-br { display: inline; }
.hero-subtitle {
  font-size: .9375rem; color: var(--text-secondary);
  margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn { min-width: 200px; justify-content: center; padding: .75rem 1.75rem; }
.hero-image-placeholder { border-radius: 12px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; border-radius: 12px; }

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 0;
  background: #76858C;
  overflow: hidden;
}
.services-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 0;
  max-height: 340px;
  overflow: hidden;
}
.services-image { overflow: hidden; }
.services-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.services-content {
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.5rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
}
.services-header h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25;
  color: var(--color-400); margin-bottom: .5rem;
}
.services-header h2 em { font-style: italic; color: var(--color-500); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
}
.service-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: .35rem .5rem .35rem 0; font-size: .85rem; font-weight: 500;
  color: var(--color-400); border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color .2s var(--ease);
}
.service-link:nth-child(odd) { margin-right: 1.5rem; }
.service-link:nth-child(even) { margin-left: 1.5rem; }
.service-link:hover { color: #fff; }
.service-link .arrow { color: var(--color-300); font-size: 1rem; transition: color .2s var(--ease); }
.service-link:hover .arrow { color: #fff; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #f6f6ee;
}
.reviews-header { text-align: center; margin-bottom: 3rem; }
.reviews-google-text {
  display: flex; justify-content: center; margin-bottom: .75rem;
}
.reviews-google-text svg { display: block; }
.reviews-header h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0;
  color: var(--heading-color);
}
.reviews-header h2 em { font-style: italic; color: var(--brand-blue); }
.reviews-sub {
  font-size: .9375rem; color: var(--text-secondary); margin-bottom: 1.75rem;
}

.review-cards {
  display: flex; gap: 1.25rem;
  margin-bottom: 2.5rem; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth; scroll-snap-type: x mandatory;
  touch-action: pan-x;
}
.review-cards::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 calc(25% - 0.9375rem); min-width: 0; scroll-snap-align: start; }
.review-card {
  background: transparent; border: none;
  border-right: 1px solid rgba(95,84,80,.15);
  border-radius: 0; padding: 1.75rem 1.5rem;
}
.review-card:last-child { border-right: none; }
.review-top { margin-bottom: .75rem; }
.reviewer-name { font-size: 1rem; font-weight: 600; display: block; margin-bottom: .375rem; }
.stars-sm { color: #c9a84c; font-size: .9375rem; letter-spacing: 2px; }
.review-card p {
  font-size: .875rem; color: var(--text-secondary);
  line-height: 1.7; font-style: normal;
}
.review-read-more {
  display: inline-block; margin-top: .75rem;
  font-size: .8125rem; font-weight: 500; color: var(--brand-blue);
  text-decoration: underline; text-underline-offset: 2px;
}
.review-read-more:hover { color: var(--brand-blue-hover); }

.review-nav {
  display: flex; gap: .75rem;
}
.review-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--color-700); background: transparent;
  color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.review-nav-btn:hover {
  background: #5f5450; color: #fff; border-color: #5f5450;
}

/* ============================================
   AD BANNER
   ============================================ */
.ad-banner {
  background: #DEE6EB;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.ad-banner-inner {
  display: grid; grid-template-columns: .8fr 1fr; gap: 0;
  max-width: var(--container-max); margin: 0 auto;
  padding-left: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}
.ad-banner-image { order: 2; }
.ad-banner-content { order: 1; }
.ad-banner-image { overflow: hidden; }
.ad-banner-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block;
  min-height: 320px;
  transform: none;
}
.ad-banner-content {
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 1.25rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.ad-banner-logo svg { width: 100%; max-width: 300px; height: auto; }
.ad-banner-content h2 {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--color-1000);
}
.ad-banner-content h2 strong { font-weight: 800; font-size: clamp(2rem, 5vw, 3.25rem); display: inline; color: var(--color-1000); white-space: nowrap; }
.ad-banner-content p {
  font-size: .875rem; color: var(--text-secondary);
}

/* ============================================
   CDCP
   ============================================ */
.cdcp {
  padding: calc(var(--section-py) * 1.5) 0;
  background: linear-gradient(180deg, rgba(95,84,80,.04) 0%, rgba(95,84,80,.08) 100%);
  overflow: hidden;
}
.cdcp-inner {
  text-align: center;
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.cdcp-hero-img {
  width: 100%; max-width: 800px;
  height: auto;
  margin-bottom: 2rem;
}
.cdcp-btn {
  padding: .75rem 1.75rem;
  font-size: .875rem;
}

/* ============================================
   FEATURE SERVICES GRID
   ============================================ */
.feature-services {
  padding: var(--section-py) 0;
  background: #efefe7;
}
.feature-services-heading {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15;
  text-align: center; margin-bottom: 2.5rem;
  color: var(--heading-color);
}
.feature-services-heading em { font-style: italic; color: var(--brand-blue); }
.feature-br { display: none; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.feature-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-light);
  margin: -0.5px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background .2s var(--ease);
}
.feature-card:hover {
  background: #fff;
}
.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--color-600);
  margin-bottom: 1rem;
  transition: color .2s var(--ease);
}
.feature-card:hover .feature-icon {
  color: var(--brand-blue);
}
.feature-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .5rem;
  transition: transform .2s var(--ease);
}
.feature-card:hover .feature-title {
  transform: translateX(.5rem);
}
.feature-desc {
  font-size: .8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .hero-logo { margin: 0 auto 1.5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-desc { display: none; }
  .feature-card { padding: 1.125rem 1rem; display: flex; flex-direction: row; align-items: center; gap: .75rem; }
  .feature-icon { width: 28px; height: 28px; margin-bottom: 0; flex-shrink: 0; }
  .feature-title { margin-bottom: 0; font-size: .9375rem; line-height: 1.2; }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: var(--section-py) 0;
  background: var(--bg-warm);
}
.stats .section-heading em { color: var(--brand-blue); }
.stats .section-subheading { color: var(--text-secondary); }

.stats-layout {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem; align-items: stretch; margin-bottom: 2.5rem;
}
.stats-col {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.stat-card {
  border-radius: 20px;
  padding: 2.5rem 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1;
  min-height: 300px;
  box-shadow: 0 8px 24px rgba(95,84,80,.2);
}

/* Card color variants */
.stat-card--dark {
  background: var(--color-800); color: #fff;
  box-shadow: 0 12px 32px rgba(95,84,80,.3);
}
.stat-card--dark .stat-number { color: var(--color-200); }
.stat-card--dark .stat-label { color: var(--color-300); }
.stat-card--dark .stat-sub { color: var(--color-300); }
.stat-card--dark .stat-plus { color: var(--color-500); }

.stat-accessible-icon {
  width: 96px; height: 96px;
  margin-bottom: .75rem;
  filter: brightness(0) invert(.8);
}
.stat-card--accessible {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
}

.stat-card--brown {
  background: #8d7b6a; color: #fff;
  box-shadow: 0 12px 32px rgba(95,84,80,.25);
}
.stat-card--brown .stat-number { color: var(--color-200); }
.stat-card--brown .stat-label { color: var(--color-200); }
.stat-card--brown .stat-sub { color: var(--color-200); }
.stat-card--brown .stat-plus { color: var(--color-200); }
.stat-card--brown .stat-stars { color: #FBBC05; }
.stat-card--brown .stat-accessible-icon { filter: brightness(0) invert(.96); }

.stat-card--warm {
  background: #a69585; color: #fff;
  box-shadow: 0 12px 32px rgba(95,84,80,.25);
}
.stat-card--warm .stat-number { color: #fff; }
.stat-card--warm .stat-label { color: #fff; }
.stat-card--warm .stat-sub { color: var(--color-200); }
.stat-card--warm .stat-plus { color: #fff; }

.stat-card--light {
  background: var(--color-600); color: var(--text-primary);
  box-shadow: 0 12px 32px rgba(95,84,80,.25);
}
.stat-card--light .stat-number { color: var(--color-900); }
.stat-card--light .stat-label { color: var(--color-800); }
.stat-card--light .stat-sub { color: var(--color-700); }
.stat-card--light .stat-plus { color: var(--color-800); }
.stat-card--light .stat-stars { color: var(--color-900); }

.stat-number-row {
  display: flex; align-items: baseline; justify-content: center; gap: .125rem;
  white-space: nowrap;
}
.stat-number {
  font-family: var(--font-heading); font-size: clamp(3.25rem, 8vw, 5rem);
  font-weight: 400; line-height: 1;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.stat-plus {
  font-family: var(--font-heading); font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  align-self: flex-start; line-height: 1;
}
.stat-stars { font-size: 1rem; letter-spacing: 2px; margin-top: .375rem; }
.stat-google-logo { margin-top: .375rem; }
.stat-hash { font-size: clamp(3.75rem, 9vw, 5.5rem); }
.stat-label {
  display: block; margin-top: .5rem; font-size: 1.5rem;
  font-weight: 300; line-height: 1.2;
}
.stat-sub {
  display: block; margin-top: .25rem; font-size: .8125rem;
  letter-spacing: .02em;
}

.stats-languages {
  text-align: center; padding: 1.75rem 2.5rem; min-width: 260px;
  border: none; border-radius: 20px;
  background: var(--color-100);
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 12px 32px rgba(95,84,80,.15);
  align-self: stretch;
}
.lang-list {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 2; color: var(--text-primary);
  font-weight: 500;
  columns: 1;
}
.lang-count {
  margin-top: 0; font-size: 1.25rem; font-weight: 600;
  text-transform: none; letter-spacing: .02em;
  line-height: 1.2;
  color: var(--text-primary);
}
.lang-tagline {
  margin-top: .125rem; padding-bottom: 1.25rem; border-bottom: .5px solid var(--color-600); margin-bottom: 1.25rem; font-size: .8125rem; color: var(--text-secondary);
  line-height: 1.3;
}

.stats-cta { text-align: center; }
.btn-pill { border-radius: 100px; padding: .875rem 2rem; }
.stats-cta .btn-outline { border-color: var(--color-800); }
.stats-cta .btn-outline:hover { color: #fff; }

/* ============================================
   TEAM
   ============================================ */
.team { padding: var(--section-py) 0 0; background: var(--bg-warm); overflow: hidden; }

/* --- Doctors Bento Grid --- */
.doctors-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}
.bento-card {
  position: relative; overflow: hidden; border-radius: 12px;
  border: none; padding: 0; cursor: pointer; background: #e8e6de;
  transition: transform .3s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); }
.bento-card--featured {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.bento-photo {
  width: 100%; height: 100%; overflow: hidden;
}
.bento-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease);
}
.bento-card:hover .bento-photo img { transform: scale(1.03); }
.bento-card--featured .bento-photo img { aspect-ratio: auto; min-height: 100%; }
.bento-card:not(.bento-card--featured) .bento-photo img { aspect-ratio: 3 / 4; }
.bento-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.0) 100%);
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  text-align: center;
}
.bento-card--featured .bento-info { padding: 1.5rem 2rem; }
.bento-name {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 1.25rem; color: #fff; line-height: 1.2;
}
.bento-card--featured .bento-name { font-size: 1.75rem; }
.bento-role {
  font-family: var(--font-body); font-weight: 600;
  font-size: .75rem; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .08em;
}
.bento-card--featured .bento-role { font-size: .8125rem; }
.bento-cta {
  display: inline-block; margin-top: .5rem;
  font-family: var(--font-body); font-weight: 500; font-size: .8125rem;
  color: #fff; border: 1px solid rgba(255,255,255,.4);
  padding: .35rem 1.25rem; border-radius: 100px;
  transition: background .2s ease, border-color .2s ease;
  width: fit-content;
}
.bento-card:hover .bento-cta { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); }

/* Bento card scroll reveal */
.bento-card[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(.97);
  filter: blur(4px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1), filter .6s cubic-bezier(.16,1,.3,1);
}
.bento-card[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Staff bento variant: equal-sized grid, no featured card */
.doctors-bento--staff {
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  grid-template-rows: auto;
  justify-content: center;
}
.doctors-bento--staff .bento-card:not(.bento-card--featured) .bento-photo img { aspect-ratio: 3 / 4; }

/* --- Rest of Team Grid --- */
.team-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
}
.team-photo { border-radius: 12px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 280 / 340; }
.team-cta { text-align: center; padding: 2.5rem 0 var(--section-py); }

/* ============================================
   VISIT
   ============================================ */
.visit { padding: var(--section-py) 0; background: var(--color-200); }
.visit .section-heading em { font-style: italic; color: var(--brand-blue); }

/* Map + cards layout */
.visit-map-layout {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  align-items: stretch;
}
.visit-map { order: 2; }
.visit-cards { order: 1; }
.visit-map {
  width: 100%; height: 100%; min-height: 380px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(95,84,80,.15);
  z-index: 0;
}
.visit-cards {
  display: flex; flex-direction: column; gap: 1.25rem;
  justify-content: center;
}
.visit-card {
  background: transparent; border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: visible;
  display: flex; flex-direction: column; flex: 1;
  box-shadow: none;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.visit-card:hover { background: #fff; }
.visit-card.is-active {
  background: rgba(95,84,80,.04);
}
.visit-card-content {
  padding: 1.5rem 2rem; text-align: left;
  display: flex; flex-direction: column; flex: 1;
  justify-content: center;
}
.visit-card-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 1.1875rem; line-height: 1.3;
  margin-bottom: 1rem;
}
.visit-card-title em { font-style: italic; color: var(--text-secondary); font-size: .9375rem; }
.visit-card-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  text-align: left; width: 100%; margin-bottom: 1rem;
}
.visit-card-info p, .visit-card-hours p {
  font-size: .8125rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: .125rem;
}
.visit-label {
  font-weight: 600; color: var(--text-primary) !important;
  margin-top: .5rem !important; font-size: .8125rem !important;
}
.visit-label:first-child { margin-top: 0 !important; }
.visit-card-info a, .visit-card-hours a:not(.btn) {
  color: var(--brand-blue); text-decoration: none; transition: color .2s ease;
}
.visit-card-info a:hover, .visit-card-hours a:not(.btn):hover { color: var(--brand-blue-dark, #0080b8); text-decoration: underline; }
.visit-card .btn { margin-top: .75rem; align-self: flex-start; font-size: .8125rem; padding: .5rem 1.25rem; }

/* Coming Soon stamp */
.visit-card--coming-soon { position: relative; overflow: hidden; cursor: default; }
.visit-card--coming-soon .visit-card-content { pointer-events: none; opacity: .4; }
.coming-soon-stamp {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--brand-blue);
  border: 4px solid var(--brand-blue);
  border-radius: 10px;
  padding: .35em .9em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  background: rgba(246,246,238,.85);
  box-shadow: 0 0 0 3px rgba(0,160,226,.15);
}

/* Leaflet custom pin */
.idc-map-pin {
  background: none; border: none;
}
.idc-pin-svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
  transition: transform .3s ease;
}
.idc-pin-svg.is-active { transform: scale(1.3); }

/* Leaflet overrides */
.visit-map .leaflet-popup-content-wrapper {
  border-radius: 10px; font-family: var(--font-body);
  box-shadow: 0 4px 16px rgba(95,84,80,.18);
}
.visit-map .leaflet-popup-content {
  margin: .75rem 1rem; font-size: .8125rem; line-height: 1.5;
}
.visit-map .leaflet-popup-content strong {
  font-size: .9375rem; display: block; margin-bottom: .25rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq { padding: var(--section-py) 0; background: linear-gradient(180deg, rgba(95,84,80,.04) 0%, rgba(95,84,80,.08) 100%); }
.faq-inner {
  display: flex; flex-direction: column;
  gap: 2rem;
}
.faq-left h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.1;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--heading-color);
}
.faq-left h2 .faq-subtitle {
  display: block; font-size: .75em; line-height: 1; margin-bottom: .25em;
}
.faq-left h2 em { font-style: italic; color: var(--brand-blue); }
.faq-contact { font-size: .8125rem; color: var(--text-secondary); max-width: 600px; padding-bottom: 1.5rem; margin: 0 auto; text-align: center; }
.faq-inner { position: relative; }
.faq-contact::after { display: none; }
.faq-contact p { margin-bottom: 0; }
.faq-contact a { font-weight: 500; color: var(--brand-blue); }

/* Accordion card container */
.faq-list {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem; font-size: clamp(.9375rem, 1.25vw, 1.0625rem); font-weight: 500;
  color: var(--text-primary); cursor: pointer; list-style: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover { background: #fff; }
.faq-item summary:hover { background: transparent; }
.faq-item.is-open { background: #fff; }
.faq-item.is-open summary { background: #fff; }
.faq-icon {
  flex-shrink: 0; color: var(--text-muted);
  transition: color .2s var(--ease);
}
.faq-item.is-open .faq-icon { color: var(--text-primary); }
.faq-icon svg {
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

/* Accordion slide animation */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .5s cubic-bezier(.16, 1, .3, 1);
}
.faq-answer-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s cubic-bezier(.16, 1, .3, 1);
}
.faq-answer-inner {
  padding: 0 1.25rem 1rem 2.75rem;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-item.is-open .faq-answer-inner {
  opacity: 1;
  transition-delay: .1s;
}
.faq-item.is-open .faq-icon svg { transform: rotate(90deg); }
.faq-answer p { font-size: .875rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: var(--section-py) 0; background: var(--bg-primary); text-align: center;
}
.cta-dark {
  background-color: #5a4d42;
  background-image: url('assets/IDC-Star_pattern.png');
  background-size: 60px;
  background-repeat: repeat;
  background-blend-mode: overlay;
  position: relative;
}
.cta-dark::before {
  content: ''; position: absolute; inset: 0;
  background: #5a4d42;
  opacity: .75;
  pointer-events: none;
}
.cta.cta-dark h2 { color: var(--color-400); }
.cta.cta-dark p { color: var(--color-300); }
.btn-outline-light { border-color: var(--color-400); color: var(--color-400); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--color-500); color: #fff; }
.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-image { margin-bottom: 2rem; }
.cta-image-placeholder { border-radius: 0; overflow: hidden; }
.cta h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: .75rem;
  color: var(--heading-color);
}
.cta p {
  font-size: .9375rem; color: var(--text-secondary);
  margin-bottom: 1.5rem; line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #2a2a28; color: var(--color-600);
  padding: 4.5rem 0 1.5rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto auto auto auto;
  gap: 3rem; margin-bottom: 3.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-logo-svg { color: var(--color-600); height: auto; width: 140px; }
.footer-cols {
  display: contents;
}
.footer-heading {
  font-family: var(--font-body); font-weight: 600;
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--color-500); margin-bottom: 1rem;
}
.footer-heading--second { margin-top: 2rem; }
.footer-col p { font-size: .875rem; color: var(--color-600); line-height: 1.6; margin-bottom: .5rem; }
.footer-col a { color: var(--color-600); font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: .375rem; }
.footer-hours { font-size: .875rem; color: var(--color-600); line-height: 1.8; white-space: nowrap; }
.footer-hours li::before { content: none; }

/* Footer accordion — open by default on desktop */
.footer-accordion { border: none; }
.footer-accordion summary { list-style: none; cursor: default; }
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion summary::marker { display: none; content: ''; }
.footer-chevron { display: none; transition: transform .3s ease; }
.footer-accordion[open] .footer-chevron { transform: rotate(180deg); }

/* Footer accordion nav — animated via JS */

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: .8125rem; color: var(--color-700); }
.footer-bottom p a { color: inherit; text-decoration: none; }
.footer-bottom p a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--color-600); transition: color .2s var(--ease); }
.footer-social a:hover { color: #fff; }

/* ============================================
   MEGA MENU
   ============================================ */

/* Nav trigger buttons (items with dropdowns) */
.nav-trigger {
  appearance: none; border: none; background: transparent;
  margin: 0; padding: 0; box-sizing: border-box;
  font-size: .875rem;
  color: var(--text-secondary);
  position: relative;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 0;
  font-family: var(--font-body);
  background: transparent;
  transition: color .2s var(--ease);
}
.nav-trigger::after {
  content: '';
  position: absolute;
  bottom: 0; left: .75rem; right: .75rem;
  height: 1.5px;
  background: var(--color-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-trigger:hover {
  color: var(--text-primary);
}
.nav-trigger:hover::after { transform: scaleX(1); }

.nav-chevron {
  width: 10px;
  height: 10px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  flex-shrink: 0;
}
.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* Active state — underline stays visible */
.nav-trigger[aria-expanded="true"] {
  color: var(--text-primary);
}
.nav-trigger[aria-expanded="true"]::after {
  transform: scaleX(1);
}

/* Backdrop overlay (very subtle for Vercel style) */
.mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
  pointer-events: none;
}
.mega-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mega wrapper — floating card, positioned under active trigger */
.mega-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 102;
  pointer-events: none;
  background: #eeefe6;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(95, 84, 80, .15), 0 2px 8px rgba(95, 84, 80, .08);
  border: 1px solid var(--border-light);
  opacity: 0;
  transform: translateX(-50%) translateY(6px) scale(.98);
  transition: opacity .25s cubic-bezier(.16,1,.3,1),
              transform .25s cubic-bezier(.16,1,.3,1),
              visibility .25s cubic-bezier(.16,1,.3,1);
  visibility: hidden;
  margin-top: 0;
  width: min(var(--container-max), calc(100vw - 2 * var(--container-px)));
  left: 50% !important;
}
/* Invisible bridge so mouse can travel from nav trigger to panel */
.mega-wrapper::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}
.mega-wrapper.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

/* Hide mobile mega panels on desktop */
.mobile-mega { display: none; }

/* Individual panels */
.mega-panel {
  display: none;
  padding: 0;
}
.mega-panel.is-active {
  display: block;
}

/* Grid of links inside panel */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

/* Individual link items */
.mega-link {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0;
  text-decoration: none;
  transition: background .2s var(--ease);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.mega-link:hover {
  background: #fff;
}

.mega-link-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
}
.mega-link:hover .mega-link-title {
  color: var(--text-primary);
}

/* Services-style mega grid */
.mega-grid--services {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.mega-link--service {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: 0;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: normal;
  transition: background .15s ease;
}
.mega-link--service:hover {
  background: #fff;
  color: var(--text-primary);
}
/* Remove right border on last column */
.mega-grid--services .mega-link--service:nth-child(4n) { border-right: none; }
/* Remove bottom border on last row */
.mega-grid--services .mega-link--service:nth-last-child(-n+3) { border-bottom: none; }

/* Inline mega grid — single row for small menus */
.mega-grid--inline {
  display: flex;
  gap: 0;
}

/* Column mega grid — single column for small menus */
.mega-grid--column {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mega-grid--column .mega-link--service { border-right: none; }
.mega-grid--column .mega-link--service:last-child { border-bottom: none; }

/* Row mega grid — single horizontal row with vertical dividers */
.mega-grid--row {
  display: flex;
  gap: 0;
}
.mega-grid--row .mega-link--service {
  flex: 1;
  border-bottom: none;
  border-right: 1px solid var(--border-light);
}
.mega-grid--row .mega-link--service:last-child { border-right: none; }

.mega-link-desc {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tight desktop — scale nav down to prevent overflow */
@media (max-width: 1280px) {
  .logo svg { height: 40px; }
  .nav-list { gap: 0; }
  .nav-list a { font-size: .8125rem; padding: .4rem .5rem; }
  .nav-list a::after { left: .5rem; right: .5rem; }
  .nav-trigger { font-size: .8125rem; padding: .4rem .5rem; }
  .nav-trigger::after { left: .5rem; right: .5rem; }
  .header-right .btn { padding: 0 1.25rem; font-size: .75rem; }
}

.nav-item--mobile-cta { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; order: -1; }
  .site-header { overflow: visible; }
  .header-inner { padding-right: 0; max-width: 100%; width: 100%; }
  .logo { order: 0; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 220px); padding: 0 .75rem; }
  .logo svg { height: clamp(42px, 12vw, 56px); }
  .main-nav { order: -1; }
  .header-right { display: none; }
  .nav-item--mobile-cta {
    display: flex; flex-direction: column; gap: .75rem;
    padding: 1.5rem; border-bottom: none !important;
    margin-top: auto;
  }
  .nav-list .nav-item--mobile-cta .mobile-nav-btn.btn-primary {
    display: block; width: 100%; text-align: center; padding: .875rem 1.5rem;
    font-size: .9375rem; font-family: var(--font-body); font-weight: 500;
    background: var(--brand-blue); color: #fff; border-color: var(--brand-blue);
    border-radius: 100px;
  }
  .nav-list .nav-item--mobile-cta .mobile-nav-btn.btn-outline {
    display: block; width: 100%; text-align: center; padding: .875rem 1.5rem;
    font-size: .9375rem; font-family: var(--font-body); font-weight: 500;
    background: transparent; color: var(--color-800); border: 1.5px solid var(--color-800);
    border-radius: 100px;
  }
  .nav-list {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #f6f6ee;
    padding: 0; gap: 0;
    list-style: none;
    z-index: 999;
    height: 100vh; height: 100dvh;
    overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 100vh 0 100vh #f6f6ee;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .35s ease, transform .35s ease, visibility 0s .35s;
  }
  .nav-list.is-open {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease, visibility 0s 0s;
  }
  .header-phone { display: none; }

  /* Mobile nav items — uniform styling */
  .nav-list .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-list .nav-item:first-child { border-top: 1px solid var(--border-light); }
  .nav-list .nav-item:last-child { border-bottom: none; }
  .nav-list .nav-item > a {
    display: block; width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading); font-weight: 400;
    font-size: 1.125rem; color: var(--text-secondary);
    border-radius: 0; background: none;
    text-align: center;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .nav-list .nav-item > a:hover { background: #fff; color: var(--text-primary); }
  .nav-trigger {
    display: flex; align-items: center; justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-heading); font-weight: 400;
    font-size: 1.125rem; color: var(--text-secondary);
    background: none; border: none; cursor: pointer;
    text-align: center;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .nav-trigger:hover { background: #fff; color: var(--text-primary); }
  .nav-trigger .nav-chevron {
    transition: transform .3s var(--ease);
  }
  .nav-item.has-mega .nav-trigger[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
  }

  /* Mega menu mobile: inline accordion style */
  .mega-wrapper, .mega-backdrop { display: none !important; }
  .nav-trigger::after { display: none; }
  .nav-item.has-mega .mobile-mega {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.16, 1, .3, 1);
    overflow: hidden;
  }
  .nav-item.has-mega .mobile-mega.is-open {
    grid-template-rows: 1fr;
  }
  .mobile-mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    min-height: 0;
    opacity: 0;
    transition: opacity .4s cubic-bezier(.16, 1, .3, 1);
    border: 1px solid var(--border-light);
    background: #eeefe6;
  }
  .mobile-mega.is-open .mobile-mega-inner {
    opacity: 1;
    padding-top: 0;
    transition-delay: .1s;
  }
  .mobile-mega .mega-link {
    padding: .75rem 1.5rem;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  .mobile-mega .mega-link:nth-child(2n) { border-right: none; }
  .mobile-mega .mega-link:nth-last-child(-n+2) { border-bottom: none; }
  .mobile-mega .mega-link:last-child:nth-child(odd) { border-bottom: none; }
  .mobile-mega .mega-link:hover { background: #fff; }
  .mobile-mega .mega-link-desc { display: none; }
  .mobile-mega .mega-link-title { font-family: var(--font-body); font-weight: 400; font-size: .9375rem; color: var(--text-secondary); text-align: center; width: 100%; }
  /* About & Financing: single-column on mobile */
  [data-mega="about"] .mobile-mega-inner,
  [data-mega="financing"] .mobile-mega-inner { grid-template-columns: 1fr; }
  [data-mega="about"] .mobile-mega .mega-link,
  [data-mega="financing"] .mobile-mega .mega-link { border-right: none; border-bottom: 1px solid var(--border-light); }
  [data-mega="about"] .mobile-mega .mega-link:last-child,
  [data-mega="financing"] .mobile-mega .mega-link:last-child { border-bottom: none; }
  /* Divider under Teeth Whitening */
  [data-mega="services"] .mobile-mega .mega-link:nth-child(10) { border-bottom: 1px solid var(--border-light); }

  .hero { height: auto; min-height: 0; padding-top: 1.5rem; overflow: visible; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { margin: 0 auto 1.5rem; }
  .hero .hero-image { min-height: 0; max-height: 500px; margin-right: 0; aspect-ratio: 4 / 3; margin-bottom: 2rem; }
  .hero .hero-img { object-position: center top; }
  .hero-actions { justify-content: center; }
  .tablet-br { display: block; }
  .hero-subtitle { max-width: 520px; margin-left: auto; margin-right: auto; }
  .mobile-only-br { display: none; }

  .services-inner { grid-template-columns: 1fr; max-height: none; }
  .services-image { order: 2; }
  .services-content { text-align: center; order: 1; }
  .services-image img { min-height: 200px; max-height: 260px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0 auto; }

  .ad-banner-inner { grid-template-columns: .8fr 1fr; }
  .ad-banner-content { padding: clamp(1.25rem, 3vw, 2rem); gap: .75rem; }
  .ad-banner-content h2 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
  .ad-banner-content h2 strong { font-size: clamp(1.5rem, 4vw, 2.25rem); }
  .ad-banner-image img { min-height: 200px; }

  .review-cards { overflow-x: auto; overflow-y: hidden; }
  .review-card { flex: 0 0 calc(50% - 0.625rem); }

  .cdcp-inner { max-width: none; margin: 0; padding-right: 5%; padding-left: 5%; }

  .lang-count { font-size: 1.25rem; white-space: nowrap; }
  .lang-list { columns: 1; font-size: 1.125rem; }
  .stats-layout { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stats-languages { grid-column: 1 / -1; order: -1; }
  .stat-card { min-height: 220px; padding: 1.75rem 1.5rem; }

  .doctors-bento {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .bento-card--featured {
    width: 100%;
  }
  .bento-card--featured .bento-photo img { aspect-ratio: 16 / 9; }
  .bento-card:not(.bento-card--featured) {
    width: calc(33.333% - 11px);
  }
  .bento-card:not(.bento-card--featured) .bento-photo img { aspect-ratio: 3 / 4; }
  .bento-card--featured .bento-name { font-size: 1.5rem; }

  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; width: auto; margin-left: 0; padding: 0 12px; }

  .visit-map-layout { grid-template-columns: 1fr; }
  .visit-map { height: 300px; min-height: 300px; }
  .visit-card-content { padding: 1.5rem; }
  .visit-card-title { font-size: 1.25rem; }


  .footer-inner { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .top-bar-divider { display: none; }
  .top-bar-msg { font-size: .75rem; }
  .header-right .btn { padding: 0 1rem; font-size: .6875rem; letter-spacing: .01em; }

  .review-card { flex: 0 0 85%; }

  .hero h1 { font-size: 2.25rem; }
  .mobile-only-br { display: block; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-link:nth-child(odd) { margin-right: 0; justify-content: flex-start; text-align: left; }
  .service-link:nth-child(even) { margin-left: 0; justify-content: flex-end; text-align: right; }

  .doctors-bento { gap: 10px; }
  .bento-card:not(.bento-card--featured) { width: calc(50% - 5px); }
  .bento-card { border-radius: 8px; }
  .bento-card--featured .bento-photo img { aspect-ratio: 16 / 10; }
  .bento-card--featured .bento-name { font-size: 1.25rem; }
  .bento-name { font-size: 1rem; }
  .bento-role { font-size: .65rem; }
  .bento-info { padding: .75rem 1rem; }
  .bento-card--featured .bento-info { padding: 1rem 1.25rem; }
  .bento-cta { font-size: .7rem; padding: .25rem 1rem; }

  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; width: auto; margin-left: 0; padding: 0 12px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { justify-content: center; }
  .lang-list { font-size: 1.125rem; }
  .stats-layout { grid-template-columns: 1fr; }
  .stat-card { min-height: auto; padding: 1.5rem 1.25rem; }
  .ad-banner-inner { grid-template-columns: 1fr; }
  .ad-banner-image { order: 2; }
  .ad-banner-content { align-items: center; text-align: center; order: 1; }
  .ad-banner-content h2 { font-size: clamp(1.25rem, 5vw, 2rem); }
  .ad-banner-content h2 strong { display: block; font-size: clamp(2rem, 8vw, 3.25rem); }
  .ad-banner-image img { min-height: 200px; max-height: none; }

  .cdcp-btn { margin-top: 1.5rem; }
  .feature-br { display: block; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:nth-child(3) { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  /* Footer accordions on mobile */
  .footer-col--accordion { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 0; }
  .footer-accordion summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; }
  .footer-chevron { display: inline-block; transition: transform .25s ease; color: var(--color-600); }
  .footer-accordion[open] .footer-chevron { transform: rotate(180deg); }
  .footer-accordion nav { padding-bottom: 1rem; }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal-overlay.is-active { opacity: 1; visibility: visible; }
.modal {
  position: relative; background: var(--brand-blue);
  border-radius: 20px; overflow: hidden;
  max-width: 700px; width: 90%; max-height: 90vh; max-height: 90dvh;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  transform: translateY(20px);
  transition: transform .3s var(--ease);
}
.modal-overlay.is-active .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--color-800);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.modal-close:hover { background: var(--color-200); }
.modal-body {
  display: grid; grid-template-columns: 1.2fr .8fr;
}
.modal-image { order: 2; }
.modal-content {
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.modal-logo {
  display: block; width: 160px; height: auto; color: #fff;
  margin-bottom: 1.25rem;
}
.modal-heading {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1; color: #fff; margin-bottom: .25rem;
}
.modal-heading-big {
  font-size: clamp(4rem, 8vw, 5.5rem); font-weight: 400; font-style: italic;
  display: block; line-height: .95; margin-top: .25rem;
}
.modal-text {
  font-size: 1.25rem; color: rgba(255,255,255,.85);
  line-height: 1.5; margin-bottom: 1.5rem;
}
.modal-btn {
  border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.85);
  align-self: flex-start;
}
.modal-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.modal-image {
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block;
}
.modal-image svg {
  width: 100%; max-width: 480px; height: auto;
}
.modal-subtitle {
  font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.7);
  margin-bottom: 1rem; letter-spacing: .02em;
}
@media (max-width: 600px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal { display: flex; flex-direction: column; width: 94%; max-height: 96vh; max-height: 96dvh; border-radius: 16px; }
  .modal-body { display: flex; flex-direction: column; flex: 1; justify-content: center; }
  .modal-content { padding: 3.5vh 1.5rem 2vh; order: 1; align-items: center; text-align: center; }
  .modal-logo { width: clamp(120px, 22vw, 180px); margin-bottom: 2vh; }
  .modal-heading { font-size: clamp(2.75rem, 10vw, 4rem); margin-bottom: 0; }
  .modal-heading-big { font-size: clamp(5rem, 17vw, 7rem); margin-top: .1rem; }
  .modal-text { font-size: clamp(1.25rem, 5vw, 1.75rem); margin-bottom: 2.5vh; }
  .modal-text-line { white-space: nowrap; }
  .modal-btn { align-self: center; }
  .modal-image { max-height: none; order: 2; padding: 2vh 35% 4vh; min-height: auto; flex-shrink: 1; }
  .modal-image svg { max-width: 100%; height: auto; }
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */

/* --- Header shrink on scroll --- */
.site-header.is-header-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(95,84,80,.25);
}
.site-header.is-scrolled .header-inner { height: 56px; }
.site-header.is-scrolled .logo svg { height: 36px; transition: height .3s var(--ease); }
.header-inner { transition: height .3s var(--ease); }
.logo svg { transition: height .3s var(--ease); }

/* --- Active nav link --- */
.nav-list a.is-active {
  color: var(--text-primary);
  background: var(--color-200);
  font-weight: 500;
}

/* --- Service link hover effects --- */
.service-link {
  position: relative; overflow: clip;
}
.service-link::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.06);
  transform: translateX(-101%);
  transition: transform .35s var(--ease);
  z-index: 0;
}
.service-link:hover::before { transform: translateX(0); }
.service-link span, .service-link .arrow { position: relative; z-index: 1; }
.service-link .arrow {
  transition: transform .3s var(--ease);
}
.service-link:hover .arrow { transform: translateX(4px); }

/* --- Review card hover --- */
.review-card {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(95,84,80,.25);
}

/* --- Team card hover --- */
.team-card {
  transition: transform .3s var(--ease);
}
.team-photo {
  transition: transform .4s var(--ease);
}
.team-card:hover { transform: translateY(-4px); }
.team-card:hover .team-photo svg {
  transform: scale(1.03);
  transition: transform .4s var(--ease);
}

/* --- Team card radar reveal --- */
.team-card.radar-reveal {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

/* --- Stat card hover --- */
.stat-card {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(95,84,80,.25);
}

/* (accordion styles consolidated above in FAQ section) */

/* --- Hero parallax container --- */
.hero-image {
  will-change: transform;
  transition: transform .1s linear;
  min-height: 600px;
  margin-right: calc(-1 * var(--container-px));
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.hero-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
  padding: 1.5rem 2rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .2rem;
  text-decoration: none; text-align: center;
  border-radius: 0 0 12px 12px;
}
a.hero-badge:hover .hero-badge-cta { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); }
.hero-badge-name {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 1.75rem; color: #fff; line-height: 1.2;
}
.hero-badge-sep { display: none; }
.hero-badge-role {
  font-family: var(--font-body); font-weight: 600;
  font-size: .8125rem; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .08em;
}
.hero-badge-cta {
  display: inline-block; margin-top: .5rem;
  font-family: var(--font-body); font-weight: 500; font-size: .8125rem;
  color: #fff; border: 1px solid rgba(255,255,255,.4);
  padding: .35rem 1.25rem; border-radius: 100px;
  transition: background .2s ease, border-color .2s ease;
}
@media (max-width: 600px) {
  .hero-badge { padding: 1rem 1.25rem; }
  .hero-badge-name { font-size: 1.25rem; }
  .hero-badge-role { font-size: .7rem; }
  .hero-badge-cta { font-size: .7rem; padding: .25rem 1rem; }
}

/* --- Button hover micro-interactions --- */
.btn {
  position: relative;
}

/* --- CDCP flag float animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Back to top button --- */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--brand-blue); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(95,84,80,.25);
}
.back-to-top.is-visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover { background: var(--color-800); }
.back-to-top svg { width: 20px; height: 20px; }

/* --- Scroll-reveal entrance keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hidden state before reveal (no transition = no hover conflict) */
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .scale-in { opacity: 0; }

  /* Play keyframe on reveal; backwards fill holds "from" state during delay,
     but releases after animation ends so hover transforms work normally */
  .fade-in.is-visible {
    opacity: 1;
    animation-name: fadeInUp;
    animation-duration: .6s;
    animation-timing-function: var(--ease);
    animation-fill-mode: backwards;
  }
  .slide-in-left.is-visible {
    opacity: 1;
    animation-name: slideInLeft;
    animation-duration: .6s;
    animation-timing-function: var(--ease);
    animation-fill-mode: backwards;
  }
  .slide-in-right.is-visible {
    opacity: 1;
    animation-name: slideInRight;
    animation-duration: .6s;
    animation-timing-function: var(--ease);
    animation-fill-mode: backwards;
  }
  .scale-in.is-visible {
    opacity: 1;
    animation-name: scaleIn;
    animation-duration: .5s;
    animation-timing-function: var(--ease);
    animation-fill-mode: backwards;
  }

  /* Stagger delays via JS data-delay attribute */
  .fade-in[data-delay="1"].is-visible { animation-delay: .1s; }
  .fade-in[data-delay="2"].is-visible { animation-delay: .2s; }
  .fade-in[data-delay="3"].is-visible { animation-delay: .3s; }
  .fade-in[data-delay="4"].is-visible { animation-delay: .4s; }
  .fade-in[data-delay="5"].is-visible { animation-delay: .5s; }
}

/* Respect reduced motion — kill entrance animations but keep hover transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
  .fade-in, .slide-in-left, .slide-in-right, .scale-in,
  .svc-block {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ============================================
   Cookie Consent Banner & Modal
   ============================================ */

/* --- Bottom Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--brand-blue);
  color: #fff;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .4s ease, visibility 0s .4s;
  visibility: hidden;
}
.cookie-banner.is-visible { transform: translateY(0); visibility: visible; transition: transform .4s ease, visibility 0s 0s; }
.cookie-banner-text {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 1.25rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Shared button styles --- */
.cookie-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s var(--ease);
  border: none;
}
.cookie-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn-outline:hover { background: rgba(255,255,255,.15); }
.cookie-btn-accept {
  background: #fff;
  color: var(--brand-blue);
}
.cookie-btn-accept:hover { background: rgba(255,255,255,.9); }
.cookie-btn:focus-visible, .cookie-modal-close:focus-visible, .cookie-category-header:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.cookie-btn-dark {
  background: #1e1e1e;
  color: #fff;
}
.cookie-btn-dark:hover { background: #333; }

/* --- Overlay --- */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.cookie-overlay.is-visible {
  display: flex;
}

/* --- Modal --- */
.cookie-modal {
  background: #fff;
  color: #1e1e1e;
  border-radius: 1rem;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0efe9;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.cookie-modal-close:hover { background: #e0ddd5; }
.cookie-modal-header {
  margin-bottom: 1rem;
}
.cookie-modal-logo {
  width: 180px;
  height: auto;
  margin-bottom: 0.25rem;
  color: #1e1e1e;
}
.cookie-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: #1e1e1e;
}
.cookie-modal-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.5rem;
}
.cookie-modal-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cookie-modal-buttons .cookie-btn-outline {
  color: #1e1e1e;
  border-color: #1e1e1e;
}
.cookie-modal-buttons .cookie-btn-outline:hover {
  background: rgba(0,0,0,.05);
}
.cookie-modal-subheading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* --- Categories --- */
.cookie-categories {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.cookie-category + .cookie-category {
  border-top: 1px solid #ddd;
}
.cookie-category-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1e1e;
  text-align: left;
  transition: background .15s;
}
.cookie-category-header:hover { background: #fff; }
.cookie-category-toggle {
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  color: #666;
}
.cookie-category-name { flex: 1; }
.cookie-category-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e1e1e;
  margin-left: auto;
}

/* Toggle switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: auto;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-slider {
  position: absolute;
  inset: 0;
  background: #767676;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s;
}
.cookie-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
}
.cookie-switch input:checked + .cookie-slider { background: var(--brand-blue); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-slider { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* Category body (expandable) */
.cookie-category-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
  padding: 0 1rem;
  background: #fafaf5;
}
.cookie-category.is-open .cookie-category-body {
  max-height: 600px;
  padding: 0.75rem 1rem 1rem;
}
.cookie-category.is-open .cookie-category-toggle {
  content: '';
}
.cookie-category-body p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #555;
  margin-bottom: 0.75rem;
}
.cookie-category-body p:last-child { margin-bottom: 0; }
.cookie-category-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0.75rem 0 0.25rem;
}

/* Footer */
.cookie-modal-footer {
  text-align: center;
}

/* --- Mobile adjustments --- */
@media (max-width: 600px) {
  .cookie-banner { border-radius: 0; }
  .cookie-modal { border-radius: 0.75rem; padding: 1.25rem; }
  .cookie-modal-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* Page Hero (reusable for all inner pages) */
.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background: var(--bg-primary);
}
.page-hero-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1; margin-bottom: .75rem;
  color: var(--heading-color);
}
.page-hero-title em { font-style: italic; color: var(--brand-blue); }
.page-hero-subtitle {
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-secondary); max-width: 600px;
  margin: 0 auto; line-height: 1.7;
}

/* About Landing — Trusted Care */
.about-landing {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--bg-primary);
}
.about-landing-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}
.about-landing-photos {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 1fr 2fr;
  gap: .75rem;
  min-height: 400px;
  overflow: hidden;
}
.about-photo--tall {
  grid-row: span 2;
  grid-column: 1;
  border-radius: 12px;
  overflow: hidden;
}
.about-photo--small {
  border-radius: 12px;
  overflow: hidden;
}
.about-photo--tall img,
.about-photo--small img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo-stack {
  display: flex; flex-direction: column; gap: .75rem;
  grid-row: span 2;
}
.about-photo-stack .about-photo--small {
  flex: 2; min-height: 0; overflow: hidden;
}
.about-photo-stack .about-photo--small:first-child {
  flex: 1;
}
.about-landing-content {
  display: flex; flex-direction: column; justify-content: center;
}
.about-landing-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.1; margin-bottom: 1.5rem;
  color: var(--heading-color);
}
.about-landing-title em { font-style: italic; color: var(--brand-blue); }
.about-landing-content p {
  font-size: .9375rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 1rem;
}
@media (max-width: 900px) {
  .about-landing-inner { grid-template-columns: 1fr; }
  .about-landing-photos { order: -1; }
  .about-landing-title { text-align: center; }
  .about-landing-title br { display: none; }
}
@media (max-width: 600px) {
  .about-landing-photos {
    min-height: 300px;
  }
}

/* Doctors + Staff Sections */
.about-doctors,
.about-staff {
  padding: clamp(3rem, 6vw, 5rem) 0;
  scroll-margin-top: 5rem;
}
.about-doctors { background: #edeee6; }
.about-staff { background: #edeee6; }
.about-section-eyebrow {
  text-align: center; text-transform: uppercase;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; color: var(--text-secondary);
  margin-bottom: .5rem;
}

/* Card Grid */
.about-card-grid {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.about-card-grid--2 { max-width: 720px; }
.about-card-grid--2 .about-card { flex: 0 0 calc(50% - .75rem); }
.about-card-grid--3 .about-card { flex: 0 0 calc(33.333% - 1rem); }
.about-card-grid--4 .about-card { flex: 0 0 calc(25% - 1.125rem); }

/* Individual Card */
.about-card {
  position: relative; overflow: hidden;
  border: none; padding: 0; margin: 0;
  background: #fff; width: 100%;
  cursor: pointer; text-align: center;
  font-family: inherit;
  display: flex; flex-direction: column;
  transition: transform .25s ease, opacity .6s cubic-bezier(.16,1,.3,1), filter .6s cubic-bezier(.16,1,.3,1);
}
.about-card[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(.97);
  filter: blur(4px);
}
.about-card[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.about-card.is-visible:hover { transform: translateY(-4px); }
.about-card:hover { transform: translateY(-4px); }
.about-card:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}
.about-card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.about-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.about-card-label {
  background: #fff;
  padding: .75rem 1rem;
  display: flex; flex-direction: column;
  align-items: center; gap: .125rem;
  pointer-events: none;
}
.about-card-name {
  font-family: var(--font-heading); font-weight: 600;
  font-size: .875rem; color: var(--text-primary);
  white-space: nowrap;
}
.about-card-role {
  font-size: .6875rem; color: var(--text-primary);
  font-weight: 400; white-space: nowrap;
}
.about-card-cta {
  font-size: .6875rem; color: var(--text-secondary);
  font-weight: 500; text-decoration: underline;
}

@media (max-width: 900px) {
  .about-card-grid--4 .about-card { flex: 0 0 calc(50% - .75rem); }
}
@media (max-width: 600px) {
  .about-card-grid { gap: .75rem; margin-top: 1.5rem; }
  .about-card-grid--2 .about-card { flex: 0 0 100%; max-width: 360px; }
  .about-card-grid--3 .about-card { flex: 0 0 calc(50% - .375rem); }
  .about-card-grid--4 .about-card { flex: 0 0 calc(50% - .375rem); }
  .about-card-label {
    padding: .5rem .375rem;
  }
  .about-card-name { font-size: .85rem; white-space: normal; line-height: 1.3; }
  .about-card-role { font-size: .7rem; white-space: normal; line-height: 1.3; }
  .about-card-cta { font-size: .7rem; }
  .about-section-eyebrow { margin-bottom: .75rem; }
  .about-staff, .about-doctors { padding-top: 2.5rem; padding-bottom: 3rem; }
}

/* Team Modal */
.team-modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.team-modal-overlay.is-active {
  opacity: 1; pointer-events: auto;
}
.team-modal {
  background: #fff;
  max-width: 820px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.1);
}
.team-modal::after {
  content: ''; position: sticky; bottom: 0;
  display: block; height: 3rem;
  margin-top: -3rem;
  margin-left: 320px;
  background: linear-gradient(transparent, rgba(255,255,255,.95));
  pointer-events: none;
  transition: opacity .3s ease;
  border-radius: 0 0 20px 0;
}
.team-modal.scrolled-end::after { opacity: 0; }
.team-modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  border: none; background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%; font-size: 1.25rem;
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.team-modal-close:hover { background: #fff; transform: scale(1.08); }
.team-modal-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 420px;
}
.team-modal-photo {
  border-radius: 20px 0 0 20px;
  overflow: hidden;
}
.team-modal-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.team-modal-content {
  padding: 2.5rem 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 0;
}
.team-modal-name {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 1.625rem; color: var(--heading-color);
  margin-bottom: .25rem; line-height: 1.2;
}
.team-modal-role {
  font-size: .8125rem; color: var(--brand-blue);
  font-weight: 600; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.team-modal-bio {
  font-size: .9375rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 1.25rem;
}
.team-modal-accolades {
  list-style: none; padding: 0;
  margin-bottom: 1.25rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.team-modal-accolades li {
  font-size: .8125rem; color: var(--text-secondary);
  padding: .35rem .75rem;
  position: relative;
  background: rgba(0,160,226,.06);
  border-radius: 6px;
  border-left: 3px solid var(--brand-blue);
}
.team-modal-accolades li::before { display: none; }
.team-modal-fun {
  font-size: .8125rem; color: var(--color-700);
  font-style: italic; line-height: 1.6;
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 700px) {
  .team-modal { border-radius: 16px; max-height: 92vh; }
  .team-modal-inner {
    grid-template-columns: 1fr;
  }
  .team-modal-photo { max-height: 300px; overflow: hidden; border-radius: 16px 16px 0 0; }
  .team-modal-content { padding: 1.5rem; }
  .team-modal::after { margin-left: 0; border-radius: 0 0 16px 16px; }
}
/* ============================================
   SERVICE PAGES
   ============================================ */

/* Service Hero — image left, content right */
.svc-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg-primary);
  border-bottom: none;
}
.svc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.svc-hero-img {
  width: 100%; height: 100%;
  min-height: 340px; max-height: 480px;
  object-fit: cover;
  background: var(--color-300);
  border-radius: 12px;
}
.svc-hero-content {
  padding: clamp(1rem, 2vw, 2rem) 0;
}
.svc-hero-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1; margin-bottom: 1.25rem;
  color: var(--heading-color);
}
.svc-hero-intro {
  font-size: .9375rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 1.75rem;
}
.svc-hero .btn { min-width: 200px; }

/* Modern hero card variant */
.svc-hero--card .svc-hero-inner {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 1px 3px rgba(95,84,80,.06), 0 8px 32px rgba(95,84,80,.06);
  border: 1px solid rgba(95,84,80,.05);
}
.svc-hero--card .svc-hero-img {
  border-radius: 12px;
}

@media (max-width: 900px) {
  .svc-hero-inner { grid-template-columns: 1fr; }
  .svc-hero-img { max-height: 360px; }
  .svc-hero-content { text-align: center; }
  .svc-hero--card .svc-hero-inner { padding: clamp(1rem, 2vw, 1.5rem); }
}

/* CDCP Covered Banner */
.cdcp-covered-banner {
  background: linear-gradient(135deg, #00a0e2 0%, #0080b8 100%);
  padding: .875rem 0;
  transition: background .3s ease;
}
.cdcp-covered-banner:hover {
  background: linear-gradient(135deg, #009ad6 0%, #006fa3 100%);
}
.cdcp-covered-banner a {
  display: flex; align-items: center; justify-content: center; gap: .625rem;
  color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500;
  font-family: var(--font-body); transition: transform .2s ease;
  padding: 0 1.25rem;
}
.cdcp-covered-banner a:hover { transform: translateX(4px); }
.cdcp-covered-banner svg { flex-shrink: 0; }
.cdcp-covered-banner img { width: 40px; height: 40px; flex-shrink: 0; filter: brightness(0) invert(1); }

/* Service Body — 2 content columns + sidebar */
.svc-body {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg-primary);
}
.svc-body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 220px;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.svc-col h5 {
  font-family: var(--font-body); font-weight: 700;
  font-size: .9375rem; line-height: 1.4;
  color: var(--text-primary); margin-bottom: .75rem;
}
.svc-col p {
  font-size: .875rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 1.5rem;
}

/* Services Sidebar Mini-Menu */
.svc-sidebar {
  position: sticky; top: 5rem;
  border: 1px solid var(--border-light);
}
.svc-sidebar-header {
  background: var(--color-900);
  color: #fff; text-align: center;
  font-family: var(--font-body); font-weight: 500;
  font-size: .8125rem; letter-spacing: .04em;
  padding: .625rem 1rem;
}
.svc-sidebar-list {
  list-style: none; padding: 0; margin: 0;
}
.svc-sidebar-list li {
  border-bottom: 1px solid var(--border-light);
}
.svc-sidebar-list li:last-child { border-bottom: none; }
.svc-sidebar-list a {
  display: block; padding: .5rem .875rem;
  font-size: .8125rem; font-weight: 400;
  color: var(--text-secondary);
  transition: background .2s var(--ease), color .2s var(--ease);
  text-align: center;
}
.svc-sidebar-list a:hover,
.svc-sidebar-list a[aria-current="page"] {
  background: #fff;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .svc-body-inner {
    grid-template-columns: 1fr;
  }
  .svc-sidebar {
    position: static;
    max-width: none; width: 100%;
  }
  .svc-sidebar-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .svc-sidebar-list li {
    border-right: 1px solid var(--border-light);
  }
  .svc-sidebar-list li:nth-child(even) {
    border-right: none;
  }
}

/* Service Body — Modern variant */
.svc-body--modern .svc-body-inner {
  grid-template-columns: 1fr 220px;
  gap: clamp(2rem, 4vw, 3rem);
}
.svc-content-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.svc-block {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.svc-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.svc-block:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.svc-block h5 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: 1.25rem; line-height: 1.3;
  color: var(--heading-color); margin-bottom: .75rem;
  padding-left: 1rem;
  border-left: 1.5px solid var(--brand-blue);
}
.svc-block p {
  font-size: .9375rem; line-height: 1.8;
  color: var(--text-secondary); margin-bottom: 0;
}

/* Modern sidebar styling */
.svc-body--modern .svc-sidebar {
  border: 1px solid rgba(95,84,80,.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(95,84,80,.06), 0 4px 16px rgba(95,84,80,.04);
}
.svc-body--modern .svc-sidebar-header {
  background: var(--heading-color);
  font-size: .8125rem;
  padding: .75rem 1rem;
  letter-spacing: .06em;
}
.svc-body--modern .svc-sidebar-list a {
  padding: .625rem 1rem;
  font-size: .8125rem;
  border-radius: 0;
  transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
}
.svc-body--modern .svc-sidebar-list a:hover {
  padding-left: 1.25rem;
  background: rgba(0,160,226,.04);
  color: var(--brand-blue);
}
.svc-body--modern .svc-sidebar-list a[aria-current="page"] {
  background: rgba(0,160,226,.06);
  color: var(--brand-blue);
  font-weight: 600;
  border-left: 3px solid var(--brand-blue);
  padding-left: calc(1rem - 3px);
}

@media (max-width: 900px) {
  .svc-body--modern .svc-body-inner {
    grid-template-columns: 1fr;
  }
  .svc-content-flow {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOG — Listing Page (Magazine Style)
   ============================================ */

/* Magazine Hero */
.insights-hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--text-primary);
  display: flex; align-items: center; justify-content: center;
}
.insights-hero-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: .95; letter-spacing: -.02em;
  color: var(--heading-color);
  text-transform: uppercase;
  text-align: center;
}

/* Filter Bar */
.blog-filter {
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}
.blog-filter-bar {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.blog-filter-bar.is-overflowing {
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.blog-filter-bar.is-overflowing.is-scrolled-end,
.blog-filter-bar.is-scrolled-end {
  mask-image: none; -webkit-mask-image: none;
}
.blog-filter-bar::-webkit-scrollbar { display: none; }
.blog-filter-label {
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-right: .75rem;
}
.blog-filter-btn {
  font-family: var(--font-body); font-size: .75rem; font-weight: 500;
  padding: .375rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--border-light); background: transparent;
  color: var(--text-secondary); cursor: pointer;
  transition: all .25s var(--ease);
}
.blog-filter-btn:hover {
  border-color: var(--color-800); color: var(--text-primary);
}
.blog-filter-btn.is-active {
  background: var(--color-1000); border-color: var(--color-1000); color: #fff;
}

/* Category Tags */
.blog-tag {
  display: inline-block; font-family: var(--font-body);
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .25rem .75rem;
  border-radius: 100px; line-height: 1.4;
}
.blog-tag--oral-health { background: #e8f5e9; color: #2e7d32; }
.blog-tag--cosmetic { background: #fce4ec; color: #c62828; }
.blog-tag--family { background: #fff3e0; color: #e65100; }
.blog-tag--news { background: #e3f2fd; color: #1565c0; }

/* Blog Meta */
.blog-meta {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--text-muted);
}
.blog-meta-sep { color: var(--color-600); }

/* Blog Grid */
.blog-grid-section {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  background: var(--bg-primary);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* Blog Card — Magazine Style */
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 0; overflow: hidden;
  text-decoration: none; color: inherit;
  background: var(--bg-primary);
  margin: -1px 0 0 -1px;
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: background .25s var(--ease);
}
.blog-card:hover {
  background: rgba(95,84,80,.03);
  color: inherit;
}
.blog-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.blog-card-header time {
  font-size: .75rem; color: var(--text-muted);
}
.blog-card-img {
  aspect-ratio: 1/1; overflow: hidden;
  background: #efefe7;
  margin-bottom: 1rem;
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}
.blog-card-title {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.4; color: var(--text-primary);
  margin-bottom: .75rem;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.blog-card-readmore {
  font-family: var(--font-body); font-size: .75rem;
  font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.blog-card-readtime {
  font-family: var(--font-body); font-size: .75rem;
  font-weight: 400; color: var(--text-muted);
  letter-spacing: .02em;
}
.blog-card:hover .blog-card-readmore { color: var(--text-primary); }

/* ============================================
   BLOG — Post Page
   ============================================ */

/* Post Header */
.blog-post-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-primary);
}
.blog-post-header-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start;
}
.blog-back-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8125rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color .2s var(--ease);
  margin-bottom: .5rem;
}
.blog-back-link:hover { color: var(--text-primary); }
.blog-back-link svg { flex-shrink: 0; }
.blog-post-title {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2; color: var(--heading-color);
}
.blog-post-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: .75rem; border-top: 1px solid var(--border-light);
  margin-top: .5rem;
  align-self: stretch;
}
.blog-post-author {
  display: flex; align-items: center; gap: .75rem;
}
.blog-post-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover;
}
.blog-post-author-name {
  display: block; font-weight: 600; font-size: .875rem;
  color: var(--text-primary);
}
.blog-post-author-role {
  display: block; font-size: .8125rem; color: var(--text-muted);
}
.blog-post-details {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8125rem; color: var(--text-muted);
}
.blog-post-details time,
.blog-post-details .blog-meta-sep { display: none; }

/* Post Hero Image */
.blog-post-hero {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
  background: var(--bg-primary);
}
.blog-post-hero .container {
  max-width: 900px;
}
.blog-post-hero img {
  width: 100%; border-radius: 12px;
  aspect-ratio: 16/9; object-fit: cover;
}

/* Post Body / Content */
.blog-post-body {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-primary);
}
.blog-post-content {
  max-width: 700px; margin: 0 auto;
}
.blog-post-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.75; color: var(--text-primary);
  margin-bottom: 2rem;
}
.blog-post-content h2 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.3; color: var(--heading-color);
  margin: 2.5rem 0 .75rem;
}
.blog-post-content h3 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.35; color: var(--heading-color);
  margin: 2rem 0 .5rem;
}
.blog-post-content p {
  margin-bottom: 1.25rem; line-height: 1.75;
}
.blog-post-content ul,
.blog-post-content ol {
  margin: 0 0 1.5rem 1.25rem;
  list-style: disc;
}
.blog-post-content ol { list-style: decimal; }
.blog-post-content li {
  margin-bottom: .5rem; line-height: 1.7;
  padding-left: .25rem;
}
.blog-post-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--brand-blue);
  background: rgba(0,160,226,.04);
  border-radius: 0 8px 8px 0;
}
.blog-post-content blockquote p {
  font-size: 1.0625rem; font-style: italic;
  color: var(--text-primary); margin-bottom: .5rem;
}
.blog-post-content blockquote cite {
  font-size: .875rem; font-style: normal;
  color: var(--text-muted); font-weight: 500;
}

/* Post CTA Box */
.blog-post-cta {
  margin: 2.5rem 0; padding: 2rem;
  background: #efefe7; border-radius: 12px;
  text-align: center;
}
.blog-post-cta p {
  font-size: 1rem; font-weight: 500;
  color: var(--text-primary); margin-bottom: 1rem;
}
.blog-post-cta .btn { min-width: 200px; }

/* Post Footer — Share + Nav */
.blog-post-footer {
  padding: 0 0 var(--section-py);
  background: var(--bg-primary);
}
.blog-post-footer .container {
  max-width: 700px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.blog-post-share {
  display: flex; align-items: center; gap: 1rem;
}
.blog-post-share-label {
  font-size: .8125rem; font-weight: 500;
  color: var(--text-muted);
}
.blog-post-share-links {
  display: flex; gap: .5rem;
}
.blog-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--text-secondary); background: transparent;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.blog-share-btn:hover {
  background: var(--color-800); border-color: var(--color-800);
  color: #fff;
}
.blog-share-btn.is-copied {
  background: #e8f5e9; border-color: #2e7d32; color: #2e7d32;
}

/* ============================================
   BLOG — Responsive
   ============================================ */

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .insights-hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .blog-filter-bar { gap: .375rem; }
  .blog-filter-label { display: none; }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-post-meta {
    flex-direction: column; align-items: flex-start;
  }
  .blog-post-footer .container {
    flex-direction: column; align-items: flex-start;
  }
  .blog-post-share { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ============================================
   Gallery — Before & After
   ============================================ */

/* Filter bar */
.gallery-filter {
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}
.gallery-filter-bar {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.gallery-filter-bar.is-overflowing {
  mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
}
.gallery-filter-bar.is-overflowing.is-scrolled-end,
.gallery-filter-bar.is-scrolled-end {
  mask-image: none; -webkit-mask-image: none;
}
.gallery-filter-bar::-webkit-scrollbar { display: none; }
.gallery-filter-label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  margin-right: .75rem; flex-shrink: 0;
}
.gallery-filter-btn {
  font-family: var(--font-body); font-size: .75rem; font-weight: 500;
  padding: .375rem 1rem; border-radius: 100px;
  border: 1.5px solid var(--border-light); background: transparent;
  color: var(--text-secondary); cursor: pointer; white-space: nowrap;
  transition: all .25s var(--ease);
}
.gallery-filter-btn:hover {
  border-color: var(--color-800); color: var(--text-primary);
}
.gallery-filter-btn.is-active {
  background: var(--color-1000); border-color: var(--color-1000); color: #fff;
}

/* Grid */
.gallery-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0 var(--section-py);
  background: var(--bg-primary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Card */
.gallery-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: #f6f6ee;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.gallery-card:hover {
  box-shadow: 0 4px 20px rgba(95,84,80,.1);
  transform: translateY(-2px);
}

/* Before / After pair */
.gallery-pair {
  display: flex;
  background: #f6f6ee;
  gap: 0;
  padding: 8px;
  padding-bottom: 0;
}
.gallery-img {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 4 / 3;
  background: var(--color-300);
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-img + .gallery-img {
  margin-left: 10px;
}
.gallery-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s var(--ease);
}
.gallery-card:hover .gallery-img img { transform: scale(1.03); }

.gallery-img-label {
  position: absolute; bottom: .5rem; left: .5rem;
  font-family: var(--font-body); font-size: .625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,255,255,.85); color: var(--text-primary);
  padding: .2rem .5rem; border-radius: 3px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* Lightbox overlay */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.gallery-lightbox.is-active {
  opacity: 1; visibility: visible;
}
.gallery-lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  object-fit: contain;
  transform: scale(.92);
  transition: transform .35s var(--ease);
}
.gallery-lightbox.is-active img {
  transform: scale(1);
}
.gallery-lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15); border: none; border-radius: 50%;
  color: #fff; font-size: 1.25rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Prev / Next arrows */
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 2;
}
.gallery-lightbox-prev { left: 1.25rem; }
.gallery-lightbox-next { right: 1.25rem; }
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.08); }
@media (max-width: 600px) {
  .gallery-lightbox-prev,
  .gallery-lightbox-next { width: 36px; height: 36px; font-size: 1.4rem; }
  .gallery-lightbox-prev { left: .5rem; }
  .gallery-lightbox-next { right: .5rem; }
}

/* Counter (1 / 12) */
.gallery-lightbox-counter {
  position: absolute; top: 1.25rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: .75rem; font-weight: 500;
  color: rgba(255,255,255,.6); letter-spacing: .04em;
}

.gallery-lightbox-label {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.7);
}

/* Caption: tag on top row, BEFORE / AFTER on second row */
.gallery-caption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border-light);
}
.gallery-caption-before,
.gallery-caption-after {
  font-family: var(--font-body); font-size: .6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
}
.gallery-caption-before { text-align: center; grid-column: 1; }
.gallery-caption-after { text-align: center; grid-column: 2; }
.gallery-tag {
  font-family: var(--font-body); font-size: .625rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .25rem .75rem; border-radius: 100px;
  white-space: nowrap; justify-self: center;
  grid-column: 1 / -1; grid-row: 1;
}
.gallery-tag--ortho { background: #e8eaf6; color: #283593; }
.gallery-tag--composite { background: #fce4ec; color: #c62828; }
.gallery-tag--bridge { background: #e0f2f1; color: #00695c; }
.gallery-tag--invisalign { background: #e3f2fd; color: #1565c0; }
.gallery-tag--denture { background: #fff3e0; color: #e65100; }
.gallery-tag--cosmetic-work { background: #f3e5f5; color: #6a1b9a; }

/* Empty state */
.gallery-empty {
  text-align: center; padding: 3rem 0;
  font-size: .9375rem; color: var(--text-muted);
}

/* Progressive loading — hidden states */
.gallery-hidden, .blog-hidden { display: none !important; }
.load-sentinel { height: 1px; }

/* Responsive */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .gallery-pair { grid-template-columns: 1fr; gap: 4px; }
  .gallery-filter-label { display: none; }
}

