/* ==========================================================================
   AC Comercial — design system
   --------------------------------------------------------------------------
   Color   orange #F18608, gold #F9B133, red #DC1017 (brand primaries) — grey
           #575756 (dark ground) and #F6F6F6 (light ground/negative space)
           complete the official 5-color palette. Deeper/lighter variants for
           hover, gradients and card surfaces are derived from these five via
           color-mix() rather than inventing new named colors.
   Type    Zilla Slab (headings, 700) + Inter (body/UI) + JetBrains Mono
           (phone numbers / coordinates — a nod to GPS trip-tracking).
   Layout  Alternating full-bleed dark/light bands; a dotted "route" divider
           between sections stands in for a hairline rule — every trip here
           is a tracked route, so the rule that separates sections is one.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Zilla+Slab:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap");

:root {
  /* This is a single fixed light design, not theme-aware — opt out of
     browser/OS auto-dark inversion, which otherwise flips plain CSS
     background colors (nav, the hero badge circle) to black while leaving
     the logo SVG's own red/gold fills untouched, breaking the badge. */
  color-scheme: light;

  /* brand — the 5 official colors */
  --orange: #f18608;
  --gold: #f9b133;
  --red: #dc1017;
  --ink: #575756;
  --paper-soft: #f6f6f6;

  /* derived: same hues, deeper/lighter, for hover states and gradients */
  --red-deep: color-mix(in srgb, var(--red) 78%, black);
  --orange-deep: color-mix(in srgb, var(--orange) 78%, black);
  --amber: var(--gold);
  --ink-soft: color-mix(in srgb, var(--ink) 88%, white);

  /* grounds */
  --paper: #ffffff;

  /* text */
  --text-on-paper: var(--ink);
  --text-on-paper-mute: color-mix(in srgb, var(--ink) 72%, white);
  --text-on-ink: #ffffff;
  --text-on-ink-mute: color-mix(in srgb, var(--ink) 25%, white);

  /* type */
  --font-display: "Zilla Slab", "Georgia", serif;
  --font-script: "Zilla Slab", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  --radius: 14px;
  --measure: 62ch;
  --shadow-soft: 0 10px 30px -12px rgba(87, 87, 86, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 4.6vw + 1rem, 4rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { max-width: var(--measure); }

.tagline {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1.4vw + 1rem, 1.6rem);
  color: var(--gold);
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

section :is(.eyebrow) { display: inline-block; margin-bottom: 0.6rem; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(87, 87, 86, 0.12);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-on-paper);
}

.brand img { height: 38px; width: 38px; object-fit: contain; }

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-on-paper);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--red);
}

.nav-links li:last-child { display: none; }

@media (min-width: 640px) {
  .nav-links li:last-child { display: block; }
  .nav-links a[data-cta] {
    background: var(--red);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border-bottom: none;
  }
  .nav-links a[data-cta]:hover { background: var(--red-deep); }
}

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); color: var(--text-on-ink); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost-dark { border-color: rgba(87, 87, 86, 0.3); color: var(--text-on-paper); }
.btn-ghost-dark:hover { border-color: var(--red); color: var(--red); }

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-ink);
  padding-block: clamp(4rem, 10vw, 7rem) clamp(4.5rem, 9vw, 7rem);
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  max-width: 780px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.4rem;
}

.hero .badge img { width: 62%; height: 62%; object-fit: contain; }

.hero h1 { color: #fff; }
.hero p { color: var(--text-on-ink-mute); font-size: 1.1rem; max-width: 52ch; }

.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.6rem; }

/* ── route divider ───────────────────────────────────────────────────── */

.route {
  height: 34px;
  background:
    radial-gradient(circle 5px at 22px 17px, var(--red) 98%, transparent 100%),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 10px,
      rgba(220, 16, 23, 0.35) 10px,
      rgba(220, 16, 23, 0.35) 16px
    );
  background-repeat: no-repeat, repeat-x;
  background-position: 22px center, 46px center;
  background-size: auto, auto 2px;
}

.route.on-ink {
  background:
    radial-gradient(circle 5px at 22px 17px, var(--gold) 98%, transparent 100%),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 10px,
      rgba(249, 177, 51, 0.4) 10px,
      rgba(249, 177, 51, 0.4) 16px
    );
  background-repeat: no-repeat, repeat-x;
  background-position: 22px center, 46px center;
}

/* ── sections ────────────────────────────────────────────────────────── */

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section.on-paper-soft { background: var(--paper-soft); }
.section.on-ink { background: var(--ink); color: var(--text-on-ink); }
.section.on-ink h2 { color: #fff; }
.section.on-ink p { color: var(--text-on-ink-mute); }

.section > .wrap > .eyebrow { display: block; }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); display: grid; gap: 0.5rem; }

/* step / feature grids */

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.on-ink .card { background: var(--ink-soft); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.1); }

.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red);
  background: rgba(220, 16, 23, 0.1);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.on-ink .step-num { color: var(--gold); background: rgba(249, 177, 51, 0.16); }

.card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; }
.card p { font-size: 0.96rem; color: var(--text-on-paper-mute); margin: 0; }
.on-ink .card p { color: var(--text-on-ink-mute); }

/* CTA band */

.cta-band {
  background: linear-gradient(115deg, var(--orange) 0%, var(--red) 65%, var(--red-deep) 100%);
  color: #fff;
  text-align: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin-inline: auto; }
.cta-band .wrap { display: grid; gap: 1.2rem; justify-items: center; }

/* ── footer ──────────────────────────────────────────────────────────── */

footer.site {
  background: var(--ink);
  color: var(--text-on-ink-mute);
  padding-block: 3rem 2rem;
  font-size: 0.92rem;
}

footer.site .wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

footer.site .brand span { color: var(--text-on-ink); }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--gold); }

footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
footer.site h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-ink);
  margin: 0 0 0.8rem;
}

.legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.legal-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.82rem; }

/* ── legal pages (privacy / terms) ──────────────────────────────────── */

.legal-doc { padding-block: clamp(3rem, 6vw, 4.5rem); }
.legal-doc .wrap { max-width: 760px; display: grid; gap: 1.6rem; }
.legal-doc h2 { margin-top: 1.2rem; font-size: 1.4rem; }
.legal-doc p, .legal-doc li { color: var(--text-on-paper); font-size: 0.98rem; }
.legal-doc ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }

.draft-note {
  background: rgba(249, 177, 51, 0.16);
  border: 1px solid rgba(249, 177, 51, 0.5);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--orange) 55%, black);
}

.updated { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-on-paper-mute); }

/* ── contact page ────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card {
  background: var(--paper);
  border: 1px solid rgba(87, 87, 86, 0.18);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 0.5rem;
}

.contact-card .value { font-family: var(--font-mono); font-size: 1.05rem; color: var(--text-on-paper); }
