/* ═══════════════════════════════════════════════════════
   THE DENTAL INN — PREMIUM UPGRADE LAYER
   Enhances UI/UX without touching existing functionality
   ═══════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────── */
:root {
  --gold-light: #f0d8a0;
  --gold-mid: #d8b77a;
  --gold-dim: rgba(216,183,122,.18);
  --red-glow: rgba(225,29,46,.22);
  --surface-glass: rgba(255,255,255,.055);
  --surface-dark: rgba(8,8,8,.72);
  --ease-expo: cubic-bezier(.16,1,.3,1);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
  --transition-smooth: .45s var(--ease-expo);
}

/* ── Global refinements ─────────────────────────────── */
html { scroll-behavior: smooth; }

::selection {
  background: var(--red-primary);
  color: #fff;
}

/* Subtle grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Preloader — Elevated ────────────────────────────── */
.preloader {
  background: radial-gradient(ellipse at 40% 60%, rgba(179,0,27,.32), transparent 48%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.04), transparent 38%),
              #030303;
}

.preloader p {
  font-size: clamp(22px, 5vw, 48px);
  letter-spacing: .22em;
  color: rgba(255,255,255,.9);
  animation: preloaderPulse 2.4s ease-in-out infinite;
}

.preloader-line-top,
.preloader-line-bottom {
  position: absolute;
  height: 1px;
  width: min(280px, 60vw);
  background: linear-gradient(90deg, transparent, rgba(225,29,46,.7), transparent);
  animation: loadLine 1.6s ease infinite;
}

.preloader-line-top { top: calc(50% - 36px); }
.preloader-line-bottom { bottom: calc(50% - 36px); animation-delay: .4s; }

@keyframes preloaderPulse {
  0%, 100% { opacity: .7; letter-spacing: .22em; }
  50%       { opacity: 1;  letter-spacing: .28em; }
}

/* ── Navigation — Glassmorphism Refinement ─────────── */
.site-header {
  padding: 12px 18px;
  border-color: rgba(255,255,255,.1);
  transition: top .4s var(--ease-expo),
              background .4s ease,
              box-shadow .4s ease,
              border-color .4s ease;
}

.site-header.scrolled {
  border-color: rgba(225,29,46,.14);
  box-shadow:
    0 12px 48px rgba(0,0,0,.52),
    0 0 0 1px rgba(225,29,46,.08),
    0 0 64px rgba(179,0,27,.1);
}

.brand-mark {
  background: radial-gradient(circle at 28% 22%, #ff5869, #B3001B 44%, #1a0005);
  box-shadow: 0 0 32px rgba(225,29,46,.45), inset 0 1px 0 rgba(255,255,255,.28);
  font-size: 13px;
  letter-spacing: .02em;
  transition: box-shadow .35s ease, transform .35s var(--ease-back);
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 48px rgba(225,29,46,.6), inset 0 1px 0 rgba(255,255,255,.3);
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  transition: color .28s ease, background .28s ease, transform .28s var(--ease-back);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(225,29,46,.12);
  border: 1px solid rgba(225,29,46,.18);
}

.nav-cta {
  font-size: 11px;
  letter-spacing: .1em;
  background: linear-gradient(135deg, rgba(179,0,27,.25), rgba(225,29,46,.15));
  border-color: rgba(225,29,46,.28);
  transition: var(--transition-smooth);
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(179,0,27,.4), rgba(225,29,46,.28));
  border-color: rgba(225,29,46,.5);
  box-shadow: 0 0 32px rgba(179,0,27,.3);
  transform: translateY(-2px);
}

/* ── Hero Section — Cinematic Enhancement ──────────── */
.hero {
  min-height: 100svh;
  overflow: hidden;
}

/* Animated ambient glow behind the hero */
.hero::after {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 55%, rgba(179,0,27,.14), transparent),
    radial-gradient(ellipse 40% 35% at 20% 40%, rgba(255,255,255,.03), transparent);
  animation: heroAmbient 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroAmbient {
  0%   { transform: translate(0, 0) scale(1); opacity: .7; }
  100% { transform: translate(2%, 1%) scale(1.04); opacity: 1; }
}

