/* ============================================================
   site.css - JAMFLO landing page theme.
   Loaded AFTER Bootstrap 5.3.8 (public/bootstrap5). Bootstrap gives
   the grid (container/row/col), navbar + collapse, accordion, card,
   table, forms, buttons and alerts; this file only sets the JAMFLO
   look on top: Archivo headings, Inter text, black/white/red, 4px
   corners, hairline dividers.
   ============================================================ */
:root{
  color-scheme: light;
  --paper: #FFFFFF; --ground: #F5F5F4; --ink: #141416; --ink-2: #3B3D42; --mute: #63666C;
  --line: #E4E4E2; --line-2: #CFCFCC; --red: #C8102E; --red-dark: #A10D25; --char: #1B1C1F;
  --ok: #1F6B45; --bad: #A10D25; --red-soft: #FF6B7D;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Segoe UI", Arial, sans-serif;
  --r: 4px;

  /* Bootstrap variables, set to the JAMFLO theme */
  --bs-body-font-family: var(--text);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--ground);
  --bs-heading-color: var(--ink);
  --bs-border-color: var(--line-2);
  --bs-border-radius: var(--r);
  --bs-border-radius-sm: 3px;
  --bs-border-radius-lg: var(--r);
  --bs-link-color: var(--red);
  --bs-link-color-rgb: 200, 16, 46;
  --bs-link-hover-color: var(--red-dark);
  --bs-link-hover-color-rgb: 161, 13, 37;
  --bs-focus-ring-color: rgba(20, 20, 22, .35);
  --bs-form-invalid-color: var(--bad);
  --bs-form-invalid-border-color: var(--bad);
}
html{ scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } *{ animation: none !important; transition: none !important; } }
body{ background: var(--ground); color: var(--ink); font: 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img{ max-width: 100%; display: block; }
h1, h2, h3{ font-family: var(--head); font-weight: 700; letter-spacing: -.015em; line-height: 1.1; margin: 0; text-wrap: balance; color: var(--ink); }
p{ margin: 0; }
a{ color: inherit; }
dt{ font-weight: 400; }

/* Bootstrap container at the JAMFLO page width (1120px of content, 20px sides) */
.container{ --bs-gutter-x: 2.5rem; max-width: 1160px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.photo{ filter: saturate(.82) contrast(1.06) sepia(.06); object-fit: cover; background: var(--line); }
.photo.true-color{ filter: none; } /* JAMFLO truck photos keep their real blue and green */
.fade-in{ animation: fadeIn .5s ease both; }
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }
.label{ font: 600 12px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.num{ font-variant-numeric: tabular-nums; }
.skip.visually-hidden-focusable:focus{ position: absolute !important; left: 1rem; top: 1rem; z-index: 2000; padding: .6rem 1rem; background: var(--ink); color: #fff; }
:is(a, button, input, select, textarea):focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Bootstrap buttons, JAMFLO variants ---------- */
.btn{
  --bs-btn-padding-x: 1.3rem; --bs-btn-padding-y: 0;
  --bs-btn-font-family: var(--text); --bs-btn-font-size: 15px; --bs-btn-font-weight: 600; --bs-btn-line-height: 1;
  --bs-btn-border-radius: var(--r);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px;
}
.btn:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.btn-red{
  --bs-btn-color: #fff; --bs-btn-bg: var(--red); --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--red-dark); --bs-btn-hover-border-color: var(--red-dark);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #8A0B20; --bs-btn-active-border-color: #8A0B20;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--red); --bs-btn-disabled-border-color: var(--red);
}
.btn-outline-dark{
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink);
}
.btn-white{
  --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink);
  flex: none;
}
.btn[disabled]{ opacity: .6; cursor: wait; }

/* ---------- Header: Bootstrap navbar, black ---------- */
.site-head{ background: var(--char); border-bottom: 1px solid #2C2D31; transition: box-shadow .2s; }
.site-head.scrolled{ box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.site-head .navbar{
  --bs-navbar-padding-y: 16px;
  --bs-navbar-color: #D4D4D0; --bs-navbar-hover-color: #FFF; --bs-navbar-active-color: #FFF;
  --bs-navbar-nav-link-padding-x: 0;
  --bs-navbar-toggler-border-color: #55575C; --bs-navbar-toggler-border-radius: var(--r);
  --bs-navbar-toggler-focus-width: 0; --bs-navbar-toggler-padding-x: .9rem; --bs-navbar-toggler-padding-y: 0;
}
.brand{ display: flex; align-items: center; gap: .7rem; padding: 0; margin: 0; text-decoration: none; }
.brand img{ width: 40px; height: 40px; object-fit: contain; background: #FFF; border-radius: 50%; padding: 2px; }
.brand b{ font: 800 18px/1 var(--head); letter-spacing: .04em; color: #FFF; }
.site-head .nav-link{ font-size: 15px; }
.site-head .nav-link:hover, .site-head .nav-link.active{ text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--red-soft); }
.menu-btn{ height: 40px; color: #FFF; font: 600 14px var(--text); }
.signin-btn{ --bs-btn-padding-x: 1.4rem; --bs-btn-font-weight: 700; min-height: 42px; letter-spacing: .02em; white-space: nowrap; }
.site-head a:focus-visible, .site-head button:focus-visible{ outline-color: #FFF; }
@media (min-width: 992px){
  .site-head .navbar-nav{ gap: 1.6rem; padding-right: 1.6rem; border-right: 1px solid #3A3B40; }
  .site-head .signin-btn{ margin-left: 1.6rem; }
}
@media (max-width: 991.98px){
  .site-head .navbar-collapse{ margin-top: 16px; border-top: 1px solid #2C2D31; padding-bottom: .5rem; }
  .site-head .nav-link{ padding-block: .8rem; border-bottom: 1px solid #2C2D31; color: #E4E4E0; }
  .site-head .signin-btn{ width: 100%; margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero{ background: var(--paper); padding-block: 5.5rem 6rem; }
.hero .label{ color: var(--red); }
.hero h1{ font-size: clamp(2.6rem, 5.2vw, 4.4rem); margin: 1rem 0 1.4rem; }
.hero-lead{ font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; }
.hero .actions{ margin-top: 2.2rem; }
.hero .shot{ aspect-ratio: 2200 / 1760; width: 100%; height: auto; border-radius: var(--r); }

/* ---------- Sections ---------- */
.section{ padding-block: 6rem; }
.section.white{ background: var(--paper); }
.sec-head{ margin-bottom: 3.5rem; }
.sec-title, .sec-head h2{ font-size: clamp(2rem, 3.4vw, 2.9rem); }
.sec-head p, .intro{ color: var(--ink-2); font-size: 1.08rem; max-width: 36rem; }

.about .square{ aspect-ratio: 1 / 1; width: 100%; height: auto; border-radius: var(--r); }
.about h2{ margin: .8rem 0 1.4rem; }
.about .body{ color: var(--ink-2); font-size: 1.08rem; }
.about .body p + p{ margin-top: 1.1rem; }
.facts{ border-top: 1px solid var(--line); margin-top: 2.4rem; }
.facts > div{ padding: 1.2rem 1rem 0 0; }
.facts strong{ display: block; font: 700 1.15rem/1.2 var(--head); }
.facts span{ color: var(--mute); font-size: .9rem; }

.bleed{ position: relative; margin: 0; height: min(72vh, 640px); background: var(--char); }
.bleed img{ width: 100%; height: 100%; }
.bleed figcaption{ position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0; color: #fff; font-size: .95rem; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }

.timeline{ margin: 0; border-top: 1px solid var(--line-2); }
.timeline li{ padding: 1.8rem 2rem 2.2rem 0; border-bottom: 1px solid var(--line); }
.timeline h3{ font-size: 1.25rem; margin-bottom: .6rem; }
.timeline p{ color: var(--ink-2); }
.timeline small{ display: block; margin-bottom: .8rem; font: 600 13px var(--text); color: var(--mute); }

.steps{ margin: 0; border-top: 1px solid var(--line-2); counter-reset: s; }
.steps li{ padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before{ content: counter(s, decimal-leading-zero); display: block; font: 700 13px var(--head); color: var(--red); margin-bottom: .7rem; }
.steps h3{ font-size: 1.1rem; margin-bottom: .4rem; }
.steps p{ color: var(--ink-2); font-size: .95rem; }

/* Lessons: a hairline above each lesson that stops at the column gutter */
.lessons > [class*="col"]{ position: relative; padding-block: 1.6rem; }
.lessons > [class*="col"]::before{ content: ""; position: absolute; top: 0; left: calc(var(--bs-gutter-x) * .5); right: calc(var(--bs-gutter-x) * .5); border-top: 1px solid var(--line); }
.lessons h3{ font-size: 1.2rem; margin-bottom: .5rem; }
.lessons p{ color: var(--ink-2); }

.guide .intro{ margin: 1.2rem 0 2rem; }
.guide ol{ margin: 0; }
.guide ol li{ display: grid; grid-template-columns: 2.4rem 1fr; padding: 1rem 0; border-top: 1px solid var(--line); }
.guide ol li b{ font: 700 14px var(--head); color: var(--mute); font-variant-numeric: tabular-nums; }
.guide ol li span{ color: var(--ink-2); }
.guide ol li span strong{ display: block; font-weight: 600; color: var(--ink); }
.paper.card{ --bs-card-spacer-x: 2rem; --bs-card-spacer-y: 2rem; --bs-card-border-color: var(--line); --bs-card-border-radius: var(--r); --bs-card-bg: var(--paper); }
.paper .card-title{ font-size: 1.25rem; margin-bottom: 1rem; }
.check{ margin: 0; }
.check li{ display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.check li span:last-child{ color: var(--mute); text-align: right; }
.paper .note{ color: var(--mute); font-size: .85rem; margin-top: .8rem; }
.example{ margin-top: 2.2rem; }
.example .table{ --bs-table-bg: transparent; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.example .table td{ padding: .5rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.example .table td:last-child{ text-align: right; white-space: nowrap; }
.example .table tr.total td{ padding: .7rem .8rem; border-top: 0; background: var(--red); color: #FFF; font-weight: 700; }

/* FAQ: Bootstrap accordion, flat, with + and - */
.faq{
  max-width: 760px; border-top: 1px solid var(--line-2);
  --bs-accordion-bg: transparent; --bs-accordion-color: var(--ink);
  --bs-accordion-border-width: 0; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0; --bs-accordion-btn-padding-y: 1.2rem;
  --bs-accordion-btn-color: var(--ink); --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--ink);
  --bs-accordion-body-padding-x: 0; --bs-accordion-body-padding-y: 0;
}
.faq > .accordion-item{ border-bottom: 1px solid var(--line); }
.faq .accordion-button{ gap: 1rem; font: 600 1.05rem/1.4 var(--text); }
.faq .accordion-button::after{ content: "+"; background-image: none; width: auto; height: auto; transform: none; font: 400 1.4rem/1 var(--text); color: var(--mute); }
.faq .accordion-button:not(.collapsed)::after{ content: "\2212"; background-image: none; transform: none; }
.faq .accordion-button:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }
.faq .accordion-body{ padding-bottom: 1.3rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- Red band ---------- */
.band-red{ background: var(--red); color: #FFF; }
.band-red .container{ padding-block: 3.5rem; }
.band-red h2{ color: #FFF; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.band-red p{ margin-top: .7rem; color: #FBE3E7; max-width: 40rem; }
.band-red a:focus-visible{ outline-color: #FFF; }

/* ---------- Contact: Bootstrap form ---------- */
.contact .intro{ margin-top: 1rem; }
.contact dl{ margin: 2rem 0 0; }
.contact dt{ color: var(--mute); font-size: .85rem; }
.contact dd{ margin: 0 0 1.1rem; font-weight: 600; }
.form{ position: relative; }
.form .form-label{ margin-bottom: .4rem; font-size: .9rem; font-weight: 600; }
.form .form-label small{ font-weight: 400; color: var(--mute); }
.form .form-control, .form .form-select{ min-height: 46px; padding-inline: .85rem; border-color: var(--line-2); border-radius: var(--r); font-size: 1rem; color: var(--ink); }
.form textarea.form-control{ min-height: 140px; padding-block: .75rem; resize: vertical; }
.form :is(.form-control, .form-select):focus{ border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form .form-control.is-invalid{ background-image: none; padding-right: .85rem; }
.form .form-control.is-invalid:focus{ box-shadow: 0 0 0 1px var(--bad); }
.form .trap{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.alert{ --bs-alert-padding-y: .75rem; --bs-alert-border-radius: var(--r); font-weight: 600; }

/* ---------- Footer ---------- */
.foot{ background: var(--char); color: #C9C9C6; padding-block: 4rem 2rem; font-size: .95rem; }
.foot b{ display: block; color: #fff; font: 700 13px var(--head); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.foot a{ text-decoration: none; display: block; padding: .2rem 0; }
.foot a:hover{ color: #fff; }
.foot small{ display: block; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #34353A; color: #A3A39F; font-size: .875em; }

.to-top{ position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 30; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); font: 600 18px/1 var(--text); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show{ opacity: 1; pointer-events: auto; }

/* ---------- Dark sections ---------- */
.section.dark{ background: var(--char); color: #FFF; }
.section.dark h2, .section.dark h3{ color: #FFF; }
.section.dark .sec-head p, .section.dark .steps p{ color: #C4C4C0; }
.section.dark .steps{ border-top-color: #3A3B40; }
.section.dark .steps li{ border-bottom-color: #2E2F34; }
.section.dark .steps li::before{ color: var(--red-soft); }
.section.dark .label{ color: #B4B4AF; }
.section.dark .about .body{ color: #D0D0CC; }
.section.dark .facts{ border-top-color: #3A3B40; }
.section.dark .facts strong{ color: #FFF; }
.section.dark .facts span{ color: #B4B4AF; }

/* ---------- Narrow screens ---------- */
@media (max-width: 991.98px){
  .hero{ padding-block: 3rem 4rem; }
  .section{ padding-block: 4rem; }
  .sec-head{ margin-bottom: 2.5rem; }
  .bleed{ height: 52vh; }
  .band-red .container{ padding-block: 3rem; }
}
@media (max-width: 575.98px){
  .paper.card{ --bs-card-spacer-x: 1.4rem; --bs-card-spacer-y: 1.4rem; }
  .hero .actions .btn{ flex: 1 1 100%; }
}
