/* Just Better Fleet — site styles (dark blue + light gray) */
:root {
  --navy-900: #0b1f3a;   /* header, footer, hero */
  --navy: #13335f;       /* buttons, accents */
  --navy-600: #1f4f8f;   /* hover, eyebrows, links */
  --navy-tint: #9fb6d6;  /* accent text on dark */
  --gray-100: #f1f3f6;   /* page background */
  --gray-200: #e4e8ee;   /* alternate sections */
  --gray-300: #cfd6df;   /* borders */
  --white: #ffffff;
  --ink: #0f1d33;        /* main text */
  --muted: #56647a;      /* secondary text */
  --on-dark: #e9eef5;
  --on-dark-muted: #a9b8cc;
  --radius: 10px;
  --max: 1180px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gray-100);
  color: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* never allow sideways scrolling on phones */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
[id] { scroll-margin-top: 90px; }
.section--alt { background: var(--gray-200); border-block: 1px solid var(--gray-300); }
.eyebrow {
  display: inline-block;
  font: 700 .8rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 14px;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  font: 700 .95rem/1 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-600); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.hero .btn--primary, .cta-band .btn--primary, .header__call { background: var(--white); color: var(--navy-900); }
.hero .btn--primary:hover, .cta-band .btn--primary:hover, .header__call:hover { background: var(--gray-200); }
.hero .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn svg { width: 18px; height: 18px; }

/* Promo bar + header */
.promo {
  background: var(--navy-600);
  color: #fff;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  padding: 9px 16px;
}
.promo a { text-decoration: underline; text-underline-offset: 3px; }
.promo .promo__link { text-decoration: none; }
.promo__link span { text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }
.promo__link:hover span { text-decoration-thickness: 2px; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 54px; height: 54px; }
.brand span { font: 800 1.35rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.brand small { display: block; font: 600 .7rem/1.4 var(--body); letter-spacing: .14em; color: var(--on-dark-muted); }
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--on-dark-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-color: var(--navy-tint); }
.header__call { padding: 11px 18px; }
.menu-btn {
  display: none;
  background: none; border: 0; color: #fff;
  width: 44px; height: 44px; padding: 10px; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,31,58,.96) 0%, rgba(11,31,58,.8) 45%, rgba(11,31,58,.4) 100%);
}
.hero .container { position: relative; z-index: 1; padding-block: 80px; }
.hero h1 { max-width: 14ch; color: #fff; }
.hero h1 em { font-style: normal; color: var(--navy-tint); }
.hero .eyebrow { color: var(--navy-tint); }
.hero p { font-size: 1.2rem; color: #d5deea; max-width: 54ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero { min-height: 420px; }
.page-hero h1 { max-width: 18ch; }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11,31,58,.12);
  margin-top: -56px;
  position: relative; z-index: 2;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--gray-300); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 800 2rem/1 var(--head); color: var(--navy); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,31,58,.12); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__link {
  margin-top: auto;
  font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-600); text-decoration: none;
}
.card__link:hover { text-decoration: underline; }

