/* ============================================================
   ALMUSTAWA ALAALI ELECTRONICS TRADING — Design Tokens
   Palette:   Ink Navy #0B1E3A · Steel Blue #2C6E91 · Circuit Gold #C99A3E
              Paper #F6F7F9 · Graphite #333B44 · Line Gray #D8DCE1
   Type:      Display — Sora · Body — Inter · Utility/Mono — IBM Plex Mono
   Signature: "Trade Manifest" ledger cards + network-route hero graphic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink:      #0B1E3A;
  --ink-2:    #12294F;
  --steel:    #2C6E91;
  --steel-l:  #EAF2F6;
  --gold:     #C99A3E;
  --paper:    #F6F7F9;
  --white:    #FFFFFF;
  --graphite: #333B44;
  --muted:    #6B7480;
  --line:     #D8DCE1;

  --display: 'Sora', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --maxw: 1180px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family: var(--body);
  color: var(--graphite);
  background: var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,svg{ display:block; max-width:100%; }

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1,h2,h3,h4{
  font-family: var(--display);
  color: var(--ink);
  line-height:1.15;
  letter-spacing:-0.01em;
}

.eyebrow{
  font-family: var(--mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--steel);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px;
  height:1px;
  background: var(--gold);
  display:inline-block;
}

::selection{ background: var(--gold); color: var(--ink); }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ---------------- Utility bar ---------------- */
.utility-bar{
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-family: var(--mono);
  font-size:11.5px;
  letter-spacing:0.08em;
}
.utility-bar .wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:9px;
  padding-bottom:9px;
  flex-wrap:wrap;
  gap:6px;
}
.utility-bar span{ text-transform:uppercase; }
.utility-bar .dot{ color: var(--gold); margin:0 10px; }

/* ---------------- Header / Nav ---------------- */
header.site{
  background: var(--white);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:50;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:18px;
  padding-bottom:18px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand .logo-icon{ height:44px; width:auto; flex-shrink:0; }
.brand .brand-text{ display:flex; flex-direction:column; }
.brand .mark{
  font-family:var(--display);
  font-weight:800;
  font-size:19px;
  color:var(--ink);
  letter-spacing:0.01em;
}
.brand .mark .accent{ color: var(--gold); }
.brand .sub{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color: var(--muted);
  margin-top:2px;
}
nav.links{ display:flex; align-items:center; gap:36px; }
nav.links a{
  font-family:var(--body);
  font-weight:500;
  font-size:14.5px;
  color: var(--graphite);
  position:relative;
  padding:4px 0;
}
nav.links a::after{
  content:"";
  position:absolute; left:0; bottom:-2px;
  width:0; height:2px; background:var(--gold);
  transition:width .25s ease;
}
nav.links a:hover::after, nav.links a[aria-current="page"]::after{ width:100%; }
nav.links a[aria-current="page"]{ color:var(--ink); font-weight:600; }

.nav-cta{
  font-family:var(--body);
  font-weight:600;
  font-size:14px;
  background: var(--ink);
  color:var(--white) !important;
  padding:11px 20px;
  border-radius:2px;
  transition: background .2s ease;
}
.nav-cta:hover{ background: var(--steel); }

.nav-toggle{ display:none; }

@media (max-width: 860px){
  nav.links{
    position:fixed; inset:64px 0 0 0; background:var(--white);
    flex-direction:column; align-items:flex-start; gap:0;
    padding:8px 32px 24px;
    transform:translateY(-8px);
    opacity:0; pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    border-bottom:1px solid var(--line);
  }
  nav.links.open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  nav.links a{ width:100%; padding:14px 0; border-bottom:1px solid var(--line); }
  .nav-cta{ margin-top:14px; text-align:center; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); display:block; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--body); font-weight:600; font-size:14.5px;
  padding:14px 26px;
  border-radius:2px;
  border:1px solid transparent;
  cursor:pointer;
  transition: all .2s ease;
}
.btn-primary{ background:var(--ink); color:var(--white); }
.btn-primary:hover{ background:var(--steel); }
.btn-ghost{ background:transparent; color:var(--ink); border-color: var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--white); }
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:#B5872F; }
.btn svg{ width:16px; height:16px; }

