/* ==========================================================================
   Elions Logistics — site styles
   Palette: asphalt charcoal base, amber high-visibility accent.
   Type: Barlow Condensed (display) / Barlow (body) — highway signage lineage.
   ========================================================================== */

:root {
  --ink:        #0E1116;
  --charcoal:   #111418;
  --steel:      #171C23;
  --steel-2:    #1E242D;
  --line:       #2B333E;
  --line-soft:  #E4E4E1;

  --amber:      #F59E0B;
  --amber-dim:  #C77E06;
  --amber-glow: rgba(245, 158, 11, .16);

  --paper:      #FFFFFF;
  --paper-2:    #F5F5F2;

  --text:       #EDEFF2;
  --text-mute:  #9AA3AE;
  --text-dark:  #16191D;
  --text-dark-mute: #545C66;

  --wrap: 1180px;
  --gut: 24px;

  --step-0: 1rem;
  --step-1: 1.15rem;
  --step-2: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.4rem + 4vw, 4.4rem);
}

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

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

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1.1em; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #FFB733; }

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

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #14161A; padding: 12px 18px; z-index: 200;
  font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Sections ------------------------------------------------------ */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--dark  { background: var(--charcoal); }
.band--deep  { background: var(--ink); }
.band--steel { background: var(--steel); }
.band--light { background: var(--paper); color: var(--text-dark); }
.band--light h1, .band--light h2, .band--light h3 { color: var(--text-dark); }
.band--paper { background: var(--paper-2); color: var(--text-dark); }
.band--paper h2, .band--paper h3 { color: var(--text-dark); }

.lede { font-size: var(--step-1); color: var(--text-mute); max-width: 62ch; }
.band--light .lede, .band--paper .lede { color: var(--text-dark-mute); }

