/* =============================================
   Dr. Enas Khaled Obaid Dental Clinic — Main Stylesheet
   RTL Arabic | Cairo Font | Black + Gold theme
   ============================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy:      #111111;
  --navy-dark: #000000;
  --teal:      #1a1a1a;
  --gold:      #C9A961;
  --gold-light:#F5EFE6;
  --white:     #EDE8E1;
  --off-white: #F5EFE6;
  --text:      #111111;
  --text-light:#666666;
  --border:    #d9d0c4;
  --success:   #38a169;
  --whatsapp:  #25d366;

  --font: 'Cairo', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --transition: all .3s ease;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  direction: rtl;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ---------- UTILITIES ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(201,169,97,.12);
  border: 1px solid rgba(201,169,97,.28);
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-title-ba::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px auto 0;
}

.section-header p {
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(201,168,76,.55);
  position: relative;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 6px 28px rgba(201,168,76,.85);
  opacity: 0;
  animation: pulse-glow 2.4s ease-in-out infinite;
}
.btn-primary:hover {
  background: #b8952e;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,168,76,.65);
}
.btn-primary:hover::after { animation: none; }

@keyframes pulse-glow {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,.4); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; animation: fadeInUp .7s forwards; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
.delay-4 { animation-delay: .8s; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(0,0,0,.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(201,169,97,0.55)) drop-shadow(0 0 14px rgba(201,169,97,0.25));
  transition: filter 0.35s ease;
}
.logo img:hover {
  filter: drop-shadow(0 0 10px rgba(201,169,97,0.85)) drop-shadow(0 0 22px rgba(201,169,97,0.4));
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.main-nav a:hover  { color: var(--gold); background: rgba(255,255,255,.06); }
.main-nav a.active { color: var(--gold); background: rgba(255,255,255,.1); border-bottom: 2px solid var(--gold); }

.main-nav ul li:last-child a {
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  border-radius: 50px;
  padding: 8px 20px;
}
.main-nav ul li:last-child a:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201,168,76,.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
  background: var(--navy);
}

/* Background image slides */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.bg-slide-1 { background-image: url('../images/hero-bg.jpg'); }
.bg-slide-2 { background-image: url('../images/hero-bg-2.jpg'); }
.bg-slide-3 { background-image: url('../images/hero-bg-3.jpg'); }

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.78) 100%);
}

/* Floating tooth particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle-tooth {
  position: absolute;
  bottom: -60px;
  color: var(--gold);
  opacity: 0;
  animation: floatTooth linear infinite;
}

@keyframes floatTooth {
  0%   { opacity: 0;         transform: translateY(0)       translateX(0)              rotate(var(--rot)); }
  15%  { opacity: var(--to); }
  50%  {                     transform: translateY(-52vh)    translateX(var(--sway));   rotate(calc(var(--rot) + 15deg)); }
  85%  { opacity: var(--to); }
  100% { opacity: 0;         transform: translateY(-108vh)  translateX(0)              rotate(calc(var(--rot) + 32deg)); }
}

/* Centered content wrapper */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 100px;
}

/* Slide text panels */
.hero-slides-text {
  position: relative;
  width: 100%;
  max-width: 820px;
  min-height: 280px;
}
.hero-slide-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
}
.hero-slide-text.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-slide-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 32px;
}

.hero-slide-text .btn { margin-top: 8px; }

/* Dot navigation */
.hero-dots {
  display: flex;
  gap: 12px;
  margin-top: 52px;
  justify-content: center;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero-dot.active,
.hero-dot:hover {
  background: var(--white);
  border-color: var(--white);
}

/* Arrow navigation */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-arrow-prev  { right: 24px; }
.hero-arrow-next  { left: 24px; }

/* Scroll-down indicator */
.hero-scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   SERVICES
   ============================================= */
.services-section {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '\f5c9';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  font-size: 480px;
  color: var(--gold);
  opacity: 0.045;
  left: -100px;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,.55) 50%,
    transparent 80%
  );
  transform: skewX(-18deg);
  pointer-events: none;
}
.service-card:hover::after {
  animation: shineSweep .65s ease forwards;
}
@keyframes shineSweep {
  0%   { left: -120%; }
  100% { left: 160%;  }
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
  color: var(--gold);
  transition: background .3s ease, color .3s ease;
}
.service-card:hover .service-icon {
  background: var(--gold);
}
.service-card:hover .service-icon i {
  color: var(--navy-dark);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: .97rem;
  margin-bottom: 20px;
  flex: 1;
}

