:root {
  --gold: #a9812f;
  --gold-dark: #8a6a24;
  --gold-light: #d4af6a;
  --ink: #171512;
  --ink-soft: #3a352c;
  --cream: #faf7f0;
  --line: #e7dfc9;
  --radius: 10px;
}

body {
  font-family: 'Cairo', 'Marcellus', sans-serif;
  color: var(--ink);
  background: #fff;
}

/* ---------- gold scrollbar theme ---------- */
html { scrollbar-color: var(--gold) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 20px;
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
::-webkit-scrollbar-corner { background: var(--cream); }

h1, h2, h3, h4, .brand-font {
  font-family: 'Marcellus', 'Cairo', serif;
}

a { text-decoration: none; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--ink);
  color: #ddd;
  font-size: .85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-phone { color: #e9e3d3; display: flex; align-items: center; gap: 6px; }
.topbar-phone:hover { color: var(--gold-light); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-switcher { display: flex; gap: 10px; }
.lang-switcher a { color: #bbb; }
.lang-switcher a.active, .lang-switcher a:hover { color: var(--gold-light); font-weight: 600; }
.topbar-map { color: #bbb; }
.topbar-map:hover { color: var(--gold-light); }

/* ---------- header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand img { height: 56px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 34px; height: 26px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; padding: 12px 0; }
  .site-header-inner { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,9,6,.82) 10%, rgba(10,9,6,.25) 65%, rgba(10,9,6,.15));
}
.hero-content { position: relative; padding: 60px 0 50px; }
.hero-tagline { font-size: 1rem; opacity: .9; margin-bottom: 10px; }
.hero-headline { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: 22px; }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid var(--gold);
  transition: .2s;
}
.btn-gold:hover { background: transparent; color: var(--gold) !important; }
.btn-outline-gold {
  display: inline-block;
  background: transparent;
  color: var(--gold) !important;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  border: 1px solid var(--gold);
  transition: .2s;
}
.btn-outline-gold:hover { background: var(--gold); color: #fff !important; }

/* ---------- section shell ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--cream); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 70px; height: 3px; background: var(--gold);
}
[dir="rtl"] .section-title::after { left: auto; right: 0; }
.section-intro { color: var(--ink-soft); margin-bottom: 32px; max-width: 720px; }

/* ---------- about / features ---------- */
.about-text { line-height: 2; color: var(--ink-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(169,129,47,.18);
  border-color: var(--gold);
  background: #fffdf7;
}
.feature-card i {
  font-size: 1.7rem; color: var(--gold); margin-bottom: 10px; display: block;
  transition: transform .35s ease, color .25s ease;
}
.feature-card:hover i { transform: scale(1.25) rotate(-6deg); color: var(--gold-dark); }
.feature-card span { font-weight: 600; font-size: .95rem; transition: color .25s ease; }
.feature-card:hover span { color: var(--ink); }
@media (max-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- director ---------- */
.director { background: var(--ink); color: #eee; }
.director .section-title { color: #fff; }
.director .section-title::after { background: var(--gold-light); }
.director-photo { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); }
.director-photo img { width: 100%; display: block; }
.director-letter { line-height: 2; color: #ccc; max-height: 480px; overflow-y: auto; padding-inline-end: 10px; }
.director-name { color: var(--gold-light); font-weight: 700; margin-top: 16px; }

/* ---------- departments carousel (auto-advancing, no visible scrollbar) ---------- */
.dept-carousel { position: relative; overflow: hidden; }
.dept-track { display: flex; gap: 18px; will-change: transform; }
.dept-card { flex: 0 0 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.dept-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.dept-card span { text-align: center; }
.dept-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); color: var(--ink); display: flex; align-items: center; justify-content: center;
  z-index: 2; cursor: pointer; transition: .2s;
}
.dept-nav:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.dept-nav.prev { left: 6px; }
.dept-nav.next { right: 6px; }
.dept-card span { display: block; padding: 12px 14px; font-weight: 600; font-size: .92rem; }

/* ---------- insurance ---------- */
.insurance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.insurance-badge {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px; gap: 6px; text-align: center; min-height: 170px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.insurance-badge:hover { box-shadow: 0 10px 20px rgba(0,0,0,.08); transform: translateY(-3px); }
.insurance-badge img { max-height: 140px; max-width: 96%; width: auto; object-fit: contain; }
.insurance-badge span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- appointment form ---------- */
.appointment { background-size: cover; background-position: center; position: relative; }
.appointment::before { content: ""; position: absolute; inset: 0; background: rgba(8,7,5,.72); }
.appointment .container { position: relative; }
.appointment .section-title, .appointment .section-intro { color: #fff; }
.form-card { background: rgba(255,255,255,.97); border-radius: var(--radius); padding: 28px; }
.form-card label { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.form-card .form-control, .form-card .form-select {
  border-radius: 8px; border: 1px solid var(--line); padding: 10px 14px;
}
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(169,129,47,.15); }
.alert-success-soft { background: #eef7ee; border: 1px solid #bfe3bf; color: #235d23; border-radius: var(--radius); padding: 14px 18px; }
.alert-error-soft { background: #fbecec; border: 1px solid #e6b6b6; color: #7d2323; border-radius: var(--radius); padding: 14px 18px; }

/* ---------- doctors ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: 0 18px 32px rgba(23,21,18,.14); border-color: var(--gold-light); }
.doctor-card .photo { position: relative; overflow: hidden; }
.doctor-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .5s ease; }
.doctor-card:hover img { transform: scale(1.08); }
/* diagonal light-sweep effect across the photo on hover */
.doctor-card .photo::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-20deg); pointer-events: none; transition: left .85s ease;
}
.doctor-card:hover .photo::after { left: 125%; }
.doctor-card .body { padding: 22px 16px 18px; position: relative; border-top: 1px solid var(--line); }
.doctor-card h3 { font-size: 1.02rem; margin-bottom: 4px; transition: color .25s ease; }
.doctor-card:hover h3 { color: var(--gold-dark); }
.doctor-card .role { font-size: .82rem; color: var(--gold-dark); margin-bottom: 10px; }
.doctor-card button {
  font-size: .82rem; font-weight: 700; color: var(--gold); background: none;
  border: 1px solid var(--gold); border-radius: 20px; padding: 5px 16px;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.doctor-card button:hover { background: var(--gold); color: #fff; transform: scale(1.06); box-shadow: 0 6px 14px rgba(169,129,47,.35); }
@media (max-width: 992px) { .doctor-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .doctor-grid { grid-template-columns: repeat(2, 1fr); } }

.doctor-bio { line-height: 1.9; }

/* ---------- team ---------- */
.team-photo { border-radius: var(--radius); overflow: hidden; }
.team-photo img, .team-photo video { width: 100%; display: block; background: #000; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.service-item .num { font-family: 'Marcellus', serif; font-size: 1.4rem; color: var(--gold); font-weight: 700; line-height: 1; }
.service-item span.title { font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.article-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.article-card img { width: 100%; height: 160px; object-fit: cover; }
.article-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card .date { font-size: .78rem; color: var(--gold-dark); font-weight: 600; }
.article-card h3 { font-size: 1rem; line-height: 1.4; }
.article-card p { font-size: .87rem; color: var(--ink-soft); flex: 1; }
.article-card a.read-more { font-size: .85rem; font-weight: 700; color: var(--gold); }
@media (max-width: 992px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-info-item { display: flex; gap: 12px; margin-bottom: 22px; }
.contact-info-item i { color: var(--gold); font-size: 1.2rem; margin-top: 3px; }
.contact-info-item h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--ink-soft); font-size: .92rem; margin: 0; display: block; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #ccc; padding-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 52px; }
.footer-brand p { margin: 0; font-weight: 600; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: #ccc; font-size: 1.2rem; }
.footer-social a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid #2c2a25; text-align: center; padding: 16px 0; font-size: .85rem; color: #999; }

/* ---------- news list / detail pages ---------- */
.news-hero { background: var(--ink); color: #fff; padding: 46px 0; }
.article-detail img { width: 100%; border-radius: var(--radius); margin-bottom: 26px; }
.article-detail .body { line-height: 2; color: var(--ink-soft); }

/* ---------- generic ---------- */
.badge-gold { background: var(--gold); color: #fff; }
.breadcrumb-lite a { color: var(--gold-dark); font-weight: 600; }
