/* ============================================================
   HESTER ASPHALT SEALCOATING — GLOBAL DESIGN SYSTEM
   Dark industrial / asphalt visual language
   ============================================================ */

:root {
  /* Surface */
  --ink: #0d0e10;
  --coal-900: #131518;
  --coal-800: #1a1d21;
  --coal-700: #22262b;
  --coal-600: #2d3239;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Brand */
  --orange: #f47921;
  --orange-bright: #ff8d3a;
  --orange-deep: #c95a0e;
  --stripe: #ffc933;

  /* Type */
  --paper: #f2f1ed;
  --mute: #a8aeb6;
  --dim: #6d747d;

  /* Fonts */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Rhythm */
  --shell: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 10vw, 130px);
  --cut: clamp(28px, 5vw, 70px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--orange); color: #14100b; }

body { scrollbar-color: var(--coal-600) var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.h-hero  { font-size: clamp(46px, 7.4vw, 96px); font-weight: 800; }
.h-sec   { font-size: clamp(34px, 4.6vw, 60px); }
.h-sub   { font-size: clamp(24px, 3vw, 34px); }

.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); max-width: 62ch; }

.accent { color: var(--orange); }
.accent-stripe { color: var(--stripe); }

/* Eyebrow kicker with road-stripe dash */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 38px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 10px, transparent 10px 16px);
}

/* ---------- Layout ---------- */
.shell { width: min(var(--shell), 100% - var(--pad) * 2); margin-inline: auto; }
.shell-wide { width: min(1380px, 100% - var(--pad) * 2); margin-inline: auto; }

.sec { padding-block: var(--sec); position: relative; }
.sec-coal { background: var(--coal-900); }
.sec-raised { background: var(--coal-800); }

/* Angular section transitions */
.cut-top    { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); padding-top: calc(var(--sec) + var(--cut)); }
.cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding-bottom: calc(var(--sec) + var(--cut)); }
.cut-both   { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-top: calc(var(--cut) * -1); padding-block: calc(var(--sec) + var(--cut)); }

/* Asphalt grain overlay — apply to dark sections */
.grain { position: relative; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/graphics/asphaltTexture.svg");
  background-size: 480px;
  opacity: 0.5;
  pointer-events: none;
}
.grain > * { position: relative; }

/* Yellow road-stripe horizontal rule */
.stripe-rule {
  height: 5px;
  border: 0;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 44px, transparent 44px 78px);
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-solid { background: var(--orange); color: #160e05; }
.btn-solid:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(244, 121, 33, 0.55); }

.btn-line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange-bright); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn-lg { font-size: 20px; padding: 19px 38px; }
.btn-sm { font-size: 15px; padding: 11px 20px; }

/* Text arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { gap: 14px; color: var(--orange-bright); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.35s, box-shadow 0.35s, transform 0.35s;
}
.site-header.is-solid {
  background: rgba(13, 14, 16, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
/* Prevent the header's transform from becoming the containing block for the
   fixed nav-drawer (would clip it to the header's box after scrolling down) */
.site-header:has(.nav-drawer.is-open) { transform: none; }

.nav-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

/* Group nav links, phone icon and CTA together and push them to the right,
   leaving the logo on the left with room to breathe in between */
.nav-bar > nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-name span { color: var(--orange); }
.brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  display: block;
  padding: 10px 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a.nav-item:hover, .nav-links a.nav-item.is-active { color: var(--orange-bright); }

/* Services dropdown */
.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 250px;
  background: var(--coal-800);
  border: 1px solid var(--line);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-panel a {
  display: block;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--mute);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-drop-panel a:hover { color: var(--paper); border-color: var(--orange); background: rgba(255, 255, 255, 0.04); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Phone removed from desktop nav (sticky call CTA and contact page cover it) */
.nav-phone { display: none; }

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 48px;
  height: 48px;
  margin-left: auto;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-burger span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--paper);
  margin: 6px auto;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  background: rgba(13, 14, 16, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px var(--pad) 110px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  overflow-y: auto;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
.nav-drawer a.drawer-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.5vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 0;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s, color 0.2s;
}
.nav-drawer.is-open a.drawer-link { transform: translateY(0); opacity: 1; }
.nav-drawer a.drawer-link:hover { color: var(--orange-bright); }
.nav-drawer .drawer-sub { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); margin: 26px 0 6px; }
.nav-drawer .drawer-services a {
  display: inline-block;
  font-size: 15px;
  color: var(--mute);
  padding: 5px 12px 5px 0;
}
.nav-drawer .drawer-services a:hover { color: var(--orange-bright); }

/* Mobile sticky action bar */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 80;
  display: none;
  grid-template-columns: 1fr 1.4fr;
  background: rgba(19, 21, 24, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.action-bar .btn { font-size: 16px; padding: 14px 10px; width: 100%; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(150px, 22vh, 220px) 0 var(--sec);
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.55), var(--ink) 88%),
    var(--coal-800);
  overflow: hidden;
}
.page-hero .hero-art {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}
.page-hero .shell { position: relative; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}
.crumbs a { color: var(--mute); transition: color 0.2s; }
.crumbs a:hover { color: var(--orange-bright); }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--coal-600); }

/* ---------- Cards & panels ---------- */
.panel {
  background: var(--coal-800);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}
.panel:hover { transform: translateY(-5px); border-color: rgba(244, 121, 33, 0.4); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8); }

.notch { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }

