/* ============================================================================
 * Alluvit Media — Billboard Advertising PPC Landing Page
 * Neutral, professional B2B styling. System font stack (no web-font blocking).
 * One primary CTA color. Restrained. Built for fast LCP and low CLS.
 * ========================================================================== */

:root {
  --ink: #0f1b2d;
  --body: #33404f;
  --muted: #63707e;
  --line: #e3e8ee;
  --line-strong: #cbd4de;
  --bg: #ffffff;
  --wash: #f4f7fb;
  --wash-2: #eef3f9;
  /* Single high-contrast primary CTA color used consistently across the page. */
  --cta: #1652d6;
  --cta-hover: #0f3fac;
  --cta-ink: #ffffff;
  --accent: #0b2a5b;
  --ok: #157347;
  --ok-bg: #e6f4ec;
  --err: #b42318;
  --err-bg: #fdecea;
  --focus: #1652d6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
  --shadow-lg: 0 12px 40px rgba(15, 27, 45, .16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* The [hidden] attribute must always win, even over display:inline-flex on .btn
   etc. — this is what actually hides the wizard's Prev/Submit between steps. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h2 { font-size: clamp(23px, 2.6vw, 30px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--cta); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section.tight { padding: 40px 0; }
.section.wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lead-in { color: var(--muted); max-width: 62ch; margin: 8px 0 28px; font-size: 18px; }
.section.center .lead-in { margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--cta); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: 12.5px; margin: 0 0 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* --- Buttons (one primary style) --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--wash); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 14px 26px; }

/* Visible keyboard focus everywhere. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.1) blur(6px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.brand .brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 800; }
.brand-logo { height: 32px; width: auto; display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone .ico { color: var(--cta); }
.header-phone:hover { color: var(--cta); }

/* --- Hero --------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--wash-2), #fff 78%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; padding: 52px 20px 48px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-copy .supporting { font-size: 18px; color: var(--body); max-width: 54ch; margin-bottom: 22px; }
.value-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.value-points li { position: relative; padding-left: 30px; font-size: 16px; color: var(--ink); }
.value-points li svg { position: absolute; left: 0; top: 2px; color: var(--cta); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-ctas .callable { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 12px 8px; }
.hero-ctas .callable:hover { color: var(--cta); }
.trust-inline { margin-top: 20px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust-inline span { display: inline-flex; align-items: center; gap: 6px; }

/* --- Form card ---------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: relative; }
.form-card h2 { font-size: 21px; }
.form-card .form-sub { color: var(--muted); font-size: 14.5px; margin: 4px 0 16px; }
.progress { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.progress .track { flex: 1; height: 6px; background: var(--wash-2); border-radius: 999px; overflow: hidden; }
.progress .track > span { display: block; height: 100%; background: var(--cta); transition: width .25s ease; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink); margin-bottom: 5px; }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px avoids iOS zoom */
  padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); background: #fff; }
.field .error { display: none; color: var(--err); font-size: 13px; margin-top: 5px; }
.field .error.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Predictive market typeahead */
.typeahead { position: relative; }
.typeahead-list {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); max-height: 244px; overflow-y: auto;
}
.typeahead-opt { padding: 9px 11px; border-radius: 6px; font-size: 15px; color: var(--ink); cursor: pointer; }
.typeahead-opt:hover, .typeahead-opt.active { background: var(--brand-soft); }
.typeahead-opt strong { color: var(--brand-dark); font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--body); margin: 6px 0 14px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-expect { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.noscript-note { background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }

/* --- Multi-step wizard --- */
.error { display: none; color: var(--err); font-size: 13px; margin: 6px 0 0; }
.error.show { display: block; }
.wiz-reassure { background: var(--ok-bg); color: #15603f; border: 1px solid #bfe6d0; border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13.5px; line-height: 1.45; margin-bottom: 16px; }
.wiz-step { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.wiz-step[hidden] { display: none; }
.wiz-q { font-size: 20px; font-weight: 750; color: var(--ink); line-height: 1.22; margin: 0 0 6px; padding: 0; letter-spacing: -0.01em; }
.wiz-help { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.wiz-step > select, .wiz-step > input[type="date"], .wiz-step > textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.wiz-step > textarea { min-height: 120px; resize: vertical; }
.opt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.opt { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-size: 15.5px; color: var(--ink); background: #fff; }
.opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.opt input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--cta); }
.opt:has(input:checked) { border-color: var(--cta); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--cta); }
.wiz-progress { height: 6px; background: var(--wash-2); border-radius: 999px; overflow: hidden; margin: 20px 0 12px; }
.wiz-progress > span { display: block; height: 100%; background: var(--cta); border-radius: 999px; transition: width .25s ease; }
.wiz-nav { display: flex; align-items: center; gap: 10px; }
.wiz-nav .wiz-spacer { flex: 1; }
.wiz-nav .btn-primary { min-width: 132px; }
.wiz-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--body); margin: 4px 0 12px; cursor: pointer; }
.wiz-check input { width: 18px; height: 18px; accent-color: var(--cta); }
.consent-text { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Inline success state */
.form-success { display: none; text-align: center; padding: 8px 4px 4px; }
.form-success.show { display: block; }
.form-success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }

