/* ============================================
   Auj Trust — أوج الثقة
   Luxury Jewelry Consulting — Visual Redesign 2026
   --------------------------------------------
   Premium Palette:
     Navy Deep:   #0e1a2b   (primary surface)
     Brushed Gold: #b88a44  (accent — muted, regal)
     Warm Copper: #c89968   (highlight)
     Cream:       #faf8f3   (background)
   ============================================ */

/* ── Premium Web Fonts: Arabic + Latin ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Readex+Pro:wght@300;400;500;600;700&family=Almarai:wght@300;400;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::selection {
  background: rgba(184, 138, 68, 0.25);
  color: inherit;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #faf8f3;
  --bg-alt: #f1ede4;
  --bg-elevated: #ffffff;

  /* Text */
  --text: #1a1f2e;
  --text-muted: #5a6478;
  --text-soft: #8a92a3;

  /* Brand — Navy */
  --navy: #0e1a2b;
  --navy-soft: #1a2940;
  --navy-light: #2a3a55;

  /* Brand — Gold (muted brushed) */
  --gold: #b88a44;
  --gold-light: #d4a55c;
  --gold-dark: #8a6428;
  --gold-soft: rgba(184, 138, 68, 0.08);
  --copper: #c89968;

  /* Borders */
  --border: rgba(14, 26, 43, 0.08);
  --border-strong: rgba(14, 26, 43, 0.14);

  /* Cards */
  --card: #ffffff;
  --card-hover: #fcfaf5;

  /* Premium shadows — soft, layered */
  --shadow-sm: 0 2px 8px rgba(14, 26, 43, 0.04);
  --shadow: 0 6px 24px rgba(14, 26, 43, 0.06);
  --shadow-lg: 0 12px 40px rgba(14, 26, 43, 0.08);
  --shadow-xl: 0 20px 60px rgba(14, 26, 43, 0.12);
  --shadow-gold: 0 8px 32px rgba(184, 138, 68, 0.22);

  /* Glass nav */
  --nav-bg: rgba(250, 248, 243, 0.82);
  --overlay: rgba(14, 26, 43, 0.65);

  /* Radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #0a1220;
  --bg-alt: #0e1a2b;
  --bg-elevated: #14223a;
  --text: #f0ede5;
  --text-muted: #a8b0c0;
  --text-soft: #6a7585;

  --gold: #d4a55c;
  --gold-light: #e8c282;
  --gold-dark: #9a7228;
  --gold-soft: rgba(212, 165, 92, 0.1);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --card: #14223a;
  --card-hover: #1a2a44;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);

  --nav-bg: rgba(10, 18, 32, 0.85);
  --overlay: rgba(0, 0, 0, 0.72);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', 'Lato', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

/* ── English (LTR) ── */
body[dir="ltr"] {
  font-family: 'Inter', 'Lato', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.1px;
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

body[dir="ltr"] h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
body[dir="ltr"] h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
body[dir="ltr"] h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
body[dir="ltr"] h4 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }

/* ── Arabic (RTL) — Cairo + Readex Pro ── */
body[dir="rtl"] {
  font-family: 'Readex Pro', 'Almarai', 'Tajawal', sans-serif;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0;
  font-weight: 400;
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.45;
}

body[dir="rtl"] h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); }
body[dir="rtl"] h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
body[dir="rtl"] h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
body[dir="rtl"] h4 { font-size: clamp(1rem, 1.7vw, 1.15rem); }

body[dir="rtl"] .logo-name {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
  font-weight: 700;
}

body[dir="rtl"] .logo-sub,
body[dir="rtl"] .nav-links a {
  font-family: 'Readex Pro', 'Almarai', sans-serif;
  letter-spacing: 0.4px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Cairo', serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--text);
}

body[dir="ltr"] .nav-links a {
  font-size: 13px;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ============================================
   Buttons — Premium
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 38px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}

.btn:hover::before { transform: translateX(0); }

.btn:hover {
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-filled {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #fff;
  border-color: transparent;
}

.btn-filled::before { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.btn-filled:hover { color: #fff; }

/* ============================================
   Navigation — Glass refined
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Logo ── */
.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 170px;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  filter: drop-shadow(0 2px 8px rgba(184, 138, 68, 0.22));
}

.navbar.scrolled .logo-img {
  height: 38px;
  max-width: 140px;
}

.logo-link:hover .logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(184, 138, 68, 0.4));
}

