/* ==========================================================================
   County Communications — Design System
   ========================================================================== */

:root {
  --navy-950: #0a1628;
  --navy-900: #0d1f38;
  --navy-800: #122a4a;
  --navy-700: #1a3a63;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --amber-500: #f59e0b;

  --ink-900: #10192b;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-300: #9ca3af;

  --surface-0: #ffffff;
  --surface-50: #f7f9fc;
  --surface-100: #eef2f8;
  --border: #e3e8f0;

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

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06), 0 1px 3px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 22, 40, 0.16);

  --container: 1180px;
  --font-head: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--surface-0);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-950);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--ink-500); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--surface-50); }
.bg-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #dbe4f3; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lede { color: #aab9d6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber-500); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #ffb02e; }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-navy { background: var(--navy-950); color: #fff; }
.btn-navy:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-ghost { border-color: var(--border); color: var(--navy-950); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-950);
  color: #b9c6dd;
  font-size: 0.86rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #dfe7f5; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links span, .topbar-links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-links svg { width: 15px; height: 15px; flex: none; color: var(--teal-400); }
.topbar-cta { font-weight: 700; color: var(--teal-400) !important; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 22px; height: 22px; color: #fff; }
.brand-word { line-height: 1.05; }
.brand-word b { display: block; font-size: 1.28rem; font-weight: 800; color: var(--navy-950); }
.brand-word span { display: block; font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-500); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.94rem; color: var(--ink-700);
}
.nav-link svg, .btn svg, .topbar-cta svg { width: 15px; height: 15px; flex: none; }
.main-nav a.nav-link:hover, .main-nav li.active > a.nav-link { background: var(--surface-100); color: var(--navy-950); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .15s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--surface-50); }
.dropdown a b { font-size: 0.92rem; color: var(--navy-950); }
.dropdown a small { color: var(--ink-500); font-size: 0.78rem; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: #cfdaf0;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--teal-400); }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-art { position: relative; }
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 18px;
}
.hero-stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; }
.hero-stat span { font-size: 0.8rem; color: #a9b8d6; }
.hero-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,0.28), transparent 70%);
  top: -160px; right: -160px; pointer-events: none;
}

/* ---------- Trust strip ---------- */
.trust-strip { padding: 34px 0; border-bottom: 1px solid var(--border); }
.trust-strip-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.trust-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--ink-500); flex: none; }
.trust-logos { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.trust-logos span { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--ink-300); letter-spacing: -0.01em; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-5 > * { flex: 0 1 calc((100% - 56px) / 3); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3ddef; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--surface-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--blue-600); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); margin-bottom: 14px; font-size: 0.96rem; }
.card-link { font-weight: 700; font-size: 0.9rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Feature list ---------- */
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--teal-500); flex: none; margin-top: 2px; }
.check-list b { color: var(--navy-950); }
.bg-navy .check-list b { color: #ffffff; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--navy-950); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid b { display: block; font-family: var(--font-head); font-size: 2.4rem; color: #fff; }
.stats-grid span { color: #a9b8d6; font-size: 0.88rem; }

/* ---------- Pricing tiers ---------- */
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; background: #fff; position: relative; display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--blue-600); box-shadow: var(--shadow-md); }
.tier-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--amber-500); color: var(--navy-950);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: 999px;
}
.tier-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy-950); margin-bottom: 6px; }
.tier-desc { color: var(--ink-500); font-size: 0.9rem; margin-bottom: 20px; min-height: 42px; }
.tier ul { margin-bottom: 24px; flex: 1; }
.tier li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--surface-100); font-size: 0.92rem; }
.tier li:first-child { border-top: none; }
.tier li svg { width: 16px; height: 16px; color: var(--teal-500); flex: none; margin-top: 3px; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm); position: relative;
}
.quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--teal-400); line-height: 1; margin-bottom: 6px; }
.quote-card p { color: var(--ink-700); font-size: 1.02rem; }
.quote-attr { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; flex: none;
}
.quote-attr b { display: block; font-size: 0.92rem; color: var(--navy-950); }
.quote-attr span { font-size: 0.8rem; color: var(--ink-500); }

