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

:root {
  --gold: #C49A2A;
  --gold-light: #DDB840;
  --gold-pale: #FDF8EE;
  --gold-dark: #A07820;
  --gray: #636363;
  --gray-light: #8A8A8A;
  --gray-pale: #F6F6F4;
  --text: #333333;
  --white: #FFFFFF;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--gray);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0 24px;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-link:hover { color: var(--gold-light); }
.topbar-sep { color: rgba(255,255,255,0.2); }

/* Language toggle */
.lang-toggle {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.lang-toggle:hover { background: var(--gold-dark); }

@media (max-width: 640px) { .topbar { display: none; } }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links .btn-nav {
  background: var(--gold);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 25px;
  font-weight: 700;
}
.nav-links .btn-nav:hover { background: var(--gold-dark); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--gray);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-alt { background: var(--gray-pale); }
.section-gold { background: var(--gold-pale); }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.tag {
  display: inline-block;
  background: rgba(196,154,42,0.12);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-title span { color: var(--gold); }
.section-sub {
  color: var(--gray-light);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  font-family: 'Cairo', sans-serif;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,154,42,0.35); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.65); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-gray { background: var(--gray); color: var(--white); }
.btn-gray:hover { background: #444; transform: translateY(-1px); }

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative;
  background: linear-gradient(135deg, #1a1208 0%, #2d2010 100%);
  color: var(--white);
  overflow: hidden;
  min-height: 620px;
}
.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(196,154,42,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}
.hero-slider::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(196,154,42,0.2) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.slides-wrapper {
  position: relative;
  min-height: 620px;
  z-index: 1;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 100px 80px 80px;
  gap: 48px;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: all; }

/* Text entrance animations */
.slide-text .tag, .slide-text h1, .slide-text p, .slide-text .hero-btns {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0s, transform 0s;
}
.slide.active .slide-text .tag {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease 0.15s, transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.slide.active .slide-text h1 {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.28s, transform 0.55s cubic-bezier(0.22,1,0.36,1) 0.28s;
}
.slide.active .slide-text p {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease 0.42s, transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.42s;
}
.slide.active .slide-text .hero-btns {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease 0.55s, transform 0.5s cubic-bezier(0.22,1,0.36,1) 0.55s;
}
.slide-text { flex: 1 1 52%; max-width: 580px; }
.slide-text .tag {
  background: rgba(196,154,42,0.18);
  color: var(--gold-light);
}
.slide-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.slide-text h1 span { color: var(--gold-light); }
.slide-text p {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: rgba(255,255,255,0.72);
  margin-bottom: 48px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visual panel */
.slide-visual {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0s, transform 0s;
}
.slide.active .slide-visual {
  opacity: 1; transform: translateX(0);
  transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.slide-visual img {
  width: 100%; max-width: 420px; height: 340px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(196,154,42,0.3);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

html[dir="rtl"] .slide-visual {
  transform: translateX(-30px);
}
html[dir="rtl"] .slide.active .slide-visual {
  transform: translateX(0);
}

/* Progress bar */
.slider-progress {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 3;
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%;
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.slider-arrow:hover { background: rgba(196,154,42,0.25); border-color: var(--gold); }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, #1a1208 0%, #2d2010 60%, #1a1208 100%);
  color: var(--white);
  padding: 80px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(196,154,42,0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}
.page-header h1 span { color: var(--gold-light); }
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.05rem; position: relative; }

/* ── STATS BANNER ── */
.stats-banner {
  background: var(--gold);
  color: var(--white);
  padding: 36px 24px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-item span { font-size: 0.88rem; opacity: 0.88; }

/* ── ABOUT / INTRO ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text p { color: var(--gray-light); margin-bottom: 16px; font-size: 1rem; }
.about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-img img {
  width: 100%; height: 440px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.about-img-placeholder {
  width: 100%; height: 440px;
  background: linear-gradient(135deg, var(--gold-pale) 0%, rgba(196,154,42,0.15) 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(196,154,42,0.3);
}
.about-img-placeholder svg { width: 80px; height: 80px; opacity: 0.4; }
.about-img-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(196,154,42,0.4);
}
html[dir="rtl"] .about-img-badge { right: auto; left: 24px; }
.about-img-badge strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.about-img-badge span { font-size: 0.8rem; opacity: 0.9; }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1.5px solid #EEE;
  transition: all 0.25s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.service-card:hover { box-shadow: 0 14px 44px rgba(196,154,42,0.13); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 72px; height: 72px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.service-icon svg { width: 34px; height: 34px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray); margin-bottom: 10px; }
.service-card p { color: var(--gray-light); font-size: 0.92rem; line-height: 1.75; }

/* Section divider label */
.services-group { margin-bottom: 56px; }
.services-group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.services-group-label h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray);
  white-space: nowrap;
}
.services-group-label::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(196,154,42,0.3), transparent);
}

/* ── DOCTOR CARD ── */
.doctor-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid #EEE;
  transition: all 0.25s;
  max-width: 480px;
  margin: 0 auto;
}
.doctor-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); transform: translateY(-4px); }
.doctor-photo {
  height: 380px;
  background: var(--gray-pale);
  overflow: hidden;
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-photo-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-pale), #f0ece0);
}
.doctor-photo-placeholder svg { width: 80px; opacity: 0.35; }
.doctor-info { padding: 28px; }
.doctor-info h3 { font-size: 1.3rem; font-weight: 800; color: var(--gray); margin-bottom: 4px; }
.doctor-title { color: var(--gold); font-weight: 600; font-size: 0.93rem; margin-bottom: 16px; }
.doctor-info p { color: var(--gray-light); font-size: 0.92rem; line-height: 1.8; margin-bottom: 16px; }
.doctor-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.doctor-tag {
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Doctor full page layout */
.doctor-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}
.doctor-sidebar .doctor-photo {
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.doctor-sidebar .doctor-photo img { height: 100%; }
.doctor-credentials { list-style: none; }
.doctor-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.92rem;
  color: var(--gray-light);
}
.doctor-credentials li:last-child { border: none; }
.doctor-credentials li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Instagram gallery */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.insta-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-pale);
  position: relative;
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.insta-item:hover img { transform: scale(1.06); }
.insta-item-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-pale), #f0ece0);
  font-size: 2rem;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 1.2rem; font-weight: 800; color: var(--gray); margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; }
