/* ===== Tokens ===== */
:root {
  --black: #0b0b0c;
  --ink: #141416;
  --ink-2: #1d1d21;
  --line-dark: #2b2b31;
  --red: #e3161d;        /* logo red */
  --red-hover: #c40f15;
  --red-deep: #9e0b10;
  --white: #ffffff;
  --paper: #f5f5f4;
  --text: #141416;
  --text-muted: #55555c;
  --text-on-dark: #f4f4f5;
  --muted-on-dark: #b4b4bb;
  --border: #e4e4e7;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --wrap: 1200px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur: 180ms;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
/* "DESENTUPIMOS." is ~9.5em wide: size it to the viewport so it never clips on narrow phones */
h1 { font-weight: 900; font-size: clamp(1.75rem, (100vw - 2rem) / 10, 3.6rem); font-stretch: 100%; text-transform: uppercase; }
@media (min-width: 980px) { h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); } }
h2 { font-weight: 850; font-size: clamp(1.9rem, 4.2vw, 3rem); text-transform: uppercase; }
h3 { font-weight: 750; font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.red { color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .7em 1.2em;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 700 1rem/1 var(--font-display); font-stretch: 108%; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 52px; padding: .9em 1.5em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--white { background: #fff; color: var(--black); }
.btn--white:hover { background: var(--black); color: #fff; }
.btn--dark { background: var(--ink-2); color: #fff; border-color: var(--line-dark); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,11,12,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  color: var(--muted-on-dark); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 0; position: relative; transition: color var(--dur);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header__cta { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: var(--radius);
    background: transparent; color: #fff; border: 1px solid var(--line-dark); cursor: pointer;
  }
  .menu-btn .ic { width: 22px; height: 22px; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(227,22,29,.22), transparent 60%),
    var(--black);
  color: var(--text-on-dark);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 72px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 88px; padding-bottom: 104px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-on-dark); font-size: .9rem; font-weight: 500; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,22,29,.25); }
.lead { margin-top: 22px; font-size: 1.125rem; color: var(--muted-on-dark); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; margin: 36px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: .95rem; color: var(--text-on-dark); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ic { color: var(--red); }
.hero__media { margin: 0; position: relative; }
.hero__media img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.hero__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 50%;
  border-right: 6px solid var(--red); border-bottom: 6px solid var(--red); border-radius: 0 0 12px 0; z-index: -0;
}
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--black) 18px 36px); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section--dark { background: var(--black); color: var(--text-on-dark); }
.section--muted { background: var(--paper); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.kicker { font: 700 .8rem/1 var(--font-display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 3px; background: currentColor; }
.section__sub { margin-top: 16px; color: var(--text-muted); font-size: 1.075rem; max-width: 40em; }
.section--dark .section__sub { color: var(--muted-on-dark); }

/* Services */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  position: relative; padding: 28px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); border-radius: 10px 0 0 10px; transform: scaleY(0); transform-origin: top; transition: transform 240ms var(--ease-out); }
.card:hover { border-color: #d4d4d8; transform: translateY(-3px); }
.card:hover::after { transform: scaleY(1); }
.card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 8px; background: var(--black); color: #fff; margin-bottom: 20px; }
.card__icon .ic { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); }

/* Fleet */
.fleet { display: grid; gap: 24px; }
@media (min-width: 760px) { .fleet { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .fleet { grid-template-columns: repeat(3, 1fr); } }
.fleet__item { background: var(--ink); border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.fleet__item figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.fleet__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.fleet__item:hover img { transform: scale(1.03); }
.fleet__body { padding: 28px; }
.fleet__body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.fleet__body p { color: var(--muted-on-dark); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks .ic { color: var(--red); }

/* Shop */
.shop { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .shop { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } }
.shop__media { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #ddd; }
.shop__media img { width: 100%; height: 100%; object-fit: cover; }
.shop__cta { margin-top: 28px; }
@media (min-width: 900px) {
  .shop--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .shop--flip .shop__media { order: 2; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.steps li { padding: 28px; border-top: 4px solid var(--black); background: var(--paper); }
@media (min-width: 860px) { .steps li { background: none; border-top-width: 4px; padding: 28px 28px 0 0; } .steps li + li { padding-left: 28px; border-left: 1px solid var(--border); } }
.steps li:first-child { border-top-color: var(--red); }
.steps__n { display: block; font: 900 3rem/1 var(--font-display); font-stretch: 120%; color: var(--red); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-muted); }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; } }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: 8px; background: #ddd; aspect-ratio: 3 / 4; }
.gallery__item--tall { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .gallery__item { aspect-ratio: auto; }
  .gallery__item--tall { grid-row: span 2; grid-column: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: .875rem; font-weight: 600;
}
.more { margin-top: 28px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; min-height: 44px; }
.link:hover { color: var(--red); }

/* Band */
.band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0,0,0,.07) 22px 44px); }
.band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 18em; }

/* Contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--black); color: #fff; flex: none; }
.contact__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.contact__list a { font-weight: 600; font-size: 1.075rem; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--red); }

.form { background: var(--black); color: var(--text-on-dark); padding: 32px 24px; border-radius: 12px; border-top: 6px solid var(--red); }
@media (min-width: 640px) { .form { padding: 40px; } }
.form h3 { font-size: 1.6rem; text-transform: uppercase; }
.form__hint { color: var(--muted-on-dark); margin: 6px 0 24px; font-size: .95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field label span { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 400 1rem/1.4 var(--font-body);
  color: #fff; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color var(--dur);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,22,29,.3); }
.field.has-error input, .field.has-error textarea { border-color: #ff5a5f; }
.field__err { color: #ff8a8e; font-size: .875rem; margin-top: 6px; min-height: 0; }
.field__err:empty { display: none; }
.form__alt { margin-top: 16px; font-size: .9rem; color: var(--muted-on-dark); }
.form__alt a { color: #fff; }

/* Footer */
.footer { background: var(--black); color: var(--muted-on-dark); padding: 48px 0 120px; border-top: 1px solid var(--line-dark); }
@media (min-width: 861px) { .footer { padding-bottom: 48px; } }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer img { width: 130px; }
.footer__copy { margin-left: auto; font-size: .875rem; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(11,11,12,.95); border-top: 1px solid var(--line-dark);
    backdrop-filter: blur(8px);
  }
  .callbar .btn { min-height: 50px; }
}

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}
