﻿:root {
  --bg: #f4f7fb;
  --bg-alt: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #172033;
  --muted: #566177;
  --line: #dbe4ef;
  --navy: #0B2249;
  --navy-2: #14356b;
  --accent: #C81E1E;
  --accent-soft: rgba(200,30,30,.12);
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(11,34,73,.08);
  --shadow-lg: 0 20px 50px rgba(11,34,73,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --container: 1200px;
  --transition: .28s cubic-bezier(.2,.7,.2,1);
}
[data-theme="dark"] {
  --bg: #09182f;
  --bg-alt: #0d2040;
  --surface: #11284d;
  --surface-2: #15315c;
  --text: #edf3fb;
  --muted: #b9c7da;
  --line: #23436f;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000;
  background: var(--accent); color: #fff; padding: .75rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: .75rem 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); margin: 0 0 .75rem; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; display: inline-block; }
.lead { font-size: 1.08rem; color: var(--text); font-weight: 500; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,247,251,.88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .site-header { background: rgba(9,24,47,.88); }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow); }
.nav-wrap {
  min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
[data-theme="dark"] .brand-name { color: #fff; }
.brand-tagline { font-size: .72rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 1.25rem; margin-inline-start: auto; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .55rem .8rem; font-weight: 600; font-size: .94rem; color: var(--muted);
  border-radius: 8px; transition: color var(--transition), background var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: rgba(11,34,73,.06); }
[data-theme="dark"] .nav-links a:hover, [data-theme="dark"] .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
  transition: all var(--transition);
}
.icon-btn:hover { border-color: rgba(11,34,73,.2); color: var(--navy); transform: translateY(-1px); }
[data-theme="dark"] .icon-btn:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .65rem 1rem; font-size: .88rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(200,30,30,.25); }
.btn-primary:hover { background: #b01818; box-shadow: 0 12px 28px rgba(200,30,30,.32); }
.btn-outline {
  background: transparent; color: var(--navy); border-color: rgba(11,34,73,.25);
}
[data-theme="dark"] .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline:hover { background: rgba(11,34,73,.05); border-color: rgba(11,34,73,.4); }
[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,.08); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
/* Mobile menu */
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--text); transition: var(--transition); display: block; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: min(86vh, 760px); display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,20,42,.88) 0%, rgba(11,34,73,.72) 45%, rgba(11,34,73,.45) 100%);
}
.hero-content { position: relative; padding: 5rem 0; max-width: 760px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.25; margin: 0 0 1.25rem; font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(255,255,255,.88); margin: 0 0 2rem; max-width: 640px; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero .eyebrow { color: #fca5a5; }

.page-hero {
  padding: 4.5rem 0 3.5rem; background: linear-gradient(160deg, var(--navy) 0%, #163a73 100%); color: #fff;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 1rem; line-height: 1.3; }
.page-hero .hero-sub { margin: 0; max-width: 720px; }
.page-hero .eyebrow { color: #fca5a5; }

/* Stats */
.stats-section { padding: 0; margin-top: -2.5rem; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; text-align: center; box-shadow: var(--shadow);
}
.stat-value { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .stat-value { color: #fff; }
.stat-suffix { color: var(--accent); }
.stat-label { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: .35rem; }

/* Cards */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 8px rgba(11,34,73,.03);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(200,30,30,.25); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.product-card .card-media { aspect-ratio: 1; }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.4; color: var(--navy); }
[data-theme="dark"] .card-body h3 { color: #fff; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: .2rem;
}
.card-icon svg { width: 24px; height: 24px; }
.chip {
  display: inline-flex; align-self: flex-start; padding: .25rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; background: rgba(11,34,73,.07); color: var(--navy);
}
[data-theme="dark"] .chip { background: rgba(255,255,255,.1); color: #fff; }
.product-brand { font-size: .85rem !important; font-weight: 700; color: var(--accent) !important; }
.spec-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.spec-list li {
  font-size: .78rem; padding: .3rem .6rem; background: var(--bg-alt); border-radius: 6px;
  color: var(--muted); font-weight: 600;
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.split-content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1rem; line-height: 1.3; color: var(--navy); }
[data-theme="dark"] .split-content h2 { color: #fff; }
.split-content p { color: var(--muted); margin: 0 0 1rem; }
.check-list { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .7rem; }
.check-list li { position: relative; padding-inline-start: 1.75rem; color: var(--text); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
}
.info-box {
  margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius-sm); border-inline-start: 3px solid var(--accent);
}
.info-box h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--navy); }
[data-theme="dark"] .info-box h3 { color: #fff; }
.info-box p { margin: 0; }
/* Audience */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.aud-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; transition: all var(--transition);
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200,30,30,.2); }
.aud-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--navy); }
[data-theme="dark"] .aud-card h3 { color: #fff; }
.aud-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, #163a73 100%); color: #fff;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .5rem; line-height: 1.3; }
.cta-band p { margin: 0; color: rgba(255,255,255,.82); max-width: 600px; }
.cta-band .eyebrow { color: #fca5a5; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.process-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem;
  position: relative;
}
.step-num { font-size: 2rem; font-weight: 800; color: rgba(200,30,30,.18); line-height: 1; display: block; margin-bottom: .75rem; }
.process-step h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--navy); }
[data-theme="dark"] .process-step h3 { color: #fff; }
.process-step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.gallery-item { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-card h2, .contact-card h3 { margin: 0 0 1.25rem; color: var(--navy); font-size: 1.35rem; }
[data-theme="dark"] .contact-card h2, [data-theme="dark"] .contact-card h3 { color: #fff; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.contact-list a { color: var(--navy); font-weight: 600; }
[data-theme="dark"] .contact-list a { color: #fff; }
.contact-list a:hover { color: var(--accent); }
.contact-direct { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.contact-form-wrap { display: flex; }
.contact-form {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.contact-form h2 { margin: 0 0 1.5rem; color: var(--navy); font-size: 1.35rem; }
[data-theme="dark"] .contact-form h2 { color: #fff; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(11,34,73,.35); box-shadow: 0 0 0 4px rgba(11,34,73,.08);
}
[data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus {
  border-color: rgba(255,255,255,.3); box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0 0 1rem; }
.form-status { font-size: .9rem; margin: .75rem 0 0; min-height: 1.4em; color: var(--muted); }
.form-status.error { color: var(--accent); }

/* Footer */
.site-footer { padding: 4rem 0 0; background: #07142a; color: #e5edf7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: rgba(229,237,247,.72); margin: 1rem 0 0; max-width: 360px; font-size: .95rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: rgba(229,237,247,.6); }
.footer-col h3 { font-size: 1rem; margin: 0 0 1rem; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a, .footer-contact a { color: rgba(229,237,247,.75); transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: .7rem; font-size: .94rem; }
.footer-contact li { display: flex; flex-direction: column; gap: .1rem; }
.fc-label { font-size: .75rem; color: rgba(229,237,247,.5); font-weight: 700; }
.footer-bottom {
  padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .88rem; color: rgba(229,237,247,.55); text-align: center;
}
.footer-bottom p { margin: 0; }
/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 1.5rem; inset-inline-end: 1.5rem; width: 56px; height: 56px;
  background: #25D366; color: #fff; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.35); z-index: 90; transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 30px rgba(37,211,102,.45); }
.wa-float svg { width: 28px; height: 28px; }

/* 404 */
.nf-section { min-height: 50vh; display: flex; align-items: center; }
.nf-inner { text-align: center; }
.nf-inner h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .75rem; color: var(--navy); }
[data-theme="dark"] .nf-inner h1 { color: #fff; }
.nf-inner p { color: var(--muted); margin: 0 0 1.5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* Responsive */
@media (max-width: 1100px) {
  .cards-grid.four { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 1024px) {
  .main-nav {
    position: absolute; top: calc(100% + 1px); inset-inline: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem; flex-direction: column; align-items: stretch; gap: 1rem;
    box-shadow: var(--shadow-lg); display: none;
  }
  .main-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: .75rem 1rem; }
  .nav-actions { justify-content: stretch; flex-wrap: wrap; }
  .nav-actions .nav-cta { flex: 1; }
  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media img { max-height: 400px; }
  .cards-grid.three, .aud-grid, .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 72vh; }
  .hero-content { padding: 4rem 0; }
  .stats-section { margin-top: -1.5rem; }
  .stat { padding: 1.1rem .75rem; }
  .cards-grid.four, .cards-grid.two { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .contact-card, .contact-form { padding: 1.5rem; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn, .contact-direct .btn { width: auto; flex: 1; }
  .nav-actions .btn { width: 100%; }
  .wa-float { bottom: 1rem; inset-inline-end: 1rem; width: 52px; height: 52px; }
}

@media (max-width: 400px) {
  .hero-actions, .cta-actions, .contact-direct { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn, .contact-direct .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-value { font-size: 1.6rem; }
}
