/* ===== Page loader ===== */
.site-loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--surface-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.site-loader.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s, transform 0.6s var(--ease-out);
}

.site-loader__glow {
  position: absolute; top: 50%; left: 50%;
  width: 260px; height: 260px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 70%);
  animation: loader-glow-pulse 1.6s ease-in-out infinite;
}

@keyframes loader-glow-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.site-loader__mark {
  position: relative;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  animation: tooth-pulse 1.1s ease-in-out infinite;
}

.site-loader__mark img { width: 62%; height: 62%; object-fit: contain; position: relative; z-index: 1; }

.site-loader__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: loader-ring-spin 1.4s linear infinite;
}
.site-loader__ring circle {
  fill: none; stroke: var(--violet-500); stroke-width: 3;
  stroke-linecap: round; stroke-dasharray: 80 210;
  opacity: 0.85;
}

@keyframes loader-ring-spin { to { transform: rotate(360deg); } }

@keyframes tooth-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ===== Header / tooth nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center;
  padding-top: 10px;
  transition: padding var(--dur-med) var(--ease-out);
}

.site-header.is-scrolled { padding-top: 6px; }

.tooth-nav__logo {
  display: flex; align-items: center; gap: 10px;
  padding-inline: 6px 14px;
  flex: none;
}

.tooth-nav__logo-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex: none;
}

.tooth-nav__logo-mark svg { width: 22px; height: 22px; }

.tooth-nav__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.tooth-nav__wordmark b { font-family: var(--font-display); font-size: 15px; color: var(--ink-900); }
.tooth-nav__wordmark span { font-size: 10px; color: var(--ink-500); letter-spacing: 0.03em; }

/* Mobile top bar (shown < 900px, tooth-nav-shell hidden) */
.mobile-topbar { display: none; }

@media (max-width: 899px) {
  .site-header .tooth-nav { display: none; }

  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 14px 20px;
    width: 100%;
  }

  .mobile-topbar .tooth-nav__logo-mark { width: 38px; height: 38px; }

  .mobile-topbar__menu-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface-100);
    display: flex; align-items: center; justify-content: center;
  }
  .mobile-topbar__menu-btn svg { width: 20px; height: 20px; }

  .site-header { padding-top: 0; }
  .site-header.is-scrolled { padding-top: 0; }

  body { padding-bottom: 90px; }
}

/* Mobile menu — a dropdown panel attached just below the floating
   header pill (not a full-screen overlay or side drawer), inspired
   by fourmula.ai's mobile "Menu" pattern: clean stacked links, a
   small caps section label, a thin divider, book+call in the
   bottom row. .mobile-menu itself stays a full-viewport transparent
   click-catcher (so tapping outside the panel still closes it);
   only .mobile-menu__panel is visually a floating card. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}

.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-menu__panel {
  position: absolute; top: 104px; left: 50%;
  width: min(920px, 92vw);
  background: #edece9;
  border: 1.5px solid rgba(23, 21, 29, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px 24px 24px;
  display: flex; flex-direction: column; gap: 18px;
  transform: translateX(-50%) translateY(-28px) scaleY(0.9);
  transform-origin: top center;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__panel { transform: translateX(-50%) translateY(0) scaleY(1); opacity: 1; }

.mobile-menu__label {
  font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none;
  color: var(--ink-500);
}

.mobile-menu__list { display: flex; flex-direction: column; gap: 2px; }

.mobile-menu__list a {
  padding: 9px 2px; border-bottom: none;
  font-size: 20px; font-weight: 700; color: var(--ink-900);
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-menu__list a.active, .mobile-menu__list a:hover { color: var(--violet-700); }

.mobile-menu__bottom { display: flex; align-items: center; gap: 10px; }
.mobile-menu__bottom .btn-book-v2 { flex: 1; justify-content: center; }
.mobile-menu__call {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--surface-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-600);
}
.mobile-menu__call svg { width: 19px; height: 19px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--surface-50);
  border-top: 1px solid var(--surface-line);
  padding-block: 64px 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand .tooth-nav__logo-mark { width: 40px; height: 40px; }
.site-footer p.muted { color: var(--ink-500); font-size: 14px; line-height: 1.6; }

.site-footer h4 { font-size: 14px; margin-bottom: 16px; }

.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { color: var(--ink-700); font-size: 14px; transition: color var(--dur-fast) var(--ease-out); }
.site-footer ul li a:hover { color: var(--violet-600); }

.site-footer__socials { display: flex; gap: 10px; margin-top: 8px; }
.site-footer__socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-100);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.site-footer__socials a:hover { background: var(--gradient-brand); color: #fff; }
.site-footer__socials svg { width: 16px; height: 16px; }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--surface-line);
  font-size: 13px; color: var(--ink-500); flex-wrap: wrap; gap: 12px;
}

.site-footer__bottom a:hover { color: var(--violet-600); }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

/* ===== Generic grid helpers ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 10px; }
