/* ==========================================================================
   Dr. Sowmya's Dental Care — Editorial Calm Clinical Design System
   Strict Vanilla CSS3 | Palette derived from brand logo & Teynampet clinic
   ========================================================================== */

:root {
  /* Core Brand & Clinic Interior Palette */
  --navy-950: #061325;
  --navy-900: #0B1F3A;
  --navy-800: #132E53;
  --navy-700: #1F406D;

  --gold-600: #99701E;
  --gold-500: #B5882B;
  --gold-200: #E8D9B5;
  --gold-100: #F7F1E2;

  --sage-700: #3E5641;
  --sage-600: #4F6A52;
  --sage-500: #6F8B72;
  --sage-200: #CFDDD0;
  --sage-100: #ECF2EC;

  --terracotta-500: #A95A42;
  --terracotta-100: #F7EAE6;

  --cream-100: #F3EEE3;
  --cream-50: #FAF7F1;
  --surface-white: #FFFFFF;

  --ink-900: #0B1F3A;
  --ink-700: #2F3E4E;
  --ink-500: #5A6877;
  --border-subtle: rgba(11, 31, 58, 0.10);
  --border-strong: rgba(11, 31, 58, 0.18);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radii */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 2px 8px rgba(11, 31, 58, 0.05);
  --shadow-sm: 0 8px 24px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 18px 44px rgba(11, 31, 58, 0.09);
  --shadow-lg: 0 28px 64px rgba(11, 31, 58, 0.13);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 98px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background-color: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 2000;
  background: var(--navy-900);
  color: var(--surface-white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: clamp(64px, 8vw, 108px);
}

.section--white {
  background-color: var(--surface-white);
}

.section--cream {
  background-color: var(--cream-50);
}

.section--sage {
  background-color: var(--sage-100);
}

.section--navy {
  background-color: var(--navy-900);
  color: var(--surface-white);
}

/* ==========================================================================
   Typography Helpers
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background-color: var(--gold-500);
}

.section--navy .eyebrow {
  color: var(--gold-200);
}

.section--navy .eyebrow::before {
  background-color: var(--gold-200);
}

.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  line-height: 1.07;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}

.display-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--sage-700);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  color: var(--navy-900);
}

.section--navy .section-title {
  color: var(--surface-white);
}

.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--sage-700);
}

.section--navy .section-title em {
  color: var(--gold-200);
}

.lead-text {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  color: var(--ink-500);
  max-width: 62ch;
}

.section--navy .lead-text {
  color: rgba(255, 255, 255, 0.78);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background-color: var(--gold-500);
}

/* ==========================================================================
   Buttons & Trust Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background-color: var(--navy-900);
  color: var(--surface-white);
  box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
  background-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--gold {
  background-color: var(--gold-500);
  color: var(--surface-white);
}

.btn--gold:hover {
  background-color: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--sage {
  background-color: var(--sage-600);
  color: var(--surface-white);
}

.btn--sage:hover {
  background-color: var(--sage-700);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--navy-900);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--navy-900);
  background-color: rgba(11, 31, 58, 0.04);
  transform: translateY(-2px);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--surface-white);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn--outline-light:hover {
  border-color: var(--surface-white);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  background-color: var(--surface-white);
  color: var(--navy-900);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.trust-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.trust-pill--sage {
  background-color: var(--sage-100);
  color: var(--sage-700);
  border-color: var(--sage-200);
}

.trust-pill--gold {
  background-color: var(--gold-100);
  color: var(--navy-900);
  border-color: var(--gold-200);
}

/* ==========================================================================
   Header & 4-Page Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.22s ease, background-color 0.22s ease;
}

.nav-link:hover {
  color: var(--navy-900);
  background-color: var(--cream-50);
}

.nav-link.is-active {
  color: var(--navy-900);
  font-weight: 600;
  background-color: var(--sage-100);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--gold-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-white);
  color: var(--navy-900);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px) clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, var(--surface-white) 0%, var(--cream-50) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-copy,
.hero-visual,
.split-grid > *,
.ba-showcase > *,
.contact-layout > *,
.cards-grid-2 > *,
.cards-grid-3 > *,
.cards-grid-4 > * {
  min-width: 0;
}

.hero-rating-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 100%;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background-color: var(--gold-100);
  border: 1px solid var(--gold-200);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 22px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #D4931E;
}

.rating-stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  color: var(--ink-500);
  max-width: 54ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-item strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy-900);
}

.hero-meta-item span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-500);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
}

.hero-main-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  margin-left: auto;
  width: 92%;
  box-shadow: var(--shadow-lg);
  background-color: var(--cream-100);
}

.hero-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inset-card {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: clamp(190px, 38%, 240px);
  background: var(--surface-white);
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.hero-inset-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-inset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inset-caption {
  padding: 10px 4px 4px;
}

.hero-inset-caption strong {
  display: block;
  font-size: 0.86rem;
  color: var(--navy-900);
}

.hero-inset-caption span {
  display: block;
  font-size: 0.77rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Page Hero Banner (Inner Pages: About, Treatments, Contact)
   ========================================================================== */
.page-banner {
  padding-block: clamp(48px, 6vw, 76px);
  background: linear-gradient(135deg, var(--surface-white) 0%, var(--sage-100) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.page-banner-inner {
  max-width: 780px;
}

.page-banner .lead-text {
  margin-top: 16px;
}

/* ==========================================================================
   Trust & Topic Strip
   ========================================================================== */
.topic-strip {
  background-color: var(--navy-900);
  color: var(--surface-white);
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topic-strip-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.topic-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.topic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-500);
}

/* ==========================================================================
   Treatment Preview & Categorized Treatment Cards
   ========================================================================== */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.clinical-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}

.clinical-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-200);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--sage-100);
  color: var(--sage-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.clinical-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
}