/* ---------- Blog cards ---------- */
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { height: 132px; background: linear-gradient(135deg, var(--navy-900), var(--blue-600)); display: flex; align-items: center; justify-content: center; }
.post-thumb svg { width: 40px; height: 40px; color: rgba(255,255,255,0.85); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-date { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-500); margin-bottom: 8px; }
.post-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.post-body p { color: var(--ink-500); font-size: 0.92rem; flex: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #aab9d6; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-detail { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.contact-detail:first-child { border-top: none; }
.contact-detail .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-100); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-detail .ic svg { width: 20px; height: 20px; color: var(--blue-600); }
.contact-detail b { display: block; color: var(--navy-950); }
.contact-detail a, .contact-detail span { color: var(--ink-500); font-size: 0.95rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy-950); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--surface-50);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; background: #fff; }
.form-note { font-size: 0.8rem; color: var(--ink-500); margin-top: 12px; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.is-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-status.is-sending { background: var(--surface-100); color: var(--ink-500); border: 1px solid var(--border); }
.btn[disabled] { opacity: .65; cursor: not-allowed; transform: none !important; }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 58px 0 64px; }
.breadcrumb { font-size: 0.85rem; color: #a9b8d6; margin-bottom: 14px; }
.breadcrumb a { color: #dfe7f5; font-weight: 600; }
.breadcrumb span { opacity: .6; margin: 0 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b8d6; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: #8ea0c4; font-size: 0.92rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--teal-500); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-detail { border: none; padding: 0 0 16px; }
.footer-col .contact-detail .ic { background: rgba(255,255,255,0.08); }
.footer-col .contact-detail .ic svg { color: var(--teal-400); }
.footer-col .contact-detail b { color: #fff; }
.footer-col .contact-detail a, .footer-col .contact-detail span { color: #a9b8d6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 0.82rem; color: #7c8fb5; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #a9b8d6; }
.back-to-top { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.back-to-top svg { width: 16px; height: 16px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.tag { display: inline-block; background: var(--surface-100); color: var(--navy-950); font-size: 0.76rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > * { flex-basis: calc((100% - 28px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .topbar-links span:not(:first-child) { display: none; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(320px, 84vw); height: 100vh; background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 110; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 10px; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 > * { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 36px 26px; }
  .cta-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
}

.nav-scrim { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10,22,40,0.4); z-index: 95; }
.nav-scrim.open { display: block; }

/* Yeastar P-Series section */
.yeastar-banner { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.yeastar-banner img { display: block; width: 100%; height: auto; }
.yeastar-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* Van logo (replaces the old brand mark) */
.brand-van { height: 48px; width: auto; flex: none; display: block; }
@media (max-width: 760px) { .brand-van { height: 40px; } }

/* Drive-by van: plays once per visit, see js/main.js */
.van-driveby {
  position: fixed; left: 0; bottom: 18px; z-index: 9999;
  width: clamp(240px, 34vw, 480px);
  pointer-events: none;
  transform: translateX(100vw);
  animation: van-drive 3.6s cubic-bezier(.45, .05, .55, .95) forwards;
}
.van-driveby::after {                      /* soft shadow on the "road" */
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -3%;
  height: 8%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 22, 40, .35), rgba(10, 22, 40, 0) 70%);
  z-index: -1;
}
.van-driveby .van-body { display: block; width: 100%; height: auto; animation: van-bob .32s ease-in-out infinite alternate; }
.van-driveby .van-wheel {
  position: absolute; aspect-ratio: 1; height: auto;
  animation: van-wheel .45s linear infinite;
}
.van-driveby .van-wheel.front { left: 6.19%; top: 69.97%; width: 9.3%; }
.van-driveby .van-wheel.rear  { left: 72.26%; top: 73.86%; width: 9.51%; }
@keyframes van-drive {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-110%); }
}
@keyframes van-wheel { to { transform: rotate(-360deg); } }  /* van faces left, so wheels turn anticlockwise */
@keyframes van-bob { to { transform: translateY(-1.5px); } }
@media (prefers-reduced-motion: reduce) { .van-driveby { display: none; } }
/* Keep the header on one line now the logo is wider */
.main-nav a.nav-link { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .site-header .brand-word, header .brand-word { display: none; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .nav-cta a[href^="tel:"] { display: none; }   /* number is still in the top bar */
  .main-nav a.nav-link { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 760px) {
  /* Closed mobile menu: hide it properly so it can't cause sideways scrolling
     or be tabbed into. The delay keeps the slide-out animation visible. */
  .main-nav { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .main-nav.open { visibility: visible; transition: transform .25s ease, visibility 0s; }
}
@media (max-width: 760px) { html { overflow-x: hidden; } }
