/* ============================================================
   OUTBACK FREIGHT CO. — DESIGN SYSTEM
   Theme: Highway docket / freight manifest aesthetic
   Display: Oswald (signage)  |  Body: Inter  |  Data: JetBrains Mono
   ============================================================ */

:root{
  /* Brand palette */
  --navy:        #0B1F3A;   /* night highway / header */
  --navy-deep:   #071527;
  --rust:        #C8602F;   /* outback rust / primary accent */
  --rust-dark:   #A84B22;
  --steel:       #5B6B7C;   /* steel grey */
  --sand:        #F3EEE4;   /* warm sand background */
  --sand-deep:   #E9E0CF;
  --white:       #FFFFFF;
  --ink:         #1B2430;   /* body text */
  --ink-soft:    #4B5563;

  /* Switchable primary (theme switcher writes here) */
  --primary:     var(--rust);
  --primary-dark:var(--rust-dark);

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Misc */
  --radius: 4px;
  --shadow-soft: 0 10px 30px rgba(11,31,58,0.10);
  --shadow-strong: 0 18px 40px rgba(11,31,58,0.22);
  --dash-line: repeating-linear-gradient(90deg, var(--steel) 0 16px, transparent 16px 28px);
  --transition: 0.25s ease;
}

[data-theme="dark"]{
  --sand: #11161F;
  --sand-deep: #161C28;
  --white: #1A2030;
  --ink: #EDEEF0;
  --ink-soft: #B3B9C4;
  --navy: #060B14;
  --steel: #8089A0;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--navy);
}
h2{ font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3{ font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5{ color: var(--white); }

a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }

.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
.eyebrow::before{
  content:"";
  width: 28px; height: 2px;
  background: var(--primary);
  display:inline-block;
}

.section-pad{ padding: 96px 0; }
@media (max-width: 768px){ .section-pad{ padding: 64px 0; } }

.bg-navy{ background: var(--navy); color: #cdd6e3; }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy p{ color: inherit; }
.bg-sand-deep{ background: var(--sand-deep); }

/* Road-marking divider — used sparingly between major sections */
.route-divider{
  height: 3px;
  background: var(--dash-line);
  opacity: 0.5;
  width: 100%;
}

/* ============================== BUTTONS ============================== */
.btn-rust{
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-rust:hover{ background: var(--primary-dark); border-color: var(--primary-dark); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline-light-custom{
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-outline-light-custom:hover{ background: #fff; color: var(--navy); }

.btn-outline-navy{
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-outline-navy:hover{ background: var(--navy); color: #fff; }
[data-theme="dark"] .btn-outline-navy{ border-color:#fff; color:#fff; }
[data-theme="dark"] .btn-outline-navy:hover{ background:#fff; color: var(--navy); }

/* ============================== HEADER ============================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sand-deep);
  transition: padding var(--transition), box-shadow var(--transition);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header.scrolled{ padding: 10px 0; box-shadow: var(--shadow-strong); }

.brand{
  display:flex; align-items:center; gap:12px;
  font-family: var(--font-display);
  color:#fff;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand .brand-mark{
  width: 42px; height: 42px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  display:flex; align-items:center; justify-content:center;
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  flex-shrink:0;
}
.brand small{ display:block; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--primary); text-transform: uppercase; }

.navbar-nav .nav-link{
  color: var(--navy);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 8px 16px !important;
  position: relative;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active{ color: #fff !important; }
.navbar-nav .nav-link.active::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:2px;
  height:2px; background: var(--primary);
}
.navbar-toggler{ border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon{ filter: invert(1); }

/* ============================== HERO ============================== */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex; align-items:center;
  background:
    linear-gradient(100deg, rgba(7,21,39,0.92) 10%, rgba(7,21,39,0.55) 55%, rgba(7,21,39,0.78) 100%),
    repeating-linear-gradient(135deg, #14253f 0 2px, #0e1c30 2px 60px);
  color:#fff;
  overflow:hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.hero .hero-route-line{
  position:absolute; left:0; right:0; bottom: 8%;
  height: 4px;
  background: var(--dash-line);
  opacity:0.35;
}
.hero-content{ position:relative; z-index:2; padding: 80px 0 120px; }
.hero .eyebrow{ color: var(--rust); }
.hero h1{
  color:#fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero h1 span{ color: var(--rust); }
.hero p.lead{ color:#c2cbda; max-width: 560px; font-size: 1.15rem; margin-bottom: 34px;}
.hero-stats{ display:flex; gap: 40px; margin-top: 56px; flex-wrap:wrap; }
.hero-stats .stat-num{ font-family: var(--font-display); font-size: 2.2rem; color:#fff; }
.hero-stats .stat-label{ font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }

/* Manifest card floating on hero (desktop only) */
.manifest-chip{
  position:absolute; right: 6%; top: 18%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cdd6e3;
  width: 230px;
  z-index: 2;
}
.manifest-chip .chip-title{ color: var(--rust); letter-spacing:0.12em; text-transform:uppercase; font-size:0.65rem; margin-bottom:10px;}
.manifest-chip .chip-row{ display:flex; justify-content:space-between; border-top: 1px dashed rgba(255,255,255,0.18); padding: 6px 0; }
@media (max-width: 991px){ .manifest-chip{ display:none; } }

/* Page header (interior pages) */
.page-hero{
  background: var(--navy);
  color:#fff;
  padding: 130px 0 60px;
  position: relative;
  background-image: repeating-linear-gradient(135deg, #14253f 0 2px, #0e1c30 2px 60px);
}
.page-hero .eyebrow{ color: var(--rust); }
.page-hero h1{ color:#fff; font-size: clamp(2rem,4vw,3rem); }
.breadcrumb-custom{ font-family: var(--font-mono); font-size: 0.78rem; color: #9aa6b8; letter-spacing:0.05em; }
.breadcrumb-custom a{ color: var(--rust); }

/* ============================== WHY CHOOSE US ============================== */
.feature-card{
  background: var(--white);
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow:hidden;
}
.feature-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.feature-card:hover::before{ transform: scaleX(1); }
.feature-card .ficon{
  width: 56px; height:56px;
  border-radius: var(--radius);
  background: var(--sand-deep);
  color: var(--primary);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
}
.feature-card .fnum{
  font-family: var(--font-mono);
  position:absolute; top:18px; right:20px;
  font-size: 0.7rem; color: var(--steel); opacity:0.6;
}
.feature-card h3{ font-size:1.15rem; margin-bottom: 10px; }
.feature-card p{ color: var(--ink-soft); font-size: 0.95rem; margin:0; }

/* ============================== SERVICE DOCKET CARDS (signature) ============================== */
.docket-card{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  height:100%;
  display:flex; flex-direction:column;
  border: 1px solid rgba(11,31,58,0.06);
}
.docket-head{
  background: var(--navy);
  color:#fff;
  padding: 22px 26px;
  display:flex; justify-content:space-between; align-items:flex-start;
  position: relative;
}
.docket-head .docket-code{ font-family: var(--font-mono); font-size:0.72rem; color: var(--rust); letter-spacing:0.1em; }
.docket-head h3{ color:#fff; font-size:1.4rem; margin: 6px 0 0; }
.docket-body{ padding: 26px; flex:1; display:flex; flex-direction:column; }
.docket-body p.desc{ color: var(--ink-soft); margin-bottom: 18px; }
.docket-list{ list-style:none; padding:0; margin:0 0 22px; flex:1; }
.docket-list li{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 0;
  border-top: 1px dashed rgba(11,31,58,0.15);
  display:flex; align-items:center; gap:10px;
  color: var(--ink);
}
.docket-list li:last-child{ border-bottom: 1px dashed rgba(11,31,58,0.15); }
.docket-list li::before{ content:"›"; color: var(--primary); font-weight:700; }

/* perforation edge effect between head and body */
.docket-perf{
  height: 14px;
  background: var(--navy);
  position: relative;
}
.docket-perf::after{
  content:"";
  position:absolute; left:0; right:0; top: 7px;
  height: 0;
  border-top: 2px dotted rgba(255,255,255,0.5);
}

/* ============================== FLEET ============================== */
/* ============================== FLEET / TRUCK CARDS (consolidated) ============================== */
.truck-card{
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.truck-card:hover{
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.truck-visual{
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy), #142A4D);
}
.truck-visual.tautliner{ background: linear-gradient(135deg, var(--steel), var(--navy)); }
.truck-visual.reefer{ background: linear-gradient(135deg, #2C7A7B, var(--navy)); }

.truck-visual img{
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.truck-info{ padding: 22px 24px 26px; }
.truck-info h3{ font-size: 1.3rem; margin-bottom: 6px; }

.truck-specs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.truck-specs span{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--sand-deep);
  border-radius: var(--radius);
  padding: 5px 12px;
  color: var(--navy);
}

/* responsive sizing */
@media (max-width: 991px){
  .truck-visual{ height: 200px; }
  .truck-visual img{ max-width: 75%; }
}
@media (max-width: 575.98px){
  .truck-visual{ height: 170px; padding: 16px; }
  .truck-visual img{ max-width: 70%; }
  .truck-specs span{ font-size: 0.72rem; padding: 4px 10px; }
}
/* ============================== HOW IT WORKS (route map) ============================== */
.route-steps{ position:relative; }
.route-steps::before{
  content:"";
  position:absolute; top: 34px; left: 0; right:0;
  height: 3px;
  background: var(--dash-line);
  opacity: 0.6;
  z-index:0;
}
@media (max-width: 767px){ .route-steps::before{ display:none; } }
.route-step{ position:relative; z-index:1; text-align:center; }
.route-step .marker{
  width: 68px; height:68px; border-radius:50%;
  background: var(--navy);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 3px solid var(--primary);
}
.route-step h3{ font-size: 1.05rem; margin-bottom: 8px; }
.route-step p{ color: var(--ink-soft); font-size: 0.9rem; padding: 0 10px;}

/* ============================== COVERAGE ============================== */
.coverage-map-wrap{
  background: var(--navy);
  border-radius: var(--radius);
  padding: 30px;
}
.city-pill{
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}
.city-pill:hover{ transform: translateX(6px); }
.city-pill .code{ font-family: var(--font-mono); color: var(--primary); font-size:0.78rem; text-transform:none; letter-spacing:0; }

/* ============================== STATS COUNTER ============================== */
.stat-block{ text-align:center; padding: 20px; }
.stat-block .num{ font-family: var(--font-display); font-size: 3rem; color: var(--primary); line-height:1; }
.stat-block .lbl{ font-family: var(--font-mono); font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; color: var(--ink-soft); margin-top:10px; }

/* ============================== TESTIMONIALS ============================== */
.testimonial-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  height:100%;
}
.testimonial-card .quote-mark{ font-family: var(--font-display); font-size: 3rem; color: var(--primary); line-height:0.5; display:block; margin-bottom: 14px;}
.testimonial-card p.qtext{ color: var(--ink-soft); font-style: italic; margin-bottom: 18px;}
.testimonial-card .author{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--navy); display:flex; justify-content:space-between; border-top: 1px dashed rgba(11,31,58,0.15); padding-top:14px;}
[data-theme="dark"] .testimonial-card .author{ color: var(--white); }

/* Client logos */
.logo-strip{ display:flex; flex-wrap:wrap; gap: 36px; align-items:center; justify-content:center; opacity:0.7;}
.logo-strip .logo-chip{
  font-family: var(--font-display);
  letter-spacing:0.08em;
  text-transform:uppercase;
  color: var(--steel);
  border: 1px solid rgba(91,107,124,0.3);
  padding: 10px 22px;
  border-radius: var(--radius);
}

/* ============================== FAQ ============================== */
.accordion-custom .accordion-item{
  background: var(--white);
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: var(--radius) !important;
  margin-bottom: 14px;
  overflow:hidden;
}
.accordion-custom .accordion-button{
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  box-shadow:none !important;
}
.accordion-custom .accordion-button:not(.collapsed){ color: var(--primary); }
.accordion-custom .accordion-button::after{ filter: none; }
[data-theme="dark"] .accordion-custom .accordion-item,
[data-theme="dark"] .accordion-custom .accordion-button{ background: var(--white); color: var(--ink); }

/* ============================== CONTACT / QUOTE FORM ============================== */
.quote-form{
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-strong);
}
.quote-form .form-label{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}
.quote-form .form-control, .quote-form .form-select{
  border-radius: var(--radius);
  border: 1px solid rgba(11,31,58,0.18);
  padding: 12px 14px;
  font-family: var(--font-body);
}
.quote-form .form-control:focus, .quote-form .form-select:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,96,47,0.15);
}
.contact-info-card{
  background: var(--navy);
  color:#fff;
  border-radius: var(--radius);
  padding: 40px;
  height:100%;
}
.contact-info-card .ci-row{ display:flex; gap:16px; margin-bottom: 26px; }
.contact-info-card .ci-icon{
  width:44px; height:44px; flex-shrink:0;
  border:2px solid var(--rust);
  border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center;
  color: var(--rust);
}
.contact-info-card h4{ color:#fff; font-size:1rem; margin-bottom:4px;}
.contact-info-card p{ color:#aab4c4; margin:0; font-size:0.92rem;}

/* ============================== CTA BAND ============================== */
.cta-band{
  background: linear-gradient(110deg, var(--navy) 60%, var(--rust-dark) 100%);
  color:#fff;
  padding: 70px 0;
  position: relative;
  overflow:hidden;
}
.cta-band h2{ color:#fff; }
.cta-band::before{
  content:"";
  position:absolute; bottom:0; left:0; right:0; height:4px;
  background: var(--dash-line);
}

/* ============================== FOOTER ============================== */
/*.site-footer{ background: var(--navy-deep); color:#9aa6b8; padding: 70px 0 0; }*/
.site-footer{ background: var(--sand-deep); color:var(--navy); padding: 70px 0 0; }
.site-footer h5{ color:var(--rust); font-size:1rem; margin-bottom:20px; letter-spacing:0.05em; }
.site-footer ul{ list-style:none; padding:0; margin:0; }
.site-footer ul li{ margin-bottom: 12px; }
.site-footer ul li a{ color:var(--navy); transition: color var(--transition); font-size:0.92rem; }
.site-footer ul li a:hover{ color: var(--rust); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 50px;
  padding: 22px 0;
  font-size: 0.82rem;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.social-icons{ display:flex; gap:12px; }
.social-icons a{
  width:38px; height:38px; border-radius: var(--radius);
  border:1px solid rgba(255,255,255,0.15);
  display:flex; align-items:center; justify-content:center;
  transition: all var(--transition);
}
.social-icons a:hover{ background: var(--rust); border-color: var(--rust); }

/* ============================== FLOATING UI ============================== */
.back-to-top{
  position: fixed; right: 26px; bottom: 26px;
  width: 48px; height:48px;
  background: var(--navy);
  color:#fff;
  border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  border: 2px solid var(--primary);
}
.back-to-top.show{ opacity:1; visibility:visible; transform:none; }

.whatsapp-float{
  position: fixed; left: 26px; bottom: 26px;
  width: 56px; height:56px;
  background: #25D366;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-strong);
  z-index: 999;
  transition: transform var(--transition);
}
.whatsapp-float:hover{ transform: scale(1.08); }

/* Theme switcher dock */
.theme-dock{
  position: fixed; right: 26px; bottom: 90px;
  z-index: 998;
  display:flex; flex-direction:column; align-items:flex-end; gap:10px;
}
.theme-toggle-btn{
  width:48px; height:48px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-soft);
  display:flex; align-items:center; justify-content:center;
  border: 2px solid var(--navy);
  cursor:pointer;
}
.theme-panel{
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 16px;
  display:none;
  width: 200px;
}
.theme-panel.show{ display:block; }
.theme-panel .tp-label{ font-family: var(--font-mono); font-size:0.65rem; letter-spacing:0.1em; text-transform:uppercase; color: var(--steel); margin-bottom:10px; }
.theme-swatches{ display:flex; gap:10px; margin-bottom:14px; }
.theme-swatch{ width:28px; height:28px; border-radius:50%; cursor:pointer; border:2px solid transparent; }
.theme-swatch.active{ border-color: var(--navy); }
.theme-swatch[data-color="rust"]{ background:#C8602F; }
.theme-swatch[data-color="blue"]{ background:#2563EB; }
.theme-swatch[data-color="red"]{ background:#DC2626; }
.theme-swatch[data-color="green"]{ background:#16A34A; }
.theme-swatch[data-color="orange"]{ background:#F97316; }
.dark-toggle-row{ display:flex; align-items:center; justify-content:space-between; }
.dark-toggle-row span{ font-size:0.82rem; font-family: var(--font-body); color: var(--ink); }

/* Cookie banner */
.cookie-banner{
  position: fixed; left:0; right:0; bottom:0;
  background: var(--navy);
  color:#cdd6e3;
  padding: 22px;
  z-index: 1100;
  transform: translateY(110%);
  transition: transform 0.4s ease;
  border-top: 3px solid var(--primary);
}
.cookie-banner.show{ transform: translateY(0); }
.cookie-banner p{ margin:0; font-size:0.9rem; }
.cookie-banner a{ color: var(--rust); text-decoration: underline; }

/* Quote popup modal tweaks */
.modal-content.quote-modal{ border-radius: var(--radius); border:none; overflow:hidden; }
.modal-content.quote-modal .modal-header{ background: var(--navy); color:#fff; border:none; }
.modal-content.quote-modal .modal-title{ font-family: var(--font-display); text-transform:uppercase; letter-spacing:0.04em; }
.modal-content.quote-modal .btn-close{ filter: invert(1); }

/* Scroll reveal */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in{ opacity:1; transform:none; }

/* Misc utility */
.text-rust{ color: var(--primary) !important; }
.fw-display{ font-family: var(--font-display); }
.font-mono{ font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */

/* Large desktop: cap line-length, breathe a bit more */
@media (min-width: 1400px){
  .hero h1{ font-size: 4.2rem; }
  .section-pad{ padding: 112px 0; }
}

/* Tablet landscape / small desktop */
@media (max-width: 991.98px){
  .hero{ clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%); min-height: auto; padding-top: 10px; }
  .hero-content{ padding: 60px 0 90px; }
  .navbar-collapse{
    background: var(--navy-deep);
    margin-top: 14px;
    border-radius: var(--radius);
    padding: 16px;
  }
  .navbar-nav .nav-link.active::after{ display:none; }
  .navbar-nav .nav-link{ padding: 12px 16px !important; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .docket-card{ margin-bottom: 4px; }
  .theme-dock{ bottom: 80px; }
}

/* Tablet portrait */
@media (max-width: 767.98px){
  .hero{ clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); text-align:left; }
  .hero h1{ font-size: clamp(2rem, 7vw, 2.6rem); }
  .hero p.lead{ font-size: 1rem; }
  .hero-stats{ gap: 26px; margin-top: 40px; }
  .hero-stats .stat-num{ font-size: 1.7rem; }
  .page-hero{ padding: 110px 0 50px; }
  .route-steps .route-step{ margin-bottom: 26px; }
  .stat-block .num{ font-size: 2.3rem; }
  .quote-form{ padding: 26px 20px; }
  .contact-info-card{ padding: 28px 22px; margin-bottom: 24px; }
  .docket-head{ padding: 18px 20px; }
  .docket-body{ padding: 20px; }
  .cta-band{ padding: 50px 0; }
  .cta-band h2{ font-size: 1.6rem; }
  .footer-bottom{ flex-direction: column; align-items:flex-start; gap: 14px; text-align:left; }
}

/* Mobile */
@media (max-width: 575.98px){
  .container{ padding-left: 18px; padding-right: 18px; }
  .section-pad{ padding: 52px 0; }
  .hero h1{ font-size: 1.85rem; line-height:1.15; }
  .hero p.lead{ max-width: 100%; }
  .hero .btn-rust, .hero .btn-outline-light-custom{ width:100%; text-align:center; }
  .hero-content .d-flex.gap-3{ flex-direction: column; }
  .hero-stats{ gap: 18px; justify-content: space-between; }
  .hero-stats > div{ flex: 1 1 30%; }
  .eyebrow{ font-size: 0.7rem; }
  .feature-card{ padding: 24px 20px; }
  .truck-visual{ height: 170px; }
  .truck-specs span{ font-size: 0.72rem; padding: 5px 10px; }
  .route-step .marker{ width: 56px; height:56px; font-size:0.75rem; }
  .city-pill{ padding: 13px 14px; font-size: 0.85rem; }
  .stat-block .num{ font-size: 1.9rem; }
  .testimonial-card{ padding: 24px 20px; }
  .accordion-custom .accordion-button{ font-size: 0.88rem; padding: 14px 16px; }
  .cookie-banner{ padding: 16px; }
  .cookie-banner .container{ flex-direction: column; align-items: stretch; }
  .cookie-banner .d-flex.gap-2{ width:100%; }
  .cookie-banner .d-flex.gap-2 button{ flex:1; }
  .back-to-top{ right: 16px; bottom: 16px; width:44px; height:44px; }
  .whatsapp-float{ left: 16px; bottom: 16px; width:50px; height:50px; }
  .theme-dock{ right: 16px; bottom: 70px; }
  .theme-panel{ width: 180px; }
  .quote-form, .contact-info-card{ padding: 22px 18px; }
  .docket-list li{ font-size: 0.8rem; }
  .brand{ font-size: 1.05rem; }
  .brand .brand-mark{ width:36px; height:36px; font-size:0.78rem; }
}

/* Extra small phones */
@media (max-width: 380px){
  .hero h1{ font-size: 1.6rem; }
  .hero-stats .stat-num{ font-size: 1.4rem; }
  .stat-block .num{ font-size: 1.6rem; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse){
  .btn-rust, .btn-outline-navy, .btn-outline-light-custom{ padding-top: 14px; padding-bottom: 14px; }
  .nav-link, .accordion-button{ min-height: 44px; display:flex; align-items:center; }
  .theme-swatch{ width:34px; height:34px; }
}

/* Landscape phones: shrink hero height so content doesn't overflow viewport */
@media (max-height: 480px) and (orientation: landscape){
  .hero{ min-height: auto; }
  .hero-content{ padding: 100px 0 60px; }
}

/* ===== LOGO IMAGE FIX — replaces APT text box ===== */
.site-logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Ensure it shows on both light/dark nav */
  filter: none;
}
@media (max-width: 991px) {
  .site-logo-img { height: 36px; }
}

/* Footer logo sizing */
.site-footer .site-logo-img {
  height: 150px;
}

/* Remove brand-mark box if somehow still shown */
.brand-mark { display: none !important; }

/* Ensure navbar brand has no extra padding from old brand class */
.navbar-brand.brand {
  padding: 8px 0;
  gap: 0;
}

/* ===== COVERAGE MAP ===== */
.coverage-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11,31,58,.28);
  background: #0B1F3A;
}

/* ===== TRUCK CARDS FIX ===== */
.truck-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 8px 28px rgba(11,31,58,.10);
}
.truck-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(11,31,58,.20);
}
.truck-visual {
  background: linear-gradient(135deg, #0B1F3A, #142A4D);
  padding: 0px;
  min-height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.truck-info { padding: 20px 22px 22px; }
.truck-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.truck-specs span {
  font-family: var(--font-mono);
  font-size: .75rem;
  background: var(--sand-deep);
  border-radius: 4px;
  padding: 3px 10px;
  color: var(--navy);
  font-weight: 600;
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 991px) {
  #mainNav {
    background: #060e1c;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .navbar-nav .nav-item { border-bottom: 1px solid rgba(255,255,255,.05); }
}

@media (max-width: 576px) {
  .hero { padding: 90px 0 50px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-num { font-size: 1.8rem; }
}

/* Text utility */
.text-rust { color: var(--rust) !important; }

/* ===================================================
   RESPONSIVE & LOGO FIXES — v1 update
   =================================================== */

/* --- LOGO: 500×500 source → display at proper nav height --- */
.site-logo-img {
  height: 72px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  max-width: 220px;
}
@media (max-width: 991px) {
  .site-logo-img { height: 70px !important; max-width: 160px; }
}
@media (max-width: 480px) {
  .site-logo-img { height: 70px !important; max-width: 140px; }
}

/* Footer logo override */
.site-footer .site-logo-img {
  height: 80px !important;
  max-width: 180px;
}

/* --- NAVBAR: prevent logo overflowing on mobile --- */
.navbar-brand.brand {
  padding: 6px 0;
  max-width: calc(100% - 60px);
  flex-shrink: 1;
}

/* --- HERO: mobile text overflow fix --- */
@media (max-width: 767px) {
  .hero { padding: 0px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hero .lead { font-size: 0.95rem; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .manifest-chip { display: none; }
}

/* --- HERO BUTTONS: stack on small screens --- */
@media (max-width: 480px) {
  .hero .d-flex.gap-3 { flex-direction: column; }
  .hero .d-flex.gap-3 a { text-align: center; }
}

/* --- FEATURE CARDS: equal height on grid --- */
.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* --- DOCKET CARDS: full height on both columns --- */
.docket-card { height: 100%; }

/* --- TRUCK CARDS: prevent overflow on tablet --- */
@media (max-width: 991px) {
  .truck-card .truck-visual { height: 240px !important; }
  .truck-card .truck-visual img { max-width: 80% !important; }
}
@media (max-width: 576px) {
  .truck-card .truck-visual { height: 200px !important; }
}

/* --- COVERAGE MAP: proper aspect on all screens --- */
.coverage-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #0a1828;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  line-height: 0;
}
.coverage-map-wrap svg { display: block; width: 100%; height: auto; }

/* --- CITY PILLS: overflow fix on very small screens --- */
@media (max-width: 400px) {
  .city-pill { font-size: 0.8rem; padding: 6px 10px; }
}

/* --- FOOTER: stack properly on mobile --- */
@media (max-width: 576px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .site-footer .row.gy-5 > [class*="col-6"] { flex: 0 0 100%; max-width: 100%; }
}

/* --- STATS SECTION: numbers wrap properly --- */
@media (max-width: 400px) {
  .stat-block .num { font-size: 2rem; }
}

/* --- COOKIE BANNER: mobile fix --- */
@media (max-width: 576px) {
  .cookie-banner .container { flex-direction: column; }
  .cookie-banner .d-flex { width: 100%; justify-content: center; }
}

/* --- ROUTE STEPS: 2-col on mobile already but fix text size --- */
@media (max-width: 480px) {
  .route-step h3 { font-size: 0.95rem; }
  .marker { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* --- PAGE HERO: mobile padding --- */
@media (max-width: 767px) {
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
}

/* --- MODAL: full screen on tiny devices --- */
@media (max-width: 480px) {
  .modal-dialog { margin: 0; }
  .modal-content { border-radius: 0; min-height: 100vh; }
}

/* --- CTA BAND: padding fix on mobile --- */
@media (max-width: 576px) {
  .cta-band { padding: 60px 20px; }
  .cta-band h2 { font-size: 1.5rem; }
}

/* --- THEME DOCK: keep on screen on small devices --- */
@media (max-width: 480px) {
  .theme-dock { bottom: 70px; right: 12px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .back-to-top { bottom: 70px; left: 16px; right: auto; }
}

/* --- ACCORDION: word-break fix --- */
.accordion-button { word-break: break-word; }

/* --- TABLE / SPECS wrap --- */
.truck-specs { flex-wrap: wrap; }

/* Services page truck-visual real image fix */
.truck-visual.tautliner img,
.truck-visual.reefer img {
  /*width: 60%;*/
  max-width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}
