/* =====================================================================
   SNA — landing page (three-sector gateway), navy edition
   Dark-navy page, white SNA lockup on top, each gate = blurred sector
   photo with a light navy tint + the sector logo only. Fluid on every
   screen: the page scrolls instead of clipping on short viewports.
   ===================================================================== */
:root{
  --ink:#0A1631; --ink-2:#0F1F45; --line:rgba(255,255,255,.12);
  --text:#FFFFFF; --text-dim:#C7D0E3; --text-faint:#8C98B5;
  --green:#62A744; --green-hi:#8BD061;
  --energy:#D4AF37; --agri:#70A850; --eng:#A7A8AA;
  --wa:#128C7E;
  --font:"Inter","Segoe UI",Arial,sans-serif;
  --font-ar:"Cairo","IBM Plex Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--ink)}
body.gateway{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--ink);color:var(--text);font-family:var(--font);line-height:1.5;overflow-x:hidden}
html[lang="ar"] body.gateway{font-family:var(--font-ar);font-weight:500}   /* Cairo, a step heavier (user, 2026-10-02 night) */
html[lang="ar"] .gw-bar__links a{font-weight:600}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,p{margin:0}

/* ---- Top: SNA lockup + language ---- */
.gw-top{flex:1 1 auto;display:flex;flex-direction:column;position:relative;text-align:center;padding:0 0 clamp(26px,4.2vh,48px)}   /* grows: the free height goes between the bar and the lockup, so the lockup sits just above the cards (user, 2026-10-02 night) */   /* roomier (user, 2026-10-02: "فراغات لترتاح العين") */
/* slim transparent bar on top (user, 2026-10-02): the small white SNA mark at the start; at the end two quiet links
   (SNA Standards · Contact) beside the corner tools. No page menu: every page belongs to a sector and the gates lead there. */