/* Eyebrow pill tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--gold-mid);
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: rgba(216,183,122,.07);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-mid);
  box-shadow: 0 0 10px var(--gold-mid);
  animation: eyebrowDot 2.4s ease-in-out infinite;
}

@keyframes eyebrowDot {
  0%, 100% { opacity: .6; transform: scale(.9); }
  50%       { opacity: 1;  transform: scale(1.15); }
}

/* Hero headline */
.hero h1 {
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1.0;
  letter-spacing: -.02em;
  background: linear-gradient(145deg, #fff 30%, rgba(255,200,210,.8) 70%, rgba(255,120,135,.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.78;
  color: rgba(220,210,215,.88);
  font-weight: 300;
  max-width: 580px;
  margin-top: 20px;
}

/* CTA Buttons */
.button-primary {
  background: linear-gradient(135deg, #6b0010 0%, #B3001B 40%, #e8233a 100%);
  box-shadow:
    0 16px 56px rgba(179,0,27,.45),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.2);
  letter-spacing: .1em;
  font-size: 11.5px;
  transition: var(--transition-smooth);
}

.button-primary:hover {
  box-shadow:
    0 24px 72px rgba(179,0,27,.6),
    0 0 0 1px rgba(255,120,130,.3),
    inset 0 1px 0 rgba(255,255,255,.3);
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.button-ghost {
  font-size: 11.5px;
  letter-spacing: .1em;
  border-color: rgba(255,255,255,.18);
  transition: var(--transition-smooth);
}

.button-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-3px);
}

/* Hero image shell */
.hero-image-shell {
  border-radius: 44px;
  border-color: rgba(255,255,255,.13);
  box-shadow:
    0 64px 128px rgba(0,0,0,.64),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 80px rgba(179,0,27,.18);
  overflow: hidden;
}

.hero-image-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 44px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.14) 0%,
    transparent 22%,
    transparent 76%,
    rgba(179,0,27,.1) 100%
  );
  pointer-events: none;
}

/* Floating stat cards — refined */
.floating-card {
  border-radius: 26px;
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.038));
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow:
    0 24px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 48px rgba(179,0,27,.14),
    inset 0 1px 0 rgba(255,255,255,.16);
  transition: var(--transition-smooth);
  padding: 18px 22px;
}

.floating-card:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 36px 100px rgba(0,0,0,.6),
    0 0 60px rgba(179,0,27,.2),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.floating-card strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}

.floating-card span {
  color: rgba(200,195,200,.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}

/* ── Stats Counter Strip ────────────────────────────── */
.stats-strip {
  padding: 0;
  margin: 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.stats-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), transparent 40%, rgba(225,29,46,.06));
  pointer-events: none;
  z-index: 1;
}

.stat-item {
  position: relative;
  z-index: 2;
  padding: 44px 36px;
  text-align: center;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(16px);
  transition: background .35s ease;
}

.stat-item:hover {
  background: rgba(179,0,27,.08);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.1), transparent);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
  display: block;
}

.stat-number em {
  font-style: normal;
  color: var(--red-accent);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(180,175,178,.72);
}

.stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(140,135,138,.55);
  letter-spacing: .04em;
}

