@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1B1F3B;
  --navy-light: #2A3060;
  --ruby: #E3342F;
  --ruby-dark: #B8221E;
  --gold: #F2C230;
  --gold-dark: #D9A81E;
  --bg: #FFFFFF;
  --bg-alt: #F7F7FA;
  --ink: #1B1F3B;
  --muted: #63667D;
  --border: #E9E9F0;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir="rtl"] { font-family: 'Cairo', -apple-system, sans-serif; }
[dir="rtl"] * { letter-spacing: normal !important; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
::selection { background: rgba(227,52,47,0.15); }

/* ---------- Scroll-reveal (respects prefers-reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo-mark { display: flex; align-items: center; gap: 10px; }
.logo-mark img { height: 38px; width: auto; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav > a { font-weight: 500; font-size: 15px; color: var(--navy); position: relative; padding: 6px 0; }
.main-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ruby); transition: width .2s ease;
}
.main-nav > a:hover::after { width: 100%; }

.dropdown { position: relative; cursor: pointer; }
.dropdown > span { font-weight: 500; font-size: 15px; color: var(--navy); }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; min-width: 230px; padding: 10px 0;
  box-shadow: 0 20px 50px -12px rgba(27,31,59,0.16); margin-top: 12px;
}
[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 9px 18px; font-size: 14.5px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--ruby); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-size: 13px; font-weight: 700; border: 1.5px solid var(--navy); border-radius: 999px;
  padding: 6px 14px; color: var(--navy);
}
.lang-switch:hover { background: var(--navy); color: var(--white); }
.phone-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ruby); color: var(--white); padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 24px -8px rgba(227,52,47,0.5);
  transition: transform .15s ease;
}
.phone-cta:hover { transform: translateY(-1px); background: var(--ruby-dark); }
.phone-cta svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--white); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: all .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.mobile-drawer { display: none; }

/* ---------- Hero (light theme) ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 60px; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 88% 0%, rgba(242,194,48,0.16), transparent 60%),
    radial-gradient(ellipse 45% 45% at 4% 100%, rgba(227,52,47,0.08), transparent 60%);
}
.hero-streaks { position: absolute; inset: 0; pointer-events: none; opacity: 0.7; }
.hero-streaks span {
  position: absolute; height: 3px; background: var(--gold); border-radius: 4px; opacity: 0;
  animation: streak-in 1s ease-out forwards;
}
.hero-streaks span:nth-child(1) { width: 100px; top: 14%; left: -120px; animation-delay: .1s; }
.hero-streaks span:nth-child(2) { width: 60px;  top: 14%; left: -220px; opacity: .5; animation-delay: .05s; }
.hero-streaks span:nth-child(3) { width: 140px; top: 82%; left: -160px; animation-delay: .2s; }
.hero-streaks span:nth-child(4) { width: 60px;  top: 82%; left: -260px; opacity: .5; animation-delay: .15s; }
@keyframes streak-in { to { opacity: 1; transform: translateX(280px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-streaks span { animation: none; opacity: .3; transform: translateX(160px); }
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero-inner { text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--ruby-dark); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px;
  background: rgba(227,52,47,0.08); padding: 6px 14px; border-radius: 999px;
}
[dir="rtl"] .eyebrow { text-transform: none; letter-spacing: normal; }
.hero h1 {
  font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 620px; margin: 0 0 20px;
}
.hero h1 .accent { color: var(--ruby); }
.hero p.lede-hero { max-width: 540px; margin: 0 0 32px; color: var(--muted); font-size: 17px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { animation: float-slow 6s ease-in-out infinite; }
@keyframes float-slow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual { animation: none; } }
.hero-visual img { width: 100%; height: auto; max-width: 440px; display: block; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ruby); color: var(--white); padding: 15px 28px;
  border-radius: 999px; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  box-shadow: 0 14px 28px -10px rgba(227,52,47,0.5); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(227,52,47,0.6); }
.btn-outline {
  background: transparent; color: var(--navy); border: 1.5px solid var(--border); box-shadow: none;
}
.btn-outline:hover { background: var(--bg-alt); border-color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 14px 28px -10px rgba(242,194,48,0.45); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: none; }
.btn-white:hover { background: var(--bg-alt); }

/* ---------- Trust strip (animated counters) ---------- */
.trust-strip { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0; text-align: center; }
.trust-item .num { font-size: 30px; font-weight: 800; color: var(--navy); }
.trust-item .num .gold-dot { color: var(--ruby); }
.trust-item .label { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* ---------- Sections ---------- */
section.container { padding: 76px 20px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-eyebrow { font-size: 13px; font-weight: 700; color: var(--ruby); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
[dir="rtl"] .section-eyebrow { text-transform: none; letter-spacing: normal; }
.section-head h2 { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: -0.015em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  display: block; background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ruby), var(--gold)); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -18px rgba(27,31,59,0.18); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 17.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(27,31,59,0.06);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--navy);
  transition: background .2s ease, color .2s ease;
}
.card-icon svg { width: 22px; height: 22px; }
.card:hover .card-icon { background: var(--ruby); color: var(--white); }

/* ---------- How it works ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.process-step { position: relative; padding: 0 20px; text-align: left; }
.process-step .step-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.process-step .step-icon svg { width: 22px; height: 22px; }
.process-step .step-num { font-size: 12px; font-weight: 700; color: var(--ruby); letter-spacing: 0.06em; margin-bottom: 8px; }
.process-step h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 13.5px; }
.process-connector {
  position: absolute; top: 24px; left: calc(100% - 4px); width: calc(100% - 24px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
}
[dir="rtl"] .process-connector { left: auto; right: calc(100% - 4px); }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.why-item { display: flex; gap: 16px; }
.why-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: rgba(227,52,47,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--ruby);
}
.why-icon svg { width: 22px; height: 22px; }
.why-text h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-text p { font-size: 13.5px; color: var(--muted); }

/* ---------- Final CTA band ---------- */
.cta-band {
  background: var(--navy); padding: 56px 0; text-align: center; position: relative; overflow: hidden; border-radius: 28px;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 90% at 50% 0%, rgba(242,194,48,0.16), transparent 60%);
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); font-size: 27px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.68); font-size: 15px; margin-bottom: 26px; }
.cta-band .btn-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Breadcrumb / lede (inner pages) ---------- */
.breadcrumb { padding: 20px 20px 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.lede { font-size: 17px; color: var(--muted); max-width: 720px; }

details { border: 1px solid var(--border); background: var(--white); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details p { margin-top: 10px; color: var(--muted); }

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 540px; margin-top: 28px; }
.contact-form label { font-weight: 700; font-size: 13.5px; margin-top: 12px; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit;
  background: var(--white); transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ruby); }
.field-error { color: var(--ruby-dark); font-size: 13px; margin: 2px 0 0; }
.alert { color: var(--ruby-dark); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer (dark, anchors the light page) ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 56px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.68); font-size: 14.5px; margin-bottom: 10px; display: block; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding: 26px 0; font-size: 13px; color: rgba(255,255,255,0.42); margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-drawer.is-open {
    display: block; position: fixed; inset: 0; z-index: 60; background: var(--white);
    padding: 20px 24px; overflow-y: auto;
  }
  .mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
  .mobile-drawer a, .mobile-drawer .drawer-label { display: block; padding: 12px 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
  .mobile-drawer .drawer-sub a { padding-left: 16px; font-weight: 400; font-size: 14.5px; border-bottom: none; }

  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-inner { text-align: center !important; }
  .hero h1 { font-size: 32px; max-width: 100%; }
  .hero p.lede-hero { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center !important; }
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto 12px; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .process-connector { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
