/* =========================================================
   ESQUILO SP Z O O — stylesheet
   ========================================================= */

:root {
  --navy: #14213D;
  --navy-2: #1D3057;
  --ink: #1A1A1A;
  --rust: #C1440E;
  --rust-dark: #9A3509;
  --cream: #F6F4EF;
  --paper: #FBFAF8;
  --line: #E3DED2;
  --muted: #625F59;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-primary {
  background: var(--rust);
  color: #fff;
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand-mark { color: var(--rust); display: flex; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand-suffix { font-weight: 500; color: var(--muted); font-size: 0.85em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width .2s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background-color .18s var(--ease);
}
.nav-cta:hover { background: var(--rust); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 70px;
  background: var(--cream);
}

.hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}
.hero-route path {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
}
.hero-route .route-dash {
  stroke: var(--rust);
  stroke-width: 3;
  stroke-dasharray: 10 14;
  opacity: 0.55;
  animation: dashMove 26s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -480; } }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rust-dark);
  margin-bottom: 14px;
}

.hero-lede { font-size: 1.08rem; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 40px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
}

.hero-visual { display: flex; justify-content: center; }
.truck-art { width: 100%; max-width: 380px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 96px 0; background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-frame svg { width: 100%; height: auto; }
.about-frame path { fill: none; }

.about-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-points li {
  padding-left: 26px;
  position: relative;
  color: var(--ink);
  font-size: 0.96rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border: 2px solid var(--rust);
  border-radius: 50%;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 96px 0; background: var(--navy); }
.section-head { max-width: 560px; margin-bottom: 52px; }
.section-head h2 { color: #fff; }
.section-head p { color: #C6CCDA; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.service-card {
  background: var(--navy);
  padding: 34px 30px;
  transition: background-color .2s var(--ease);
}
.service-card:hover { background: var(--navy-2); }
.service-icon {
  width: 38px;
  height: 38px;
  stroke: var(--rust);
  stroke-width: 2;
  fill: none;
  margin-bottom: 18px;
}
.service-card h3 { color: #fff; }
.service-card p { color: #B7BECD; margin-bottom: 0; }

/* =========================================================
   WHY
   ========================================================= */
.why { padding: 96px 0; background: var(--paper); }
.why-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.why-copy { align-self: start; position: sticky; top: 110px; }

.why-list { display: flex; flex-direction: column; }
.why-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--rust);
}
.why-item h3 { margin-bottom: 6px; }
.why-item p { margin-bottom: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 96px 0; background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info p { font-size: 1.02rem; }

.contact-details {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
}
.contact-details svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  stroke: var(--rust);
  fill: none;
  stroke-width: 1.7;
  margin-top: 1px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .18s var(--ease);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rust);
  outline: none;
}
.field.invalid input,
.field.invalid textarea { border-color: #B3261E; }
.field-error {
  font-size: 0.8rem;
  color: #B3261E;
  min-height: 1.1em;
  margin-top: 4px;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: #1E7C3F; }
.form-status.error { color: #B3261E; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: #C6CCDA; padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #98A0B2; margin-top: 12px; font-size: 0.92rem; }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.85rem;
  margin: 0 0 6px;
}
.footer-col a, .footer-col span {
  color: #B7BECD;
  font-size: 0.92rem;
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: var(--rust); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #7E869B;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { margin: 0; color: inherit; }

/* =========================================================
   SCROLL REVEAL (single orchestrated pass)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .why-copy { position: static; }
  .hero-visual { order: -1; }
  .truck-art { max-width: 260px; margin: 0 auto; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 28px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: none !important; }
  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 56px 0 50px; }
  .hero-stats { flex-wrap: wrap; row-gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
