/* ===== Tokens ===== */
:root {
  --ink: #0c1b2a;
  --ink-2: #12283d;
  --ink-3: #1b3550;
  --gold: #c9a24b;
  --gold-2: #e6cf95;
  --cream: #f7f4ee;
  --muted: #64748b;
  --muted-dark: rgba(255, 255, 255, 0.66);
  --line: rgba(12, 27, 42, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --wrap: 1120px;
  --font-display-en: "Playfair Display", Georgia, serif;
  --font-body-en: "Manrope", system-ui, sans-serif;
  --font-display-ar: "Reem Kufi", sans-serif;
  --font-body-ar: "Tajawal", sans-serif;
  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);
}

html[lang="en"] { --font-display: var(--font-display-en); --font-body: var(--font-body-en); }
html[lang="ar"] { --font-display: var(--font-display-ar); --font-body: var(--font-body-ar); }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* bilingual visibility */
.lang-ar, .lang-en { display: none; }
html[lang="ar"] .lang-ar { display: inline; }
html[lang="en"] .lang-en { display: inline; }
h1 .lang-ar, h1 .lang-en,
h2 .lang-ar, h2 .lang-en,
h3 .lang-ar, h3 .lang-en,
p .lang-ar, p .lang-en { display: none; }
html[lang="ar"] h1 .lang-ar, html[lang="ar"] h2 .lang-ar, html[lang="ar"] h3 .lang-ar, html[lang="ar"] p .lang-ar { display: block; }
html[lang="en"] h1 .lang-en, html[lang="en"] h2 .lang-en, html[lang="en"] h3 .lang-en, html[lang="en"] p .lang-en { display: block; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  color: #fff;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-block-end: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(12px);
  color: var(--ink);
  border-block-end-color: var(--line);
  box-shadow: 0 8px 30px rgba(12, 27, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--gold); display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-latin { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: 0.28em; font-size: 0.95rem; }
.brand-ar { font-family: var(--font-body-ar); font-size: 0.8rem; opacity: 0.75; }

.header-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-link { font-size: 0.92rem; font-weight: 500; opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.nav-link:hover { opacity: 1; color: var(--gold); }

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.06);
}
.site-header.scrolled .lang-switch { background: rgba(12, 27, 42, 0.04); }
.lang-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, background 0.25s ease, color 0.25s ease;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.active { background: var(--gold); color: var(--ink); opacity: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 140px 90px;
  background:
    radial-gradient(120% 90% at 80% -10%, #16324d 0%, transparent 55%),
    linear-gradient(160deg, #0c1b2a 0%, #0a1622 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.glow-1 { width: 480px; height: 480px; background: rgba(201, 162, 75, 0.35); inset-block-start: -140px; inset-inline-end: -80px; }
.glow-2 { width: 420px; height: 420px; background: rgba(46, 96, 148, 0.45); inset-block-end: -160px; inset-inline-start: -120px; }
.dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 30%, transparent 75%);
}

.float-icons { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.float-ico { position: absolute; color: rgba(230, 207, 149, 0.5); animation: float 9s ease-in-out infinite; }
.float-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.i1 { width: 72px; height: 72px; inset-block-start: 20%; inset-inline-start: 8%; animation-delay: 0s; }
.i2 { width: 84px; height: 84px; inset-block-start: 62%; inset-inline-start: 14%; animation-delay: 1.4s; }
.i3 { width: 64px; height: 64px; inset-block-start: 26%; inset-inline-end: 10%; animation-delay: 0.7s; }
.i4 { width: 68px; height: 68px; inset-block-start: 68%; inset-inline-end: 16%; animation-delay: 2.1s; }
.i5 { width: 60px; height: 60px; inset-block-start: 44%; inset-inline-start: 46%; opacity: 0.35; animation-delay: 1.1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

.hero-inner { position: relative; max-width: 820px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-block-end: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(201, 162, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, 0); }
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #ffffff 20%, var(--gold-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block-end: 18px;
}

.hero-brand {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 2.4vw, 1.3rem);
  font-weight: 500;
  color: #fff;
  max-width: 40ch;
  margin: 0 0 14px;
  line-height: 1.5;
}

.hero-tag { font-size: clamp(0.98rem, 2vw, 1.1rem); color: var(--muted-dark); max-width: 46ch; margin: 0 0 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: var(--ink); box-shadow: 0 14px 34px rgba(201, 162, 75, 0.28); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(201, 162, 75, 0.4); }
.btn-ghost { border: 1px solid var(--line-light); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

/* ===== Section head ===== */
.offer { padding-block: clamp(72px, 11vw, 120px); }
.section-head { max-width: 640px; margin-block-end: 54px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--ink); margin-block-end: 14px; }
.section-sub { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(12, 27, 42, 0.1); border-color: rgba(201, 162, 75, 0.5); }
.card-ico {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(201, 162, 75, 0.16), rgba(201, 162, 75, 0.04));
  color: var(--gold);
  margin-block-end: 22px;
}
.card-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.25rem; color: var(--ink); margin-block-end: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ===== Contact ===== */
.contact {
  background:
    radial-gradient(100% 80% at 90% 0%, #16324d 0%, transparent 55%),
    linear-gradient(160deg, #0c1b2a 0%, #0a1622 100%);
  color: #fff;
  padding-block: clamp(72px, 11vw, 120px);
}
.contact .section-title { color: #fff; }
.contact .section-sub { color: var(--muted-dark); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
a.contact-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); border-color: rgba(201, 162, 75, 0.5); }
.contact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(201, 162, 75, 0.14);
  color: var(--gold-2);
}
.contact-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }
html[lang="ar"] .contact-label { letter-spacing: 0; }
.contact-value { font-size: 1.02rem; font-weight: 600; color: #fff; overflow-wrap: anywhere; }

/* ===== Footer ===== */
.site-footer { background: #08121c; color: rgba(255, 255, 255, 0.7); padding-block: 46px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.footer-brand { font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: 0.3em; color: #fff; margin: 0; }
.footer-note { font-size: 0.9rem; margin: 0; max-width: 60ch; }
.footer-copy { font-size: 0.8rem; margin: 12px 0 0; opacity: 0.65; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .float-ico.i5 { display: none; }
}
@media (max-width: 760px) {
  .header-nav { display: none; }
  .lang-switch { margin-inline-start: auto; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 120px 72px; }
  .float-ico { opacity: 0.4; }
}

@media (max-width: 420px) {
  .brand-ar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