.section-head { max-width: 68ch; margin-bottom: 44px; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.22rem; font-weight: 700; letter-spacing: .01em;
  padding: 15px 30px; border: 2px solid transparent; border-radius: 2px;
  cursor: pointer; text-decoration: none; transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--primary { background: var(--amber); color: #14161A; }
.btn--primary:hover { background: #FFB733; color: #14161A; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #23282F; color: #fff; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 17, 22, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: var(--amber);
  clip-path: polygon(0 22%, 62% 22%, 62% 4%, 100% 50%, 62% 96%, 62% 78%, 0 78%);
}
.brand-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.5rem; color: #fff; line-height: 1; letter-spacing: .005em;
}
.brand-name span { color: var(--amber); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-mute); text-decoration: none; font-size: .97rem;
  padding: 9px 12px; border-radius: 2px; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--amber); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--amber); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: #fff; padding: 9px 12px; border-radius: 2px; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem;
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14,17,22,.72) 0%, rgba(14,17,22,.88) 55%, var(--charcoal) 100%),
    radial-gradient(120% 80% at 78% 8%, rgba(245,158,11,.20) 0%, rgba(245,158,11,0) 58%),
    linear-gradient(160deg, #1B2129 0%, #0E1116 62%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
/* Drop a photo at assets/img/hero.jpg and it replaces the gradient. */
.hero.has-photo {
  background-image:
    linear-gradient(180deg, rgba(14,17,22,.70) 0%, rgba(14,17,22,.86) 60%, var(--charcoal) 100%),
    url('../img/hero.jpg');
}
.hero-inner { padding: clamp(72px, 12vw, 148px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero .lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem); color: #C9D0D9; max-width: 54ch; }

.road-rule {
  height: 3px; width: 132px; margin-bottom: 30px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 26px, transparent 26px 44px);
}

/* ---------- Trust row (reads as a data row, not a tagline) ---------------- */
.trust {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.trust div {
  padding: 20px 18px; border-right: 1px solid var(--line);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.16rem;
  color: #D5DAE1; line-height: 1.25;
}
.trust div:last-child { border-right: 0; }

/* ---------- Service cards ------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--charcoal); padding: 34px 30px 32px; }
.band--steel .card { background: var(--steel); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-mute); margin-bottom: 0; font-size: .99rem; }
.card-icon { color: var(--amber); margin-bottom: 18px; display: block; }
.card-icon svg { width: 30px; height: 30px; }

/* ---------- Checklist ----------------------------------------------------- */
.checklist { columns: 2; column-gap: 44px; list-style: none; padding: 0; margin: 0; }
.checklist li {
  break-inside: avoid; padding: 11px 0 11px 32px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 1.02rem;
}
.band--light .checklist li, .band--paper .checklist li { border-bottom-color: var(--line-soft); }
.checklist li::before {
  content: ''; position: absolute; left: 4px; top: 19px;
  width: 9px; height: 9px; background: var(--amber);
  clip-path: polygon(0 50%, 38% 100%, 100% 8%, 100% 34%, 38% 100%, 0 72%);
}

/* ---------- Steps (a real sequence, so numbers earn their place) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--charcoal); padding: 30px 26px 32px; }
.step-n {
  font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 700;
  color: var(--amber); line-height: 1; display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.32rem; margin-bottom: 8px; }
.step p { color: var(--text-mute); font-size: .96rem; margin: 0; }

/* ---------- Equipment spec sheet ------------------------------------------ */
.spec { width: 100%; border-collapse: collapse; }
.spec caption { text-align: left; color: var(--text-mute); padding-bottom: 14px; }
.spec th, .spec td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.spec thead th {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; color: #fff;
  border-bottom: 2px solid var(--amber);
}
.spec td { color: var(--text-mute); font-size: .99rem; }
.spec td:first-child {
  color: #fff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem; white-space: nowrap;
}
.band--light .spec th, .band--light .spec td { border-bottom-color: var(--line-soft); }
.band--light .spec thead th { color: var(--text-dark); }
.band--light .spec td { color: var(--text-dark-mute); }
.band--light .spec td:first-child { color: var(--text-dark); }

/* ---------- Chips --------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.12rem; color: #D5DAE1;
}

/* ---------- Pillars ------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { border-top: 3px solid var(--amber); padding-top: 22px; }
.pillar h3 { font-size: 1.42rem; }
.pillar p { color: var(--text-mute); margin: 0; }
.band--light .pillar p { color: var(--text-dark-mute); }

/* ---------- Quotes -------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote { border-left: 3px solid var(--amber); padding: 6px 0 6px 22px; }
.quote p { font-size: 1.06rem; color: #DDE2E8; }
.quote footer { color: var(--text-mute); font-size: .93rem; }
.band--light .quote p { color: var(--text-dark); }
.band--light .quote footer { color: var(--text-dark-mute); }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band { background: var(--amber); color: #14161A; padding: clamp(44px, 6vw, 72px) 0; }
.cta-band h2 { color: #14161A; margin-bottom: 10px; }
.cta-band p { color: #3A2E14; max-width: 56ch; margin-bottom: 0; }
.cta-band .cta-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Forms --------------------------------------------------------- */
.form-card { background: var(--steel); border: 1px solid var(--line); padding: clamp(26px, 4vw, 40px); }
.band--light .form-card, .band--paper .form-card {
  background: var(--paper); border-color: var(--line-soft); color: var(--text-dark);
}

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem;
  background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 2px;
}
.band--light .field input, .band--light .field select, .band--light .field textarea,
.band--paper .field input, .band--paper .field select, .band--paper .field textarea {
  background: #fff; border-color: #C9CBC7; color: var(--text-dark);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px var(--amber-glow); }
.field textarea { min-height: 130px; resize: vertical; }

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

.req { color: var(--amber); }

/* SMS consent notice — must stay legible. Do not reduce below 13px. */
.sms-notice {
  font-size: 13.5px; line-height: 1.6; color: #C2C8D0;
  background: rgba(245,158,11,.07); border-left: 3px solid var(--amber);
  padding: 13px 15px; margin: -4px 0 20px;
}
.band--light .sms-notice, .band--paper .sms-notice { color: #3F464F; background: #FDF6E7; }
.sms-notice a { color: var(--amber); text-decoration: underline; }
.band--light .sms-notice a, .band--paper .sms-notice a { color: #9A6206; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0 22px; }
.consent input { width: 19px; height: 19px; margin-top: 3px; flex: none; accent-color: var(--amber); }
.consent label { font-size: .95rem; line-height: 1.55; color: #C2C8D0; }
.band--light .consent label, .band--paper .consent label { color: #3F464F; }

.form-note { font-size: .9rem; color: var(--text-mute); }

.alert { padding: 15px 18px; border-left: 3px solid; margin-bottom: 24px; font-size: 1rem; }
.alert--ok { border-color: #3FAE6A; background: rgba(63,174,106,.1); color: #BFE9CE; }
.alert--bad { border-color: #E0575B; background: rgba(224,87,91,.1); color: #F4C4C5; }
.band--light .alert--ok { background: #E9F7EE; color: #1E6B3C; }
.band--light .alert--bad { background: #FBECEC; color: #93292C; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.band--light .faq { border-top-color: var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line); }
.band--light .faq details { border-bottom-color: var(--line-soft); }
.faq summary {
  cursor: pointer; padding: 22px 44px 22px 0; position: relative; list-style: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.42rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: var(--amber); font-size: 1.9rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: '\2013'; }
.faq .answer { padding: 0 0 24px; color: var(--text-mute); max-width: 74ch; }
.band--light .faq .answer { color: var(--text-dark-mute); }

/* ---------- Legal pages --------------------------------------------------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.2em; }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { font-size: 1.28rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--text-dark-mute); }
.legal strong { color: var(--text-dark); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: .5em; }
.legal .updated { color: var(--text-dark-mute); font-size: .95rem; margin-bottom: 2em; }
.legal .callout {
  background: #FDF6E7; border-left: 4px solid var(--amber);
  padding: 22px 26px; margin: 1.4em 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal .sample {
  background: var(--paper-2); border: 1px solid var(--line-soft);
  padding: 16px 20px; margin-bottom: 14px; font-size: .98rem; color: var(--text-dark);
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 {
  font-size: 1.16rem; color: #fff; margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-mute); text-decoration: none; font-size: .97rem; }
.footer-grid a:hover { color: var(--amber); }
.footer-blurb { color: var(--text-mute); font-size: .97rem; max-width: 38ch; }
.footer-contact { color: var(--text-mute); font-size: .97rem; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: #6F7883; font-size: .9rem;
}

/* ---------- Floating WhatsApp -------------------------------------------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Page intro ---------------------------------------------------- */
.page-head { background: var(--ink); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 60px); }
.page-head h1 { max-width: 20ch; margin-bottom: 16px; }
.page-head .lede { margin-bottom: 0; }

/* ---------- One deliberate motion moment: the hero on load ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .road-rule, .hero h1, .hero .lede, .hero .btn-row {
    animation: rise .62s cubic-bezier(.2,.7,.3,1) both;
  }
  .hero h1       { animation-delay: .06s; }
  .hero .lede    { animation-delay: .14s; }
  .hero .btn-row { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1020px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust div:nth-child(2n) { border-right: 0; }
  .pillars { grid-template-columns: 1fr; gap: 30px; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 0 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 24px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
  .nav-toggle { display: block; order: 3; }
  .header-phone { font-size: 1.06rem; }
  .header-inner { position: relative; }
}

@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust div:last-child { border-bottom: 0; }
  .checklist { columns: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band .cta-inner { display: block; }
  .cta-band .btn-row { margin-top: 24px; }
  .btn { width: 100%; }
  .spec td:first-child { white-space: normal; }
}
