/* NOOR DENTAL — calm, clinical, trust-forward */
:root {
  --white: #FBFCFD; --navy: #0C1E2E; --teal: #1E88A8; --wash: #D9E7ED;
  --dim: rgba(12, 30, 46, 0.62); --line: rgba(12, 30, 46, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--navy); font-family: "Inter", sans-serif; line-height: 1.7; overflow-x: hidden; }
[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 4rem); }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between;
  align-items: center; padding: 1.1rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(251, 252, 253, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { font-family: "Instrument Serif", serif; font-size: 1.3rem; display: flex; align-items: center; gap: 0.55rem; }
[dir="rtl"] .logo { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 600; }
.logo-mark { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--teal), #12617a); }
.topbar-right { display: flex; gap: 0.8rem; align-items: center; }
.lang-toggle { font-family: "IBM Plex Sans Arabic", sans-serif; border: 1px solid var(--line); padding: 0.4rem 0.9rem; border-radius: 8px; }
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }
.btn-book { font-size: 0.85rem; font-weight: 600; background: var(--teal); color: #fff; padding: 0.55rem 1.2rem; border-radius: 8px; transition: background 0.25s; }
.btn-book:hover { background: #15718D; }

/* HERO + CSS ripple */
.hero { position: relative; min-height: 92svh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--wash) 130%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.ripple { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripple i { grid-area: 1 / 1; width: 30vmin; height: 30vmin; border-radius: 50%;
  border: 1.5px solid rgba(30, 136, 168, 0.35); animation: ripple 6s cubic-bezier(0.2, 0.6, 0.36, 1) infinite; }
.ripple i:nth-child(2) { animation-delay: 1.5s; }
.ripple i:nth-child(3) { animation-delay: 3s; }
.ripple i:nth-child(4) { animation-delay: 4.5s; }
@keyframes ripple {
  0% { transform: scale(0.2); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; padding: 6rem 1.5rem 3rem; }
.hero-title { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.01em; }
[dir="rtl"] .hero-title { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; line-height: 1.2; }
.hero-sub { color: var(--dim); margin: 1.4rem auto 2.2rem; max-width: 46ch; font-size: 1.08rem; }
.btn-teal { display: inline-block; background: var(--teal); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 1rem 2.4rem; border-radius: 10px; transition: background 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.btn-teal:hover { background: #15718D; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 136, 168, 0.25); }
.btn-big { font-size: 1.05rem; padding: 1.15rem 2.8rem; }
.hero-note { margin-top: 1.6rem; font-size: 0.82rem; color: var(--dim); letter-spacing: 0.02em; }

/* TRUST */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 1100px;
  margin-inline: auto; padding: clamp(3rem, 7vh, 5rem) clamp(1.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.trust-item { text-align: center; }
.trust-item b { display: block; font-family: "Instrument Serif", serif; font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--teal); font-variant-numeric: tabular-nums; }
.trust-item span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }

/* SERVICES */
.services { padding-block: clamp(4.5rem, 11vh, 8rem); }
.sec-title { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
[dir="rtl"] .sec-title { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; }
.sec-sub { color: var(--dim); margin-top: 0.5rem; }
.services-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc { border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; background: #fff;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.svc:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12, 30, 46, 0.07); }
.svc-ico { font-size: 1.4rem; color: var(--teal); margin-bottom: 0.9rem; }
.svc h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.svc p { color: var(--dim); font-size: 0.92rem; }

/* DOCTORS */
.doctors { padding-block: clamp(4.5rem, 11vh, 8rem); border-top: 1px solid var(--line); }
.doctors-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.doc { border: 1px solid var(--line); border-radius: 14px; padding: 2rem; background: #fff; }
.doc-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--wash); color: var(--teal);
  display: grid; place-items: center; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 1.2rem; }
.doc h3 { font-size: 1.05rem; font-weight: 600; }
.doc-role { color: var(--teal); font-size: 0.82rem; letter-spacing: 0.04em; margin: 0.2rem 0 0.8rem; }
.doc p:last-child { color: var(--dim); font-size: 0.92rem; }

/* INSURANCE */
.insurance { background: var(--navy); color: #EAF2F6; padding-block: clamp(4.5rem, 11vh, 8rem); }
.insurance .sec-title { color: #fff; }
.insurance-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ins-p { color: rgba(234, 242, 246, 0.7); margin-top: 1.2rem; max-width: 56ch; }
.ins-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ins-list li { padding-inline-start: 1.8rem; position: relative; color: rgba(234, 242, 246, 0.85); }
.ins-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 700; }

/* CTA */
.cta { text-align: center; padding: clamp(5rem, 12vh, 9rem) 1.5rem; }
.cta h2 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: clamp(2.2rem, 6vw, 4rem); }
[dir="rtl"] .cta h2 { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; }
.cta p { color: var(--dim); max-width: 52ch; margin: 1.2rem auto 2.4rem; }
.cta-hours { font-size: 0.85rem; margin-top: 1.8rem; color: var(--dim); }

.footer { border-top: 1px solid var(--line); padding: 2.5rem clamp(1.5rem, 5vw, 4rem); display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer p { color: var(--dim); font-size: 0.85rem; }

.mobile-book { display: none; }
.nexa-badge { position: fixed; bottom: 1rem; inset-inline-start: 1rem; z-index: 60;
  background: rgba(251, 252, 253, 0.92); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-size: 0.72rem; color: var(--dim); padding: 0.5rem 0.9rem; border-radius: 8px;
  transition: color 0.25s, border-color 0.25s; }
.nexa-badge:hover { color: var(--teal); border-color: var(--teal); }

@media (max-width: 900px) {
  .services-grid, .doctors-grid { grid-template-columns: 1fr 1fr; }
  .insurance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .services-grid, .doctors-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .mobile-book { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--teal); color: #fff; text-align: center; font-weight: 600;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  .nexa-badge { bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
  .ripple i { animation: none; opacity: 0.25; transform: scale(1.6); }
}