[data-theme="dark"] .logo-img {
  filter: drop-shadow(0 2px 10px rgba(212, 165, 92, 0.32)) brightness(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.6px;
}

.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  transition: width 0.4s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.control-btn {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.control-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  width: 42px;
  height: 42px;
}

/* ============================================
   Hero Sections — Cinematic
   ============================================ */
.hero {
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 26, 43, 0.85), rgba(14, 26, 43, 0.55)),
    url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=800&q=75&fm=webp') center/cover;
  color: #fff;
}

@media (min-width: 769px) {
  .hero {
    background:
      linear-gradient(135deg, rgba(14, 26, 43, 0.8), rgba(14, 26, 43, 0.45)),
      url('https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=1600&q=80&fm=webp') center/cover;
  }
}

.hero-small {
  height: auto;
  min-height: 70vh;
  padding-top: 150px;
  padding-bottom: 90px;
}

.hero-content {
  max-width: 880px;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.hero-tagline,
.hero .hero-tagline {
  color: var(--gold-light);
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-block;
  padding: 7px 20px;
  border: 1px solid rgba(212, 165, 92, 0.4);
  border-radius: 50px;
  background: rgba(212, 165, 92, 0.06);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 48px;
  font-weight: 300;
  max-width: 680px;
  line-height: 1.85;
}

.hero .btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-light);
  color: var(--gold-light);
  backdrop-filter: blur(10px);
}

.hero .btn:hover { color: #fff; }

body[dir="ltr"] .hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  letter-spacing: -2px;
}

body[dir="rtl"] .hero-tagline {
  letter-spacing: 2px;
  font-size: 13px;
}

body[dir="rtl"] .hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.4;
  letter-spacing: 0;
}

/* ============================================
   Sections — Generous whitespace
   ============================================ */
section {
  padding: 120px 0;
  position: relative;
}

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

.section-title small {
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 7px 20px;
  background: var(--gold-soft);
  border-radius: 50px;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-title .divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
}

/* ============================================
   Home — Intro
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

/* ── Brand logo panel (replaces portrait) ── */
.intro-logo {
  position: relative;
  overflow: hidden;
  /* Match logo's actual proportions: 900×380 ≈ 12:5 */
  aspect-ratio: 12 / 5;
  align-self: center;
  /* Blend the container's white JPEG background into the page background.
     Applied here (not on img) so it works even when fade-in transform
     creates an isolated stacking context on this element. */
  mix-blend-mode: multiply;
}

.intro-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  transition: transform 0.5s ease;
}

[data-theme="dark"] .intro-logo {
  /* Invert already handled on the img; blend black away against dark bg */
  mix-blend-mode: screen;
}

[data-theme="dark"] .intro-logo img {
  filter: invert(1) brightness(0.92);
}

.intro-logo:hover img {
  transform: scale(1.025);
  filter: brightness(1.06);
}

[data-theme="dark"] .intro-logo:hover img {
  filter: invert(1) brightness(1.05);
}

/* Golden shimmer sweep on hover */
.intro-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 169, 77, 0.12) 40%,
    rgba(255, 248, 210, 0.28) 50%,
    rgba(201, 169, 77, 0.12) 60%,
    transparent
  );
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
  z-index: 2;
}

.intro-logo:hover::after {
  animation: logo-shimmer 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes logo-shimmer {
  to { transform: translateX(310%) skewX(-18deg); }
}

/* Corner accents */
.intro-logo .corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.6;
}
.intro-logo .corner-tl { top: 18px; left: 18px;  border-width: 2px 0 0 2px; }
.intro-logo .corner-tr { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.intro-logo .corner-bl { bottom: 18px; left: 18px;  border-width: 0 0 2px 2px; }
.intro-logo .corner-br { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }

.intro-text small {
  color: var(--gold) !important;
  letter-spacing: 3px !important;
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-block !important;
  padding: 7px 18px !important;
  background: var(--gold-soft);
  border-radius: 50px;
}

.intro-text h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin: 20px 0 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.intro-text p {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.9;
}

/* ============================================
   Cards / Services — Premium
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--card);
  padding: 44px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 138, 68, 0.22);
  background: var(--card-hover);
}

.card:hover::before { transform: scaleX(1); }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-link h3,
.card-link p { color: var(--text); }

.card-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1.5px solid transparent;
  transition: all 0.4s var(--ease);
}
.card-link:hover .card-cta {
  border-bottom-color: var(--gold);
  letter-spacing: 2.5px;
  color: var(--copper);
}

.card-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 24px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--gold);
  transition: all 0.6s var(--ease-out);
  background: var(--gold-soft);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: #fff;
  transform: rotate(360deg);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.card h3 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ============================================
   Services Page
   ============================================ */
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 120px;
}

