/* ABOUTME: Complete design system and component styles for turbobrickhaul.com */
/* ABOUTME: Defines CSS custom properties, responsive layout, and all shared UI components */

/* ==========================================================================
   Section 1: @font-face Declarations + Custom Properties
   ========================================================================== */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/barlow-condensed-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-600.woff2') format('woff2');
}

:root {
  /* Colors */
  --color-navy: #1a2744;
  --color-navy-light: #243352;
  --color-orange: #e87722;
  --color-orange-hover: #d06a1e;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #e9ecef;
  --color-gray-600: #6c757d;
  --color-gray-800: #343a40;
  --color-gray-900: #212529;
  --color-success: #28a745;
  --color-error: #dc3545;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-default: 1px solid var(--color-gray-100);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-default: 0.3s ease;
  --transition-slow: 0.5s ease;
  --stagger-delay: 0.08s;

  /* Layout */
  --header-height: 56px;

  /* Texture */
  --noise-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  --grain-opacity: 0.03;
}

/* ==========================================================================
   Section 2: Reset / Base
   ========================================================================== */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
a {
  touch-action: manipulation;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#main-content,
[id] {
  scroll-margin-top: var(--header-height);
}

ul, ol {
  padding-left: var(--sp-6);
}

/* ==========================================================================
   Section 3: Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-gray-900);
  margin-bottom: var(--sp-4);
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-gray-900);
  margin-bottom: var(--sp-4);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-gray-900);
  margin-bottom: var(--sp-3);
}

p {
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   Section 4: Layout
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.section {
  padding: var(--sp-8) 0;
  position: relative;
}

.section--gray {
  background: var(--color-gray-50);
  position: relative;
}

.section--gray::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-gray-100) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.section--gray > .container {
  position: relative;
  z-index: 1;
}

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

.section--navy::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise-url);
  background-repeat: repeat;
  opacity: var(--grain-opacity);
  pointer-events: none;
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.section--orange {
  background: var(--color-orange);
  color: var(--color-navy);
  position: relative;
}

.section__heading {
  text-align: center;
  margin-bottom: var(--sp-8);
  position: relative;
  z-index: 1;
}

.section__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-orange);
  margin: 12px auto 0;
}

.section--navy .section__heading::after,
.section--orange .section__heading::after {
  background: var(--color-white);
}

/* ==========================================================================
   Section 5: Components
   ========================================================================== */

/* ----- Trust Bar ----- */

.trust-bar {
  background: var(--color-navy);
  border-bottom: 1px solid rgba(232, 119, 34, 0.2);
  padding: 8px 0;
}

.trust-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.trust-bar__item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  letter-spacing: 0.3px;
  line-height: 1.8;
}

.trust-bar__item + .trust-bar__item::before {
  content: "\00b7";
  margin: 0 var(--sp-2);
  opacity: 0.5;
}

.trust-bar__item a {
  color: inherit;
  text-decoration: none;
}

.trust-bar__item a:hover {
  text-decoration: underline;
  color: var(--color-white);
}

/* ----- Navigation ----- */

.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__logo:hover {
  text-decoration: none;
  color: var(--color-white);
}

.nav__toggle {
  display: block;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  line-height: 1;
}

.nav__links {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 39, 68, 0.98);
  z-index: 950;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-4);
  overscroll-behavior: contain;
}

.nav__links--open {
  display: flex;
}

.nav__links li {
  width: 100%;
  text-align: center;
}

.nav__links a {
  display: block;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--sp-3) var(--sp-4);
  min-height: 48px;
  line-height: 48px;
  transition: color var(--transition-fast);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-orange);
  text-decoration: none;
}

.nav__phone {
  display: none;
}

/* ----- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 14px 28px;
}

.btn--primary:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 12px 26px;
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-1px);
}

.btn--secondary-dark {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

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

/* ----- Cards ----- */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-orange);
  margin-bottom: var(--sp-4);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin-bottom: var(--sp-2);
}

.card p {
  color: var(--color-gray-800);
  margin-bottom: var(--sp-3);
}

.card__link {
  font-weight: 600;
  color: var(--color-orange);
}

.card__link:hover {
  text-decoration: underline;
}

/* Cargo category card variant */
.card--cargo {
  border-bottom: 3px solid transparent;
  transition: transform var(--transition-default), box-shadow var(--transition-default), border-color var(--transition-default);
}

.card--cargo:hover {
  border-bottom-color: var(--color-orange);
}

/* ----- Specs Table ----- */

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
}

.specs-table th {
  font-weight: 700;
  color: var(--color-gray-800);
  width: 40%;
}

.specs-table td {
  color: var(--color-gray-900);
  font-variant-numeric: tabular-nums;
}

.specs-table tr:nth-child(even) {
  background: var(--color-gray-50);
}

/* ----- FAQ Accordion ----- */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: var(--border-default);
}

.faq-item--active {
  border-left: 3px solid var(--color-orange);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: var(--sp-4);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--color-navy);
}

.faq-question__chevron {
  width: 20px;
  height: 20px;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item--active .faq-question__chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  padding: 0 var(--sp-4);
}

