/*
 * True Truck brand layer for the static Nashville and San Antonio pages.
 *
 * Loaded after each page's inline "master CSS" and overrides it, so these 81
 * pages share the main site's colors, type and header without editing their
 * content or their quote-form script. Change the look here, in one place.
 */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMonoVariable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --color-primary: #031e49;
  --color-primary-dark: #020817;
  --color-accent: #f05d0d;
  --color-accent-hover: #ff7d3a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f1ea;
  --color-bg-dark: #020817;
  --color-text: #0c1b38;
  --color-text-light: #4a5874;
  --color-text-on-dark: #c6cdda;
  --color-border: #e1dbcf;
  --color-cta-bg: #031e49;
  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(2, 8, 23, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.site-header .logo {
  display: block;
  line-height: 0;
}

.site-header .logo img {
  height: 36px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  color: #f4f1ea;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.header-phone:hover {
  color: var(--color-accent);
}

.header-link {
  color: rgba(244, 241, 234, 0.75);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.5rem 0.25rem;
}

.header-link:hover {
  color: #f4f1ea;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--color-accent-hover);
}

@media (max-width: 560px) {
  .site-header .logo img {
    height: 30px;
  }

  .header-phone {
    display: none;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-link {
    padding: 0.5rem 0;
  }

  .header-cta {
    height: 2.4rem;
    padding: 0 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .site-header {
    gap: 0.5rem;
  }

  .site-header .logo img {
    height: 24px;
  }
}

/* --- Type ------------------------------------------------------------- */

h1,
h2 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.75rem);
  line-height: 0.92;
  color: var(--color-primary-dark);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  line-height: 0.95;
  color: var(--color-primary-dark);
  border-bottom-width: 3px;
}

h3,
.compact-quote-form h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.subheading {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b03b06;
}

/* --- Cards & sections ---------------------------------------------------- */

.quick-facts,
.step,
details {
  border-radius: 18px;
}

.quick-facts {
  border-left-width: 1px;
  box-shadow: inset 4px 0 0 var(--color-accent);
}

.step-number {
  color: var(--color-primary-dark);
  font-weight: 800;
}

summary {
  color: var(--color-primary-dark);
}

.route-links a {
  color: var(--color-primary);
}

/* The dark CTA band and the button inside it (its inline styles need !important). */
.cta-section {
  background: radial-gradient(90% 120% at 100% 0%, rgba(240, 93, 13, 0.16), transparent 55%), var(--color-cta-bg) !important;
}

.cta-section a[href="#quote-form"] {
  border-radius: 999px !important;
  color: var(--color-primary-dark) !important;
  padding: 0.9rem 2rem !important;
}

.cta-section .cta-badge {
  color: #ffa571;
}

/* --- Quote form (visual only; the script is untouched) -------------------- */

.compact-quote-form {
  border-radius: 24px;
  border-color: #e1dbcf;
  box-shadow: 0 30px 80px -40px rgba(2, 8, 23, 0.45);
  background: #fbfaf7;
}

.compact-quote-form input,
.compact-quote-form select {
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  background: #fff;
}

.compact-quote-form input:focus,
.compact-quote-form select:focus {
  box-shadow: 0 0 0 3px rgba(240, 93, 13, 0.2);
}

.compact-quote-form .btn-next,
.compact-quote-form .btn-submit {
  border-radius: 999px;
  padding: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.compact-quote-form .btn-back {
  border-radius: 999px;
}

.compact-quote-form .option-btn {
  border-radius: 12px;
}

.compact-quote-form .option-btn.selected {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: #fff;
}

.step-dot.completed {
  background: var(--color-primary-dark);
}

/* SMS opt-in box under "Preferred Contact Method" (optional, never pre-checked). */
.compact-quote-form .sms-hint {
  margin: -0.2rem 0 0.6rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.compact-quote-form .sms-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(2, 8, 23, 0.04);
  box-shadow: inset 0 0 0 1px rgba(2, 8, 23, 0.06);
}

.compact-quote-form .sms-consent input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.compact-quote-form .sms-consent label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-light);
  cursor: pointer;
}

.compact-quote-form .sms-consent a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
}

/* Licensing disclosure that follows the footer: one block with it, no divider
   (inline styles need !important). */
.site-footer + section {
  background: var(--color-primary-dark) !important;
  border-top: 0 !important;
  padding-top: 0.5rem !important;
  padding-bottom: 2.5rem !important;
}
