/* ==========================================================================
   ASTRO INTEGRATED SERVICES AND CONSULTS LIMITED — brand stylesheet
   Palette sampled directly from the AISCL mark:
     forest   #0F4E23  (wordmark / primary text-on-light)
     green    #3E8E2F  (mid green triangle)
     lime     #B5CD21  (lime triangle)
     magenta  #CD1F64  (pink triangle)
     orange   #F5821F  (orange triangle)
     red      #D71920  (red triangle)
     blue     #027FBF  (blue triangle)
     purple   #5C387E  (purple triangle)
     lavender #DBDAEC  (roof / light neutral)
   ========================================================================== */

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

:root{
  --forest:#0f4e23;
  --forest-deep:#0a3618;
  --green:#3e8e2f;
  --lime:#b5cd21;
  --magenta:#cd1f64;
  --orange:#f5821f;
  --red:#d71920;
  --blue:#027fbf;
  --purple:#5c387e;
  --lavender:#dbdaec;

  --ink:#12181a;
  --paper:#faf9f5;
  --paper-dim:#f1efe6;
  --line:#e2ded0;
  --muted:#5c655f;

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

  --radius-lg:22px;
  --radius-md:14px;
  --radius-sm:8px;

  --shard-gradient: linear-gradient(90deg,
    var(--lime) 0 14.2%, var(--green) 14.2% 28.4%, var(--forest) 28.4% 42.6%,
    var(--magenta) 42.6% 56.8%, var(--orange) 56.8% 71%, var(--red) 71% 85.2%,
    var(--blue) 85.2% 100%);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0; letter-spacing:-.01em; }
p{ margin:0; }
button{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; }

.wrap{ max-width:1200px; margin:0 auto; padding:0 28px; }
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--forest);
}
.eyebrow--on-dark{ color:var(--lime); }

/* signature shard bar — the recurring device tying every section back to the mark */
.shard-bar{ height:6px; width:100%; background:var(--shard-gradient); }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,249,245,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 28px;
  max-width:1200px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:38px; width:auto; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:15px; line-height:1.15; color:var(--forest-deep); }
.brand-name small{ display:block; font-family:var(--font-mono); font-weight:500; font-size:10px; letter-spacing:.08em; color:var(--muted); text-transform:uppercase; }

.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a{ font-size:14px; font-weight:500; color:var(--ink); position:relative; padding:4px 0; }
.nav-links a.active, .nav-links a:hover{ color:var(--forest); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:3px;
  background:var(--shard-gradient); border-radius:2px;
}
.nav-cta{
  background:var(--forest); color:#fff; padding:10px 18px; border-radius:999px;
  font-size:13px; font-weight:600;
}
.nav-cta:hover{ background:var(--forest-deep); }
.nav-toggle{ display:none; }

