/* ============ TOKENS ============ */
:root {
  --bordeaux: #6B1A24;
  --bordeaux-deep: #3A0E14;
  --bordeaux-soft: #8B2A35;
  --cream: #F5EFE4;
  --cream-warm: #EFE7D6;
  --paper: #FFFFFF;
  --ink: #1C1613;
  --ink-soft: #4A3F38;
  --brass: #B8894A;
  --brass-soft: #D4B584;
  --line: rgba(28, 22, 19, 0.12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-total: 128px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ HEADER (2-tier) ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
}

/* Top strip */
.top-strip {
  background: var(--bordeaux-deep);
  color: var(--brass-soft);
  padding: 0.5rem var(--pad);
  font-size: 0.82rem;
}
.top-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lang-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-toggle a {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  transition: all 0.2s;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.lang-toggle a.active {
  background: var(--brass-soft);
  color: var(--bordeaux-deep);
}
.lang-toggle a:not(.active):hover { color: var(--cream); }
.lang-sep { opacity: 0.4; }

.top-utils {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  display: flex;
  transition: color 0.2s;
}
.social-icons a:hover { color: var(--cream); }
.social-icons svg { width: 16px; height: 16px; }

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  font-variant-numeric: tabular-nums;
}
.top-phone:hover { color: var(--cream); }
.top-phone svg { width: 13px; height: 13px; }

/* Main bar */
.main-bar {
  background: rgba(245, 239, 228, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem var(--pad);
}
.main-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo slot */
.logo-slot {
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-full {
  display: block;
  height: 52px;
  width: auto;
}
.logo-mark {
  display: none;
  height: 44px;
  width: auto;
}
@media (max-width: 960px) {
  .logo-full { display: none; }
  .logo-mark { display: block; }
}

/* Nav */
.main-nav {
  display: flex;
  gap: 2.25rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-nav a {
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--bordeaux); }
.main-nav a.current {
  color: var(--bordeaux);
}
.main-nav a.current::after {
  content: "";
  position: absolute;
  bottom: -0.85rem;
  left: 0; right: 0;
  height: 2px;
  background: var(--bordeaux);
}

/* Header CTAs */
.header-ctas {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.cta-wa, .cta-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s;
  white-space: nowrap;
}
.cta-wa {
  background: #25D366;
  color: white;
}
.cta-wa:hover { background: #1FB955; }
.cta-call {
  background: var(--bordeaux);
  color: var(--cream);
}
.cta-call:hover { background: var(--bordeaux-deep); }
.cta-wa svg, .cta-call svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 22px; height: 1.5px; background: var(--bordeaux-deep);
}

/* Mobile nav */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .cta-wa span, .cta-call span { display: none; }
  .cta-wa, .cta-call { padding: 0.6rem 0.75rem; }

  .main-nav.open {
    display: flex; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    padding: 1rem var(--pad) 2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  }
  .main-nav.open a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav.open a.current::after { display: none; }
}

@media (max-width: 640px) {
  .top-phone span { display: none; }
  .top-strip-inner { justify-content: space-between; }
  .logo-slot { min-width: auto; }
  .logo-placeholder { width: 100px; height: 44px; font-size: 0.62rem; }
}

/* ============ PAGE LAYOUT ============ */
main {
  padding-top: var(--header-total);
}
section { padding: 5rem var(--pad); }
.container { max-width: var(--max); margin: 0 auto; }

.section-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bordeaux);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bordeaux-deep);
  max-width: 20em;
  margin-bottom: 3rem;
}

/* ============ PAGE HERO (home) ============ */
.hero {
  background: var(--bordeaux);
  color: var(--cream);
  padding: 5rem var(--pad);
  min-height: calc(100vh - var(--header-total));
  display: flex;
  align-items: center;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass-soft);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 120;
}
.hero-title-ar {
  display: block;
  font-family: var(--arabic);
  font-size: 0.55em;
  color: var(--brass-soft);
  margin-top: 1rem;
  direction: rtl;
}
.hero-role {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 181, 132, 0.3);
  font-size: 1.05rem;
  color: rgba(245, 239, 228, 0.85);
  max-width: 32em;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex; gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.9rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary { background: var(--cream); color: var(--bordeaux-deep); }
.btn-primary:hover { background: var(--brass-soft); }
.btn-ghost { border: 1px solid rgba(245, 239, 228, 0.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(245, 239, 228, 0.08); }

.hero-visual {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58, 14, 20, 0.35), transparent 50%);
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero { padding: 3rem var(--pad); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { aspect-ratio: 3/4; }
}

/* ============ PAGE HEADER (internal pages) ============ */
.page-header {
  background: var(--bordeaux);
  color: var(--cream);
  padding: 5rem var(--pad) 4rem;
  text-align: center;
}
.page-header-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 120;
}
.page-header p {
  max-width: 42em;
  margin: 1.5rem auto 0;
  color: rgba(245, 239, 228, 0.85);
  line-height: 1.65;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: var(--cream-warm);
  padding: 0.85rem var(--pad);
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.breadcrumb-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: var(--bordeaux); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--ink-soft); opacity: 0.5; }

