/* ════════════════════════════════════════════════
   AL-ITTIHAD AL-RAIDA — Premium Dark Theme
   Black + Gold luxury system
═══════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --bg-4: #222;
  --line: rgba(212, 175, 55, 0.15);
  --line-soft: rgba(255, 255, 255, 0.06);

  --gold: #d4af37;
  --gold-light: #e8c863;
  --gold-dark: #a8862a;
  --gold-glow: rgba(212, 175, 55, 0.25);

  --text: #ffffff;
  --text-2: #d4d4d4;
  --text-3: #8a8a8a;
  --text-4: #5a5a5a;

  --success: #22c55e;
  --warning: #fbbf24;

  --font-arabic: 'Cairo', sans-serif;
  --font-display: 'Cormorant Garamond', serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.15);
  --shadow-gold-lg: 0 0 50px rgba(212, 175, 55, 0.25);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-arabic);
  background: var(--bg);
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
}

::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ═══════ SVG GLOBAL FIX — prevent oversized icons ═══════ */
svg {
  display: inline-block;
  max-width: 100%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}
/* Allow specific SVG containers to override */
.hero-bg svg, .scene-hero-bg svg, .split-left-bg svg { width: 100%; height: 100%; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  word-wrap: normal !important;
}

.skip-link {
  background: var(--gold); color: var(--bg);
  padding: 0.5rem 1rem; position: absolute;
  top: -100px; right: 1rem; z-index: 9999; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.2rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100; transition: all 0.4s var(--ease);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 0.9rem 3rem;
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.brand { display: flex; align-items: center; gap: 0.85rem; }

.brand-mark {
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.08));
  transition: all 0.4s var(--ease);
}

.brand-mark::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid var(--gold); opacity: 0.5;
}

.brand:hover .brand-mark {
  box-shadow: var(--shadow-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
}

.brand-mark span {
  font-family: var(--font-arabic);
  font-size: 1.1rem; font-weight: 800;
  color: var(--gold); position: relative; z-index: 1;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-arabic);
  font-size: 1.05rem; font-weight: 800;
  color: var(--text); letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 0.6rem; color: var(--gold);
  letter-spacing: 2.5px; margin-top: 3px; font-weight: 600;
}

.nav-list {
  list-style: none; display: flex; gap: 2rem; align-items: center;
}

.nav-link {
  font-size: 0.88rem; color: var(--text-2);
  position: relative; padding: 0.4rem 0;
  font-weight: 500; transition: color 0.3s;
}

.nav-link::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--bg) !important;
  padding: 0.75rem 1.6rem !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.5px;
  font-weight: 700 !important;
  border-radius: 2px;
  transition: all 0.4s var(--ease) !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  color: var(--bg) !important;
}

.mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.5rem;
}

.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); margin: 5px 0; transition: 0.3s;
}

/* FOOTER */
.footer {
  background: var(--bg-2); color: var(--text-2);
  padding: 5rem 3rem 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}

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

.footer-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 1.5rem; color: var(--text-3);
  font-size: 0.9rem; line-height: 1.9; max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-arabic);
  font-weight: 700; font-size: 0.95rem;
  color: var(--gold); margin-bottom: 1.5rem;
  letter-spacing: 1px; position: relative;
  padding-bottom: 0.7rem;
}

.footer-col h5::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 30px; height: 2px; background: var(--gold);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a {
  color: var(--text-3); font-size: 0.88rem;
  transition: all 0.3s;
}
.footer-col ul a:hover { color: var(--gold); padding-right: 6px; }

.footer-col p {
  font-size: 0.88rem; color: var(--text-3);
  line-height: 1.9; margin-bottom: 0.4rem;
}
.footer-col p a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1300px; margin: 2rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-4);
  flex-wrap: wrap; gap: 1rem;
}

.footer-bottom a {
  color: var(--text-3); margin: 0 0.5rem;
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 0.8rem; margin-top: 2rem; }

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all 0.4s var(--ease);
  background: var(--bg-3);
}

.footer-social a:hover {
  background: var(--gold); border-color: var(--gold);
  color: var(--bg); transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer-social svg { width: 14px; height: 14px; fill: currentColor; }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed; bottom: 2rem; left: 2rem;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; z-index: 99;
  transition: all 0.4s var(--bounce);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: pulse-wa 2.5s ease-in-out infinite;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 50px rgba(37, 211, 102, 0.7); }
}

.wa-float:hover { transform: scale(1.1) rotate(-5deg); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  padding: 1.15rem 2.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 0.75rem;
  transition: all 0.4s var(--ease);
  border: none; cursor: pointer;
  font-weight: 700; font-family: var(--font-arabic);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  position: relative; overflow: hidden;
}