.contact-item-text strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--gray); margin-bottom: 2px; }
.contact-item-text span, .contact-item-text a { font-size: 0.95rem; color: var(--gray-light); text-decoration: none; }
.contact-item-text a:hover { color: var(--gold); }
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #EEE;
}
.contact-map iframe { display: block; width: 100%; height: 400px; border: none; }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-whatsapp:hover { background: #1fba59; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-whatsapp svg { width: 20px; height: 20px; }

/* Hours table */
.hours-table { width: 100%; margin-top: 8px; }
.hours-table tr td { padding: 6px 0; font-size: 0.9rem; color: var(--gray-light); }
.hours-table tr td:last-child { text-align: end; font-weight: 600; color: var(--gray); }
.hours-closed { color: #e05252 !important; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { opacity: 0.88; margin-bottom: 36px; font-size: 1.05rem; }

/* ── FOOTER ── */
footer {
  background: #1a1208;
  color: rgba(255,255,255,0.6);
  padding: 52px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo { margin-bottom: 14px; }
.footer-brand .footer-logo img { height: 48px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: 0.92rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.78rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
  display: flex;
}
.footer-social a:hover { color: var(--gold-light); }
.footer-social svg { width: 18px; height: 18px; }

/* ── RTL OVERRIDES ── */
html[dir="rtl"] .section-sub { text-align: right; }
html[dir="rtl"] .services-group-label::after {
  background: linear-gradient(270deg, rgba(196,154,42,0.3), transparent);
}
html[dir="rtl"] .footer-brand p { max-width: 100%; }
html[dir="rtl"] .hours-table tr td:last-child { text-align: start; }
html[dir="rtl"] .contact-item-text a { direction: ltr; display: inline-block; }
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href^="https://wa.me/"],
html[dir="rtl"] a[href*="instagram"],
html[dir="rtl"] .topbar-link span,
html[dir="rtl"] .footer-social a { direction: ltr; unicode-bidi: embed; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .slide { padding: 90px 40px 80px; gap: 28px; }
  .slide-visual { flex: 0 0 280px; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-sidebar .doctor-photo { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0; background: white; padding: 20px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 4px; z-index: 100; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
  .nav-links li:last-child { border: none; }
  nav { position: sticky; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-inner { gap: 32px; }
}

/* ── LANGUAGE TOGGLE IN NAV (desktop + mobile) ── */
.nav-lang-item { display: list-item; }
@media (max-width: 768px) {
  .nav-lang-item { border-bottom: none !important; padding: 8px 0 4px !important; }
  .nav-lang-item .lang-toggle { width: 100%; padding: 10px 22px; font-size: 0.95rem; border-radius: 8px; display: block; text-align: center; box-sizing: border-box; }
}

@media (max-width: 680px) {
  .slider-arrow { display: none; }
  .slide { flex-direction: column; padding: 80px 24px 70px; gap: 24px; text-align: center; }
  .slides-wrapper { min-height: 700px; }
  .slide-visual { flex: 0 0 auto; width: 100%; }
  .slide-visual img { height: 300px; max-width: 100%; object-fit: contain; object-position: center center; background: transparent; }
  .slide-text p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .slide-text .tag { display: inline-flex; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}