.faq-item--active .faq-answer {
  padding: var(--sp-2) var(--sp-4) var(--sp-4);
}

.faq-answer p {
  color: var(--color-gray-800);
  line-height: 1.6;
}

.faq-answer a {
  color: var(--color-orange);
}

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

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--sp-8) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: var(--sp-4);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--color-orange);
  text-decoration: none;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: var(--sp-2);
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
}

.footer__contact-link {
  display: block;
  margin-bottom: var(--sp-2);
}

.footer__service-areas {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-6);
  margin-top: var(--sp-8);
}

.footer__credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__credentials li + li::before {
  content: "\00b7";
  margin: 0 var(--sp-2);
  opacity: 0.5;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer__nap {
  font-style: normal;
  line-height: 1.8;
}

.footer__nap strong {
  font-size: 1.125rem;
}

.footer__nap-credentials {
  margin-top: var(--sp-3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ----- Bottom CTA ----- */

.bottom-cta {
  text-align: center;
  padding: var(--sp-8) 0;
  position: relative;
  overflow: hidden;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232, 119, 34, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cta .container {
  position: relative;
  z-index: 1;
}

.bottom-cta h2 {
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}

.bottom-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-6);
}

.bottom-cta__phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--sp-6);
  text-decoration: none;
}

.bottom-cta__phone:hover {
  color: var(--color-orange);
  text-decoration: none;
}

/* ----- Sticky Mobile Phone Bar ----- */

.mobile-phone-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: var(--color-orange);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-default);
}

.mobile-phone-bar a {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.mobile-phone-bar a:hover {
  text-decoration: none;
}

.mobile-phone-bar--hidden {
  transform: translateY(100%);
}

/* ==========================================================================
   Section 6: Page-Specific Styles
   ========================================================================== */

/* ----- Hero Section ----- */

.hero {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-image: url('/images/truck-hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--color-navy);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.92) 0%, rgba(26, 39, 68, 0.7) 50%, rgba(232, 119, 34, 0.15) 100%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: var(--sp-8) 0;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--sp-4);
}

.hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: var(--sp-6);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero__buttons .btn {
  width: 100%;
}

/* Hero orchestrated entrance animations */
.hero.loaded .hero__content h1 {
  animation: heroSlideFromLeft 0.6s ease-out 0.3s both;
}

.hero.loaded .hero__content p {
  animation: heroFadeUp 0.5s ease-out 0.6s both;
}

.hero.loaded .hero__buttons {
  animation: heroButtonsScale 0.4s ease-out 0.9s both;
}

@keyframes heroSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroButtonsScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Initial hidden state for hero content */
.hero .hero__content h1,
.hero .hero__content p,
.hero .hero__buttons {
  opacity: 0;
}

.hero.loaded::before {
  animation: heroBackgroundFade 0.5s ease-out both;
}

@keyframes heroBackgroundFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----- Trust Metrics Strip ----- */

.trust-metrics {
  padding: var(--sp-8) 0;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.trust-metrics .container {
  position: relative;
  z-index: 1;
}

.trust-metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  text-align: center;
}

.trust-metrics__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.trust-metrics__icon {
  width: 32px;
  height: 32px;
}

/* When on orange background, icons and text are navy */
.section--orange .trust-metrics__icon {
  color: var(--color-navy);
}

.section--orange .trust-metrics__label {
  color: rgba(26, 39, 68, 0.7);
}

.section--orange .trust-metrics__value {
  color: var(--color-navy);
}

/* When on navy background, icons are orange and text is white */
.section--navy .trust-metrics__icon {
  color: var(--color-orange);
}

.section--navy .trust-metrics__label {
  color: rgba(255, 255, 255, 0.7);
}

.section--navy .trust-metrics__value {
  color: var(--color-white);
}

.trust-metrics__label {
  font-size: 0.875rem;
}

.trust-metrics__value {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ----- Owner Introduction ----- */

.owner-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.owner-intro__photo {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.owner-intro__subtitle {
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

/* ----- Photo Gallery ----- */

.photo-gallery__featured {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-4);
}

.photo-gallery__thumbs {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-2);
}

.photo-gallery__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
  cursor: pointer;
}

.photo-gallery__thumb:hover {
  border-color: var(--color-orange);
}

/* ----- Service Area ----- */

.service-area__primary {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--sp-4);
}

.service-area__regular {
  font-size: 1rem;
  color: var(--color-gray-800);
  margin-bottom: var(--sp-4);
  line-height: 1.8;
}

.service-area__extended {
  font-size: 1rem;
  color: var(--color-gray-600);
  font-style: italic;
}

/* ----- Why Section ----- */

.why-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.why-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-section__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.why-section__list svg {
  width: 24px;
  height: 24px;
  color: var(--color-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-section__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

/* ----- Mission Text ----- */

.mission-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-gray-800);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

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

.page-header {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-4);
}

.page-header h1 {
  margin-bottom: var(--sp-3);
}

.page-header h1::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-orange);
  margin: 12px auto 0;
}