/* ============ HOME SECTIONS ============ */
.about-preview { background: var(--cream); }
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-preview-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
}
.about-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.about-preview-text p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  max-width: 34em;
}
.about-preview-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--bordeaux);
  font-weight: 500;
}
.link-more {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--bordeaux);
  color: var(--bordeaux);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.link-more:hover { color: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }

@media (max-width: 860px) {
  .about-preview-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-preview-image { max-width: 400px; }
}

/* ============ SPECIALTIES OVERVIEW ============ */
.specialties-preview { background: var(--cream-warm); }
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
@media (max-width: 860px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .specialty-grid { grid-template-columns: 1fr; }
}
.specialty {
  background: var(--cream-warm);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.specialty:hover { background: var(--cream); }
.specialty-icon {
  width: 32px; height: 32px;
  color: var(--bordeaux);
  margin-bottom: 1.25rem;
}
.specialty h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bordeaux-deep);
  margin-bottom: 0.5rem;
}
.specialty p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============ HADITH ============ */
.hadith {
  background: var(--bordeaux);
  color: var(--cream);
  padding: 7rem var(--pad);
  text-align: center;
}
.hadith-inner { max-width: 780px; margin: 0 auto; }
.hadith-ar {
  font-family: var(--arabic);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.9;
  direction: rtl;
  color: var(--cream);
  margin-bottom: 2rem;
}
.hadith-divider {
  width: 40px; height: 1px;
  background: var(--brass-soft);
  margin: 2rem auto;
}
.hadith-fr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245, 239, 228, 0.8);
  line-height: 1.65;
  max-width: 32em;
  margin: 0 auto;
  font-weight: 300;
}
.hadith-source {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--brass-soft);
  letter-spacing: 0.05em;
}

/* ============ EXPLORATION PAGE ============ */
.exploration-intro {
  background: var(--cream);
  padding: 4rem var(--pad) 2rem;
}
.exploration-intro p {
  max-width: 44em;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}
.exploration-list {
  background: var(--cream);
  padding: 2rem var(--pad) 6rem;
}
.exam-card {
  background: var(--paper);
  border-left: 3px solid var(--bordeaux);
  padding: 2.5rem 2.5rem;
  margin-bottom: 1.25rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.exam-card-head {
  position: sticky;
  top: calc(var(--header-total) + 2rem);
}
.exam-icon {
  width: 42px; height: 42px;
  color: var(--bordeaux);
  margin-bottom: 1rem;
}
.exam-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--bordeaux-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.exam-card h2 small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}
.exam-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--bordeaux);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.exam-body h3:first-child { margin-top: 0; }
.exam-body p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.exam-meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.exam-meta strong {
  display: block;
  color: var(--bordeaux);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

@media (max-width: 860px) {
  .exam-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.75rem;
  }
  .exam-card-head { position: relative; top: 0; }
}

/* ============ ABOUT PAGE ============ */
.about-page { background: var(--cream); }
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding: 5rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}
.about-hero-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
  position: sticky;
  top: calc(var(--header-total) + 2rem);
}
.about-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.about-body p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  max-width: 34em;
  line-height: 1.7;
}
.about-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.5em;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--bordeaux);
  font-weight: 500;
}
.about-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--bordeaux-deep);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}
.timeline {
  list-style: none;
  margin-top: 1rem;
}
.timeline li {
  padding: 1.25rem 0 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.timeline li:last-child { border-bottom: none; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.75rem;
  width: 12px; height: 1px;
  background: var(--brass);
}
.timeline .t-title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bordeaux-deep);
  font-size: 1.05rem;
}
.timeline .t-sub {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; gap: 2rem; }
  .about-hero-image { position: relative; top: 0; max-width: 400px; }
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-top: 2rem;
}
.contact-info {
  display: flex; flex-direction: column;
  gap: 2rem;
}
.contact-block {
  background: var(--paper);
  padding: 1.75rem 1.75rem;
  border-top: 3px solid var(--bordeaux);
}
.contact-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bordeaux-deep);
  margin-bottom: 0.75rem;
}
.contact-block p, .contact-block li {
  color: var(--ink-soft);
  line-height: 1.65;
}
.contact-block ul { list-style: none; }
.contact-block li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.contact-block li:last-child { border-bottom: none; }
.contact-block li span:first-child { font-weight: 500; color: var(--ink); }
.contact-block a { color: var(--bordeaux); }
.contact-block a:hover { text-decoration: underline; }

