/* Cardinal Logistics — static site styles.
   Brand colors from the official logo: cardinal red #BA0516, black, gold beak
   #F3A81B, and white. Layout follows the Clearlane static-site pattern. */

:root {
  --bg: #ffffff;
  --bg-raised: #f5f3f1;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #0a0a0a;
  --border: #e4e0dc;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-bright: #0a0a0a;
  --primary: #BA0516;
  --primary-dark: #8E0411;
  --primary-light: #D41A2C;
  --gold: #F3A81B;
  --gold-dark: #C48A14;
  --black: #0a0a0a;
  --red-grad: linear-gradient(180deg, #D41A2C 0%, #BA0516 55%, #8E0411 100%);
  --red-grad-hover: linear-gradient(180deg, #E02335 0%, #C40A1C 50%, #BA0516 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

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

h1, h2, h3, h4 { color: var(--text-bright); line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo:hover { text-decoration: none; opacity: 0.92; }
.logo-img {
  display: block;
  height: 58px;
  width: auto;
}
.footer-logo .logo-img { height: 64px; }
.footer-badge {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 0.85rem;
  display: block;
}
.footer-badge img { width: 100%; height: 100%; object-fit: contain; }

.header-contact {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  text-align: right;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.header-contact a { color: var(--text); text-decoration: none; }
.header-contact a:hover { color: var(--primary); text-decoration: none; }
.header-phone {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  font-weight: 700;
}
.header-phone:hover { color: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  font: inherit;
}
.nav-toggle:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.site-nav { background: #fff; border-top: 1px solid var(--border); }
.site-nav ul {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1400px;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 0.85rem 1.1rem;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red-grad);
  color: #fff !important;
  border: 0;
  border-radius: 4px;
  padding: 0.8rem 1.4rem;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: filter 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--red-grad-hover); }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
}
.btn-secondary:hover { background: rgba(186, 5, 22, 0.08); }
.btn-ghost {
  background: transparent;
  border: 1px solid #fff;
  color: #fff !important;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { width: 100%; }

/* ---------- Hero (photo) ---------- */
.hero-photo {
  position: relative;
  min-height: min(78vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #111;
  isolation: isolate;
  overflow: hidden;
}
.hero-photo picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.45) 45%, rgba(10, 10, 10, 0.82) 100%);
  z-index: 1;
}
.hero-photo .hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 3.2rem;
  text-align: left;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}
.hero-photo h1 { color: #fff; max-width: 16ch; }
.hero-photo p { color: #f0eeec; max-width: 38rem; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-muted { background: var(--bg-raised); }
.section-dark {
  background: var(--bg-footer);
  color: #e8e6e3;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark .muted { color: #c9c4bf; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.why-grid,
.service-grid,
.step-grid,
.photo-grid {
  display: grid;
  gap: 1.25rem;
}
.why-grid { grid-template-columns: repeat(3, 1fr); }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(5, 1fr); }
.photo-grid { grid-template-columns: repeat(3, 1fr); }

.why-card,
.service-card,
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  padding: 1.4rem 1.2rem;
}
.section-muted .why-card,
.section-muted .service-card,
.section-muted .step-card { background: #fff; }
.service-card { text-decoration: none; color: inherit; display: block; }
a.service-card:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.why-card p,
.service-card p,
.step-card p { margin: 0; color: var(--text-muted); }
.step-num {
  color: var(--primary);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}
.story.reverse { grid-template-columns: 1.1fr 0.9fr; }
.story.reverse .story-photo { order: 2; }
.story-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
}
.story.landscape .story-photo img { aspect-ratio: 4 / 3; }
.story blockquote,
.pullquote {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text-bright);
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  font-weight: 500;
}

.photo-card { margin: 0; }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
}
.photo-card figcaption {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Marked region for additional semi-truck marketing copy */
.semi-copy {
  border: 1px dashed #d0c4b8;
  background: #fff;
  padding: 1.5rem 1.3rem;
}
.semi-copy[data-copy-slot="semi-truck"] { /* slot for future semi-truck copy */ }

.cta-band {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 2.5rem 0;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.2rem; }
.cta-band .btn { background: #fff; color: var(--primary) !important; }
.cta-band .btn:hover { background: #ffe8eb; }
.cta-band .btn-ghost { background: transparent; border-color: #fff; color: #fff !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); color: #c9c4bf; }
.footer-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
}
.site-footer h2 { font-size: 1.05rem; margin-bottom: 0.8rem; color: #fff; }
.site-footer a { color: #f0eeec; }
.site-footer a:hover { color: var(--gold); }
.footer-phone {
  font-size: 1.5rem;
  color: #fff;
  display: block;
  margin: 0.35rem 0;
  text-decoration: none;
  font-weight: 700;
}
.footer-phone:hover { color: var(--gold); text-decoration: none; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav a { color: #c9c4bf; display: inline-block; padding: 0.2rem 0; }
.footer-legal { color: #9a948f; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 0.9rem 0 1.2rem;
  font-size: 0.8rem;
  color: #9a948f;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.draft-note { color: #d4b56a; }

/* ---------- Page titles ---------- */
.page-hero {
  background: linear-gradient(180deg, #1a0a0c 0%, #0a0a0a 100%);
  padding: 2.4rem 0 1.8rem;
  color: #fff;
}
.page-hero h1 { margin-bottom: 0.35rem; color: #fff; }
.page-hero p { margin: 0; color: #d4cfc9; max-width: 44rem; }

/* ---------- Quote / forms ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 0 3rem;
}
.quote-layout > #quote-request { grid-column: 1 / -1; }
.estimator,
.estimate-card,
.lead-form,
.contact-form,
.home-quote {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 1.3rem 1.2rem 1.4rem;
}
.estimate-card { position: sticky; top: 8rem; background: #fff; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.form-row { margin-bottom: 0.85rem; }
.form-row label,
.form-check {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}
.form input,
.form select,
.form textarea,
.estimator input,
.estimator select,
.estimator textarea,
.home-quote input,
.home-quote select {
  width: 100%;
  background: #fff;
  color: var(--text-bright);
  border: 1px solid #ccc8c4;
  border-radius: 4px;
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.form textarea { min-height: 110px; resize: vertical; }
.form-check { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: 0.95rem; }
.form-check input { width: auto; }
.field-status { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
.field-status.err { color: #9b1c1c; }
.form-status { margin-top: 0.75rem; font-size: 0.95rem; }
.form-status.ok { color: #1c7a46; }
.form-status.err { color: #9b1c1c; }
.hint { margin: 0.3rem 0 0; font-size: 0.8rem; color: var(--text-muted); }

.estimate-range {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-bright);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
}
.estimate-range span { color: var(--primary); }
.estimate-mid, .deposit-amount { font-size: 1.05rem; }
.deposit-amount strong { color: var(--primary); font-size: 1.2rem; }
.estimate-meta { color: var(--text-muted); margin-bottom: 0.35rem; }
.estimate-disclaimer { margin-top: 0.8rem; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0.6rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.store-hours { margin: 0.4rem 0 1rem; }
.store-hours table { border-collapse: collapse; width: auto; min-width: 16rem; }
.store-hours th, .store-hours td {
  text-align: left;
  padding: 0.2rem 1.1rem 0.2rem 0;
  font-weight: 400;
  color: var(--text-muted);
}
.store-hours th { color: var(--text-bright); padding-right: 1.5rem; }
.site-footer .store-hours th { color: #fff; }
.site-footer .store-hours td { color: #c9c4bf; }

.home-quote { max-width: 42rem; margin: 0 auto; }
.home-quote .btn { margin-top: 0.4rem; }

.map-wrap {
  border: 1px solid var(--border);
  background: #f0eeec;
  min-height: 280px;
}
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

.muted { color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form { position: relative; }
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .why-grid,
  .service-grid,
  .step-grid,
  .quote-layout,
  .about-grid,
  .footer-main,
  .story,
  .story.reverse,
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .estimate-card { position: static; }
  .story.reverse .story-photo { order: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .header-top { flex-wrap: wrap; }
  .header-contact { margin-left: auto; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0; }
  .hero-photo { min-height: min(70vh, 36rem); }
  .hero-photo-img { object-position: 52% 42%; }
  .header-phone { font-size: 1.15rem; }
  .why-grid,
  .service-grid,
  .step-grid,
  .about-grid,
  .footer-main,
  .form-grid,
  .story,
  .story.reverse,
  .photo-grid { grid-template-columns: 1fr; }
  .logo-img { height: 46px; }
}

/* ---------- Brand / services banners ---------- */
.brand-band {
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.75rem 1.25rem;
}
.brand-band img {
  width: min(640px, 90vw);
  height: auto;
  display: block;
}
.services-banner-band {
  background: #0a0a0a;
}
.services-banner-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.services-banner-scroll picture,
.services-banner-scroll img {
  display: block;
  width: 100%;
  max-width: 1400px;
  min-width: 760px;
  height: auto;
  margin: 0 auto;
}
.services-banner-compact .services-banner-scroll img {
  max-width: 1100px;
  min-width: 680px;
}
@media (min-width: 900px) {
  .services-banner-scroll img { min-width: 0; }
}
.footer-logo { display: inline-block; margin-bottom: 0.85rem; }
.footer-lockup {
  display: block;
  width: min(280px, 90%);
  height: auto;
}