.page-header p {
  color: var(--color-gray-600);
  max-width: 600px;
  margin: var(--sp-4) auto 0;
}

/* ----- Grid Layouts ----- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.grid-7 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  justify-content: center;
}

/* ----- Specs Section ----- */

.specs-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}

/* ----- Mega Ramps ----- */

.mega-ramps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.mega-ramps__image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.mega-ramps__list {
  padding-left: var(--sp-6);
}

.mega-ramps__list li {
  margin-bottom: var(--sp-2);
  color: var(--color-gray-800);
}

.mega-ramps__list li::marker {
  color: var(--color-orange);
}

/* ----- Non-CDL Note ----- */

.non-cdl {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ----- 404 Page ----- */

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-404 h1 {
  font-size: 4rem;
  color: var(--color-orange);
  margin-bottom: var(--sp-4);
}

.page-404 p {
  font-size: 1.25rem;
  margin-bottom: var(--sp-6);
}

/* ==========================================================================
   Section 7: Responsive Media Queries
   ========================================================================== */

/* Tablet (600px+) */
@media (min-width: 600px) {
  .container {
    padding: 0 var(--sp-6);
  }

  .section {
    padding: var(--sp-12) 0;
  }

  .trust-bar {
    padding: 6px 0;
  }

  .trust-bar__item {
    font-size: 0.875rem;
  }

  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
    z-index: auto;
  }

  .nav__links li {
    width: auto;
  }

  .nav__links a {
    font-size: 0.9375rem;
    padding: var(--sp-2) var(--sp-2);
    min-height: auto;
    line-height: 1;
  }

  .nav__phone {
    display: inline-flex;
    align-items: center;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast);
    margin-left: var(--sp-4);
  }

  .nav__phone:hover {
    background: var(--color-orange-hover);
    color: var(--color-white);
    text-decoration: none;
  }

  .hero__buttons {
    flex-direction: row;
  }

  .hero__buttons .btn {
    width: auto;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .grid-7 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .mobile-phone-bar {
    display: none;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-gallery__thumb {
    width: 120px;
    height: 80px;
  }

  .specs-section {
    grid-template-columns: 1fr 1fr;
  }

  .mega-ramps {
    grid-template-columns: 1fr 1fr;
  }

  .owner-intro {
    grid-template-columns: 300px 1fr;
  }

  .btn--primary {
    padding: 16px 36px;
  }

  .btn--secondary {
    padding: 14px 34px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --header-height: 72px;
  }

  .container {
    padding: 0 var(--sp-8);
  }

  .section {
    padding: var(--sp-16) 0;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  body {
    font-size: 1.125rem;
  }

  .nav {
    height: 72px;
  }

  .nav__links {
    gap: var(--sp-6);
  }

  .hero {
    min-height: 100vh;
  }

  .hero__content p {
    font-size: 1.25rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .grid-7 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    padding: var(--sp-12) 0;
  }

  .bottom-cta {
    padding: var(--sp-12) 0;
  }

  .bottom-cta__phone {
    font-size: 2rem;
  }

  .why-section {
    grid-template-columns: 1fr 1fr;
  }

  .why-section__image {
    margin-left: -10%;
    position: relative;
    z-index: 1;
  }

  .owner-intro {
    grid-template-columns: 400px 1fr;
  }

  .photo-gallery__thumb {
    width: 150px;
    height: 100px;
  }

  .trust-metrics {
    padding: var(--sp-12) 0;
  }

  .mission-text {
    font-size: 1.25rem;
  }

  .page-header {
    padding: var(--sp-12) 0 var(--sp-6);
  }
}

/* ==========================================================================
   Section 8: Animations & Motion
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* Stagger children for trust metrics and service cards */
.stagger-children > *:nth-child(1) { transition-delay: calc(var(--stagger-delay) * 1); }
.stagger-children > *:nth-child(2) { transition-delay: calc(var(--stagger-delay) * 2); }
.stagger-children > *:nth-child(3) { transition-delay: calc(var(--stagger-delay) * 3); }
.stagger-children > *:nth-child(4) { transition-delay: calc(var(--stagger-delay) * 4); }
.stagger-children > *:nth-child(5) { transition-delay: calc(var(--stagger-delay) * 5); }
.stagger-children > *:nth-child(6) { transition-delay: calc(var(--stagger-delay) * 6); }
.stagger-children > *:nth-child(7) { transition-delay: calc(var(--stagger-delay) * 7); }
.stagger-children > *:nth-child(8) { transition-delay: calc(var(--stagger-delay) * 8); }

/* ==========================================================================
   Section 9: Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-orange);
  color: var(--color-white);
  padding: var(--sp-2) var(--sp-4);
  z-index: 9999;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--sp-2);
  text-decoration: none;
  color: var(--color-white);
}

*:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
  }

  .hero .hero__content h1,
  .hero .hero__content p,
  .hero .hero__buttons {
    opacity: 1;
  }
}

/* Add bottom padding to body for mobile phone bar */
@media (max-width: 599px) {
  body {
    padding-bottom: 56px;
  }
}
