/* ==========================================================================
   Maps Accelerator - shared styles
   Mobile-first. Plain CSS, no build step.
   ========================================================================== */

/* Self-hosted Space Grotesk (weights 400, 700), subset to Latin.
   If the files in /assets/fonts/ are absent, the font stack falls back to a
   clean system sans-serif automatically. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0F2A4A;
  --orange: #D9480F;
  --orange-dark: #B93C0C; /* AA-safe text and button background with white */
  --orange-bright: #E8501C; /* brand mark only, never small text on light */
  --white: #FFFFFF;
  --grey: #F5F7FA;
  --grey-border: #E2E8F0;
  --text: #1C2B3A;
  --muted: #4A5A6A;
  --error: #B3261E;

  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06);
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.1);
  --shadow-lg: 0 18px 50px rgba(15, 42, 74, 0.16);

  --wrap: 1120px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1rem;
}

a {
  /* #B93C0C on white is 5.65:1; the brighter accent is for decoration only. */
  color: var(--orange-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #8f2f09;
}

img,
svg {
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 56px 0;
}

.section--grey {
  background: var(--grey);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__head {
  max-width: 720px;
  margin-bottom: 32px;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 800px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--orange-dark);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #8f2f09;
  color: var(--white);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.btn--block {
  width: 100%;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--grey-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  flex: 0 0 auto;
}

.logo svg {
  height: 40px;
  width: auto;
  display: block;
}

.logo__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}

.logo__wordmark span:first-child {
  color: var(--navy);
}

.logo__wordmark span:last-child {
  color: var(--orange);
}

.site-header .btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, var(--grey) 0%, var(--white) 100%);
}

.hero__inner {
  display: grid;
  gap: 28px;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 620px;
}

.hero__form-card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: 90px;
}

.hero__fineprint {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.hero__booking {
  margin: 6px 0 0;
  font-size: 0.9375rem;
}

/* ---------- Form ---------- */

.form-title {
  font-size: 1.375rem;
  margin-bottom: 4px;
}

.form-intro {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.field {
  margin-bottom: 18px;
}

.field > label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--grey-border);
  border-radius: var(--radius-sm);
  appearance: none;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus {
  border-color: var(--navy);
  outline: none;
}

.field input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}

.field.has-error input {
  border-color: var(--error);
  background: #FFF8F7;
}

.field__error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--error);
}

.field__error:not([hidden]) {
  display: block;
}

/* Consent checkbox */

.consent {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--grey-border);
  border-radius: var(--radius-sm);
  background: var(--grey);
  margin-bottom: 20px;
  cursor: pointer;
}

.consent.has-error {
  border-color: var(--error);
  background: #FFF8F7;
}

.consent input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--orange-dark);
  cursor: pointer;
}

.consent__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

.consent__text a {
  color: var(--navy);
  font-weight: 700;
}

.consent .field__error {
  grid-column: 1 / -1;
  margin: 0;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status--error {
  color: var(--error);
}

/* Honeypot: in the DOM for bots, hidden from people and assistive tech */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ---------- Problem cards ---------- */

.card-grid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Solution cards ---------- */

.card--navy {
  background: var(--navy);
  border-color: var(--navy);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.card--navy h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.card--navy p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.section-note {
  margin: 28px 0 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.0625rem;
}

.section--navy .section-note {
  color: var(--white);
}

/* ---------- Audit list ---------- */

.ticks {
  display: grid;
  gap: 14px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.0625rem;
}

.ticks svg {
  flex: 0 0 auto;
  margin-top: 4px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */

.cta {
  text-align: center;
}

.cta h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

.cta .btn {
  min-height: 56px;
  padding: 16px 30px;
  font-size: 1.0625rem;
}

/* ---------- Thank-you page ---------- */

.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--grey) 0%, var(--white) 100%);
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .wrap {
  max-width: 760px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.125rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Privacy / prose ---------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 36px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  overflow-wrap: anywhere;
}

.meta-line {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-border);
  padding: 36px 0 28px;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__brand p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 340px;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: var(--muted);
}

.site-footer__meta a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-footer__meta a:hover {
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--grey-border);
  color: var(--navy);
}

.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ticks {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }

  .hero__form-card {
    padding: 28px;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 48px;
  }

  .card-grid--problems,
  .card-grid--solution {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .step {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .site-footer {
    display: none !important;
  }
}