/* ---------------- Hero ---------------- */
.hero{
  background: var(--ink);
  background-image: radial-gradient(circle at 82% 18%, rgba(44,110,145,0.35), transparent 45%);
  position:relative;
  overflow:hidden;
  padding: 92px 0 88px;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero h1{
  color:var(--white);
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight:700;
  margin-bottom:22px;
}
.hero h1 .gold{ color:var(--gold); }
.hero p.lead{
  color: rgba(255,255,255,0.78);
  font-size:17px;
  max-width:46ch;
  margin-bottom:34px;
}
.hero .cta-row{ display:flex; gap:14px; flex-wrap:wrap; }
.hero .btn-ghost{ color:var(--white); border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover{ background: var(--white); color:var(--ink); }

.route-graphic{ width:100%; height:auto; }
.route-graphic .node{ fill:var(--gold); }
.route-graphic .node-sm{ fill:var(--steel); }
.route-graphic .line{ stroke: rgba(255,255,255,0.28); stroke-width:1; fill:none; stroke-dasharray:4 5; }
.route-graphic text{ font-family:var(--mono); font-size:10px; fill:rgba(255,255,255,0.55); letter-spacing:0.06em; }

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .route-graphic{ max-width:420px; margin:0 auto; }
}

/* ---------------- Sections ---------------- */
section{ padding: 88px 0; }
section.tight{ padding: 64px 0; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size: clamp(26px, 3vw, 36px); font-weight:700; }
.section-head p{ color:var(--muted); font-size:16px; margin-top:14px; }

.bg-white{ background:var(--white); }
.bg-ink{ background:var(--ink); color:rgba(255,255,255,0.85); }
.bg-ink h2, .bg-ink h3{ color:var(--white); }
.bg-steel-l{ background:var(--steel-l); }
.divider{ height:1px; background:var(--line); border:none; }

/* ---------------- Manifest cards (signature element) ---------------- */
.manifest{
  border:1px solid var(--line);
  background:var(--white);
}
.manifest-row{
  display:grid;
  grid-template-columns: 96px 80px 1fr auto;
  gap:20px;
  align-items:center;
  padding:22px 28px;
  border-bottom:1px solid var(--line);
  transition: background .18s ease;
}
.manifest-row:last-child{ border-bottom:none; }
.manifest-row:hover{ background: var(--steel-l); }
.manifest-row .thumb{
  width:96px; height:96px; object-fit:cover; flex-shrink:0; background:var(--steel-l);
}
.manifest-row .code{
  font-family:var(--mono);
  font-size:13px;
  color:var(--gold);
  letter-spacing:0.04em;
}
.manifest-row h4{ font-size:18px; margin-bottom:5px; }
.manifest-row p{ color:var(--muted); font-size:14.5px; max-width:56ch; }
.manifest-row .quote-link{
  font-family:var(--body); font-weight:600; font-size:13.5px; color:var(--steel);
  display:flex; align-items:center; gap:6px; white-space:nowrap;
  border:1px solid var(--line); padding:9px 16px; border-radius:2px; transition:all .18s ease;
}
.manifest-row .quote-link:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.manifest-row .quote-link svg{ width:14px; height:14px; }

@media (max-width:700px){
  .manifest-row{
    grid-template-columns: 72px 1fr;
    grid-template-areas: "thumb title" "thumb desc" "cta cta";
    gap:6px 16px;
    padding:22px;
  }
  .manifest-row .thumb{ grid-area:thumb; width:72px; height:72px; }
  .manifest-row .code{ grid-area:title; }
  .manifest-row div:has(h4){ grid-area:desc; }
  .manifest-row .quote-link{ grid-area:cta; justify-content:center; width:100%; margin-top:12px; }
}

/* ---------------- Cards grid ---------------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
@media (max-width:900px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--white);
  border:1px solid var(--line);
  padding:32px 28px;
}
.card .icon{
  width:44px; height:44px;
  color:var(--steel);
  margin-bottom:18px;
}
.card h3{ font-size:18px; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:14.5px; }

.stat-strip{
  display:flex;
  border-top:1px solid rgba(255,255,255,0.15);
  border-bottom:1px solid rgba(255,255,255,0.15);
}
.stat-strip .stat{
  flex:1;
  padding:30px 10px;
  text-align:center;
  border-left:1px solid rgba(255,255,255,0.15);
}
.stat-strip .stat:first-child{ border-left:none; }
.stat-strip .stat .label{
  font-family:var(--mono); font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
  color:rgba(255,255,255,0.55); margin-top:6px;
}
.stat-strip .stat .value{ font-family:var(--display); font-size:28px; color:var(--gold); font-weight:700; }

/* ---------------- CTA band ---------------- */
.cta-band{
  background: var(--steel);
  color:var(--white);
  padding:56px 0;
}
.cta-band .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h3{ color:var(--white); font-size:24px; }
.cta-band p{ color:rgba(255,255,255,0.85); margin-top:6px; }

/* ---------------- Footer ---------------- */
footer.site{ background:var(--ink); color:rgba(255,255,255,0.65); padding:64px 0 28px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:40px;
  padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.12);
}
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
footer.site h5{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--gold); margin-bottom:18px;
}
footer.site .brand .mark{ color:var(--white); }
footer.site .brand .logo-icon{ height:52px; }
footer.site .brand{ align-items:flex-start; }
footer.site p{ font-size:14px; margin-top:14px; max-width:34ch; }
footer.site ul{ list-style:none; }
footer.site ul li{ margin-bottom:10px; font-size:14px; }
footer.site ul li a:hover{ color:var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; padding-top:24px; font-size:12.5px; flex-wrap:wrap; gap:8px;
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero{
  background:var(--ink);
  padding:64px 0 60px;
}
.page-hero h1{ color:var(--white); font-size:clamp(30px,4vw,44px); }
.page-hero p{ color:rgba(255,255,255,0.75); max-width:60ch; margin-top:14px; font-size:16px; }
.breadcrumb{
  font-family:var(--mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--gold); margin-bottom:16px;
}
.breadcrumb a{ color:rgba(255,255,255,0.55); }

/* ---------------- Contact ---------------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.info-row{ display:flex; gap:18px; padding:20px 0; border-bottom:1px solid var(--line); }
.info-row:first-child{ padding-top:0; }
.info-row .ic{ width:22px; height:22px; color:var(--steel); flex-shrink:0; margin-top:2px; }
.info-row h4{ font-size:15px; margin-bottom:4px; }
.info-row p{ color:var(--muted); font-size:14.5px; }

form.contact-form{ display:flex; flex-direction:column; gap:18px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:520px){ .form-row{ grid-template-columns:1fr; } }
label{ font-size:13px; font-weight:600; color:var(--ink); margin-bottom:7px; display:block; }
input, textarea, select{
  width:100%;
  font-family:var(--body); font-size:14.5px;
  padding:13px 14px;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--graphite);
}
textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:var(--muted); }

.map-block{
  border:1px solid var(--line);
  height:100%;
  min-height:220px;
  background: var(--steel-l);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:12px; color:var(--muted); text-align:center; padding:20px;
}

/* ---------------- Values list (about page) ---------------- */
.value-row{ display:flex; gap:22px; padding:28px 0; border-bottom:1px solid var(--line); }
.value-row:first-child{ padding-top:0; }
.value-row .num{ font-family:var(--mono); color:var(--gold); font-size:14px; padding-top:3px; }
.value-row h4{ font-size:18px; margin-bottom:8px; }
.value-row p{ color:var(--muted); font-size:15px; max-width:60ch; }

/* animations */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