/* ── Section Headings — Elevated ───────────────────── */
.section-heading {
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -.02em;
  background: linear-gradient(160deg, #fff 40%, rgba(255,200,210,.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 640px;
  color: rgba(185,178,182,.78);
  font-weight: 300;
  margin-top: 18px;
}

/* ── Founder Section ────────────────────────────────── */
.founder-copy h2 {
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.02;
  letter-spacing: -.02em;
  background: linear-gradient(145deg, #fff 40%, rgba(255,210,215,.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.founder-copy h3 {
  font-size: 16px;
  color: var(--gold-mid);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 8px;
}

.founder-copy p {
  font-size: 16.5px;
  line-height: 1.82;
  color: rgba(195,188,192,.82);
  font-weight: 300;
}

.founder-media {
  border-radius: 40px;
  border-color: rgba(255,255,255,.1);
  box-shadow:
    0 56px 120px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 80px rgba(179,0,27,.12);
  transition: var(--transition-smooth);
}

.founder-media:hover {
  box-shadow:
    0 72px 140px rgba(0,0,0,.6),
    0 0 100px rgba(179,0,27,.18);
}

.glass-note {
  border-radius: 20px;
  border-color: rgba(255,255,255,.13);
  background: linear-gradient(145deg, rgba(12,4,6,.72), rgba(80,0,14,.38));
  backdrop-filter: blur(24px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(240,228,232,.9);
}

/* ── Badge Chips ─────────────────────────────────────── */
.badge-row span {
  font-size: 11px;
  letter-spacing: .1em;
  padding: 9px 16px;
  border-radius: 999px;
  border-color: rgba(225,29,46,.2);
  background: rgba(179,0,27,.1);
  color: rgba(255,200,208,.82);
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-back);
}

.badge-row span:hover {
  border-color: rgba(225,29,46,.38);
  background: rgba(179,0,27,.18);
  transform: translateY(-2px);
}

/* ── Treatment Cards ─────────────────────────────────── */
.treatment-card {
  border-radius: 32px;
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.026));
  overflow: hidden;
  transition: var(--transition-smooth);
}

.treatment-card:hover {
  border-color: rgba(225,29,46,.24);
  transform: translateY(-6px) !important;
  box-shadow:
    0 40px 120px rgba(0,0,0,.55),
    0 0 80px rgba(179,0,27,.18),
    0 0 0 1px rgba(225,29,46,.14);
}

.treatment-media {
  height: 290px;
  position: relative;
  overflow: hidden;
}

.treatment-media::after {
  background: linear-gradient(180deg, transparent 30%, rgba(5,5,5,.88));
}

.treatment-media img {
  transition: transform 1s var(--ease-expo), filter 1s ease;
}

.treatment-card:hover .treatment-media img {
  transform: scale(1.08);
  filter: contrast(1.06) saturate(1.1) brightness(1.04);
}

.treatment-media > span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,200,205,.88);
  padding: 7px 14px;
  background: rgba(179,0,27,.32);
  border: 1px solid rgba(225,29,46,.26);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.treatment-copy {
  padding: 26px 28px 28px;
}

.treatment-copy h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 10px 0 10px;
  color: #fff;
}

.treatment-copy p {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(180,172,176,.78);
  font-weight: 300;
}

.text-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,120,135,.85);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  transition: gap .3s var(--ease-back), color .3s ease;
}

.text-link::after {
  content: '→';
  transition: transform .3s var(--ease-back);
}

.text-link:hover {
  gap: 12px;
  color: rgba(255,140,152,.95);
  transform: none;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ── Specialist Rows ─────────────────────────────────── */
.portrait-frame {
  border-radius: 36px;
  border-color: rgba(255,255,255,.1);
  box-shadow:
    0 48px 110px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.05);
  transition: var(--transition-smooth);
}

.portrait-frame:hover {
  box-shadow:
    0 64px 130px rgba(0,0,0,.55),
    0 0 80px rgba(179,0,27,.15),
    0 0 0 1px rgba(225,29,46,.12);
}

.portrait-glass {
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  background: linear-gradient(145deg, rgba(10,4,6,.68), rgba(70,0,12,.32));
  backdrop-filter: blur(22px);
  border-color: rgba(255,255,255,.12);
}