/* --- Credibility strip -------------------------------------------------- */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.cred h3 { font-size: 15.5px; margin-bottom: 5px; }
.cred p { margin: 0; font-size: 14px; color: var(--muted); }
.cred .cred-ico { color: var(--cta); margin-bottom: 8px; }

/* --- Process ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* --- Formats ------------------------------------------------------------ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fmt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fmt-ico { display: inline-flex; color: var(--cta); margin-bottom: 10px; }
.fmt h3 { margin-bottom: 8px; }
.fmt p { margin: 0; font-size: 15px; color: var(--body); }
.fmt ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }

/* --- Why us (two column list) ------------------------------------------ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }
.why-item { display: flex; gap: 12px; }
.why-item svg { color: var(--cta); flex-shrink: 0; margin-top: 3px; }
.why-item h3 { font-size: 16px; margin-bottom: 3px; }
.why-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* --- Market coverage ---------------------------------------------------- */
/* Coverage: copy and the density map sit side by side (stacks on mobile). */
.coverage-inner { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }
.coverage-content { text-align: left; max-width: 560px; }
.coverage-content .lead-in { margin: 10px 0 24px; color: var(--body); }
.coverage-map img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .coverage-inner { grid-template-columns: 1fr; gap: 24px; }
  .coverage-content { text-align: center; max-width: none; margin: 0 auto; }
  .coverage-content .lead-in { margin-left: auto; margin-right: auto; }
  .coverage-map { order: 2; max-width: 520px; margin: 0 auto; }
}
.market-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.market-cards .mkt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.market-search { max-width: 340px; margin: 4px 0 18px; }
.coverage-copy { max-width: 60ch; }
.coverage-copy ul { columns: 2; gap: 30px; color: var(--body); }

/* --- Campaign examples -------------------------------------------------- */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ex-media { aspect-ratio: 4 / 3; background: var(--wash-2); overflow: hidden; }
.ex-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-body { padding: 14px 16px 16px; }
.ex-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ex-tags .tag { font-size: 11.5px; font-weight: 650; color: var(--accent); background: var(--wash-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.ex-body p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .examples-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .examples-grid { grid-template-columns: 1fr; } }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 650; color: var(--ink); font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--muted); flex-shrink: 0; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 16px; color: var(--body); font-size: 15.5px; }

/* --- Closing ------------------------------------------------------------ */
.closing { background: var(--accent); color: #dbe6f5; }
.closing h2 { color: #fff; }
.closing .lead-in { color: #c3d4ea; }
.closing .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.closing .btn-secondary:hover { background: rgba(255,255,255,.1); }
.closing .callable { color: #fff; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: #0b1420; color: #93a1b1; padding: 30px 0 90px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.site-footer a { color: #c7d2de; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.placeholder-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 5px; padding: 1px 6px; vertical-align: middle; }

/* --- Mobile sticky action bar ------------------------------------------ */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 20px rgba(15,27,45,.10); }

/* --- Focus-mode lightbox: dim the page, center the form --- */
.lp-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(15, 27, 45, 0.6); }
.lp-modal-close { display: none; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; z-index: 3; align-items: center; justify-content: center; }
.lp-modal-close:hover { background: var(--wash); }
body.lp-focus { overflow: hidden; }
body.lp-focus .form-card {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 100; width: min(560px, 94vw); max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
body.lp-focus .lp-modal-close { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) {
  body.lp-focus .form-card { animation: lp-pop 0.16s ease-out; }
  @keyframes lp-pop { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}
.sticky-bar .btn { flex: 1; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .cred-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .why-grid { grid-template-columns: 1fr; }
  .header-phone .num { display: none; } /* icon-only call on small header */
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 42px 0; }
  .cred-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .coverage-copy ul { columns: 1; }
  .sticky-bar { display: flex; }
  .site-footer { padding-bottom: 96px; }
  /* Offset in-page anchors so the sticky header doesn't cover targets. */
}
:target { scroll-margin-top: 84px; }
[id] { scroll-margin-top: 84px; }