/* Stat counters */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
}
.stat-num .unit { color: var(--orange); }
.stat-label { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-top: 8px; }

/* Checklist */
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--mute);
}
.check-list li svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--orange); }
.check-list li strong { color: var(--paper); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.field label em { color: var(--orange); font-style: normal; }
.field input, .field select, .field textarea {
  background: var(--coal-900);
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  color: var(--paper);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  width: 100%;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 121, 33, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--dim); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e0452f; }
.field .error-msg { display: none; font-size: 13px; color: #ff7a66; }
.field.has-error .error-msg { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-2 { grid-column: span 2; }

/* Radio / choice chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-group label { cursor: pointer; }
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  background: var(--coal-900);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mute);
  transition: all 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.chip-group input:checked + .chip { background: var(--orange); border-color: var(--orange); color: #160e05; font-weight: 600; }
.chip-group .chip:hover { border-color: var(--orange); color: var(--paper); }
.chip-group input:checked + .chip:hover { color: #160e05; }

/* Form status banners */
.form-note { display: none; padding: 16px 18px; font-size: 15px; border-left: 3px solid; margin-top: 18px; }
.form-note.is-on { display: block; }
.form-note.ok { background: rgba(64, 168, 95, 0.12); border-color: #40a85f; color: #9fe0b4; }
.form-note.err { background: rgba(224, 69, 47, 0.1); border-color: #e0452f; color: #ffb3a6; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--rd, 0s);
}
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"]  { transform: scale(0.94); }
[data-reveal].is-in   { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}

/* ---------- Marquee (service-area towns) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--coal-900); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--orange); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(80px, 11vw, 140px);
  background:
    linear-gradient(180deg, rgba(13, 14, 16, 0.78), rgba(13, 14, 16, 0.88)),
    url("../images/graphics/bandCrew.jpg") center / cover no-repeat;
}
.cta-band .h-sec { margin-bottom: 14px; }
.cta-band p { color: var(--mute); max-width: 56ch; margin: 0 auto 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coal-900); border-top: 1px solid var(--line); position: relative; }
.footer-stripe { height: 6px; background: repeating-linear-gradient(90deg, var(--stripe) 0 50px, transparent 50px 88px); opacity: 0.75; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  padding-block: clamp(54px, 7vw, 84px);
}
.footer-brand p { color: var(--mute); font-size: 14.5px; margin: 16px 0 22px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer-col ul li { padding: 5px 0; }
.footer-col a { color: var(--mute); font-size: 14.5px; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--orange-bright); padding-left: 4px; }

.footer-contact li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; color: var(--mute); font-size: 14.5px; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--orange); }
.footer-contact a:hover { color: var(--orange-bright); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}
.footer-bottom a { color: var(--mute); }
.footer-bottom a:hover { color: var(--orange-bright); }

.dev-credit { display: inline-flex; width: fit-content; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-decoration: none; opacity: 0.65; transition: opacity 0.2s; }
.dev-credit img { height: 120px; width: auto; flex-shrink: 0; }
.dev-credit:hover { opacity: 1; }

/* ---------- Post cards (Home, Blog, related sections) ---------- */
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.post-card { display: flex; flex-direction: column; }
.post-card figure { aspect-ratio: 1200 / 630; overflow: hidden; }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover figure img { transform: scale(1.05); }
.post-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
}
.post-body h3 { font-size: 22px; line-height: 1.15; }
.post-body p { font-size: 14.5px; color: var(--mute); }
.post-date { font-size: 12.5px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Before / After slider (Home + Projects) ---------- */
.ba-slider {
  position: relative;
  aspect-ratio: 9 / 5.5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  user-select: none;
  touch-action: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 30px) 100%, 0 100%);
}
.ba-img, .ba-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-top {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
}
.ba-top img { width: auto; min-width: 100%; height: 100%; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  cursor: pointer;
  z-index: 3;
  translate: -2px 0;
}
.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}
.ba-grip svg { width: 22px; height: 22px; color: #160e05; }
.ba-tag {
  position: absolute;
  bottom: 38px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 14px;
  background: rgba(13, 14, 16, 0.72);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.ba-tag-l { left: 22px; color: var(--mute); }
.ba-tag-r { right: 30px; color: var(--stripe); }

@media (max-width: 600px) {
  .ba-slider { aspect-ratio: 4 / 3; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.mt-1 { margin-top: 14px; } .mt-2 { margin-top: 28px; } .mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 14px; } .mb-2 { margin-bottom: 28px; } .mb-3 { margin-bottom: 48px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Icon sizing default */
.ic { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a.nav-item { padding-inline: 7px; }
  .nav-cta .btn { padding-inline: 22px; }
}

@media (max-width: 1024px) {
  .nav-bar { justify-content: space-between; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 74px; } /* room for action bar */
  .action-bar.is-visible { display: grid; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { width: 100%; }
}

@media (max-width: 520px) {
  /* keep condensed display lines inside narrow viewports */
  .h-hero { font-size: clamp(32px, 10vw, 44px); }
  .h-sec { font-size: clamp(28px, 8vw, 38px); }
  /* tighten eyebrow kicker so long text fits on one line */
  .kicker { font-size: 12px; letter-spacing: 0.16em; gap: 10px; }
  .kicker::before { width: 26px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* stack dev credit so "Developed by:" sits above the logo on mobile */
  .dev-credit { flex-direction: column; align-items: flex-start; gap: 6px; }
}