.clinical-card p {
  font-size: 0.94rem;
  color: var(--ink-500);
}

.treatment-bullets {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.treatment-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-700);
}

.treatment-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-500);
  flex-shrink: 0;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.clinical-card:hover .card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Doctor Spotlight & Editorial Split Layout
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.split-grid--reverse .split-media {
  order: 2;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--sage-100);
  box-shadow: var(--shadow-md);
}

.portrait-frame--square {
  aspect-ratio: 1 / 1;
}

.portrait-frame--tall {
  aspect-ratio: 3 / 4;
}

.portrait-frame--wide {
  aspect-ratio: 4 / 3;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-caption-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.portrait-caption-badge strong {
  display: block;
  font-size: 0.98rem;
  color: var(--navy-900);
}

.portrait-caption-badge span {
  display: block;
  font-size: 0.83rem;
  color: var(--ink-500);
}

.quote-callout {
  margin-block: 24px;
  padding: 20px 24px;
  background-color: var(--cream-50);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--navy-900);
}

.section--cream .quote-callout {
  background-color: var(--surface-white);
}

.credentials-list {
  display: grid;
  gap: 12px;
  margin-block: 22px 28px;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.credentials-list svg {
  width: 20px;
  height: 20px;
  color: var(--sage-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Before / After Interactive Teeth Slider
   ========================================================================== */
.ba-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.ba-card {
  background: var(--surface-white);
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.ba-slider {
  --ba-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background-color: var(--cream-100);
  cursor: ew-resize;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  pointer-events: none;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 2px;
  background-color: var(--surface-white);
  box-shadow: 0 0 0 1px rgba(11, 31, 58, 0.25);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--navy-900);
  color: var(--surface-white);
  border: 2.5px solid var(--surface-white);
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-handle svg {
  width: 20px;
  height: 20px;
}

.ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-label--before {
  left: 14px;
  background-color: rgba(11, 31, 58, 0.82);
  color: var(--surface-white);
}

.ba-label--after {
  right: 14px;
  background-color: rgba(62, 86, 65, 0.9);
  color: var(--surface-white);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.ba-caption-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 4px;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.ba-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy-900);
}

/* ==========================================================================
   Google Reviews & Patient Stories
   ========================================================================== */
.rating-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  margin-bottom: 28px;
}

.rating-score-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rating-big-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-900);
}

.rating-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chip {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  background-color: var(--cream-50);
  border: 1px solid var(--border-subtle);
  color: var(--navy-900);
}

.review-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-xs);
}

.review-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--sage-100);
  color: var(--sage-700);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.author-meta span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-500);
}

.google-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--cream-50);
}

/* ==========================================================================
   Instagram Reels Carousel (@drsowmyasdentalcare)
   ========================================================================== */
.reels-carousel-stage {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.carousel-btn--prev {
  left: -22px;
}

.carousel-btn--next {
  right: -22px;
}

.carousel-btn:hover:not(:disabled) {
  background-color: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--surface-white);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1280px) {
  .carousel-btn--prev {
    left: 10px;
  }

  .carousel-btn--next {
    right: 10px;
  }
}

.reels-track {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 14px;
  scrollbar-width: none;
  cursor: grab;
}

.reels-track:active {
  cursor: grabbing;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

.reel-card {
  flex: 0 0 clamp(250px, 28vw, 295px);
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--navy-950);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 9 / 15;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.reel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reel-card--embed {
  flex: 0 0 290px;
  height: 515px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s ease;
}

.reel-card--embed:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.reel-embed-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--sage-700) 100%);
}

.reel-embed-viewport iframe {
  position: absolute;
  top: -54px;
  left: -89px;
  width: 468px;
  height: 680px;
  border: 0;
  pointer-events: none;
}

.reel-card-trigger {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 0;
  background: linear-gradient(180deg, rgba(6, 19, 37, 0.22) 0%, rgba(6, 19, 37, 0) 26%, rgba(6, 19, 37, 0) 70%, rgba(6, 19, 37, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
  color: var(--surface-white);
}

.reel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reel-handle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(11, 31, 58, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--surface-white);
}

.reel-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reel-watch-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 19, 37, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reel-card--embed:hover .reel-watch-pill {
  background-color: var(--gold-100);
  transform: scale(1.03);
}

.reel-watch-pill svg {
  width: 12px;
  height: 12px;
}

.reel-index-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}