.service-item:nth-child(even) .service-image { order: 2; }

.service-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.7s var(--ease-out);
}

.service-image:hover img { transform: scale(1.06); }

.service-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 700;
}

[data-theme="dark"] .service-text h3 { color: var(--gold); }

.service-text ul {
  list-style: none;
  margin-top: 24px;
}

.service-text ul li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}

body[dir="rtl"] .service-text ul li {
  padding-left: 0;
  padding-right: 28px;
}

.service-text ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 14px;
}

body[dir="rtl"] .service-text ul li::before {
  left: auto;
  right: 0;
}

/* ============================================
   Page-Heroes (about/services/masterclass/contact)
   ============================================ */
.masterclass-hero {
  background: linear-gradient(135deg, rgba(14, 26, 43, 0.85), rgba(14, 26, 43, 0.55)),
    url('https://images.unsplash.com/photo-1617038220319-276d3cfab638?w=800&q=75&fm=webp') center/cover;
}
.about-hero {
  background: linear-gradient(135deg, rgba(14, 26, 43, 0.85), rgba(14, 26, 43, 0.55)),
    url('https://images.unsplash.com/photo-1573408301185-9146fe634ad0?w=800&q=75&fm=webp') center/cover;
}
.services-hero {
  background: linear-gradient(135deg, rgba(14, 26, 43, 0.85), rgba(14, 26, 43, 0.55)),
    url('https://images.unsplash.com/photo-1605100804763-247f67b3557e?w=800&q=75&fm=webp') center/cover;
}
.contact-hero {
  background: linear-gradient(135deg, rgba(14, 26, 43, 0.85), rgba(14, 26, 43, 0.55)),
    url('https://images.unsplash.com/photo-1602173574767-37ac01994b2a?w=800&q=75&fm=webp') center/cover;
}

@media (min-width: 769px) {
  .masterclass-hero {
    background: linear-gradient(135deg, rgba(14, 26, 43, 0.8), rgba(14, 26, 43, 0.45)),
      url('https://images.unsplash.com/photo-1617038220319-276d3cfab638?w=1600&q=80&fm=webp') center/cover;
  }
  .about-hero {
    background: linear-gradient(135deg, rgba(14, 26, 43, 0.8), rgba(14, 26, 43, 0.45)),
      url('https://images.unsplash.com/photo-1573408301185-9146fe634ad0?w=1600&q=80&fm=webp') center/cover;
  }
  .services-hero {
    background: linear-gradient(135deg, rgba(14, 26, 43, 0.8), rgba(14, 26, 43, 0.45)),
      url('https://images.unsplash.com/photo-1605100804763-247f67b3557e?w=1600&q=80&fm=webp') center/cover;
  }
  .contact-hero {
    background: linear-gradient(135deg, rgba(14, 26, 43, 0.8), rgba(14, 26, 43, 0.45)),
      url('https://images.unsplash.com/photo-1602173574767-37ac01994b2a?w=1600&q=80&fm=webp') center/cover;
  }
}

/* ============================================
   Curriculum
   ============================================ */
.curriculum { background: var(--bg-alt); }

.curriculum-list {
  max-width: 820px;
  margin: 0 auto;
}

