/* ============================================================
   Allegiance Trucking and Services — site styles
   Brand: red #F0001D, ink #0C0C0D, navy #1B395A
   Fonts: Syne (headings), Inter (body) — loaded in <head>
   ============================================================ */

:root {
  --red: #f0001d;
  --red-dark: #c40018;
  --ink: #0c0c0d;
  --navy: #1b395a;
  --body: #3a4450;
  --muted: #6b7683;
  --line: #e6e8eb;
  --bg-soft: #f6f7f8;
  --white: #ffffff;
  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(12, 12, 13, 0.08);
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p + p { margin-top: 1em; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand img { height: 44px; width: auto; }

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

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

.site-nav .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--red-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }

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

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #26262a; color: var(--white); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 65%;
  opacity: 0.45;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 12, 13, 0.85) 25%, rgba(12, 12, 13, 0.35) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 150px);
  max-width: var(--wrap);
}

.hero h1 { color: var(--white); max-width: 15ch; }

.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 44ch;
  margin: 20px 0 32px;
  color: rgba(255, 255, 255, 0.88);
}

.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.hero .badges span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(12, 12, 13, 0.35);
}

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 60%;
  opacity: 0.3;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 12, 13, 0.88) 30%, rgba(12, 12, 13, 0.45) 100%);
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(60px, 8vw, 96px);
  padding-bottom: clamp(60px, 8vw, 96px);
}
.page-hero h1 { color: var(--white); }
.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin-top: 14px;
  font-size: 1.15rem;
}

/* ---------- sections ---------- */

section { padding: clamp(64px, 9vw, 110px) 0; }
section.tight { padding: clamp(48px, 6vw, 72px) 0; }
.soft { background: var(--bg-soft); }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; }

/* two-column feature rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.split + .split { margin-top: clamp(56px, 8vw, 88px); }

.split.flip > .media { order: 2; }

.split .media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

.split h2 { margin-bottom: 18px; }
.split .btn { margin-top: 28px; }

/* service chips */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li {
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}
.soft .chips li { background: var(--white); }
section:not(.soft) .chips li { background: var(--bg-soft); }

/* ---------- testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.quote p { font-size: 1.05rem; color: var(--ink); }

.quote footer {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band { background: var(--red); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 55ch; margin: 0 auto 32px; }
.cta-band .btn { background: var(--white); color: var(--ink); }
.cta-band .btn:hover { background: var(--ink); color: var(--white); }
.cta-band .phone {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}
.cta-band .phone:hover { color: rgba(255, 255, 255, 0.85); }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-card {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-card h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 20px; }
.contact-card .row { margin-bottom: 22px; }
.contact-card .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.contact-card a { color: var(--white); font-weight: 600; }
.contact-card a:hover { color: var(--red); }
.contact-card .big { font-size: 1.3rem; font-family: var(--font-head); font-weight: 700; }

/* form */

.form-grid { display: grid; gap: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field textarea { min-height: 160px; resize: vertical; }

.field .opt { font-weight: 400; color: var(--muted); }

.radio-field { border: 0; }

.radio-field legend {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--body);
  cursor: pointer;
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  cursor: pointer;
}

/* honeypot — hidden from humans, present for bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: 0.9rem; color: var(--muted); }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.ok { display: block; background: #e7f6ee; color: #0a6b3d; }
.form-status.err { display: block; background: #fdeaec; color: var(--red-dark); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 40px;
  font-size: 0.95rem;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer .logo-tile {
  background: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
}
.site-footer .logo-tile img { height: 38px; }

.site-footer p { margin-top: 16px; max-width: 40ch; }

.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--white); }

.site-footer .fine {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > .media { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }

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

  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; }

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