/* ═══════════════════════════════════════════════════
   base.css  –  Reset, Typography & Global Base
   د. وسام ميسر – عيادة الأسنان
═══════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--bg-base);
  color: var(--text-h);
  overflow-x: hidden;
  direction: rtl;
  transition: background 0.5s ease, color 0.5s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar          { width: 6px; }
::-webkit-scrollbar-track    { background: var(--bg-base); }
::-webkit-scrollbar-thumb    { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent3); }

/* ── CUSTOM CURSOR ────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.6;
}

@media (hover: none) {
  .cursor-dot,
  .cursor-ring { display: none; }
}

/* ── PROGRESS BAR ─────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  z-index: 99998;
  transition: width 0.1s linear;
}

/* ── SECTION COMMON ───────────────────────────── */
section {
  padding: 100px 0;
  transition: background 0.5s ease;
}

/* alternating section backgrounds */
#hero,
#services,
#gallery,
#booking    { background: var(--bg-base); }

#about,
#stats,
#testimonials,
#contact    { background: var(--bg-2); }

/* ── SHARED COMPONENT CLASSES ─────────────────── */
.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 232, 0.10);
  border: 1px solid rgba(0, 200, 232, 0.28);
  border-radius: 40px;
  padding: 6px 18px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.sec-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900;
  color: var(--text-h);
  line-height: 1.25;
  margin-bottom: 12px;
}
.sec-title span { color: var(--accent); }

.sec-desc {
  color: var(--text-p);
  font-size: 15px;
  line-height: 1.9;
  max-width: 580px;
}

.divider {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 16px 0;
}

/* ── SCROLL REVEAL ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.up    { opacity: 0; transform: translateY(40px); }
.reveal.left  { opacity: 0; transform: translateX(-45px); }
.reveal.right { opacity: 0; transform: translateX(45px); }
.reveal.scale { opacity: 0; transform: scale(0.9); }
.reveal.visible { opacity: 1; transform: none; }

/* stagger delays */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }
.d7 { transition-delay: 0.56s; }
.d8 { transition-delay: 0.64s; }

/* ── SHARED BUTTONS ───────────────────────────── */
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 14px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 200, 232, 0.4);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.btn-primary-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary-hero:hover::after { opacity: 1; }
.btn-primary-hero:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 200, 232, 0.55);
  color: #fff;
}

.btn-outline-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--glass2);
  border: 1.5px solid var(--border);
  color: var(--text-h);
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.35s;
}
.btn-outline-hero:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}

/* ── FEATURE / INFO CARD ──────────────────────── */
.feat-card {
  background: var(--glass2);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 22px 20px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s;
}
.feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}
.feat-card:hover::after { transform: scaleX(1); }

.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(0, 200, 232, 0.3);
  transition: all 0.4s;
}
.feat-card:hover .feat-icon { transform: rotate(8deg) scale(1.1); }
.feat-icon i { color: #fff; font-size: 22px; }
.feat-card h5 { font-size: 15px; font-weight: 800; color: var(--text-h); margin-bottom: 6px; }
.feat-card p  { font-size: 13px; color: var(--text-p); line-height: 1.75; }

/* ── MODAL ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 44px 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  animation: modal-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.modal-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,200,232,0.12), transparent 70%);
  pointer-events: none;
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-check {
  font-size: 70px;
  color: #4dff6e;
  margin-bottom: 14px;
  animation: check-bounce 0.5s 0.3s ease both;
}
@keyframes check-bounce {
  from { transform: scale(0) rotate(-180deg); }
  to   { transform: scale(1) rotate(0); }
}
.modal-title { font-size: 22px; font-weight: 900; color: var(--text-h); margin-bottom: 10px; }
.modal-sub   { color: var(--text-p); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }

.modal-close {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 13px;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
}
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 200, 232, 0.45);
}

/* ── WHATSAPP FLOAT ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.wa-label {
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--text-h);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-10px) scale(0.9);
  transition: all 0.35s;
  pointer-events: none;
}
.wa-label span { color: #25d366; }

.wa-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  animation: wa-ring 2.5s ease-in-out infinite;
  transition: all 0.35s;
  position: relative;
}
@keyframes wa-ring {
  0%,100% { box-shadow: 0 6px 28px rgba(37,211,102,0.45), 0 0 0 0   rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 6px 28px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0);   }
}
.wa-btn:hover {
  transform: scale(1.12) rotate(-8deg);
  color: #fff;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.wa-online {
  position: absolute;
  top: 2px; right: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #4dff6e;
  border: 2.5px solid var(--bg-base);
  animation: online-blink 2s ease-in-out infinite;
}
@keyframes online-blink {
  0%,100% { box-shadow: 0 0 0 0   rgba(77,255,110,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(77,255,110,0);   }
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 767px) {
  section { padding: 70px 0; }
  .wa-float { bottom: 20px; left: 20px; }
}