/* Simple, clean stylesheet for AAFL static site — updated for hero + feature pills + hamburger */
/* ---------- Theme ---------- */
:root{
  --bg:#f8fafc;
  --ink:#0f172a;
  --brand:#0ea5e9;
  --muted:#64748b;
  --card:#ffffff;
  --line:#e5e7eb;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.container{max-width:1100px;margin:0 auto;padding:clamp(16px,3vw,32px)}

/* ---------- Header / Nav ---------- */
.nav{
  position:sticky; top:0; z-index:1000;
  background:#ffffffcc; backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{position:relative; display:flex; align-items:center; gap:20px; justify-content:space-between;}
.brand{display:flex;align-items:center;gap:12px;font-weight:700}
.brand .tag{font-size:12px;color:#64748b}
/* bump logo so it’s not “tiny” on iOS Safari */
.brand img{height:36px;width:auto;display:block}

.menu{display:flex;gap:14px;flex-wrap:wrap}
.menu a{padding:8px 12px;border-radius:10px;color:var(--ink)}
.menu a.active, .menu a:hover{background:#f1f5f9}

/* Mobile hamburger button (ensure 3 bars show, not overlapped) */
.nav-toggle{
  display:none;                 /* shown at <=900px */
  background:transparent;border:0;padding:0;margin-left:auto;cursor:pointer;
  width:44px;height:44px;
  display:none;                 /* default hidden on desktop */
  align-items:center;justify-content:center;
  flex-direction:column;gap:6px;/* space between bars */
}
.nav-toggle .nav-bar,
.nav-toggle .bar{
  display:block;width:24px;height:2px;background:#0f172a;
  margin:0;                     /* avoid double-spacing with gap */
  border-radius:2px;
  transition:transform .2s ease,opacity .2s ease;
}

/* Prevent background scroll when mobile menu is open */
body.nav-open{overflow:hidden}

/* Shorten long brand text on phones */
@media (max-width:720px){
  .brand span:not(.tag){display:none}
}

/* ---------- Hero (full-bleed, never tiny) ---------- */
.hero{
  position:relative; overflow:hidden;
  min-height:clamp(260px, 42vh, 560px);
  border-bottom:1px solid var(--line);
  border-radius:16px; background:#fff;
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(0deg, rgba(10,15,25,.45), rgba(10,15,25,.45)), url('assets/hero-bg.jpg') center/cover no-repeat;
}
/* truck overlay image */
.hero-truck{
  position:absolute; right:-4%; bottom:-10px; width:min(700px,55vw); height:auto;
  opacity:.98; filter: drop-shadow(0 16px 32px rgba(0,0,0,.35)); pointer-events:none
}
.hero h1{font-size:clamp(28px,4vw,44px);margin:0 0 8px 0}
.hero .kicker{color:var(--brand);font-weight:600;letter-spacing:.02em}

/* ---------- Layout / Cards ---------- */
.grid{display:grid;gap:20px;grid-template-columns:repeat(12,1fr)}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px}
.card h3{margin-top:0}
.cols-3{grid-column:span 12}
@media(min-width:860px){.cols-3{grid-column:span 4}}
.footer{border-top:1px solid var(--line);color:#334155}
.btn{display:inline-block;padding:10px 14px;border-radius:12px;background:var(--brand);color:white;font-weight:600;border:0;cursor:pointer}
.btn:hover{filter:brightness(0.95)}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#e2e8f0;color:var(--ink);font-size:12px}
.lead{font-size:18px;color:#334155}
.list{padding-left:18px}
.small{font-size:14px;color:#64748b}
.section-title{font-size:24px;margin:6px 0 10px 0}

/* ---------- Partners ---------- */
.partners{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:center}
.partners img{max-width:100%;height:38px;object-fit:contain;filter:grayscale(0.1)}
@media(max-width:720px){.partners{grid-template-columns:repeat(2,1fr)} .partners img{height:34px}}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.gallery .tile{grid-column:span 12; overflow:hidden; border-radius:16px; border:1px solid var(--line); background:#fff}
.gallery .tile img{width:100%; height:260px; object-fit:cover; display:block}
@media(min-width:860px){ .gallery .tile{grid-column:span 6} .gallery .tile.tall img{height:360px} }

/* ---------- Feature “cells/pills” (fix wrapping + alignment) ---------- */
.icon-row{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
}
.icon{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid var(--line); border-radius:14px; padding:12px; background:#fff;
  white-space:normal; word-break:normal; overflow-wrap:anywhere;
}
.icon img{width:32px;height:32px;object-fit:contain;flex:0 0 auto}

/* ---------- Footer badge ---------- */
.badge-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}

/* ---------- Typewriter ---------- */
.typewriter{display:inline-block;border-right:2px solid rgba(15,23,42,.6);white-space:pre-wrap;overflow:hidden;animation: caret 750ms steps(1) infinite}
@keyframes caret {50%{border-color:transparent}}

/* Anchor offset */
h1, h2, h3, [id] { scroll-margin-top: 80px; }

/* ---------- Contact form ---------- */
.lbl { display: block; font-weight: 600; margin: 12px 0 6px; }
.input, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px;
  background: #fff; font: inherit; line-height: 1.4;
}
.input:focus, .textarea:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.25); }
.hp { position: absolute; left: -9999px; }  /* spam trap */

/* Alerts */
.alert { margin-top:12px; padding:10px 12px; border-radius:10px; display:inline-block; }
.alert.info { background:#eff6ff; color:#1e3a8a; border:1px solid #bfdbfe; }
.alert.success { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.alert.error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

/* ---------- Mobile menu reveal ---------- */
@media (max-width:900px){
  .nav-toggle{display:inline-flex} /* show hamburger on mobile */

  .menu{
    position:absolute;left:0;right:0;top:100%;
    background:#fff;border-bottom:1px solid var(--line);
    display:block;
    transform-origin:top;transform:scaleY(0);
    max-height:0;overflow:hidden;
    transition:transform .18s ease,max-height .18s ease;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    z-index:1001;
  }
  .menu a{display:block;padding:14px 20px;border-top:1px solid var(--line);font-size:18px}
  .nav.is-open .menu{transform:scaleY(1);max-height:80vh;overflow:auto}
}

/* hamburger → X (supports .nav-bar or .bar spans) */
.nav.is-open .nav-toggle{gap:0;}
.nav.is-open .nav-toggle .nav-bar:nth-child(1),
.nav.is-open .nav-toggle .bar:nth-child(1){transform:translateY(4px) rotate(45deg)}
.nav.is-open .nav-toggle .nav-bar:nth-child(2),
.nav.is-open .nav-toggle .bar:nth-child(2){opacity:0}
.nav.is-open .nav-toggle .nav-bar:nth-child(3),
.nav.is-open .nav-toggle .bar:nth-child(3){transform:translateY(-4px) rotate(-45deg)}

/* ensure anchor targets aren’t hidden under sticky bar */
[id]{scroll-margin-top:80px}

/* === Larger logos in header + footer === */
.brand img{height:48px;width:auto;display:block}
@media (max-width:720px){ .brand img{height:42px} }

.footer .footer-brand img{height:42px;width:auto}
@media (max-width:720px){ .footer .footer-brand img{height:38px} }

/* === Hero inline trucks photo === */
.hero-below-title{
  margin:16px 0 6px 0;
  border-radius:16px;
  width:100%;
  max-width:980px;
  height:clamp(180px, 34vh, 380px);
  object-fit:cover;
  box-shadow:0 14px 32px rgba(0,0,0,.18);
}
