@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy:     #1A3A5C;
  --navy2:    #0F2540;
  --teal:     #0D7B6A;
  --teal2:    #09614F;
  --gold:     #B8952A;
  --gold2:    #D4AE3C;
  --offwhite: #F7F5F0;
  --light:    #EEF2F7;
  --muted:    #6B7A8D;
  --dark:     #1C2B3A;
  --white:    #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--offwhite);
  color: var(--dark);
  overflow-x: hidden;
  direction: rtl;
}
body.lang-en {
  direction: ltr;
  font-family: 'DM Sans', sans-serif;
}

/* noise texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.45;
}

/* ───── NAVBAR ───── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 72px;
  background: rgba(15,37,64,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,149,42,0.18);
  transition: height 0.3s, box-shadow 0.3s;
}
nav.scrolled { height: 60px; box-shadow: 0 4px 30px rgba(0,0,0,0.25); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 44px; width: 44px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; transition: height 0.3s, width 0.3s; }
nav.scrolled .nav-logo-img { height: 38px; width: 38px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-ar { font-size: 16px; font-weight: 700; color: #fff; }
.nav-logo-en { font-size: 10px; font-weight: 400; color: var(--gold2); letter-spacing: 0.12em; text-transform: uppercase; }
body.lang-en .nav-logo-ar { display: none; }
body.lang-en .nav-logo-en { display: block !important; }

.nav-center { display: flex; align-items: center; gap: 4px; }
.nav-center a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px; transition: all 0.2s;
}
.nav-center a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-center a.active { color: var(--gold2); }

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

/* language switcher */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px; padding: 3px; gap: 2px;
}
.lang-btn {
  padding: 5px 14px; border-radius: 100px; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
  background: transparent; color: rgba(255,255,255,0.5);
}
.lang-btn.active {
  background: var(--gold); color: #fff;
  box-shadow: 0 2px 8px rgba(184,149,42,0.4);
}

.nav-cta {
  background: var(--teal); color: #fff; border: none;
  padding: 8px 20px; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.25s;
  box-shadow: 0 3px 12px rgba(13,123,106,0.3);
}
.nav-cta:hover { background: var(--teal2); transform: translateY(-1px); }

/* hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--navy2);
  border-bottom: 1px solid rgba(184,149,42,0.2);
  flex-direction: column; padding: 16px 5vw 24px; gap: 4px; z-index: 998;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8); text-decoration: none; font-size: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a.active { color: var(--gold2); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-lang { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-lang .lang-btn { border: 1px solid rgba(255,255,255,0.2); padding: 8px 20px; }

/* ───── PAGE HERO ───── */
.page-hero {
  min-height: 300px; display: flex; align-items: flex-end;
  padding: 100px 5vw 56px;
  background: linear-gradient(145deg, var(--navy2) 0%, var(--navy) 55%, #1D4A6E 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(13,123,106,0.16) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(184,149,42,0.10) 0%, transparent 40%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,149,42,0.12); border: 1px solid rgba(184,149,42,0.3);
  border-radius: 100px; padding: 5px 16px;
  font-size: 12px; font-weight: 600; color: var(--gold2);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.page-hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); flex-shrink: 0; }
.page-hero-title { font-size: clamp(28px,4vw,48px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.page-hero-sub { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 580px; line-height: 1.75; }

/* ───── LAYOUT ───── */
section { padding: 80px 5vw; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 4px; margin-bottom: 16px; }
.section-title { font-size: clamp(24px,3vw,38px); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 14px; }
.section-subtitle { font-size: 15px; color: var(--muted); line-height: 1.85; max-width: 560px; }
.gold-divider { width: 56px; height: 3px; background: linear-gradient(90deg,var(--gold),var(--teal)); border-radius: 2px; margin-bottom: 22px; }

/* cards */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; transition: all 0.32s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(26,58,92,0.1); }

/* buttons */
.btn-primary { background: var(--teal); color: #fff; border: none; padding: 13px 30px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.25s; box-shadow: 0 4px 16px rgba(13,123,106,0.25); }
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,123,106,0.35); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 11px 26px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.25s; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.25); padding: 11px 24px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.25s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.07); }

/* form */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-input { width: 100%; padding: 12px 16px; background: var(--light); border: 1px solid #dce5f0; border-radius: 10px; font-family: inherit; font-size: 14px; color: var(--dark); transition: all 0.2s; outline: none; }
.form-input:focus { border-color: var(--teal); background: #f0faf8; box-shadow: 0 0 0 3px rgba(13,123,106,0.1); }
.form-input::placeholder { color: #aab4c4; }
body.lang-ar .form-input { direction: rtl; }
body.lang-en .form-input { direction: ltr; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit { width: 100%; padding: 14px; background: var(--navy); color: #fff; border: none; border-radius: 10px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.25s; margin-top: 8px; }
.form-submit:hover { background: var(--teal); transform: translateY(-2px); }

/* ───── FOOTER ───── */
footer { background: var(--navy2); color: rgba(255,255,255,0.6); padding: 60px 5vw 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo-img { height: 56px; width: 56px; object-fit: contain; border-radius: 12px; background: #fff; padding: 5px; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col-title { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }
.footer-bottom-brand { color: var(--gold2); font-weight: 600; }

/* ───── REVEAL ───── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 56px 5vw; }
}