.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn-primary .arr { font-size: 1.2rem; transition: transform 0.3s; }
.btn-primary:hover .arr { transform: translateX(-5px); }

.btn-outline {
  background: transparent; color: var(--gold);
  padding: 1.1rem 2.2rem; font-size: 0.92rem;
  letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 0.75rem;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--gold); cursor: pointer;
  font-weight: 600; font-family: var(--font-arabic);
  position: relative; overflow: hidden;
}

.btn-outline::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease); z-index: -1;
}

.btn-outline:hover { color: var(--bg); }
.btn-outline:hover::before {
  transform: scaleX(1); transform-origin: left;
}

.btn-link {
  color: var(--gold); border-bottom: 1px solid var(--gold);
  padding: 0.4rem 0; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transition: all 0.3s; font-weight: 600;
}

.btn-link:hover { gap: 1rem; color: var(--gold-light); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white; padding: 1.15rem 2rem;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  border: none; cursor: pointer;
  font-weight: 700; font-family: var(--font-arabic);
  transition: all 0.4s var(--ease);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.88rem; color: var(--text-3);
  margin-bottom: 2rem;
  display: flex; gap: 0.7rem; align-items: center;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }
.breadcrumb span:not(.sep) { color: var(--gold); }

/* REVEAL */
.reveal, .reveal-right, .reveal-left {
  opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal { transform: translateY(30px); }
.reveal-right { transform: translateX(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal.visible, .reveal-right.visible, .reveal-left.visible {
  opacity: 1; transform: translate(0, 0);
}

/* SECTION TITLE */
.section-title-block { text-align: center; max-width: 800px; margin: 0 auto 4rem; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; color: var(--gold);
  letter-spacing: 3px; margin-bottom: 1.2rem;
  font-weight: 600; text-transform: uppercase;
}

.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 30px; height: 1px;
  background: var(--gold); opacity: 0.5;
}

.section-title-block h2 {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1px; color: var(--text);
  margin-bottom: 1rem;
}

.section-title-block h2 em {
  font-family: var(--font-display); font-style: italic;
  color: var(--gold); font-weight: 400;
}

.section-title-block p {
  color: var(--text-3); font-size: 1.05rem;
  line-height: 1.95; max-width: 600px; margin: 0 auto;
}

/* DEFAULT PAGE */
.page-default { padding-top: 90px; }
.default-page-header {
  max-width: 900px; margin: 0 auto;
  padding: 4rem 3rem 2rem;
}
.default-page-title {
  font-family: var(--font-arabic);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2; margin-top: 1rem;
  color: var(--text);
}
.default-page-content {
  max-width: 800px; margin: 0 auto;
  padding: 0 3rem 6rem;
  font-size: 1.05rem; line-height: 1.95;
  color: var(--text-2);
}
.default-page-content h2,
.default-page-content h3 {
  font-family: var(--font-arabic); font-weight: 700;
  margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text);
}
.default-page-content h2 { font-size: 1.8rem; color: var(--gold); }
.default-page-content h3 { font-size: 1.4rem; }
.default-page-content p { margin-bottom: 1.5rem; }
.default-page-content a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.default-page-content ul, .default-page-content ol {
  margin-bottom: 1.5rem; padding-right: 1.5rem;
}
.default-page-content li { margin-bottom: 0.5rem; }

/* 404 */
.page-404 { padding-top: 90px; min-height: 100vh; display: flex; align-items: center; }
.error-section {
  max-width: 700px; margin: 0 auto;
  padding: 5rem 3rem; text-align: center;
}
.error-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 9rem; color: var(--gold);
  line-height: 1; font-weight: 400; margin-bottom: 1rem;
  text-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}
.error-section h1 {
  font-family: var(--font-arabic); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 1rem; color: var(--text);
}
.error-section h1 em {
  font-family: var(--font-display); font-style: italic;
  color: var(--gold); font-weight: 400;
}
.error-section p {
  color: var(--text-3); line-height: 1.95;
  margin-bottom: 2.5rem; font-size: 1.05rem;
}
.error-actions {
  display: flex; gap: 2rem; justify-content: center;
  flex-wrap: wrap; align-items: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }

  .nav-list {
    position: fixed; inset: 0 auto 0 0;
    width: 80%; max-width: 320px; height: 100vh;
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    flex-direction: column; justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease);
    padding: 2rem;
  }

  .nav-list.open { transform: translateX(0); }
  .mobile-toggle { display: block; z-index: 101; }

  .footer { padding: 3rem 1.5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wa-float { width: 52px; height: 52px; bottom: 1.5rem; left: 1.5rem; }
  .wa-float svg { width: 24px; height: 24px; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.55rem; }
  .default-page-header { padding: 2rem 1.5rem; }
  .default-page-content { padding: 0 1.5rem 4rem; }
}
