/* ==========================================================================
   BRIGHTLINE DENTAL (بريق لطب الأسنان) — Calm Boutique Dentistry
   Alabaster #F7FAF9 · Cream #F3EDE3 · Ink #1D2B36 · Teal #2A6F77
   Soft Mint #9ED8C9 · Butter Yellow #FFD66B · Interactive Mirror Loupe
   ========================================================================== */

:root {
  --bg: #F7FAF9;
  --cream: #F3EDE3;
  --ink: #1D2B36;
  --muted: rgba(29, 43, 54, 0.66);
  --line: rgba(29, 43, 54, 0.13);
  --teal: #2A6F77;
  --mint: #9ED8C9;
  --sun: #FFD66B;
  --sun-hi: #F6C54A;
  --peach: #FFC9B5;
  --r: 26px;
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

.container {
  width: min(1220px, 100% - 40px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Custom Soft Mint Cursor Blob (Desktop Only) */
.mint-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 95;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.2s ease;
}

.mint-blob.is-visible { opacity: 0.85; }

@media (hover: none), (pointer: coarse), (max-width: 960px) {
  .mint-blob { display: none !important; }
}

/* --------------------------------------------------------------------------
   Floating Pill Header (.nav -> .nav.is-stuck glass)
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 70;
  padding-inline: 16px;
}

.nav-bar {
  max-width: 1220px;
  margin-inline: auto;
  height: 60px;
  padding: 0 12px 0 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-wrap.is-stuck .nav-bar {
  background: rgba(247, 250, 249, 0.88);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--line);
  box-shadow: 0 14px 36px rgba(29, 43, 54, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-links a:hover { color: var(--teal); }

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.open-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s ease, border-color 0.22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-hi); }
.btn--ghost { background: transparent; border-color: rgba(29, 43, 54, 0.28); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

/* --------------------------------------------------------------------------
   HERO (#top — Radial Grid + Mint Glow + Circular Clinic Mirror Dial)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(29, 43, 54, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29, 43, 54, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 35% 48%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 35% 48%, #000 18%, transparent 78%);
}

.hero-mint-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  top: 50%;
  left: 24%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 216, 201, 0.34) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 10px var(--sun);
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  line-height: 1.08;
  color: var(--ink);
}

.hero-title em,
.h2 em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  margin: 0 0 26px;
  max-width: 44ch;
  font-size: 1.04rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.trust-strip b { color: #e2a71d; }

.slot-card {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(29, 43, 54, 0.08);
}

.slot-card small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.slot-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.slot-card a {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Circular Studio Dial + Pointer Magnifying Dental Mirror (.port) */
.port-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px;
}

.port-dial {
  position: relative;
  width: min(470px, 84vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.port-ring {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  pointer-events: none;
}

.port-disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 28px 66px -14px rgba(29, 43, 54, 0.2);
  cursor: zoom-in;
}

#bl-port-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.port-idx {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--teal);
  font-weight: 700;
  direction: ltr;
}

.port-idx span { font-size: 0.72rem; color: var(--muted); }

.ann {
  position: absolute;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(29, 43, 54, 0.08);
  pointer-events: none;
  direction: ltr;
}

.ann i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
}

.ann-a { top: 14%; left: -12px; }
.ann-b { top: 62%; left: -16px; }
.ann-c { bottom: 6%; right: 4%; }

/* --------------------------------------------------------------------------
   SECTIONS (Film, Treatments, Philosophy + Stats, First Visit, Team, Book, FAQ)
   -------------------------------------------------------------------------- */
.sec { padding: clamp(72px, 8vw, 120px) 0; }
.sec-cream { background: var(--cream); border-block: 1px solid var(--line); }

.kicker {
  color: var(--teal);
  margin: 0 0 10px;
}

.h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.12;
}

.sec-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

/* Sticky Scroll Film (#film) */
.film {
  position: relative;
  height: 220svh;
  padding: 12px;
}

.film-stage {
  position: sticky;
  top: 12px;
  height: calc(100svh - 24px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #d7ebe5 0%, #f3ede3 52%, #1d2b36 100%);
  display: grid;
  place-items: center;
  padding: 32px;
}

.film-kicker {
  position: absolute;
  top: 24px;
  inset-inline-start: 24px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal);
  direction: ltr;
}

.film-beats {
  position: relative;
  width: min(560px, 100%);
  min-height: 210px;
}

