/* ===== Brand tokens (derived from logo: royal blue + red accent) ===== */
:root {
  --blue-900: #062a63;
  --blue-800: #0a3d8f;
  --blue-700: #0f4eb3;
  --blue-600: #1560d4;
  --blue-100: #e7effb;
  --blue-50:  #f4f8fe;
  --red:      #d81f26;
  --red-dark: #b3161c;
  --ink:      #16243a;
  --muted:    #5c6b82;
  --line:     #e2e8f2;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fd;
  --white:    #ffffff;
  --shadow-sm: 0 2px 10px rgba(10, 61, 143, .06);
  --shadow-md: 0 10px 30px rgba(10, 61, 143, .10);
  --shadow-lg: 0 20px 50px rgba(6, 42, 99, .18);
  --radius:   16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Cairo", "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; right: -999px; top: 0; z-index: 1000;
  background: var(--blue-800); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { right: 16px; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--blue-800); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-light { background: #fff; color: var(--blue-800); box-shadow: var(--shadow-md); }
.btn-light:hover { background: var(--blue-50); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.25rem; color: var(--blue-800); font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--muted); }

.main-nav ul {
  list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0;
}
.main-nav a {
  display: inline-block; padding: 9px 14px; border-radius: 8px; font-weight: 600; color: var(--ink);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--blue-50); color: var(--blue-800); }
.nav-cta { background: var(--blue-700); color: #fff !important; }
.nav-cta:hover { background: var(--blue-800) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--blue-800); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(21,96,212,.55), transparent 60%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 48%, var(--blue-700) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 40px;
  padding: 72px 22px 86px;
}
.eyebrow {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 900; margin-bottom: 18px; }
.hero h1 span { color: #bcd4ff; font-size: .58em; font-weight: 700; display: inline-block; margin-top: .35em; }
.hero-desc { font-size: 1.12rem; max-width: 56ch; color: #e7eefb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 34px; }
.hero-stats {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.35rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: .85rem; color: #c5d6f5; }

.hero-figure { display: flex; justify-content: center; }
.hero-figure img {
  width: min(340px, 80%); height: auto; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 28px; padding: 26px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.4);
}

/* ===== Sections ===== */
.section { padding: 76px 0; }
.about { background: var(--bg); }
.products { background: var(--bg-soft); }
.why { background: var(--bg); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.kicker {
  display: inline-block; color: var(--red); font-weight: 800; letter-spacing: .04em;
  font-size: .85rem; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--blue-900); }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--red)); margin: 14px auto 0;
}
.section-sub { color: var(--muted); margin-top: 14px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.about-text .lead { font-size: 1.25rem; color: var(--ink); }
.about-text .lead strong { color: var(--blue-800); }
.about-text p { color: var(--muted); }
.about-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-features li {
  display: flex; gap: 14px; align-items: flex-start; background: var(--blue-50);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
}
.feat-ico { font-size: 1.5rem; line-height: 1; }
.about-features strong { color: var(--blue-800); display: block; }
.about-features p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }

/* ===== Products ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 24px;
}
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.product-media {
  aspect-ratio: 4 / 3; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 18px; }
.product-body h3 { font-size: 1.12rem; color: var(--blue-800); font-weight: 700; }
.product-body p { margin: 0; color: var(--muted); font-size: .92rem; }

.products-cta {
  margin-top: 44px; text-align: center; background: var(--blue-50);
  border: 1px dashed var(--blue-100); border-radius: var(--radius); padding: 30px 22px;
}
.products-cta p { font-size: 1.1rem; color: var(--blue-900); font-weight: 600; }

/* ===== Why ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  border-radius: 50%; background: var(--blue-700); color: #fff; font-size: 1.5rem; font-weight: 800;
  margin-bottom: 16px; box-shadow: var(--shadow-md);
}
.why-card h3 { color: var(--blue-800); font-size: 1.15rem; }
.why-card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 120%, rgba(216,31,38,.35), transparent 60%);
}
.cta-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px;
  padding: 50px 22px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; }
.cta-inner p { margin: 0; color: #e7eefb; }

/* ===== Contact ===== */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 34px; align-items: stretch; }
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
.contact-info li {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm);
}
.ci-ico {
  font-size: 1.3rem; width: 44px; height: 44px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--blue-50);
}
.contact-info strong { display: block; color: var(--blue-800); margin-bottom: 2px; }
.contact-info a { color: var(--blue-700); font-weight: 600; word-break: break-word; }
.contact-info a:hover { color: var(--red); }
.coords { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.contact-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); min-height: 340px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-900); color: #d6e1f5; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  padding: 40px 22px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 10px; background: #fff; padding: 4px; object-fit: contain; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin: 2px 0 0; font-size: .85rem; color: #aebfdd; }
.footer-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.footer-meta a { color: #bcd4ff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; padding: 16px 22px; text-align: center; font-size: .85rem; color: #9fb2d6; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 54px; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-figure { order: -1; }
  .hero-figure img { width: min(240px, 60%); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav ul {
    position: absolute; inset-inline: 12px; top: 70px; flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
    box-shadow: var(--shadow-lg); gap: 4px;
    transform-origin: top; transform: scaleY(.85); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .main-nav ul.open { transform: scaleY(1); opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; }
  .section { padding: 56px 0; }
  .cta-inner { flex-direction: column; text-align: center; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