/* Lightbox Modal for Uncropped Playable Instagram Reel */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 19, 37, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reel-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.reel-modal-dialog {
  width: 100%;
  max-width: 480px;
  background-color: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--surface-white);
}

.reel-modal-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reel-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.reel-modal-ext {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-200);
  white-space: nowrap;
}

.reel-modal-ext:hover {
  text-decoration: underline;
}

.reel-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reel-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.reel-modal-close svg {
  width: 18px;
  height: 18px;
}

.reel-modal-stage {
  position: relative;
  display: flex;
  justify-content: center;
  background: #000000;
  padding: 10px;
}

.reel-modal-iframe {
  width: 100%;
  max-width: 380px;
  height: min(635px, 74vh);
  border: 0;
  border-radius: 12px;
  background: var(--surface-white);
}

.reel-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface-white);
  font-size: 0.84rem;
  font-weight: 600;
}

.reel-modal-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.reel-modal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reel-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.reel-card:hover .reel-bg-img {
  transform: scale(1.04);
}

.reel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 19, 37, 0.28) 0%, rgba(6, 19, 37, 0.08) 42%, rgba(6, 19, 37, 0.90) 100%);
}

.reel-top-row {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-tag {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: var(--surface-white);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.reel-play-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reel-play-badge svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.reel-overlay-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: var(--surface-white);
}

.reel-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 8px;
}

.reel-overlay-content p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 14px;
  line-height: 1.5;
}

.reel-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-200);
}

.reels-footer-bar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.reels-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reels-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(11, 31, 58, 0.2);
  border: 0;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.reels-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background-color: var(--navy-900);
}

/* ==========================================================================
   Clinic Tour Gallery (About Page — Showcases All 6 Clinic Photos)
   ========================================================================== */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.tour-card {
  grid-column: span 6;
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.tour-card--featured {
  grid-column: span 4;
}

.tour-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--cream-100);
}

.tour-card--tall .tour-media {
  aspect-ratio: 3 / 4;
}

.tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.tour-card:hover .tour-media img {
  transform: scale(1.03);
}

.tour-body {
  padding: 20px 22px;
}

.tour-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-700);
  margin-bottom: 6px;
}

.tour-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.tour-body p {
  font-size: 0.9rem;
  color: var(--ink-500);
}

/* ==========================================================================
   FAQ Accordion (Treatments Page)
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--gold-600);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-trigger svg {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--ink-500);
}

/* ==========================================================================
   Contact Page (Details Only — Strictly No Contact/Booking Form)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-detail-stack {
  display: grid;
  gap: 18px;
}

.detail-card {
  background-color: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
}

.detail-card > div {
  min-width: 0;
}

.card-icon {
  flex-shrink: 0;
}

.detail-card h2,
.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.detail-card p {
  font-size: 0.95rem;
  color: var(--ink-500);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-panel {
  display: grid;
  gap: 20px;
}

.map-embed-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  background-color: var(--cream-100);
  aspect-ratio: 4 / 3;
}

.map-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.clinic-exterior-strip {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  background-color: var(--surface-white);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.clinic-exterior-thumb {
  width: 110px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.clinic-exterior-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CTA Banner & Site Footer
   ========================================================================== */
.visit-banner {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}

.visit-banner-copy {
  max-width: 580px;
}

.visit-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 12px;
}

.visit-banner p {
  color: rgba(255, 255, 255, 0.8);
}

.visit-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 64px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-wrap {
  display: inline-block;
  background: var(--surface-white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-logo-wrap img {
  height: 58px;
  width: auto;
}

.footer-about {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--surface-white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Scroll Reveal Animations (Progressive Enhancement + Reduced Motion Safe)
   ========================================================================== */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js [data-reveal-delay="1"] { transition-delay: 80ms; }
.has-js [data-reveal-delay="2"] { transition-delay: 160ms; }
.has-js [data-reveal-delay="3"] { transition-delay: 240ms; }
.has-js [data-reveal-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .has-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-card--featured {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 84px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--surface-white);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    padding: 20px clamp(20px, 4vw, 40px) 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .ba-showcase,
  .contact-layout,
  .cards-grid-3,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .split-grid--reverse .split-media {
    order: 0;
  }

  .hero-main-frame {
    width: 100%;
    max-height: 480px;
  }

  .hero-inset-card {
    bottom: 14px;
    left: 14px;
    width: 176px;
  }

  .hero-meta-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tour-card,
  .tour-card--featured {
    grid-column: span 12;
  }
}

@media (max-width: 580px) {
  .brand-logo {
    height: auto;
    max-height: 52px;
    max-width: 240px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-rating-badge {
    border-radius: var(--radius-md);
    font-size: 0.8rem;
  }

  .cards-grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .clinic-exterior-strip {
    grid-template-columns: 1fr;
  }

  .clinic-exterior-thumb {
    width: 100%;
    height: 180px;
  }
}
