/* Brand tokens. Palette stays here. Logos live in /assets/brand/ — replace the files, do not recolor them in CSS. */
:root {
  --black: #0e0e0c;
  --yellow: #f0c400;
  --yellow-facet: #ffda45;
  --yellow-deep: #b38e00;
  --steel-100: #d3d7db;
  --steel-300: #9aa0a6;
  --steel-500: #6e747a;
  --steel-700: #2b3036;
  --steel: var(--steel-700);
  --steel-gray: var(--steel-500);
  --light: var(--steel-100);
  --paper: #f4f2ec;
  --bg: var(--black);
  --text: var(--paper);
  --muted: var(--light);
  --accent: var(--yellow);
  --ink: var(--black);
  --line: var(--light);
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-label: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --mark-h: 2.5rem;
  --clear: calc(var(--mark-h) / 2);
  --max: 72rem;
  --gutter: 1.25rem;
  --header: 4.75rem;
  --dock: 4.75rem;
}

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

html { scroll-behavior: smooth; }

html[lang="en"] [lang="es"],
html[lang="es"] [lang="en"] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color-scheme: dark;
  overflow-x: clip;
}

body.input-focus { padding-bottom: 0; }
body.input-focus .dock { display: none; }

img { max-width: 100%; height: auto; }

.logo-slot img,
.hero-mark,
.paper-logo {
  filter: none;
  box-shadow: none;
  background: transparent;
}

a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.btn-primary:focus-visible { outline-color: var(--paper); }

::selection { background: var(--yellow); color: var(--black); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 80;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}
.skip:focus { top: 0.6rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.accent-bar {
  height: 4px;
  background: var(--yellow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--black);
  border-bottom: 1px solid var(--light);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--clear);
  min-height: var(--header);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo-slot {
  display: block;
  flex: 0 0 auto;
  width: 2.15rem;
}

.logo-slot .logo {
  width: 100%;
  height: auto;
  display: block;
}

.logo-compact { aspect-ratio: 1433.19 / 114; }
.logo-mark { aspect-ratio: 112 / 100; }
.logo-full,
.paper-logo { aspect-ratio: 907.31 / 100; }

.site-header .logo-full,
.site-header .logo-mark { display: none; }
.site-header .logo-slot {
  width: clamp(160px, calc(100vw - 10rem), 260px);
}

.site-footer .logo-compact,
.site-footer .logo-mark { display: none; }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--light);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  cursor: pointer;
}

html[lang="en"] .lang [data-set-lang="en"],
html[lang="es"] .lang [data-set-lang="es"] {
  background: var(--yellow);
  color: var(--black);
}

.lang-sep { color: var(--light); padding: 0 0.1rem; }

.nav-toggle {
  appearance: none;
  display: none;
  border: 1px solid var(--light);
  background: transparent;
  color: var(--paper);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--paper);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 0.28em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.btn-primary:hover { background: var(--yellow-facet); }

.btn-ghost {
  border-color: var(--light);
  color: var(--paper);
}

.btn-ghost:hover { border-color: var(--yellow); }

.header-call { display: none; }

.on-paper .btn-ghost {
  color: var(--black);
  border-color: var(--black);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--yellow);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.3;
}

.kicker::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  background: var(--yellow);
  flex: 0 0 auto;
}

h1, h2, .close-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-variation-settings: "wdth" 120, "wght" 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}

h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112, "wght" 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); max-width: 16ch; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.45rem; }

.lede, .support, .section-lead { max-width: 40rem; }
.support, .section-lead, .muted { color: var(--muted); }
.support { margin: 0.85rem 0 0; }
.section-lead { margin: 0 0 1.5rem; }

.subline {
  margin: 1rem 0 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  max-width: 36rem;
}

.hero {
  padding: 2.5rem 0 3.25rem;
  background:
    linear-gradient(to right, rgba(217, 219, 220, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 219, 220, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  background-color: var(--black);
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-mark {
  display: block;
  width: min(9.5rem, 42vw);
  height: auto;
  aspect-ratio: 112 / 100;
  margin: var(--clear);
  justify-self: start;
}

.plate {
  background: var(--steel);
  border-top: 3px solid var(--yellow);
  padding: 1.1rem 1.15rem 0.35rem;
}

.plate ol {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  counter-reset: work;
}

.plate li { border-top: 1px solid rgba(217, 219, 220, 0.45); }

.plate a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--paper);
}

.plate a::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--yellow);
  flex: 0 0 auto;
}

.plate a::after {
  counter-increment: work;
  content: counter(work, decimal-leading-zero);
  margin-left: auto;
  color: var(--light);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
}

.plate a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 0.2em;
}

section,
.card {
  scroll-margin-top: calc(var(--header) + 4px + 0.5rem);
}

.block { padding: 3.4rem 0; }

.on-paper {
  background: var(--paper);
  color: var(--black);
  color-scheme: light;
}

.on-paper .muted,
.on-paper .section-lead,
.on-paper .card p { color: var(--steel); }

.on-paper .kicker { color: var(--black); }
.on-paper .kicker::before { background: var(--yellow); }

.plate .kicker,
.why .kicker,
.county .kicker,
.equipment .kicker { color: var(--light); }

.cards, .why-grid, .counties, .equip-grid {
  display: grid;
  gap: 0.9rem;
}

