/* ==========================================================================
   All American Pro Electric, LLC — Design System
   Patriotic + electric: deep navy, electric yellow, flag red/white.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy-900: #081026;
  --navy-800: #0b1733;
  --navy-700: #112048;
  --navy-600: #1a2c63;
  --brand:    #20008f;   /* legacy brand indigo */
  --brand-600:#2a14ad;
  --electric: #ffd21a;   /* electric yellow accent */
  --electric-600: #f5b800;
  --red:      #d12331;
  --red-600:  #b21b28;

  /* Neutrals */
  --ink:    #0d1330;
  --slate:  #5a6483;
  --slate-2:#7e88a3;
  --line:   #e6e9f3;
  --bg:     #ffffff;
  --bg-alt: #f4f6fc;
  --white:  #ffffff;

  /* Typography */
  --f-display: "Oswald", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(13, 19, 48, .06);
  --shadow:    0 12px 34px rgba(13, 19, 48, .12);
  --shadow-lg: 0 26px 60px rgba(8, 16, 38, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--slate); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #43507a; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-800); color: #dfe5f5; }
.section--navy p { color: #aeb9da; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; font-size: .82rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--electric); border-radius: 3px; }
.section--navy .eyebrow { color: var(--electric); }
.section-head { max-width: 660px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: .6rem 0 .7rem; }

/* Patriotic stripe */
.stripe { height: 5px; width: 100%; background:
  linear-gradient(90deg, var(--red) 0 33.3%, #ffffff 33.3% 66.6%, var(--brand) 66.6% 100%); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--electric); --fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; font-size: .98rem;
  padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 184, 0, .35); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--electric); --fg: var(--navy-900); }