.map-frame {
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Contact form */
.contact-form {
  background: var(--paper);
  padding: 2.5rem;
  border-top: 3px solid var(--bordeaux);
}
.contact-form h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--bordeaux-deep);
  margin-bottom: 0.5rem;
}
.contact-form > p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--bordeaux);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--sans);
}
.form-submit {
  background: var(--bordeaux);
  color: var(--cream);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--bordeaux-deep); }
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  text-align: center;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--bordeaux-deep);
  color: rgba(245, 239, 228, 0.7);
  padding: 4rem var(--pad) 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 1;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-soft);
  margin-top: 0.5rem;
}
.footer h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer ul { list-style: none; }
.footer li { padding: 0.3rem 0; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--brass-soft); }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-socials a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 239, 228, 0.2);
  border-radius: 50%;
  transition: all 0.2s;
}
.footer-socials a:hover {
  border-color: var(--brass-soft);
  color: var(--brass-soft);
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(245, 239, 228, 0.5);
}
.footer-bottom a { color: var(--brass-soft); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ============ TOP-STRIP CONTACT (phone + wa) ============ */
.top-contacts {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  font-variant-numeric: tabular-nums;
}
.top-contacts a:hover { color: var(--cream); }
.top-contacts svg { width: 13px; height: 13px; }
.top-contacts .top-sep { opacity: 0.35; padding: 0 0.15rem; }

/* ============ DROPDOWN NAV ============ */
.has-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.has-dropdown > a::after {
  content: "▾";
  font-size: 0.65em;
  opacity: 0.6;
  line-height: 1;
  transition: transform 0.2s;
}
.has-dropdown:hover > a::after { transform: rotate(180deg); }
.has-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  z-index: 199;
  pointer-events: auto;
}
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 1.25rem;
  min-width: 520px;
  box-shadow: 0 12px 32px rgba(28, 22, 19, 0.15);
  border-radius: 12px;
  border: 1px solid var(--line);
  z-index: 200;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: grid;
}
.dropdown a {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 400;
  transition: all 0.15s;
  white-space: nowrap;
  border: none !important;
}
.dropdown a::after { display: none; }
.dropdown a:hover {
  background: var(--cream);
  color: var(--bordeaux);
}
.dropdown .dropdown-all {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line) !important;
  color: var(--bordeaux);
  font-weight: 500;
  text-align: center;
}
/* On mobile the dropdown just flows as a list inside the hamburger nav */
@media (max-width: 960px) {
  .dropdown {
    display: grid !important;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    min-width: auto;
    grid-template-columns: 1fr;
    margin-top: 0;
    border-radius: 0;
  }
  .dropdown a {
    padding: 0.6rem 0 !important;
    border-bottom: 1px dashed var(--line) !important;
    font-size: 0.9rem !important;
  }
  .has-dropdown > a::after { content: ""; }
}
html[dir="rtl"] .dropdown { text-align: right; }

/* ============ GOOGLE REVIEWS ============ */
.reviews-section {
  background: var(--cream);
  padding: 5rem var(--pad);
}
.reviews-head {
  text-align: center;
  margin-bottom: 3rem;
}
.reviews-head .google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}
.reviews-head .google-badge svg { width: 18px; height: 18px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.review-card {
  background: var(--paper);
  padding: 2rem 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(28, 22, 19, 0.1);
}
.review-stars {
  display: flex;
  gap: 2px;
  color: #FBBC04;
}
.review-stars svg { width: 18px; height: 18px; }
.review-text {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.review-meta { font-size: 0.85rem; }
.review-name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.review-date {
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}
@media (max-width: 960px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ============ EXAM DETAIL — related & prev/next ============ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(28, 22, 19, 0.15);
  border-color: var(--bordeaux);
}
.related-icon {
  width: 36px; height: 36px;
  color: var(--bordeaux);
  flex-shrink: 0;
}
.related-icon svg { width: 100%; height: 100%; }
.related-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--bordeaux-deep);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.related-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pn-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bordeaux-deep);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.25;
  transition: border-color 0.2s, transform 0.2s;
}
.pn-link small {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.2rem;
}
.pn-link:hover {
  border-color: var(--bordeaux);
  transform: translateY(-2px);
}
.pn-arrow {
  font-size: 1.4rem;
  color: var(--bordeaux);
  flex-shrink: 0;
}
.pn-next { text-align: right; justify-content: flex-end; }
html[dir="rtl"] .pn-next { text-align: left; }
@media (max-width: 640px) {
  .prev-next { grid-template-columns: 1fr; }
  .pn-next { text-align: left; justify-content: flex-start; }
}

/* ============ FAQ ============ */
.faq-list {
  margin-top: 3rem;
  max-width: 780px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--bordeaux-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transition: color 0.2s;
}
.faq-item summary:hover {
  color: var(--bordeaux);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--bordeaux);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 42em;
}

/* ============ A11Y ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ============ RTL SUPPORT ============ */
html[dir="rtl"] body { font-family: var(--arabic), var(--sans); }
html[dir="rtl"] .exam-card { border-left: none; border-right: 3px solid var(--bordeaux); }
html[dir="rtl"] .contact-block,
html[dir="rtl"] .contact-form { text-align: right; }
html[dir="rtl"] .timeline li { padding: 1.25rem 2rem 1.25rem 0; }
html[dir="rtl"] .timeline li::before { left: auto; right: 0; }
html[dir="rtl"] .about-body p:first-of-type::first-letter,
html[dir="rtl"] .about-preview-text p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Home location grid responsive */
@media (max-width: 860px) {
  .loc-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
