/* ==========================================================================
   Universal Agriculture — UAE branch
   "Deep field & glass" theme: dark cinematic canvas, frosted-glass cards,
   brand palette preserved (logo greens + sky blue + white).
   RTL-aware via CSS logical properties (works for both en/ar).
   ========================================================================== */

:root {
  --green-900: #0f5a2c;
  --green-700: #1f7a3d;
  --green-600: #248a45;
  --green-500: #34a853;
  --green-300: #7fd49a;
  --green-200: #a5e6ba;

  --blue-700: #2f6fb0;
  --blue-500: #4b8bd6;
  --blue-300: #9cc4ef;

  /* dark canvas */
  --bg-0: #0c1a11;           /* page */
  --bg-1: #102216;           /* tinted section */
  --bg-blue: #0d1b28;        /* blue section */
  --bg-footer: #081109;

  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .11);
  --glass-brd: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .12);

  --ink: #f0f7f2;            /* headings */
  --body: #cfe0d5;           /* body text */
  --muted: #9db4a6;          /* secondary text */

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .25);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, .4);
  --maxw: 1180px;

  --ff-en: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-en);
  color: var(--body);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(47, 111, 176, .12), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(31, 122, 61, .14), transparent 55%),
    var(--bg-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--ff-ar); line-height: 1.9; }

/* --- language visibility ------------------------------------------------- */
html[lang="en"] .lang-ar,
html[lang="ar"] .lang-en { display: none !important; }

img { max-width: 100%; display: block; }
a { color: var(--green-300); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-200); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(52px, 7vw, 100px); }
.section--tint { background: linear-gradient(180deg, rgba(52,168,83,.05), transparent 55%), var(--bg-1); }
.section--blue { background: linear-gradient(180deg, rgba(75,139,214,.06), transparent 55%), var(--bg-blue); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center .lead { margin-inline: auto; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-300); background: rgba(52, 168, 83, .14);
  border: 1px solid rgba(52, 168, 83, .3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font: inherit; font-weight: 700; border: 0; border-radius: 999px;
  padding: 13px 26px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--green-500), var(--green-700)); color: #fff; box-shadow: 0 6px 22px rgba(52, 168, 83, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 30px rgba(52, 168, 83, .5); }
.btn-light { background: #fff; color: var(--green-700); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--green-900); }
.btn-ghost { background: var(--glass); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* --- top banner (announcement strip above header) ------------------------ */
.top-banner {
  background: linear-gradient(120deg, var(--green-700), var(--blue-700));
  color: #fff; text-align: center; padding: 10px 16px; font-size: .88rem; font-weight: 700;
  letter-spacing: .01em; position: relative; z-index: 51;
}
.top-banner .container { padding-block: 0; }

/* --- welcome popup (shows once per tab session) --------------------------- */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 14, 9, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.welcome-overlay.show {
  opacity: 1; visibility: visible;
  transition: opacity .35s ease, visibility 0s linear 0s;
}
.welcome-card {
  position: relative; max-width: 420px; width: 100%; text-align: center;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--glass-brd); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 40px);
  transform: translateY(18px) scale(.96); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.welcome-overlay.show .welcome-card {
  transform: translateY(0) scale(1); opacity: 1;
}
.welcome-card .welcome-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(52,168,83,.4);
  animation: welcome-pop .5s cubic-bezier(.2,.8,.2,1) .15s both;
}
.welcome-card .welcome-icon svg { width: 30px; height: 30px; stroke: #fff; }
.welcome-card h3 {
  font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 8px;
}
.welcome-card .welcome-sub {
  font-size: .95rem; font-weight: 700; color: var(--green-300);
  margin-bottom: 14px;
}
.welcome-card p { color: var(--muted); margin-bottom: 22px; font-size: .98rem; }
.welcome-card .btn { width: 100%; justify-content: center; }
.welcome-close {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--muted);
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1;
  transition: background .15s, color .15s;
}
.welcome-close:hover { background: rgba(255,255,255,.16); color: #fff; }
@keyframes welcome-pop {
  0% { transform: scale(.6); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-card, .welcome-overlay, .welcome-card .welcome-icon { transition: none; animation: none; }
}

/* --- header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 20, 13, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.site-header.scrolled { background: rgba(9, 20, 13, .92); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.nav { display: flex; align-items: center; gap: 18px; height: 76px; transition: height .25s ease; }
.site-header.scrolled .nav { height: 62px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain;
  background: #fff; border-radius: 11px; padding: 3px; transition: width .25s ease, height .25s ease;
}
.site-header.scrolled .brand img { width: 38px; height: 38px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.12; gap: 2px; }
.brand .brand-name { font-weight: 900; color: #fff; font-size: 1.02rem; letter-spacing: -.01em; }
.brand .brand-sub { font-size: .72rem; color: var(--green-300); font-weight: 700; letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 9px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--body);
  white-space: nowrap; line-height: 1.2;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a.active { color: var(--green-300); background: rgba(52,168,83,.14); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }
.lang-toggle {
  cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; color: var(--green-300);
  background: var(--glass); border: 1.5px solid rgba(127, 212, 154, .45); border-radius: 999px; padding: 8px 14px; transition: .15s;
}
.lang-toggle:hover { background: rgba(52,168,83,.18); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .25s; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  /* Fallback for browsers with no <video> support: the original still image
     shows through behind the ::before overlay. The poster attribute covers the
     more common "video element present but not yet playing" case. */
  background:
    url("../img/photos/img-1586.jpeg") center 30% / cover no-repeat,
    var(--bg-0);
}
/* looping background video, layered behind the gradient overlay.
   Visible by default so the poster still shows even if JS never runs; the
   poster was extracted from this same clip, so poster→playback is seamless. */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* object-position mirrors the still image's 30% vertical framing */
  object-position: center 30%;
  pointer-events: none;
}
/* dark cinematic gradient overlay — keeps hero text readable over the video */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(6, 18, 10, .93) 0%, rgba(8, 24, 13, .82) 45%, rgba(10, 24, 38, .72) 100%);
}
.hero .container { padding-block: clamp(72px, 10vw, 140px); position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,255,255,.9); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px; }
.hero-stats > div {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 14px 22px; min-width: 130px;
}
.hero-stats .num { font-size: 1.8rem; font-weight: 900; color: #fff; }
.hero-stats .lbl { font-size: .85rem; color: rgba(255,255,255,.8); }
.hero-pattern { position: absolute; inset: 0; opacity: .1; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.4px, transparent 1.4px);
  background-size: 26px 26px; }