@media (max-width:860px){
  .nav-links{
    position:fixed; inset:64px 0 0 0; background:var(--paper);
    flex-direction:column; align-items:flex-start; padding:24px 28px; gap:20px;
    transform:translateY(-8px); opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-links.is-open{ opacity:1; visibility:visible; transform:translateY(0); transition:opacity .2s ease, transform .2s ease; }
  .nav-toggle{
    display:flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px;
  }
  .nav-toggle span{ width:22px; height:2px; background:var(--ink); border-radius:2px; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:14px;
  border:none; cursor:pointer; transition:transform .15s ease, background .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--orange); color:#1a1005; }
.btn-primary:hover{ background:#ff9a3d; }
.btn-outline{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.5); }
.btn-outline:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn-forest{ background:var(--forest); color:#fff; }
.btn-forest:hover{ background:var(--forest-deep); }

/* ---------- YOUTH HERO (the loud one) ---------- */
.yh-hero{
  position:relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(181,205,33,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(2,127,191,.35), transparent 60%),
    linear-gradient(160deg,var(--forest-deep) 0%, var(--forest) 55%, #123a22 100%);
  color:#fff;
  overflow:hidden;
}
.yh-hero-inner{
  max-width:1200px; margin:0 auto; padding:64px 28px 56px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;
}
.yh-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25);
  padding:7px 14px; border-radius:999px; font-family:var(--font-mono);
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:20px;
}
.yh-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--lime); }
.yh-hero h1{
  font-size:clamp(34px,4.6vw,58px); line-height:1.04; font-weight:800; margin-bottom:18px;
}
.yh-hero h1 em{ font-style:normal; color:var(--lime); }
.yh-hero p.lead{ font-size:17px; color:rgba(255,255,255,.82); max-width:52ch; margin-bottom:28px; }
.yh-hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.yh-stats{
  display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  border:1px solid rgba(255,255,255,.18); border-radius:var(--radius-lg);
  overflow:hidden; background:rgba(255,255,255,.05); backdrop-filter:blur(4px);
}
.yh-stat{ padding:22px 16px; text-align:center; border-right:1px solid rgba(255,255,255,.15); }
.yh-stat:last-child{ border-right:none; }
.yh-stat b{ display:block; font-family:var(--font-display); font-size:30px; font-weight:800; color:var(--lime); }
.yh-stat span{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.7); }

.yh-gallery-strip{
  display:grid; grid-template-columns:repeat(5,1fr); gap:3px;
  height:280px;
}
.yh-gallery-strip figure{ margin:0; position:relative; overflow:hidden; height:100%; }
.yh-gallery-strip img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.yh-gallery-strip figure:hover img{ transform:scale(1.08); }

@media (max-width:980px){
  .yh-hero-inner{ grid-template-columns:1fr; }
  .yh-gallery-strip{ height:200px; grid-template-columns:repeat(5,1fr); }
}
@media (max-width:600px){
  .yh-stats{ grid-template-columns:1fr; }
  .yh-stat{ border-right:none; border-bottom:1px solid rgba(255,255,255,.15); }
  .yh-gallery-strip{ grid-template-columns:repeat(3,1fr); height:auto; }
  .yh-gallery-strip figure{ height:110px; }
  .yh-gallery-strip figure:nth-child(4),.yh-gallery-strip figure:nth-child(5){ display:none; }
}

/* ---------- section shell ---------- */
.section{ padding:84px 0; }
.section--tight{ padding:56px 0; }
.section--alt{ background:var(--paper-dim); }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head h2{ font-size:clamp(26px,3.4vw,36px); font-weight:700; margin:10px 0 12px; }
.section-head p{ color:var(--muted); font-size:15.5px; }

/* impact / stat cards */
.impact-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.impact-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
  padding:24px; position:relative; overflow:hidden;
}
.impact-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; }
.impact-card:nth-child(7n+1)::before{ background:var(--lime); }
.impact-card:nth-child(7n+2)::before{ background:var(--green); }
.impact-card:nth-child(7n+3)::before{ background:var(--forest); }
.impact-card:nth-child(7n+4)::before{ background:var(--magenta); }
.impact-card:nth-child(7n+5)::before{ background:var(--orange); }
.impact-card:nth-child(7n+6)::before{ background:var(--red); }
.impact-card:nth-child(7n)::before{ background:var(--blue); }
.impact-card h3{ font-size:16px; margin-bottom:8px; }
.impact-card p{ color:var(--muted); font-size:14px; }

@media (max-width:860px){ .impact-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .impact-grid{ grid-template-columns:1fr; } }

/* skills chips */
.chip-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  font-size:13.5px; font-weight:500; padding:9px 16px; border-radius:999px;
  background:#fff; border:1px solid var(--line); color:var(--ink);
}