.specialist-copy h3 {
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -.02em;
  background: linear-gradient(145deg, #fff 35%, rgba(255,200,210,.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.specialist-copy h4 {
  color: var(--gold-mid);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 6px 0 18px;
}

.specialist-copy p {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(190,183,186,.78);
  font-weight: 300;
}

/* ── Compare Cards (Transformations) ────────────────── */
.compare-card {
  border-radius: 32px;
  border-color: rgba(255,255,255,.09);
  transition: var(--transition-smooth);
}

.compare-card:hover {
  border-color: rgba(225,29,46,.22);
  transform: translateY(-4px) !important;
  box-shadow:
    0 36px 100px rgba(0,0,0,.52),
    0 0 70px rgba(179,0,27,.15);
}

.compare-caption {
  padding: 20px 22px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.compare-caption strong {
  font-size: 20px;
  font-family: var(--font-display);
  color: #fff;
}

.compare-caption span {
  font-size: 12.5px;
  color: rgba(160,152,156,.7);
  letter-spacing: .04em;
}

.compare-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 7px 13px;
}

.handle::after {
  width: 34px;
  background: var(--red-accent);
  box-shadow: 0 0 28px rgba(225,29,46,.65);
}

/* ── Gallery / Clinic Experience ────────────────────── */
.gallery-item {
  border-radius: 24px;
  border-color: rgba(255,255,255,.08);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  border-color: rgba(225,29,46,.2);
  transform: translateY(-4px) !important;
  box-shadow:
    0 32px 90px rgba(0,0,0,.5),
    0 0 60px rgba(179,0,27,.14);
}

.gallery-item figcaption {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(235,228,232,.88);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

/* ── CTA Panel ──────────────────────────────────────── */
.cta-panel {
  border-radius: 40px;
  border-color: rgba(255,255,255,.09);
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(225,29,46,.24), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow:
    0 48px 130px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.06),
    inset 0 1px 0 rgba(255,255,255,.1);
  padding: 88px 36px;
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(225,29,46,.1);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -.02em;
  background: linear-gradient(155deg, #fff 40%, rgba(255,210,215,.78));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer Refinement ──────────────────────────────── */
.footer {
  padding: 84px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  border-top-color: rgba(255,255,255,.07);
}

.footer h3 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(220,215,218,.7);
  margin-bottom: 18px;
}

.footer a {
  font-size: 14.5px;
  color: rgba(160,153,156,.65);
  margin: 10px 0;
  transition: color .25s ease, transform .25s var(--ease-back);
  display: inline-block;
}

.footer a:hover {
  color: rgba(255,120,135,.9);
  transform: translateX(4px);
}

.footer-brand strong {
  font-size: 13.5px;
  letter-spacing: .14em;
}

.footer p {
  font-size: 14px;
  line-height: 1.78;
  color: rgba(150,143,146,.6);
}

.footer-appointment {
  color: rgba(255,120,135,.85) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
}

.footer-base {
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(100,93,97,.55);
}

/* ── Contact Rail ───────────────────────────────────── */
.lux-contact-rail a {
  font-size: 11px;
  letter-spacing: .1em;
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.lux-contact-rail .whatsapp {
  background: linear-gradient(145deg, rgba(22,135,76,.32), rgba(255,255,255,.05));
  border-color: rgba(22,195,110,.18);
}

.lux-contact-rail .whatsapp:hover {
  background: linear-gradient(145deg, rgba(22,135,76,.48), rgba(255,255,255,.08));
  border-color: rgba(22,195,110,.36);
  box-shadow: 0 20px 72px rgba(22,135,76,.3);
}

.lux-contact-rail .call {
  background: linear-gradient(145deg, rgba(179,0,27,.38), rgba(255,255,255,.05));
  border-color: rgba(225,29,46,.22);
}

.lux-contact-rail .call:hover {
  box-shadow: 0 20px 72px rgba(179,0,27,.38);
}

/* ── Testimonials ───────────────────────────────────── */
.testimonial-card {
  border-radius: 28px;
  border-color: rgba(255,255,255,.09);
  transition: var(--transition-smooth);
  padding: 32px;
}

.testimonial-card:hover {
  border-color: rgba(225,29,46,.22);
  transform: translateY(-5px) !important;
  box-shadow:
    0 36px 100px rgba(0,0,0,.52),
    0 0 70px rgba(179,0,27,.14);
}

.testimonial-card p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: rgba(245,240,242,.92);
}

.testimonial-card cite {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(155,148,152,.65);
  margin-top: 16px;
  display: block;
}

/* ── Page Hero (inner pages) ────────────────────────── */
.page-hero h1 {
  font-size: clamp(46px, 7vw, 90px);
  letter-spacing: -.025em;
  background: linear-gradient(145deg, #fff 35%, rgba(255,200,210,.78));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(215,208,212,.82);
  font-weight: 300;
}

/* ── Treatment Detail Pages ─────────────────────────── */
.glass-panel {
  border-radius: 32px;
  padding: 36px;
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.glass-panel h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -.02em;
  background: linear-gradient(145deg, #fff 40%, rgba(255,210,215,.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel p {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(188,181,185,.78);
  font-weight: 300;
}

.benefit-card {
  border-radius: 28px;
  padding: 32px;
  border-color: rgba(255,255,255,.09);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  border-color: rgba(225,29,46,.22);
  transform: translateY(-5px) !important;
  box-shadow:
    0 32px 90px rgba(0,0,0,.48),
    0 0 60px rgba(179,0,27,.14);
}

.benefit-card h3 {
  font-size: 26px;
  letter-spacing: -.01em;
  margin: 14px 0 10px;
}

.benefit-card > span {
  font-size: 28px;
  display: block;
}

.benefit-card p {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(178,171,175,.72);
  font-weight: 300;
}

.timeline-card {
  border-radius: 24px;
  padding: 28px 24px;
  border-color: rgba(255,255,255,.09);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: rgba(225,29,46,.2);
  transform: translateY(-4px) !important;
}

.timeline-card h3 {
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 12px 0 8px;
}

.timeline-card span {
  font-size: 28px;
  display: block;
}

.clinical-list li {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(205,198,202,.82);
}

.care-note {
  border-color: rgba(216,183,122,.2);
  background: linear-gradient(145deg, rgba(216,183,122,.08), rgba(255,255,255,.025));
  color: rgba(234,216,184,.82);
  font-size: 14.5px;
  line-height: 1.75;
  border-radius: 22px;
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-item {
  border-color: rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  transition: border-color .3s ease, background .3s ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(225,29,46,.2);
  background: rgba(179,0,27,.06);
}

.faq-item button {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 24px;
}

.faq-answer p {
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(175,168,172,.72);
  font-weight: 300;
}

/* ── Contact Form ───────────────────────────────────── */
.contact-form {
  border-radius: 32px;
  padding: 36px;
  border-color: rgba(255,255,255,.09);
}

.contact-form h2 {
  font-size: 32px;
  letter-spacing: -.01em;
}

.contact-form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(190,183,186,.78);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-size: 15px;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  color: rgba(235,228,232,.9);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(130,123,127,.5);
}

/* Detail contact cards */
.detail-card {
  border-radius: 28px;
  padding: 28px;
  border-color: rgba(255,255,255,.09);
  transition: var(--transition-smooth);
}

.detail-card:hover {
  border-color: rgba(225,29,46,.2);
  transform: translateY(-4px) !important;
}

.social-row a {
  border-color: rgba(225,29,46,.2);
  background: rgba(179,0,27,.12);
  transition: var(--transition-smooth);
}

.social-row a:hover {
  background: rgba(179,0,27,.24);
  border-color: rgba(225,29,46,.38);
  transform: translateY(-3px) scale(1.08);
}

/* ── Section Divider Lines ──────────────────────────── */
.section-pad::after {
  background: linear-gradient(90deg, transparent, rgba(225,29,46,.22), rgba(255,255,255,.1), transparent);
  opacity: .6;
}

/* ── Scroll Progress Bar ────────────────────────────── */
.scroll-progress {
  height: 2px;
}

.scroll-progress span {
  background: linear-gradient(90deg, #4d000a, #B3001B, #ff5568, rgba(255,210,215,.6));
  box-shadow: 0 0 20px rgba(225,29,46,.65);
}

/* ── Trust Indicators strip (below hero) ────────────── */
.trust-strip {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(170,163,167,.65);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: rgba(225,29,46,.7);
  flex-shrink: 0;
}

.trust-item:hover {
  color: rgba(210,203,207,.85);
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.08);
}

/* ── Aftercare Cards ────────────────────────────────── */
.aftercare-card {
  border-radius: 26px;
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  transition: var(--transition-smooth);
}

.aftercare-card:hover {
  border-color: rgba(225,29,46,.2);
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 55px rgba(179,0,27,.12);
}

.aftercare-card h3 {
  font-size: 26px;
  letter-spacing: -.01em;
}

.aftercare-card p {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(175,168,172,.7);
  font-weight: 300;
}

/* ── Progress Card ──────────────────────────────────── */
.progress-card {
  border-radius: 32px;
  border-color: rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  padding: 24px;
}

.progress-card h3 {
  font-size: 28px;
  letter-spacing: -.01em;
}

/* ── Map Shell ──────────────────────────────────────── */
.map-shell {
  border-color: rgba(255,255,255,.09);
  border-radius: 28px;
}

/* ── Reveal animation refinement ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.988);
  filter: blur(6px);
  transition:
    opacity .85s var(--ease-expo),
    transform .85s var(--ease-expo),
    filter .85s var(--ease-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ── Mobile Nav ─────────────────────────────────────── */
.mobile-nav a {
  font-size: clamp(32px, 10vw, 64px);
  letter-spacing: -.02em;
  background: linear-gradient(145deg, #fff 40%, rgba(255,200,210,.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter .25s ease;
}

.mobile-nav a:hover {
  filter: brightness(1.2);
}

/* ── Micro-animation: Section entrance glow ─────────── */
.section-active::before {
  background: radial-gradient(circle, rgba(225,29,46,.09), transparent 62%);
  filter: blur(22px);
}

/* ── Image quality improvements ─────────────────────── */
img {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── Focus states (accessibility) ──────────────────── */
:focus-visible {
  outline: 2px solid rgba(225,29,46,.7);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Counter animation ──────────────────────────────── */
.stat-number {
  font-variant-numeric: tabular-nums;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-item.in-view .stat-number {
  animation: countUp .7s var(--ease-expo) both;
}

/* ── Section separator ornament ────────────────────── */
.section-ornament {
  text-align: center;
  margin: -20px 0 56px;
  color: rgba(225,29,46,.4);
  font-size: 18px;
  letter-spacing: .2em;
  user-select: none;
}

/* ── Page transition polish ─────────────────────────── */
.page-transition {
  background:
    radial-gradient(circle at 50% 50%, rgba(225,29,46,.18), transparent 42%),
    #030303;
}

/* ── Responsive overrides ───────────────────────────── */
@media (max-width: 1140px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-strip-inner {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
  }

  .stat-item {
    padding: 32px 20px;
  }

  .trust-strip-inner {
    gap: 16px;
  }

  .trust-divider {
    display: none;
  }

  .cta-panel {
    padding: 60px 24px;
    border-radius: 28px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 72px);
  }

  .eyebrow {
    font-size: 9.5px;
    padding: 7px 13px;
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat-number {
    font-size: 38px;
  }

  .stat-label {
    font-size: 10.5px;
  }

  .trust-strip-inner {
    gap: 14px;
  }
}

/* ═══════════════════════════════════════════════════════
   LOGO INTEGRATION — Brand mark + Preloader
   ═══════════════════════════════════════════════════════ */

/* ── Brand Mark Logo (Navbar top-left) ─────────────── */
.brand-mark-logo {
  background: none !important;
  box-shadow: none !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(179,0,27,.1) !important;
  backdrop-filter: blur(8px);
  transition: transform .6s cubic-bezier(.34,1.56,.64,1),
              border-color .4s ease,
              box-shadow .4s ease;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 50%;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1), filter .4s ease;
  filter: brightness(1.05) saturate(1.1);
}

/* Rotating spin on hover */
.brand:hover .brand-mark-logo {
  border-color: rgba(225,29,46,.45);
  box-shadow: 0 0 28px rgba(225,29,46,.35), 0 0 0 3px rgba(225,29,46,.12);
}

.brand:hover .brand-logo-img {
  transform: rotate(360deg);
  filter: brightness(1.12) saturate(1.2);
}

/* Subtle continuous slow rotation when not hovered */
@keyframes logoIdleSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional gentle breathe when idle — uncomment to enable full spin */
/*
.brand-logo-img {
  animation: logoIdleSpin 18s linear infinite;
}
.brand:hover .brand-logo-img {
  animation: logoIdleSpin 1.2s ease-in-out;
}
*/

/* ── Preloader — Full Logo Opening Screen ───────────── */
.preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(179,0,27,.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 20%, rgba(255,80,100,.08), transparent 50%),
    radial-gradient(ellipse 35% 30% at 20% 80%, rgba(100,0,15,.18), transparent 50%),
    #040404;
  transition: opacity .8s ease, visibility .8s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Background logo watermark — large, faded behind everything */
.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/logo-dental-inn.png');
  background-size: 70% auto;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: .04;
  filter: grayscale(1);
  pointer-events: none;
  z-index: 0;
}

/* Orbiting rings */
.preloader-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(225,29,46,.2);
  box-shadow: 0 0 60px rgba(225,29,46,.12);
  animation: spin 8s linear infinite;
  z-index: 1;
}

/* First orbit ring */
.preloader-orbit:first-child {
  width: clamp(260px, 38vw, 420px);
  height: clamp(260px, 38vw, 420px);
  border-color: rgba(225,29,46,.18);
}

/* Second smaller orbit ring */
.preloader-orbit-2 {
  width: clamp(180px, 26vw, 290px);
  height: clamp(180px, 26vw, 290px);
  border-color: rgba(255,255,255,.08);
  animation-direction: reverse;
  animation-duration: 6s;
}

/* Logo image — centered, spinning on load */
.preloader-logo-wrap {
  position: relative;
  z-index: 3;
  width: clamp(120px, 18vw, 200px);
  height: clamp(120px, 18vw, 200px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow:
    0 0 60px rgba(225,29,46,.35),
    0 0 120px rgba(179,0,27,.18),
    inset 0 1px 0 rgba(255,255,255,.2);
  animation: preloaderLogoAppear 1s cubic-bezier(.16,1,.3,1) both,
             preloaderLogoGlow 3s ease-in-out 1s infinite alternate;
  margin-bottom: 28px;
}

.preloader-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 50%;
  animation: preloaderLogoSpin 1.8s cubic-bezier(.22,1,.36,1) both;
}

@keyframes preloaderLogoAppear {
  from {
    opacity: 0;
    transform: scale(.6) rotate(-20deg);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes preloaderLogoSpin {
  from { transform: rotate(-180deg) scale(.8); opacity: 0; }
  to   { transform: rotate(0deg) scale(1);     opacity: 1; }
}

@keyframes preloaderLogoGlow {
  from { box-shadow: 0 0 60px rgba(225,29,46,.3), 0 0 120px rgba(179,0,27,.14); }
  to   { box-shadow: 0 0 90px rgba(225,29,46,.5), 0 0 180px rgba(179,0,27,.24); }
}

/* Preloader text */
.preloader-text {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255,255,255,.88);
  margin: 0 0 8px;
  text-align: center;
  animation: preloaderTextIn 1s .4s cubic-bezier(.16,1,.3,1) both;
}

.preloader-text span {
  color: #ff3a50;
}

/* Preloader tagline */
.preloader-tagline {
  position: relative;
  z-index: 3;
  font-family: var(--font-body);
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 400;
  letter-spacing: .12em;
  color: rgba(200,190,195,.52);
  text-align: center;
  margin: 0 0 28px;
  animation: preloaderTextIn 1s .65s cubic-bezier(.16,1,.3,1) both;
}

/* Scanning line */
.preloader i {
  position: relative;
  z-index: 3;
  display: block;
  width: min(280px, 52vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-accent), transparent);
  animation: loadLine 1.6s ease infinite;
  margin-top: 8px;
}

@keyframes preloaderTextIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Treat sub-pages: logo path is from parent dir */
/* (handled via different src paths in HTML) */

/* ── Footer brand logo ──────────────────────────────── */
.footer-brand .brand-mark-logo {
  width: 42px;
  height: 42px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  .brand-mark-logo {
    width: 40px;
    height: 40px;
  }

  .preloader-logo-wrap {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }
}

/* Treatment subpages use ../ relative path — override via inline style handled in HTML */
/* The preloader background watermark for treatment pages is handled via CSS custom property */