/* Reduced motion: drop the video entirely and show the poster still instead.
   Pure CSS so it holds even if JS is disabled; JS also pauses the element. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero {
    background:
      url("../img/photos/palm-oasis-poster.jpg") center 30% / cover no-repeat,
      var(--bg-0);
  }
}

/* --- page banner (interior pages) --------------------------------------- */
.page-banner {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(6, 18, 10, .92) 0%, rgba(8, 24, 13, .8) 48%, rgba(10, 24, 38, .72) 100%),
    var(--banner-img, none) center 38% / cover no-repeat,
    var(--bg-0);
  border-bottom: 1px solid var(--line);
}
.page-banner .container { padding-block: clamp(50px, 7vw, 88px); }
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 720px; margin: 0; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.crumbs a { color: var(--green-300); }

/* --- grids & cards ------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(127, 212, 154, .45); background: var(--glass-strong); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(52,168,83,.16); color: var(--green-300); margin-bottom: 16px; font-size: 1.5rem;
  border: 1px solid rgba(52,168,83,.3);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .9rem; }
.card .card-link::after { content: " →"; }
html[lang="ar"] .card .card-link::after { content: " ←"; }

/* inline SVG icons */
.ic { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.info-item .ic { width: 22px; height: 22px; }

/* thumbnail image on top of a card */
.card .thumb { width: 100%; height: 150px; border-radius: 12px; object-fit: cover; margin-bottom: 16px; background: rgba(255,255,255,.06); }
.card .thumb--contain { object-fit: contain; padding: 8px; background: #fff; border: 0; }

.feature-card { text-align: center; }
.feature-card .icon { margin-inline: auto; }

/* product card with header band */
.product-card { padding: 0; overflow: hidden; }
.product-card .pc-head { padding: 22px 26px; color: #fff; background: linear-gradient(135deg, var(--green-600), var(--green-900)); }
.product-card .pc-head.blue { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); }
.product-card .pc-head h3 { color: #fff; margin: 0; }
.product-card .pc-head .tag { font-size: .8rem; opacity: .9; }
.product-card .pc-body { padding: 22px 26px; }
.product-card .pc-body ul { margin: 0 0 16px; padding-inline-start: 18px; color: var(--muted); }
.product-card .pc-body li { margin-bottom: 6px; }

/* split section (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .visual {
  border-radius: var(--radius-lg); min-height: 340px; box-shadow: var(--shadow-md);
  background: var(--glass); border: 1px solid var(--glass-brd);
  display: grid; place-items: center; color: var(--green-300); position: relative; overflow: hidden;
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }
.split .visual--contain { background: #fff; padding: 18px; border: 0; }
.split .visual--contain img { object-fit: contain; }
.split .visual .big-emoji { font-size: 5rem; }

/* spec table */
.spec { width: 100%; border-collapse: collapse; background: var(--glass); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-brd); }
.spec th, .spec td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec th { background: rgba(52,168,83,.12); color: var(--ink); font-weight: 700; width: 42%; }
.spec td { color: var(--body); }
.spec td strong { color: var(--ink); }
.spec tr:last-child td, .spec tr:last-child th { border-bottom: 0; }
.muted-inline { color: var(--muted); font-size: .9em; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .n {
  counter-increment: step; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700)); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 16px rgba(52,168,83,.35);
}
.step .n::before { content: counter(step); }

/* before / after — real field photos */
.ba { border-radius: var(--radius-lg); overflow: hidden; background: var(--glass); border: 1px solid var(--glass-brd); transition: transform .25s ease, border-color .25s ease; }
.ba:hover { transform: translateY(-4px); border-color: rgba(127, 212, 154, .4); }
.ba img { width: 100%; display: block; }
.ba .ba-cap { padding: 14px 18px; font-size: .92rem; color: var(--muted); }
.ba .ba-cap strong { color: var(--ink); }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.stat-band > div { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 16px; padding: 22px 14px; }
.stat-band .num { font-size: clamp(1.6rem,3.5vw,2.3rem); font-weight: 900; color: var(--green-300); }
.stat-band .lbl { color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--green-700), var(--blue-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px,5vw,64px); text-align: center;
  border: 1px solid rgba(255,255,255,.14);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: rgba(255,255,255,.07); color: var(--ink); transition: border-color .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { background: var(--bg-1); color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--green-500); background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(52,168,83,.2);
}
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-item .ii-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: rgba(52,168,83,.16); border: 1px solid rgba(52,168,83,.3); color: var(--green-300); display: grid; place-items: center; font-size: 1.2rem; }
.info-item h4 { margin: 0 0 2px; }
.info-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.badge-soft { display:inline-block; background: rgba(75,139,214,.16); color: var(--blue-300); border:1px solid rgba(75,139,214,.4); font-size:.78rem; font-weight:700; padding:4px 10px; border-radius:999px; }