.gw-bar{display:flex;align-items:center;gap:clamp(16px,2vw,28px);padding:clamp(10px,1.8vh,18px) clamp(20px,3vw,44px) 0;min-height:44px}
.gw-bar__mark{display:block;flex:none;width:100px;height:25px;margin-inline-end:auto;background:currentColor;color:#fff;opacity:.92;-webkit-mask:url(../img/mark-sna.svg) center/contain no-repeat;mask:url(../img/mark-sna.svg) center/contain no-repeat}
.gw-bar__links{display:flex;align-items:center;gap:clamp(14px,1.6vw,24px)}   /* the links sit in the start corner (where the small mark was), the tools at the end (user, 2026-10-02 night) */
.gw-bar__links{margin-inline-end:auto}   /* (the tools carry their own ltr direction, so the auto margin lives on the links) */
.gw-bar__links a{display:inline-block;padding:7px 2px;font-size:13.5px;font-weight:500;letter-spacing:.01em;color:rgba(255,255,255,.72);border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.gw-bar__links a:hover,.gw-bar__links a:focus-visible{color:#fff;border-color:rgba(255,255,255,.4)}
.gw-top h1{line-height:0;margin-top:auto;padding:clamp(6px,1.4vh,16px) 20px 0}
.gw-top .gw-logo{height:auto;width:clamp(230px,min(24vw,33vh),330px);margin:0 auto}   /* the lockup without its last line (user, 2026-10-02); a touch smaller since the bar took the top */
/* the alliances sentence sits under the three gates, in place of the per-sector lines (user, 2026-10-02) */
.gw-tagline{flex:0 0 auto;max-width:780px;margin:0 auto;padding:clamp(18px,2.8vh,30px) 20px clamp(10px,1.6vh,18px);text-align:center;font-size:clamp(14px,1.15vw,16.5px);line-height:1.8;color:rgba(242,246,253,.84);font-weight:400}
.lang{display:inline-flex;gap:6px;margin-top:clamp(12px,2vh,20px)}
.lang a{display:inline-block;min-width:46px;padding:6px 14px;border:1px solid rgba(255,255,255,.28);border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--text-dim);transition:.2s}
.lang a:hover{border-color:var(--green);color:#fff}
.lang a.is-active{background:var(--green);border-color:var(--green);color:#fff}

/* ---- Gates ---- */
/* smaller gate cards with air around them (user, 2026-10-02: "تصغير مربعات القطاعات... فراغات"): a centred row with gaps and rounded
   corners instead of the edge-to-edge band; the free height of the screen is split above the row and below the trust line */
.gates{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.6vw,24px);width:min(100% - 2 * clamp(20px,4vw,64px),1180px);height:clamp(230px,35vh,400px);margin:0 auto}   /* the sector order follows the language (user, 2026-10-02 night, reversing the 2026-10-01 rule): Energy first from the right on Arabic pages, from the left on English pages */
.gate{position:relative;display:flex;flex-direction:column;background:var(--ink);opacity:0;transform:translateY(12px);animation:gateIn .5s var(--ease) forwards}
/* the box = blurred photo + logo; the meaning line sits UNDER the whole box (user, 2026-10-02) */
.gate__box{position:relative;isolation:isolate;overflow:hidden;flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(24px,4vw,56px);background:var(--ink-2);border-radius:16px;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 18px 40px rgba(0,0,0,.32)}
.gate__desc{margin:0;padding:12px 18px 14px;text-align:center;font-size:clamp(13px,1.05vw,15px);line-height:1.5;color:rgba(242,246,253,.8);background:var(--ink);border-top:1px solid var(--line);transition:color .4s var(--ease)}
html[lang="ar"] .gate__desc{direction:rtl}
.gate:hover .gate__desc{color:#fff}
/* "a door opening": the photo brightens and grows a little, a soft glow in the sector colour rises behind the logo */
.gate__box::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(55% 45% at 50% 58%,var(--glow),transparent 72%);opacity:0;transition:opacity .6s var(--ease)}
.gate:hover .gate__box::before,.gate:focus-visible .gate__box::before{opacity:1}
.gate--energy{--glow:rgba(212,175,55,.26)}
.gate--agriculture{--glow:rgba(112,168,80,.28)}
.gate--solutions{--glow:rgba(167,168,170,.22)}
/* gentle ordered entrance: quick and small, the gates are usable from the first frame */
.gate:nth-child(1){animation-delay:.06s}.gate:nth-child(2){animation-delay:.16s}.gate:nth-child(3){animation-delay:.26s}
@keyframes gateIn{to{opacity:1;transform:none}}
.gate__img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 1.4s var(--ease),filter .6s var(--ease)}
.gate:hover .gate__img{transform:scale(1.1);filter:brightness(1.12)}
/* light tint only: the blurred photo stays visible behind the logo, and the gate fades into the navy page at top and bottom */
.gate__veil{position:absolute;inset:0;z-index:1;transition:opacity .5s var(--ease);background:linear-gradient(to bottom,rgba(10,22,49,.55) 0%,rgba(10,22,49,.24) 28%,rgba(10,22,49,.24) 70%,rgba(10,22,49,.6) 100%)}   /* a card now: the photo stays visible up to its rounded edges */
.gate:hover .gate__veil{opacity:.9}
.gate__logo{position:relative;z-index:2;width:min(64%,300px);transition:transform .5s var(--ease)}
.gate__logo img{width:100%;height:auto;filter:drop-shadow(0 3px 12px rgba(0,0,0,.35))}
.gate:hover .gate__logo{transform:translateY(-4px)}
.gate__box::after{content:"";position:absolute;z-index:3;left:50%;bottom:0;width:32%;height:4px;transform:translateX(-50%);background:var(--accent);border-radius:4px 4px 0 0;transition:width .5s var(--ease)}
.gate:hover .gate__box::after,.gate:focus-visible .gate__box::after{width:100%}
.gate:focus-visible{outline:3px solid var(--green-hi);outline-offset:-3px}
.gate--energy{--accent:var(--energy)}
.gate--agriculture{--accent:var(--agri)}
.gate--solutions{--accent:var(--eng)}

/* ---- Trust line under the gates (user, 2026-10-02): three short words, no numbers ---- */
.gw-trust{flex:1 0 auto;display:flex;justify-content:center;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px clamp(24px,3.5vw,56px);padding:clamp(10px,1.6vh,16px) 20px clamp(14px,2vh,20px);background:var(--ink);font-size:clamp(12.5px,.95vw,14px);letter-spacing:.02em;color:var(--text-dim)}
.gw-trust span{display:inline-flex;align-items:center;gap:8px}
.gw-trust svg{width:16px;height:16px;color:var(--green-hi);flex:none}

/* ---- Footer ---- */
.gw-footer{flex:0 0 auto;border-top:1px solid var(--line);padding:clamp(16px,2.4vh,24px) 20px;font-size:13px;color:var(--text-dim);background:var(--ink)}
.gw-footer__inner{display:flex;align-items:center;justify-content:center;gap:12px 32px;flex-wrap:wrap;text-align:center}
.gw-footer__inner a:hover{color:var(--green-hi)}
.gw-footer .socials{display:flex;gap:8px}
.gw-footer .socials a{width:32px;height:32px;border-radius:50%;border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;color:#fff;transition:.2s}
.gw-footer .socials a:hover{background:var(--green);border-color:var(--green)}
.gw-footer .socials a:not([href]){opacity:.45;cursor:default;pointer-events:none}   /* social pages not live yet */
.gw-footer .socials svg{width:14px;height:14px}
.gw-footer__copy{color:var(--text-faint);width:100%}
@media (min-width:1180px){.gw-footer__copy{width:auto}}

/* ---- Floating WhatsApp ---- */
.wa-float{position:fixed;z-index:50;bottom:18px;inset-inline-end:18px;width:54px;height:54px;border-radius:50%;background:var(--wa);color:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform .2s}
.wa-float:hover{transform:translateY(-2px)}
.wa-float svg{width:26px;height:26px}

/* ---- Responsive ---- */
@media (max-width:900px){
  .gw-bar{flex-wrap:wrap;row-gap:4px;gap:12px;padding:10px 16px 0}   /* phones: links at the start, tools at the end, on one row */
  .gw-bar__links{gap:14px}
  .gw-bar__links a{font-size:12.5px;padding:5px 1px}
  .gw-top h1{padding-top:8px}
  .gates{grid-template-columns:1fr;gap:12px;width:calc(100% - 32px);height:auto;margin:14px auto 0}
  .gate__box{min-height:clamp(128px,17vh,200px);padding:16px 22px}
  .gate__logo{width:min(42%,210px)}
  .gate__desc{color:#fff;font-size:13.5px;padding:9px 16px 11px}   /* always clear on phones; the three gates fit the first screen */
}
@media (max-width:520px){
  .gw-top{padding-bottom:14px}
  .gw-top .gw-logo{height:auto;width:min(60vw,250px)}
  .gw-tagline{font-size:13px;line-height:1.65;padding:14px 18px 6px}
  .gate__box{min-height:124px;padding:14px 18px}
  .gate__logo{width:min(44%,190px)}
  .gw-trust{gap:6px 16px;font-size:12px}
  .gw-footer__inner{gap:8px 18px;font-size:12.5px}
  .wa-float{width:50px;height:50px;bottom:14px;inset-inline-end:14px}
}
@media (max-width:520px){.gw-bar .tools__season{display:none}}
@media (max-width:520px){.gw-bar .tools__calc{display:none}}   /* phones: links and tools stay on one row (the dim calculator placeholder is hidden there) */   /* narrow phones: the weather pill keeps the icon and the temperature only */
/* common laptops (≤ 800 px tall): trim a little so the page still fits without scrolling */
@media (min-width:901px) and (max-height:800px){
  .gw-top{padding-bottom:clamp(22px,3.6vh,36px)}
  .gw-bar{padding-top:clamp(8px,1.6vh,14px)}
  .gw-top h1{padding-top:clamp(4px,1.2vh,10px)}
  .gw-tagline{padding-top:12px}
  .gates{height:clamp(230px,33vh,400px)}   /* the English sentence under the gates takes two lines here */
}
/* short landscape screens (rotated phones/tablets, small laptops): keep 3 columns, let the page scroll */
@media (min-width:901px) and (max-height:640px){
  .gw-top{padding-bottom:16px}
  .gw-bar{padding-top:8px;min-height:0}
  .gw-top h1{padding-top:4px}
  .gw-top .gw-logo{width:clamp(170px,26vh,230px)}
  .gw-tagline{padding:10px 20px 4px}
  .gates{height:clamp(200px,33vh,400px)}
  .gw-trust{padding:10px 20px}
  .gate__logo{width:min(60%,260px)}
}
@media (prefers-reduced-motion:reduce){
  .gate__img,.gate__veil,.gate__logo,.gate__box::after,.gate__box::before{transition:none}
}