.film-beat {
  position: absolute;
  inset: 0;
  padding: 28px 30px;
  border-radius: var(--r);
  background: rgba(247, 250, 249, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 54px rgba(29, 43, 54, 0.14);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}

.film-beat.is-dark {
  background: rgba(29, 43, 54, 0.9);
  color: #ffffff;
  border-color: rgba(158, 216, 201, 0.25);
}

.film-beat.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.film-beat h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.film-beat p { margin: 0; opacity: 0.8; }

.film-rail {
  position: absolute;
  inset-inline-end: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.film-rail span {
  width: 6px;
  height: 44px;
  border-radius: 999px;
  background: rgba(29, 43, 54, 0.2);
  overflow: hidden;
}

.film-rail span.is-cur { background: var(--sun); }

/* Treatments 3-Col Hover-Expanding Cards (#treatments) */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tcard {
  border-radius: var(--r);
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
}

.tcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(29, 43, 54, 0.1);
}

.tcard-img {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: var(--cream);
  overflow: hidden;
}

.tcard-img img,
.tcard-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tcard-idx {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
}

.tcard-body { padding: 22px; }
.tcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tcard-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }
.tcard-price { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--teal); direction: ltr; }
.tcard-desc { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.tcard-meta { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--teal); }

/* Philosophy Banner + Overlapping 4-Col White Stats Card */
.explain-banner {
  background: linear-gradient(120deg, #1d2b36 0%, #2a6f77 100%);
  color: #ffffff;
  padding: 86px 0 116px;
}

.stats-overlap {
  margin-top: -64px;
  position: relative;
  z-index: 6;
  border-radius: var(--r);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px rgba(29, 43, 54, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.so-item {
  padding: 28px 24px;
  border-inline-end: 1px solid var(--line);
}

.so-item:last-child { border-inline-end: none; }
.so-item strong { display: block; font-family: var(--font-display); font-size: 2.3rem; color: var(--teal); line-height: 1.1; direction: ltr; text-align: right; }
.so-item span { font-size: 0.86rem; color: var(--muted); }

/* Interactive First-Visit Walkthrough (#visit) */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.vsteps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.vstep {
  text-align: start;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.24s var(--ease);
}

.vstep.is-on {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(29, 43, 54, 0.08);
}

.vstep h3 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 1.15rem; }
.vstep p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.visit-arch {
  border-radius: 50% 50% 26px 26px / 36% 36% 26px 26px;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 26px 56px rgba(29, 43, 54, 0.12);
  aspect-ratio: 16 / 11;
  background: var(--cream);
  position: relative;
}

.visit-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: grid;
  place-items: center;
}

.visit-slide.is-on { opacity: 1; }
.visit-slide img, .visit-slide svg { width: 100%; height: 100%; object-fit: cover; }

/* Team Directory (#team — Cream Background) */
.team-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
}

.team-arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  border: 6px solid #ffffff;
}

.team-arch img { width: 100%; height: 100%; object-fit: cover; }

.people-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.prow {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prow h3 { margin: 0 0 3px; font-family: var(--font-display); font-size: 1.2rem; }
.prow small { color: var(--muted); }

.mint-pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(158, 216, 201, 0.45);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Booking Band (#book) */
.book-band {
  background: linear-gradient(125deg, #efe7d6 0%, #dceee8 100%);
  padding: clamp(76px, 9vw, 126px) 0;
  border-bottom: 1px solid var(--line);
}

.day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.daychip {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.daychip:hover,
.daychip.is-selected {
  background: var(--sun);
  border-color: var(--sun);
}

/* FAQ Accordion (#faq) */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}

.acc details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.acc details:last-child { border-bottom: 1px solid var(--line); }

.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
  font-size: 1.02rem;
}

.acc summary::after {
  content: '+';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.acc details[open] summary::after { content: '−'; background: var(--sun); }
.acc p { margin: 12px 0 0; color: var(--muted); font-size: 0.94rem; }

/* Dark Footer (#1D2B36 + Giant Outlined Mint Wordmark) */
.bl-foot {
  background: var(--ink);
  color: #ffffff;
  padding: 76px 0 34px;
  overflow: hidden;
}

.bl-foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.rem-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.rem-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: #ffffff;
  outline: none;
}

.hours-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.74);
}

.hours-list li { display: flex; justify-content: space-between; gap: 12px; }
.hours-list li.is-today { color: var(--sun); font-weight: 700; }

.foot-word {
  margin: 40px 0 18px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4.2rem, 17vw, 15.5rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(158, 216, 201, 0.4);
  direction: ltr;
  user-select: none;
}

.bl-foot-bot {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1024px) {
  .sec-split, .visit-grid, .team-grid, .faq-grid, .bl-foot-grid { grid-template-columns: 1fr; }
  .open-badge { display: none; }
  .treat-grid { grid-template-columns: 1fr 1fr; }
  .stats-overlap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero-layout { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .nav-links, .ann { display: none; }
  .treat-grid, .stats-overlap { grid-template-columns: 1fr; }
  .so-item { border-inline-end: none; border-bottom: 1px solid var(--line); }
}