/* note / placeholder */
.note { background: rgba(250,199,117,.1); border: 1px solid rgba(250,199,117,.35); color: #f0d6a0; padding: 12px 16px; border-radius: 10px; font-size: .9rem; }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-footer); color: #b9c9be; padding-block: 56px 28px; border-top: 1px solid var(--line); }
.site-footer a { color: #b9c9be; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.footer-brand .brand-name { color: #fff; font-weight: 900; }
.footer-brand p { font-size: .9rem; max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #86988b; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: .95rem; }
.social a:hover { background: var(--green-600); color:#fff; }

/* --- decorative date-palm frond motifs ----------------------------------
   Subtle, low-opacity line-art fronds tucked into section corners / behind
   card grids. Colour comes from --green-* (adapts to oasis.css & waves.css),
   orientation mirrors automatically in RTL via the --flip custom property. */
.palm-decor {
  position: absolute; z-index: 0; pointer-events: none;
  color: var(--green-500); opacity: .07;
  width: clamp(200px, 24vw, 360px); aspect-ratio: 250 / 162;
  --flip: 1; --rot: 0deg;
  transform: scaleX(var(--flip)) rotate(var(--rot));
  transform-origin: center;
}
html[dir="rtl"] .palm-decor { --flip: -1; }
.palm-decor svg { width: 100%; height: 100%; display: block; }
/* corner placements — insets are logical so they follow the reading direction */
.palm-decor--tr { top: -18px;    inset-inline-end: -34px;  --rot: 4deg; }
.palm-decor--bl { bottom: -26px; inset-inline-start: -42px; --rot: 182deg; }
.palm-decor--br { bottom: -30px; inset-inline-end: -30px;  --rot: 150deg; }
/* host sections must clip the fronds and keep content above them */
.frond-host { position: relative; overflow: hidden; }
.frond-host > .container { position: relative; z-index: 1; }

/* centred frond pair used as a section divider */
.frond-divider { text-align: center; line-height: 0; margin: 6px 0 -10px; }
.frond-divider svg {
  width: clamp(120px, 18vw, 190px); color: var(--green-500); opacity: .16;
  display: inline-block;
}

/* --- scroll reveal (JS adds .reveal, then .in when visible) -------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
}
/* collapse the horizontal nav to a menu button before the single-line links
   would be squeezed into wrapping (they fit only on wide viewports) */
@media (max-width: 1150px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(9, 20, 13, .97); backdrop-filter: blur(14px);
    padding: 12px 18px 22px; gap: 2px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .28s ease; margin-inline-start: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: block; margin-inline-start: auto; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 10px; }
}