.feature {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-left: 3px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.feature h3 { font-size: 1.3rem; margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.feature li { margin-bottom: 4px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; color: var(--muted); }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist strong { color: var(--ink); }

/* Coupons */
.coupon {
  background: var(--white);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.coupon__amt { font: 800 3.4rem/1 var(--head); color: var(--navy); margin-bottom: 8px; }
.coupon h3 { font-size: 1.25rem; }
.coupon p { color: var(--muted); font-size: .9rem; margin: 0 auto; max-width: 60ch; }
.coupon--free { border-color: var(--navy-600); }
.coupon--free .coupon__amt { color: var(--navy-600); }
.fine { color: var(--muted); font-size: .85rem; margin-top: 20px; text-align: center; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partners div {
  background: #fff; border: 1px solid var(--gray-300); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; aspect-ratio: 3 / 2;
  min-width: 0; overflow: hidden;
}
/* Fill the tile and scale down inside it; Safari otherwise keeps the logo's full width */
.partners img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-900));
  border-radius: 14px;
  padding: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: #c9d5e6; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--navy-600); margin-top: 3px; }
.info-list strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-list a { text-decoration: none; }
.info-list a:hover { color: var(--navy-600); }

/* Quote card + dialog (call / text / email) */
.quote-card, .quote-dialog {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
}
.quote-card h3, .quote-dialog h3 { font-size: 1.8rem; margin-bottom: 10px; }
.quote-card p, .quote-dialog p { color: var(--muted); }
.quote-card strong, .quote-dialog strong { color: var(--ink); }
.quote-actions { display: grid; gap: 12px; margin: 22px 0 18px; }
.quote-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700; font-size: 1.1rem;
  color: var(--navy-900);
  transition: border-color .2s, background .2s;
  overflow-wrap: anywhere;
}
.quote-btn:hover { border-color: var(--navy-600); background: var(--gray-200); }
.quote-btn:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.quote-btn:first-child:hover { background: var(--navy-600); }
.quote-btn svg { width: 24px; height: 24px; flex: none; }
.quote-btn small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.quote-btn:not(:first-child) svg { color: var(--navy-600); }
.quote-hours { font-size: .88rem; margin: 0; }
.quote-dialog { width: min(480px, calc(100% - 32px)); position: relative; }
.quote-dialog::backdrop { background: rgba(11,31,58,.7); backdrop-filter: blur(3px); }
.quote-dialog__close {
  position: absolute; top: 10px; right: 12px;
  width: 40px; height: 40px;
  background: none; border: 0; color: var(--muted);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.quote-dialog__close:hover { color: var(--ink); }

/* Student coupon (popup + specials page) */
.coupon--student { border-color: var(--navy); }
.coupon { display: flex; flex-direction: column; align-items: center; }
.coupon .btn { margin-top: auto; }
.coupon p { margin-bottom: 18px; }
.coupon--veteran { border-color: #b22234; }
.coupon__flag, .student-coupon__flag { display: block; margin: 0 auto 12px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.coupon .coupon__badge {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.coupon-dialog {
  width: min(440px, calc(100% - 32px));
  position: relative;
  background: var(--white);
  border: 0;
  border-radius: 14px;
  padding: 28px;
  color: var(--ink);
}
.coupon-dialog::backdrop { background: rgba(11,31,58,.7); backdrop-filter: blur(3px); }
.student-coupon {
  border: 3px dashed var(--navy);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  background: var(--gray-100);
}
.student-coupon img { margin: 0 auto 8px; }
.student-coupon__eyebrow { font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-600); margin: 0 0 8px; }
.student-coupon__amt { font: 800 4.2rem/1 var(--head); color: var(--navy-900); }
.student-coupon__what { font-weight: 600; margin: 6px 0 14px; }
.student-coupon__max { font-weight: 700; color: var(--navy-900); margin: -6px 0 14px; }
.student-coupon__req { background: var(--navy); color: #fff; border-radius: 6px; padding: 8px 12px; margin: 0 0 12px; font-size: .95rem; }
.student-coupon__req strong { color: #fff; }
.student-coupon__fine { font-size: .85rem; font-weight: 600; color: var(--navy-900); margin: 0 0 12px; }
.student-coupon__info { color: var(--muted); font-size: .82rem; margin: 0; }
.nowrap { white-space: nowrap; }
.coupon-dialog__tip { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0; }
.coupon-dialog__actions { display: flex; gap: 12px; }
.coupon-dialog__actions .btn { flex: 1; }

/* Reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.reviews-head h2 { margin-bottom: 12px; }
.rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.rating strong { font: 800 2rem/1 var(--head); color: var(--navy-900); }
.stars { color: #f2a900; letter-spacing: 2px; font-size: 1.15rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.review {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.review__text { position: relative; max-height: 13.2em; overflow: hidden; color: #33415a; font-size: .97rem; }
.review__text::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em;
  background: linear-gradient(rgba(255,255,255,0), var(--white));
}
.review__text p:last-child { margin-bottom: 0; }
.review.is-open .review__text { max-height: none; }
.review.is-open .review__text::after { display: none; }
.review__more {
  align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--navy-600); font: 700 .85rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
}
.review__more:hover { text-decoration: underline; }
.review footer { border-top: 1px solid var(--gray-300); padding-top: 14px; }
.review footer strong { display: block; color: var(--navy-900); }
.review footer span { color: var(--muted); font-size: .85rem; }

/* Footer */
.footer { background: var(--navy-900); padding: 56px 0 28px; color: var(--on-dark-muted); font-size: .95rem; }
.footer h4 { color: #fff; font: 700 1.1rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 16px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2);
}
.social a:hover { border-color: #fff; color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Mobile call bar */
.call-bar { display: none; }

/* Prose (privacy page) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose p, .prose li { color: #33415a; }

@media (max-width: 960px) {
  .nav, .header__call { display: none; }
  .menu-btn { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 8px 20px 20px;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-last-child(n+2) { border-bottom: 1px solid var(--gray-300); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .grid-3, .split, .contact, .footer__grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .split { gap: 32px; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand span { font-size: 1.15rem; }
  .brand img { width: 46px; height: 46px; }
  .hero { min-height: 0; }
  .hero .container { padding-block: 64px 96px; }
  .hero p { font-size: 1.05rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .grid-2, .reviews { grid-template-columns: 1fr; }
  .quote-card, .quote-dialog { padding: 24px 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .partners { gap: 10px; }
  .partners div { padding: 10px; }
  .stat { padding: 20px 16px; }
  .stat strong { font-size: 1.6rem; }
  .cta-band { padding: 32px 24px; }
  .footer { padding-bottom: 96px; }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--gray-300);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px; font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em;
  }
  .call-bar a:first-child { background: var(--navy); color: #fff; }
  .call-bar a:last-child { background: var(--white); color: var(--navy-900); }
  .call-bar svg { width: 18px; height: 18px; }
}
/* Printing from the coupon popup prints only the coupon */
@media print {
  html, body { background: #fff !important; }
  body:has(.coupon-dialog[open]) > *:not(.coupon-dialog) { display: none !important; }
  .coupon-dialog[open] { position: static; margin: 0 auto; box-shadow: none; }
  .coupon-dialog::backdrop { background: none; backdrop-filter: none; }
  .coupon-dialog__actions, .coupon-dialog__tip, .coupon-dialog .quote-dialog__close { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}