/* Elevated Trucking Industries LLC — Corona, California
   Limestone editorial, mountain navy, clay rail.
   Sora + Literata. Split identifier hero. Ascending-bar mark.
   Light paper, not a dark overlay template. */

:root {
  --bg: #f3efe6;
  --bg-2: #e7efe4;
  --paper: #fffcf7;
  --ink: #142433;
  --text: #1c2833;
  --muted: #5c675f;
  --line: rgba(20, 36, 51, 0.12);
  --line-strong: rgba(20, 36, 51, 0.28);
  --accent: #c46a2d;
  --accent-text: #8a3f16;
  --accent-2: #e4c27a;
  --accent-dim: rgba(196, 106, 45, 0.12);
  --hero-ink: #f6f1e8;
  --danger: #9c2f24;
  --ok: #1f6b45;
  --font: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Literata", "Iowan Old Style", Palatino, serif;
  --wrap: 1080px;
  --gutter: 24px;
  --radius: 0;
  --header-h: 76px;
  --sticky-cta: 0px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--hero-ink);
  padding: 8px 12px;
  z-index: 80;
}

.skip-link:focus {
  top: 12px;
}

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

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

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  flex: 0 0 auto;
}

h1,
h2,
h3,
.footer-brand,
.stat b {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.lede {
  font-size: 1.08rem;
  max-width: 42rem;
  color: var(--muted);
  margin-top: 14px;
}

.muted,
.fineprint,
.media-caption,
.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent);
}

/* Header — paper bar, clay rule */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--accent);
  height: var(--header-h);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text strong {
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-cta {
  background: var(--ink);
  color: var(--hero-ink) !important;
  padding: 10px 14px !important;
}

.header-cta:hover {
  background: #1d3348;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

/* Split hero — copy left, framed photo right */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - var(--header-h) - var(--sticky-cta));
  background:
    linear-gradient(180deg, transparent 0 92%, var(--accent) 92% 100%),
    var(--bg);
}

.hero-media {
  order: 2;
  min-height: 420px;
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-inner {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 36px 72px max(32px, calc((100vw - var(--wrap)) / 2));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--hero-ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover {
  background: #1d3348;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--accent-dim);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.trust-chip {
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-2);
}

.section-head {
  margin-bottom: 28px;
  max-width: 40rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-start {
  align-items: start;
}

.split-copy p + p {
  margin-top: 14px;
}

.media-frame {
  background: var(--paper);
  border-left: 8px solid var(--accent);
}

.media-frame img {
  width: 100%;
  height: auto;
}

.media-caption {
  padding: 10px 14px 12px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
}

.card {
  background: var(--paper);
  border-left: 8px solid var(--ink);
  padding: 28px 28px 28px 24px;
}

.card-feature {
  border-left-color: var(--accent);
}

.card-index {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  max-width: 46rem;
}

/* Identifier ledger */

.stats {
  background: var(--ink);
  color: var(--hero-ink);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 8px 18px;
  border-left: 1px solid rgba(246, 241, 232, 0.18);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat b {
  display: block;
  color: var(--accent-2);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.72);
}

/* Equipment band — photo beside copy, not a full-bleed overlay */

.equipment {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.equipment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.equipment-copy {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.req-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.req-list li {
  padding: 10px 12px;
  background: var(--paper);
  border-left: 4px solid var(--accent-2);
}

/* Final CTA — clay field, not a night panel */

.equipment > .wrap {
  width: auto;
  max-width: none;
  margin: 0;
}

.final-cta {
  padding: 72px 0;
  background: #6e3014;
  color: #fffaf4;
}

.final-cta h2,
.final-cta .kicker {
  color: #fffaf4;
}

.final-cta .kicker::before {
  background: #fffaf4;
}

.final-cta .lede {
  color: rgba(255, 250, 244, 0.9);
}

.final-cta .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--hero-ink);
}

.final-cta .btn-ghost {
  background: transparent;
  color: #fffaf4;
  border-color: rgba(255, 250, 244, 0.7);
}

.final-cta .btn-ghost:hover {
  background: rgba(20, 36, 51, 0.15);
}

/* Footer — paper, not charcoal */

.site-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 28px;
}

.footer-brand {
  font-size: 1.15rem;
}

.footer-nav {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow-wrap: anywhere;
}

.footer-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.mobile-cta {
  display: none;
}

/* Page interiors */

.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
}

.spec {
  width: 100%;
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
}

.spec div {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--line);
}

.spec dt,
.spec dd {
  margin: 0;
  padding: 14px 16px;
}

.spec dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-right: 4px solid var(--accent);
}

/* Forms */

.form {
  display: grid;
  gap: 16px;
  background: var(--paper);
  border-top: 4px solid var(--ink);
  padding: 28px;
  position: relative;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

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

label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  padding: 12px 13px;
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-status[data-state="ok"] {
  color: var(--ok);
}

.form-status[data-state="err"] {
  color: var(--danger);
}

.contact-panel {
  background: var(--ink);
  color: var(--hero-ink);
  padding: 28px;
}

.contact-panel a,
.contact-panel .text-link {
  color: var(--accent-2);
}

.contact-panel .fineprint,
.contact-panel .muted {
  color: rgba(246, 241, 232, 0.75);
}

.dl {
  display: grid;
  gap: 16px;
}

.dl div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.16);
}

.dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dl dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}

.dl dd {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero,
  .split,
  .equipment,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero,
  .equipment,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 40px var(--gutter) 48px;
  }

  .header-inner {
    position: static;
  }

  .hero {
    background: var(--bg);
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 4px solid var(--accent);
    padding: 8px var(--gutter) 16px;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
  }

  .header-cta {
    text-align: center;
  }
}

@media (max-width: 720px) {
  :root {
    --sticky-cta: 58px;
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--ink);
    border-top: 3px solid var(--accent);
  }

  .mobile-cta a {
    color: var(--hero-ink);
    text-align: center;
    padding: 16px 8px;
    font-weight: 600;
    font-size: 0.92rem;
    min-height: 48px;
  }

  .mobile-cta a + a {
    border-left: 1px solid rgba(246, 241, 232, 0.2);
  }

  body {
    padding-bottom: var(--sticky-cta);
  }

  .site-footer {
    padding-bottom: 20px;
  }

  .form-grid,
  .spec div,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .spec dt {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat {
    border-left: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(246, 241, 232, 0.18);
  }

  .stat:first-child {
    border-top: 0;
  }

  h1 {
    font-size: 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