.curriculum-item {
  display: flex;
  gap: 32px;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: all 0.4s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.curriculum-item:hover {
  border-color: rgba(184, 138, 68, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.curriculum-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  min-width: 70px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.curriculum-content h4 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.curriculum-content p { color: var(--text-muted); }

/* ============================================
   About / Timeline
   ============================================ */
.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  padding: 24px 44px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  border-radius: 50%;
  top: 30px;
  box-shadow: 0 0 0 4px var(--bg), var(--shadow-gold);
}

.timeline-item:nth-child(odd)::after { right: -10px; }
.timeline-item:nth-child(even)::after { left: -10px; }

.timeline-year {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.timeline-item h4 {
  font-size: 22px;
  margin: 12px 0;
  font-weight: 700;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================
   Stats
   ============================================ */
.stats {
  background: var(--bg-alt);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-item p {
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-info h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 700;
}

[data-theme="dark"] .contact-info h3 { color: var(--gold); }

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}

.contact-detail:hover {
  border-color: rgba(184, 138, 68, 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

body[dir="rtl"] .contact-detail:hover { transform: translateX(-4px); }

.contact-detail-icon {
  color: var(--gold);
  font-size: 18px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border-radius: 50%;
}

.contact-detail-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--text);
}

.contact-detail-text span {
  color: var(--text-muted);
  font-size: 14px;
}

.contact-form {
  background: var(--card);
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* ============================================
   Footer — Deep Navy
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 90px 0 24px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

[data-theme="dark"] .footer { background: #060d18; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 140px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.95;
  transition: all 0.4s var(--ease);
  filter: drop-shadow(0 4px 18px rgba(184, 138, 68, 0.35));
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  display: block;
  margin-bottom: 12px;
  line-height: 1.8;
  transition: color 0.3s var(--ease), padding 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

body[dir="rtl"] .footer-col a:hover {
  padding-left: 0;
  padding-right: 4px;
}

/* ── Social Icons ── */
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.social-links a,
.social-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  animation: socialIdle 3.5s ease-in-out infinite;
  transition: all 0.4s var(--ease);
}

.social-links a:nth-child(1) { animation-delay: 0s; }
.social-links a:nth-child(2) { animation-delay: 0.4s; }
.social-links a:nth-child(3) { animation-delay: 0.8s; }

.social-links a:hover,
.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
  color: #fff;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--copper));
  box-shadow: var(--shadow-gold);
  animation: none;
}

.social-links a:active,
.social-icon:active { transform: scale(0.95); }

.social-links a::before,
.social-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: var(--shadow);
}

.social-links a::after,
.social-icon::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: all 0.25s var(--ease);
}

.social-links a:hover::before,
.social-icon:hover::before,
.social-links a:hover::after,
.social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes socialIdle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 138, 68, 0); }
  50% { box-shadow: 0 0 0 5px rgba(184, 138, 68, 0.12); }
}

/* ── Footer legal ── */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color 0.3s var(--ease);
}

.footer-legal a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.footer-legal a:hover { color: var(--gold-light); }
.footer-legal a:hover::after { transform: scaleX(1); }

@media (max-width: 600px) {
  .footer-legal { gap: 6px 16px; }
  .footer-legal a { font-size: 11px; letter-spacing: 0.5px; }
}

/* ── Footer Payment Methods (MEPS compliant) ── */
.footer-payments {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-payments-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.footer-payments-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.payment-icon {
  height: 32px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  opacity: 0.95;
}

.payment-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 14px rgba(184, 138, 68, 0.3);
  opacity: 1;
}

@media (max-width: 500px) {
  .payment-icon { height: 28px; }
  .footer-payments-label { font-size: 10px; letter-spacing: 1.8px; }
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .intro-grid,
  .service-item,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .service-item { margin-bottom: 80px; }
  .service-item:nth-child(even) .service-image { order: 0; }

  .timeline::before { left: 24px; }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px;
    padding-right: 0 !important;
  }

  body[dir="rtl"] .timeline-item {
    text-align: right !important;
    padding-left: 0 !important;
    padding-right: 60px !important;
  }

  body[dir="rtl"] .timeline::before {
    left: auto;
    right: 24px;
  }

  .timeline-item::after {
    left: 15px !important;
    right: auto !important;
  }

  body[dir="rtl"] .timeline-item::after {
    left: auto !important;
    right: 15px !important;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    width: 100%;
    padding: 40px 30px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 24px;
    min-height: calc(100vh - 78px);
  }

  .nav-links.open { transform: translateX(0); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  section { padding: 80px 0; }

  .hero { min-height: 560px; }

  .hero-small {
    padding-top: 120px;
    padding-bottom: 70px;
    min-height: 60vh;
  }

  .hero-content { padding: 0 24px; }

  .section-title { margin-bottom: 60px; }

  .curriculum-item {
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
  }

  .contact-form { padding: 32px 24px; }
}

@media (max-width: 500px) {
  body { font-size: 15px; }
  body[dir="rtl"] { font-size: 16px; line-height: 1.85; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { padding: 28px 20px; }


  .service-image img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  section { padding: 60px 0; }
  .section-title { margin-bottom: 44px; }
  .hero-content { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }

  body[dir="ltr"] .hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }

  .hero p { font-size: clamp(0.92rem, 2vw, 1.05rem); }

  body[dir="rtl"] h1,
  body[dir="rtl"] h2,
  body[dir="rtl"] h3,
  body[dir="rtl"] h4 {
    font-size: clamp(1.3rem, 3.8vw, 1.9rem);
  }

  .card { padding: 32px 22px; }

  .intro-grid,
  .service-item,
  .contact-grid { gap: 32px; }

  .btn { padding: 14px 28px; font-size: 12px; }
}