.text-link { margin: 1rem 0 0; }
.text-link a {
  font-weight: 700;
  text-underline-offset: 0.2em;
}
.on-paper .text-link a { color: var(--black); }

.equipment { background: var(--steel); }

.equip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.equip-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(211, 215, 219, 0.45);
  background: var(--black);
}

.equip-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--black);
}

.equip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equip-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 14, 12, 0.62), rgba(14, 14, 12, 0.08) 34%, transparent 58%);
  pointer-events: none;
}

.equip-copy { padding: 0.85rem 0.95rem 1rem; flex: 1; }
.equip-name { display: block; font-weight: 700; letter-spacing: -0.02em; }
.equip-note { margin: 0.15rem 0 0; color: var(--light); font-size: 0.92rem; }

.card {
  margin: 0;
  padding: 1.2rem 1.15rem 1.3rem;
  border: 1px solid var(--steel-gray);
  background: transparent;
}

.card-icon {
  color: var(--black);
  margin-bottom: 0.9rem;
}

.card-icon svg { width: 1.85rem; height: 1.85rem; display: block; }

.why { background: var(--steel); }

.why-item {
  margin: 0;
  padding: 1.2rem 1.1rem 1.3rem;
  background: var(--steel);
  border: 1px solid rgba(217, 219, 220, 0.35);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  margin-bottom: 0.8rem;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.04em;
}

.area .counties { margin-top: 1.5rem; }

.county {
  margin: 0;
  padding: 1.15rem 1rem 1.2rem;
  border-top: 3px solid var(--yellow);
  background: var(--steel);
}

.county h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.2rem 0;
  color: var(--paper);
}

.county p { margin: 0; color: var(--light); }

.facts { margin: 1.25rem 0 0; }
.facts div { padding: 0.85rem 0; border-top: 1px solid rgba(217, 219, 220, 0.4); }
.facts dt {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--light);
}
.facts dd { margin: 0.2rem 0 0; font-size: 1.2rem; font-weight: 600; }
.facts a { text-underline-offset: 0.15em; }

.contact-grid { display: grid; gap: 1.75rem; }

.form-card {
  background: var(--steel);
  padding: 1.2rem 1.1rem 1.3rem;
  border-top: 3px solid var(--yellow);
}

.form-card h3 { margin-top: 0; }

form { display: grid; gap: 0.85rem; position: relative; }

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input, select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--light);
  border-radius: 0;
  background: var(--black);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}

textarea { min-height: 8.5rem; resize: vertical; }

select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--light) 50%), linear-gradient(135deg, var(--light) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 55%, calc(100% - 0.7rem) 55%;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
}

.was-validated :invalid { border-color: var(--yellow); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { margin: 0; color: var(--light); font-size: 0.92rem; }

.form-status {
  margin: 0;
  padding: 0.75rem 0.8rem;
  border-left: 3px solid var(--yellow);
  background: var(--black);
  color: var(--paper);
}

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

.form-status.is-success { border-left-color: var(--light); }

button[disabled] { opacity: 0.65; cursor: progress; }

.close { text-align: left; }
.close-line { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 12ch; }
.paper-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 0 var(--clear);
}

.site-footer {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid var(--light);
  padding: 2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.site-footer .brand { width: 320px; max-width: 100%; }
.site-footer .logo-slot { width: 320px; max-width: 100%; }

.legal {
  margin: 0.8rem 0 0;
  color: var(--light);
  font-size: 0.82rem;
}

.legal strong { font-weight: 600; }

.photo-credits {
  margin: 0.55rem 0 0;
  color: var(--steel-300);
  font-size: 0.75rem;
  line-height: 1.45;
}

.photo-credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.55rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 1px solid var(--light);
}

.dock .btn { width: 100%; }

body { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }

@media (min-width: 720px) {
  .cards, .why-grid, .counties, .equip-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3.5rem 0 4.25rem; }
  .block { padding: 4.5rem 0; }
}

@media (max-width: 767px) {
  :root { --header: 48px; }
  .header-bar { gap: 0.35rem; }
  .lang button,
  .nav-toggle {
    min-width: 2.25rem;
    min-height: 2.25rem;
  }
}

@media (min-width: 768px) {
  .site-header .logo-compact,
  .site-header .logo-mark { display: none; }
  .site-header .logo-full { display: block; }
  .site-header .logo-slot { width: min(22rem, 42vw); }
}

@media (max-width: 279px) {
  .site-header .logo-full,
  .site-header .logo-compact { display: none; }
  .site-header .logo-mark { display: block; }
  .site-header .logo-slot { width: 2rem; }
}

@media (min-width: 960px) {
  .site-header .logo-slot { width: min(22rem, 34vw); }
  .nav-toggle { display: none !important; }
  .btn.header-call { display: inline-flex; }
  .site-nav { display: flex !important; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 3rem;
  }
  .hero-mark { width: 11rem; justify-self: end; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
  .footer-grid { grid-template-columns: auto 1fr; align-items: end; gap: 2rem; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 1100px) {
  .equip-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 959px) {
  html.js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  html.js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem var(--gutter) 0.85rem;
    background: var(--black);
    border-bottom: 1px solid var(--light);
  }
  html.js .site-nav.is-open { display: flex; }
  html.js .site-nav a { padding: 0.75rem 0; min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn-primary:hover { background: var(--yellow); }
}