.service-benefits {
  margin-bottom: 24px;
}
.service-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--text);
  padding: 4px 0;
}
.service-benefits .fa-check { color: var(--gold); font-size: .8rem; }

.service-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold);
  font-size: .95rem;
  margin-top: auto;
}
.service-link:hover { gap: 10px; }

/* =============================================
   ABOUT
   ============================================= */
.about-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '\f5c9';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  font-size: 380px;
  color: var(--gold);
  opacity: 0.04;
  right: -80px;
  bottom: -60px;
  transform: rotate(25deg);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.about-section .container { position: relative; z-index: 1; }

.doctor-title {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-image.no-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 5rem;
}
.about-image.no-image::after {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-right: 4px solid var(--gold);
}
.value-item > i {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}
.value-item strong { display: block; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.value-item span   { font-size: .9rem; color: var(--text-light); }

/* =============================================
   GALLERY — Before / After Slider
   ============================================= */
.gallery-section { background: var(--navy); }

.gallery-section .section-title-ba { color: var(--white); }
.gallery-section .section-sub-ba   { color: rgba(255,255,255,.65); }
.gallery-section .section-tag {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--gold);
}
.gallery-section .gtab {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
}
.gallery-section .gtab:hover  { border-color: var(--gold); color: var(--white); }
.gallery-section .gtab.active { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.gallery-section .gallery-cta {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}
.gallery-section .gallery-cta p { color: var(--white); }

.section-center { text-align: center; margin-bottom: 36px; }

.section-title-ba {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-title-ba em {
  font-style: normal;
  color: var(--gold);
}

.section-sub-ba {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Filter Tabs */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.gtab {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  padding: .5rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}
.gtab:hover  { border-color: var(--gold); color: var(--navy); }
.gtab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Cards Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.ba-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.ba-card.hidden { display: none; }

.ba-label-top { padding: .75rem 1rem 0; }

.ba-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .85rem;
  border-radius: 20px;
  letter-spacing: .04em;
}
.ba-badge.implant    { background: rgba(201,169,97,.12); color: #7a6030; border: 1px solid rgba(201,169,97,.35); }
.ba-badge.canal      { background: rgba(201,169,97,.12); color: #7a6030; border: 1px solid rgba(201,169,97,.35); }
.ba-badge.prosthetic { background: rgba(201,169,97,.12); color: #7a6030; border: 1px solid rgba(201,169,97,.35); }
.ba-badge.whitening  { background: rgba(201,169,97,.12); color: #7a6030; border: 1px solid rgba(201,169,97,.35); }
.ba-badge.cleaning   { background: rgba(201,169,97,.12); color: #7a6030; border: 1px solid rgba(201,169,97,.35); }

/* Slider */
.ba-slider-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  cursor: ew-resize;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}
.ba-before img, .ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path .02s linear;
}

.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
  border: 2.5px solid var(--white);
  cursor: ew-resize;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.ba-slider-wrap:hover .ba-handle {
  transform: translate(-50%, -50%) scale(1.15);
}

.ba-tag-before, .ba-tag-after {
  position: absolute;
  bottom: 10px;
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 12px;
  pointer-events: none;
  z-index: 8;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ba-tag-before { right: 10px; background: rgba(0,0,0,.55);      color: var(--white); }
.ba-tag-after  { left: 10px;  background: rgba(201,169,97,.92); color: var(--navy-dark); font-weight: 800; }

.ba-meta {
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.ba-meta strong { font-size: .92rem; font-weight: 800; color: var(--navy); }
.ba-meta span   { font-size: .78rem; color: var(--text-light); }

/* Gallery CTA */
.gallery-cta {
  text-align: center;
  margin: 0 auto;
  max-width: 480px;
  padding: 2rem;
  background: rgba(201,169,97,.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,169,97,.25);
}
.gallery-cta p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section { background: var(--navy); }

/* Dark section overrides */
.section-dark .section-tag {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--gold);
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p  { color: rgba(255,255,255,.65); }

.testimonials-section .testimonial-card {
  background: #1c1c1c;
  border-color: rgba(255,255,255,.08);
}
.testimonials-section .testimonial-card p {
  color: rgba(255,255,255,.82);
}
.testimonials-section .testimonial-author strong { color: var(--white); }
.testimonials-section .testimonial-avatar        { opacity: .35; color: var(--white); }
.testimonials-section .review-source             { color: rgba(255,255,255,.5); }
.testimonials-section .slider-btn {
  background: var(--gold);
  color: var(--navy-dark);
}
.testimonials-section .slider-btn:hover {
  background: #b8952e;
  color: var(--white);
}

.testimonials-slider-wrap { position: relative; }

.testimonials-slider {
  position: relative;
  margin-bottom: 8px;
  padding: 4px 30px 8px;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.testimonials-slider .testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .2s, transform .2s;
}
.slider-btn:hover { background: var(--gold); transform: translateY(-50%) scale(1.1); }
.slider-prev { right: 0; }
.slider-next { left: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 32px;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.slider-dot.active { background: var(--gold); transform: scale(1.35); }

.review-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.review-source i { color: #4285f4; font-size: .95rem; }

.reviews-cta { text-align: center; margin-top: 8px; }

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  left: auto;
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  opacity: .3;
  font-family: Georgia, serif;
}

.testimonial-stars {
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: 16px;
  display: flex;
  gap: 3px;
}

.testimonial-card p {
  color: var(--text);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  font-size: 2.5rem;
  color: var(--navy);
  opacity: .6;
}
.testimonial-author strong { display: block; font-weight: 800; color: var(--navy); }
.testimonial-author span   { font-size: .85rem; color: var(--gold); font-weight: 600; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background: var(--off-white);
  padding-top: 50px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  grid-column: 1 / -1;
}

.contact-details { display: flex; flex-direction: column; }

.contact-map { display: flex; flex-direction: column; }

.contact-info h3,
.contact-form-wrapper h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-item > i {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-weight: 800; color: var(--navy); font-size: .9rem; margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--text-light); font-size: .97rem; }
.contact-item a:hover { color: var(--gold); }

.contact-ctas {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  margin-top: 8px;
}
.map-container iframe {
  border: none;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  direction: rtl;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  text-align: center;
  color: var(--text-light);
  font-size: .85rem;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.form-note .fa-lock { color: var(--success); }

.form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.form-success .fa-check-circle { font-size: 3rem; color: var(--success); margin-bottom: 16px; }
.form-success h4 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.form-success p  { color: var(--text-light); }

iframe[name="sheet-target"] {
  display: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  display: none;
}
.footer-brand p { font-size: .9rem; line-height: 1.8; }

.site-footer h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-right: 4px; }

.footer-contact p {
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-contact i { color: var(--gold); width: 16px; }
.footer-contact a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* =============================================
   FLOATING ELEMENTS
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  z-index: 900;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 6px 30px rgba(37,211,102,.8); }
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 900;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover   { background: var(--gold); color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-image { max-width: 420px; margin: 0 auto; }
  .contact-container { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-arrow { width: 40px; height: 40px; font-size: .85rem; }
  .hero-arrow-prev { right: 12px; }
  .hero-arrow-next { left: 12px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }

  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    right: 0; left: 0;
    background: var(--navy-dark);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul   { flex-direction: column; gap: 4px; }
  .main-nav a    { display: block; padding: 12px 16px; font-size: 1.05rem; }

  .hamburger { display: flex; }

  .hero-content { padding: 100px 16px 80px; }
  .hero-slides-text { min-height: 260px; }
  .hero-slide-tagline { font-size: 1rem; }
  .hero-arrow { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-slider .testimonial-card { flex: 0 0 calc((100% - 24px) / 2); }

  .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }

}

@media (max-width: 580px) {
  .testimonials-slider .testimonial-card { flex: 0 0 100%; }
  .testimonials-slider { padding: 4px 24px 8px; }
}

/* ── Booking Modal ── */
.booking-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 24px 16px;
}
.booking-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.booking-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 44px 32px 32px;
  width: 100%;
  max-width: 480px;
  margin: auto;
  direction: rtl;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.modal-close:hover { color: var(--navy); }

.modal-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}
.modal-title i { color: var(--gold); margin-left: 8px; }

@media (max-width: 520px) {
  .booking-modal { padding: 40px 18px 24px; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: .92rem; }
  .hero-title { font-size: 1.8rem; }
}

/* =============================================
   FORM — date/time side-by-side row
   ============================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================
   SINGLE DOCTOR ABOUT LAYOUT
   ============================================= */
.about-flex {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  margin-top: 48px;
  flex-wrap: wrap;
}
.about-flex .about-image {
  flex: 0 0 360px;
  min-width: 260px;
}
.about-content-single {
  flex: 1;
  min-width: 260px;
}
.about-content-single h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  .about-flex { gap: 32px; }
  .about-flex .about-image { flex: 0 0 100%; }
}