/* photo gallery grid (also used by admin preview) */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.gallery-item{
  position:relative; border-radius:var(--radius-md); overflow:hidden;
  aspect-ratio:4/3; background:var(--paper-dim);
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-caption{
  position:absolute; left:0; right:0; bottom:0; padding:14px;
  background:linear-gradient(0deg,rgba(10,15,10,.85),transparent);
  color:#fff; font-size:12.5px; opacity:0; transition:opacity .25s ease;
}
.gallery-item:hover .gallery-caption{ opacity:1; }
.gallery-tag{
  position:absolute; top:10px; left:10px; font-family:var(--font-mono);
  font-size:10px; letter-spacing:.06em; text-transform:uppercase;
  background:rgba(15,78,35,.85); color:#fff; padding:4px 9px; border-radius:999px;
}
.gallery-empty{
  grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--muted);
  border:1px dashed var(--line); border-radius:var(--radius-md); font-size:14px;
}

@media (max-width:860px){ .gallery-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); gap:8px; } }

/* ---------- engineering section (quieter, comes after youth) ---------- */
.eng-band{ background:var(--forest-deep); color:#fff; }
.eng-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.eng-card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-md); padding:20px;
}
.eng-card .num{ font-family:var(--font-mono); font-size:11px; color:var(--lime); letter-spacing:.08em; }
.eng-card h3{ font-size:15.5px; margin:8px 0 6px; }
.eng-card p{ font-size:13.5px; color:rgba(255,255,255,.68); }
@media (max-width:860px){ .eng-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .eng-grid{ grid-template-columns:1fr; } }

/* values / mission tiles */
.value-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.value-tile{ text-align:center; padding:20px 12px; }
.value-tile .dot{ width:38px; height:38px; border-radius:50%; margin:0 auto 12px; }
.value-tile h4{ font-size:14px; margin-bottom:6px; }
.value-tile p{ font-size:12.5px; color:var(--muted); }
@media (max-width:860px){ .value-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .value-grid{ grid-template-columns:1fr 1fr; } }

/* CTA band */
.cta-band{
  background:linear-gradient(120deg,var(--forest) 0%, #14622d 100%);
  color:#fff; border-radius:var(--radius-lg); padding:48px; text-align:center;
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:clamp(24px,3.2vw,32px); margin-bottom:12px; }
.cta-band p{ color:rgba(255,255,255,.82); max-width:56ch; margin:0 auto 24px; }
.cta-band .actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* footer */
.site-footer{ background:var(--forest-deep); color:rgba(255,255,255,.75); padding:56px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:36px; }
.footer-brand img{ height:40px; margin-bottom:14px; }
.footer-brand p{ font-size:13.5px; line-height:1.6; max-width:34ch; }
.footer-col h5{ color:#fff; font-size:13px; letter-spacing:.04em; margin-bottom:14px; text-transform:uppercase; font-family:var(--font-mono); }
.footer-col a, .footer-col li{ display:block; font-size:13.5px; margin-bottom:9px; color:rgba(255,255,255,.72); }
.footer-col a:hover{ color:var(--lime); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.14); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12.5px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } .footer-bottom{ flex-direction:column; } }

/* page hero (inner pages) */
.page-hero{
  background:linear-gradient(160deg,var(--forest-deep),var(--forest));
  color:#fff; padding:56px 0 48px;
}
.page-hero h1{ font-size:clamp(28px,4vw,42px); margin:12px 0 10px; }
.page-hero p{ color:rgba(255,255,255,.78); max-width:60ch; }
.breadcrumb{ font-family:var(--font-mono); font-size:11.5px; color:rgba(255,255,255,.55); margin-bottom:14px; }
.breadcrumb a{ color:rgba(255,255,255,.8); }

/* filter bar for gallery page */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.filter-btn{
  padding:9px 16px; border-radius:999px; border:1px solid var(--line); background:#fff;
  font-size:13px; font-weight:500; cursor:pointer;
}
.filter-btn.is-active{ background:var(--forest); color:#fff; border-color:var(--forest); }

/* utility */
.text-center{ text-align:center; }
.mt-40{ margin-top:40px; }