.btn--brand { --bg: var(--brand); --fg: #fff; }
.btn--brand:hover { box-shadow: 0 10px 24px rgba(32, 0, 143, .4); }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--red:hover { box-shadow: 0 10px 24px rgba(209, 35, 49, .4); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn--outline { --bg: transparent; --fg: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; box-shadow: none; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  /* NOTE: no backdrop-filter/filter/transform here — they create a containing
     block that would trap the fixed mobile nav drawer inside the header. */
  background: rgba(8, 16, 38, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.topbar {
  background: var(--navy-900); color: #c9d3f0;
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .42rem 0; }
.topbar a { color: #c9d3f0; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; white-space: nowrap; }
.topbar a:hover { color: var(--electric); }
.topbar-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; opacity: .85; }
.topbar-hours { opacity: .8; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.brand-text { font-family: var(--f-display); color: #fff; line-height: 1; }
.brand-text b { display: block; font-size: 1.18rem; letter-spacing: .5px; text-transform: uppercase; }
.brand-text span { font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--electric); }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  color: #d8def2; font-family: var(--f-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .8px; font-size: .95rem;
  padding: .55rem .85rem; border-radius: 8px; position: relative; transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.is-active { color: var(--electric); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px; background: var(--electric); border-radius: 2px;
}
/* The CTA button inside the nav must keep its own button colors/shape —
   .nav-links a (light text) otherwise wins on specificity and makes the
   yellow button nearly unreadable. */
.nav-links a.btn { color: var(--fg); border-radius: 999px; padding: .6rem 1.3rem; }
.nav-links a.btn:hover { color: var(--fg); background: var(--bg); }
.nav-links a.btn--primary:hover { color: var(--navy-900); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }

/* Language switch */
.lang {
  display: inline-flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.lang button {
  background: transparent; color: #c9d3f0; border: 0; border-radius: 999px;
  padding: .25rem .6rem; font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: 1px;
  transition: background .2s, color .2s;
}
.lang button.is-active { background: var(--electric); color: var(--navy-900); }

/* Hamburger */
.hamburger { display: none; background: transparent; border: 0; width: 44px; height: 44px; position: relative; }
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2.5px; background: #fff; border-radius: 3px; transition: transform .25s var(--ease), opacity .2s;
}
.hamburger span { top: 21px; }
.hamburger span::before { top: -7px; } .hamburger span::after { top: 7px; }
body.nav-open .hamburger span { background: transparent; }
body.nav-open .hamburger span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--brand) 130%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; object-fit: cover; width: 100%; height: 100%;
  opacity: .22; mix-blend-mode: luminosity;
}
.hero-inner { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); max-width: 760px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: .35rem .8rem; border-radius: 999px; color: #eaf0ff;
}
.pill svg { width: 14px; height: 14px; color: var(--electric); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .hl { color: var(--electric); }
.hero p { color: #cdd6f2; font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-family: var(--f-display); font-size: 1.7rem; color: #fff; line-height: 1; }
.hero-trust span { font-size: .8rem; color: #aab6db; text-transform: uppercase; letter-spacing: 1px; margin-top: .3rem; }

/* ==========================================================================
   Clients strip
   ========================================================================== */
.clients { background: var(--white); border-bottom: 1px solid var(--line); }
.clients .container { padding: 2.2rem 0; }
.clients p { text-align: center; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; color: var(--slate-2); margin-bottom: 1.4rem; }
.client-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 5vw, 3.4rem); }
.client-logos img { height: clamp(26px, 4vw, 38px); width: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s, transform .3s; }
.client-logos img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.06); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d4d9ec; }
.card .ico {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: var(--electric); margin-bottom: 1.1rem;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; color: var(--ink); }
.card p { font-size: .96rem; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--brand); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .5px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* Feature row */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature.rev .feature-media { order: -1; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.feature h2 { margin: .5rem 0 1rem; }
.check { display: grid; gap: .7rem; margin: 1.4rem 0; }
.check li { display: flex; gap: .7rem; align-items: flex-start; color: #36406a; font-weight: 500; }
.check svg { width: 22px; height: 22px; color: #1ca06a; flex: none; margin-top: 2px; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stats .stat { padding: 1.4rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.stats b { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--electric); display: block; line-height: 1; }
.stats span { font-size: .9rem; color: #b9c3e4; margin-top: .5rem; display: block; }

/* ==========================================================================
   Services page list
   ========================================================================== */
.svc-cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-bottom: 3rem; }
.svc-cat .card { text-align: center; }
.svc-cat .card .ico { margin-inline: auto; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.svc-item { display: flex; gap: 1rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.svc-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.svc-item .ico { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg-alt); color: var(--brand); }
.svc-item .ico svg { width: 24px; height: 24px; }
.svc-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.svc-item p { font-size: .92rem; }

/* ==========================================================================
   Team
   ========================================================================== */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; transition: transform .25s var(--ease), box-shadow .25s; }
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member .avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--navy-600)); border: 3px solid var(--electric);
}
.member h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.member span { font-size: .85rem; color: var(--brand); font-weight: 600; }

/* ==========================================================================
   Careers
   ========================================================================== */
.jobs { display: grid; gap: 1rem; }
.job {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1.2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; transition: box-shadow .2s, transform .2s;
}
.job:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.job h3 { font-size: 1.2rem; }
.job .meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .3rem; font-size: .88rem; color: var(--slate); }
.job .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.job .pay { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.job .pay small { display: block; font-size: .72rem; color: var(--slate-2); font-weight: 400; letter-spacing: .5px; }
.openings { display: inline-block; background: var(--bg-alt); color: var(--brand); font-weight: 700; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info .ci { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-info .ci:last-child { border-bottom: 0; }
.contact-info .ci .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--electric); }
.contact-info .ci .ico svg { width: 22px; height: 22px; }
.contact-info .ci h4 { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .5px; font-size: .9rem; color: var(--slate-2); margin-bottom: .15rem; }
.contact-info .ci a, .contact-info .ci p { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.contact-info .ci a:hover { color: var(--brand); }

form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: #36406a; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fbfcff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(32,0,143,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .85rem; color: var(--slate-2); margin-top: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-success { text-align: center; padding: 1.6rem .5rem; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 1rem; }
.form-success h2 { margin-bottom: .4rem; }
.form-error { color: var(--red); font-weight: 600; margin-top: .9rem; text-align: center; }

.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); margin-top: 1.5rem; box-shadow: var(--shadow-sm); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand) 0%, var(--navy-700) 70%); color: #fff; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,210,26,.25), transparent 70%); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 620px; }
.cta-band p { color: #d9e0fb; margin-top: .5rem; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0); background-size: 22px 22px; }
.page-hero .container { padding: clamp(2.8rem, 7vw, 4.6rem) 0; }
.breadcrumb { font-size: .85rem; color: #aab6db; margin-bottom: .7rem; display: flex; gap: .5rem; align-items: center; }
.breadcrumb a:hover { color: var(--electric); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: #cdd6f2; max-width: 620px; margin-top: .8rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #aab4d6; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h4 { font-family: var(--f-display); color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #aab4d6; transition: color .2s; }
.site-footer a:hover { color: var(--electric); }
.footer-grid ul { display: grid; gap: .6rem; font-size: .95rem; }
.footer-about img { height: 64px; margin-bottom: 1rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.footer-about p { font-size: .92rem; color: #98a3c8; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--electric); flex: none; margin-top: 4px; }
.socials { display: flex; gap: .7rem; margin-top: 1.1rem; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--brand); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #7e89b0; }
.footer-bottom a { color: #aab4d6; }
.footer-credit { text-align: center; padding: 1rem 0 1.4rem; font-size: .85rem; color: #6b76a0; }
.footer-credit a { color: var(--electric); font-weight: 700; letter-spacing: .3px; transition: opacity .2s; }
.footer-credit a:hover { text-decoration: underline; opacity: .85; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Gated on .js (added by app.js): if JS fails on a flaky mobile connection,
   content stays fully visible instead of being stuck at opacity 0. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar-left { gap: .9rem; }
  .topbar-hours { display: none; }
  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--navy-800); padding: 6rem 1.4rem 2rem; z-index: 55;
    transform: translateX(105%); transition: transform .32s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  body.nav-open .nav-links { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(4,8,20,.55); z-index: 50; }
  .nav-links a { font-size: 1.1rem; padding: .8rem 1rem; }
  .nav-links a.is-active::after { display: none; }
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature.rev .feature-media { order: 0; }
  .grid-3, .grid-2, .svc-cat, .svc-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; gap: .8rem; }
  .job .pay { font-size: 1.1rem; }
  .cta-band .container { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 600px) {
  .topbar .topbar-area { display: none; }
  .topbar .container { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .grid-4, .team, .stats, .footer-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .brand-text b { font-size: 1rem; }
  .brand img { height: 44px; }
  .hero-trust { gap: 1.1rem; }
  .hero-trust b { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Mobile quick-action bar (sticky Call / Estimate) — phones only
   ========================================================================== */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 16, 38, .98); border-top: 1px solid rgba(255,255,255,.12);
    /* hidden until the hero's own CTAs scroll out of view (JS adds .show) */
    transform: translateY(110%); transition: transform .3s var(--ease);
    pointer-events: none;
  }
  .mobile-cta.show { transform: translateY(0); pointer-events: auto; }
  .mcta {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    height: 50px; border-radius: 11px; text-decoration: none;
    font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; font-size: .98rem;
  }
  .mcta svg { width: 18px; height: 18px; }
  .mcta-call { background: var(--electric); color: var(--navy-900); }
  .mcta-call:active { background: var(--electric-600); }
  .mcta-quote { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); }
  body { padding-bottom: 72px; }
  body.nav-open .mobile-cta { transform: translateY(110%); pointer-events: none; }
}
