/*
Theme Name: Freightline
Theme URI: https://example.com/freightline
Author: Freightline
Description: An original WordPress theme for logistics, freight, and fleet companies. Full-width video hero, manifest-style services list, fleet showcase powered by custom post types, and a WordPress Customizer panel for the content you'll actually want to change often (hero copy, hero video, phone number, socials).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freightline
*/

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
  --fl-ink: #0e1a26;          /* primary dark background / text on light */
  --fl-ink-soft: #16273a;     /* secondary dark panel */
  --fl-paper: #f4f5f7;        /* light background */
  --fl-paper-dim: #e7e9ed;    /* light panel / hairlines on paper */
  --fl-white: #ffffff;
  --fl-amber: #e8641c;        /* signal accent - used sparingly */
  --fl-amber-dim: #b3480c;    /* darkened for hover states - passes 4.5:1 with white text */
  --fl-line: rgba(244,245,247,0.16); /* hairlines on dark */
  --fl-line-dark: rgba(14,26,38,0.12); /* hairlines on light */

  --fl-font-display: "Archivo", "Arial Narrow", sans-serif;
  --fl-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fl-max: 1240px;
  --fl-gutter: clamp(1.25rem, 4vw, 3rem);
  --fl-radius: 2px; /* deliberately near-zero: this is an industrial, document-like design, not a soft SaaS one */
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--fl-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fl-ink);
  background: var(--fl-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--fl-font-display); margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

.fl-container { max-width: var(--fl-max); margin: 0 auto; padding: 0 var(--fl-gutter); }
.fl-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--fl-amber);
  outline-offset: 3px;
}

.fl-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--fl-white);
  color: var(--fl-ink);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--fl-radius);
  transition: top 0.15s ease;
}
.fl-skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------------------
   3. Header / nav
   ------------------------------------------------------------------------- */
.fl-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 1.5rem 0;
}
.fl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.fl-logo {
  font-family: var(--fl-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fl-white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.fl-logo span { color: var(--fl-amber); }

.fl-nav { display: flex; align-items: center; gap: 2.25rem; }
.fl-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.fl-nav a {
  text-decoration: none;
  color: var(--fl-white);
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.fl-nav a:hover { opacity: 1; }

.fl-nav__phone {
  color: var(--fl-white);
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid var(--fl-line);
  padding: 0.55rem 1.1rem;
  border-radius: var(--fl-radius);
  white-space: nowrap;
}
.fl-nav__phone:hover { border-color: var(--fl-amber); }

.fl-menu-toggle {
  display: none;
  background: none; border: 0; color: var(--fl-white);
  width: 2.25rem; height: 2.25rem; cursor: pointer;
}

.fl-mobile-nav { background: var(--fl-ink-soft); border-top: 1px solid var(--fl-line); }
.fl-mobile-nav ul { list-style: none; margin: 0; padding: 1rem 0; }
.fl-mobile-nav a {
  display: block; padding: 0.85rem 0; color: var(--fl-white);
  text-decoration: none; border-bottom: 1px solid var(--fl-line);
  font-size: 1.05rem;
}
.fl-mobile-nav[hidden] { display: none; }

/* Non-front-page header sits on a solid ink bar instead of floating over a video */
.fl-header--solid { position: relative; background: var(--fl-ink); }

@media (max-width: 860px) {
  .fl-nav ul { display: none; }
  .fl-nav__phone { display: none; }
  .fl-menu-toggle { display: block; }
  .fl-header { background: var(--fl-ink); position: relative; }
}

/* -------------------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------------------- */
.fl-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--fl-white);
  overflow: hidden;
  background: var(--fl-ink);
}
.fl-hero__media { position: absolute; inset: 0; z-index: 0; }
.fl-hero__media video,
.fl-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.fl-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,26,38,0.55) 0%, rgba(14,26,38,0.35) 45%, rgba(14,26,38,0.92) 100%);
}
.fl-hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--fl-gutter) 4.5rem;
}
.fl-hero__inner { max-width: var(--fl-max); margin: 0 auto; }

.fl-hero__eyebrow-route {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fl-fade-in 0.8s ease 0.15s forwards;
}
.fl-hero__eyebrow-route svg { width: 120px; height: 10px; flex-shrink: 0; }
.fl-hero__eyebrow-route path { stroke-dasharray: 4 6; stroke: var(--fl-amber); }
.fl-hero__eyebrow-route span { font-size: 0.85rem; color: rgba(244,245,247,0.75); }

.fl-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fl-rise-in 0.8s ease 0.3s forwards;
}
.fl-hero__sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(244,245,247,0.85);
  opacity: 0;
  animation: fl-rise-in 0.8s ease 0.45s forwards;
}
.fl-hero__actions {
  margin-top: 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fl-rise-in 0.8s ease 0.6s forwards;
}

@keyframes fl-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fl-rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.fl-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--fl-font-body);
  font-size: 0.95rem; font-weight: 600;
  padding: 0.9rem 1.6rem;
  border-radius: var(--fl-radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fl-btn--amber { background: var(--fl-amber); color: var(--fl-ink); }
.fl-btn--amber:hover { background: var(--fl-amber-dim); color: var(--fl-white); }
.fl-btn--ghost { border-color: rgba(244,245,247,0.4); color: var(--fl-white); }
.fl-btn--ghost:hover { border-color: var(--fl-white); }
.fl-btn--ink { background: var(--fl-ink); color: var(--fl-white); }
.fl-btn--ink:hover { background: var(--fl-ink-soft); }

/* -------------------------------------------------------------------------
   4b. Hero variants - Style B (split) and Style C (bold)
   ------------------------------------------------------------------------- */
.fl-hero--split {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 6.5rem;
}
.fl-hero--split__copy {
  background: var(--fl-ink);
  color: var(--fl-white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem clamp(1.5rem, 5vw, 4.5rem);
}
.fl-hero--split__copy h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  max-width: 14ch;
  margin-bottom: 1.1rem;
}
.fl-hero--split__copy .fl-hero__sub { color: rgba(244,245,247,0.82); }
.fl-hero--split__copy .fl-hero__actions { margin-top: 1.75rem; }
.fl-hero--split__media { position: relative; min-height: 420px; background: var(--fl-ink-soft); }
.fl-hero--split__media img,
.fl-hero--split__media video { width: 100%; height: 100%; object-fit: cover; }
.fl-hero--split__placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(244,245,247,0.05) 22px 23px),
    linear-gradient(160deg, var(--fl-ink) 0%, var(--fl-ink-soft) 100%);
}
@media (max-width: 900px) {
  .fl-hero--split { grid-template-columns: 1fr; }
  .fl-hero--split__media { min-height: 280px; }
}

.fl-hero--bold {
  min-height: auto;
  background: var(--fl-paper);
  color: var(--fl-ink);
  padding: 8.5rem 0 0;
}
.fl-hero--bold .fl-hero__eyebrow-route span { color: #4a5a68; }
.fl-hero--bold .fl-hero__eyebrow-route path { stroke: var(--fl-amber-dim); }
.fl-hero--bold__headline {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  max-width: 16ch;
  margin-bottom: 2.5rem;
}
.fl-hero--bold__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--fl-line-dark);
}
.fl-hero--bold .fl-hero__sub { color: #4a5a68; }
.fl-hero--bold .fl-btn--ghost { border-color: var(--fl-line-dark); color: var(--fl-ink); }
.fl-hero--bold .fl-btn--ghost:hover { border-color: var(--fl-ink); }
.fl-hero--bold__strip { height: 32vh; min-height: 220px; overflow: hidden; margin-top: 0; }
.fl-hero--bold__strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .fl-hero--bold { padding-top: 7rem; }
  .fl-hero--bold__row { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   5. Stat strip
   ------------------------------------------------------------------------- */
.fl-stats {
  background: var(--fl-ink);
  color: var(--fl-white);
  border-top: 1px solid var(--fl-line);
}
.fl-stats__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.fl-stat {
  padding: 2.75rem var(--fl-gutter);
  border-left: 1px solid var(--fl-line);
}
.fl-stat:first-child { border-left: 0; }
.fl-stat__value {
  font-family: var(--fl-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--fl-amber);
}
.fl-stat__label {
  font-size: 0.9rem;
  color: rgba(244,245,247,0.7);
  margin-top: 0.35rem;
}

/* -------------------------------------------------------------------------
   5b. Partner logo marquee
   ------------------------------------------------------------------------- */
.fl-marquee {
  background: var(--fl-paper);
  border-bottom: 1px solid var(--fl-line-dark);
  padding: 1.75rem 0;
  overflow: hidden;
}
.fl-marquee__label {
  text-align: center;
  font-size: 0.85rem;
  color: #4a5a68;
  margin: 0 0 1.1rem;
}
.fl-marquee__track { display: flex; width: max-content; animation: fl-scroll 28s linear infinite; }
.fl-marquee:hover .fl-marquee__track { animation-play-state: paused; }
.fl-marquee__group { display: flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; }
.fl-marquee__item { display: flex; align-items: center; height: 2.25rem; opacity: 0.6; white-space: nowrap; }
.fl-marquee__item img { max-height: 100%; width: auto; filter: grayscale(1); }
.fl-marquee__item--text { font-family: var(--fl-font-display); font-weight: 700; font-size: 1.05rem; color: var(--fl-ink); }
@keyframes fl-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .fl-marquee__track { animation: none; overflow-x: auto; }
}

/* -------------------------------------------------------------------------
   5c. Process / route section
   ------------------------------------------------------------------------- */
.fl-route { position: relative; padding-top: 0.5rem; }
.fl-route__line { display: block; width: 100%; height: 2px; color: rgba(244,245,247,0.3); margin-bottom: 2.5rem; }
.fl-route__line line { stroke: currentColor; }
.fl-route__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.fl-route__step h3 { font-size: 1.15rem; margin: 1.1rem 0 0.6rem; color: var(--fl-white); }
.fl-route__step p { color: rgba(244,245,247,0.72); font-size: 0.95rem; }
.fl-route__marker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--fl-amber);
  color: var(--fl-amber);
  font-family: var(--fl-font-display); font-weight: 700;
}
@media (max-width: 860px) {
  .fl-route__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fl-route__steps { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   5d. Slider (fleet + testimonials share this)
   ------------------------------------------------------------------------- */
.fl-slider { position: relative; }
.fl-slider__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fl-slider__track::-webkit-scrollbar { display: none; }
.fl-slider__slide { scroll-snap-align: start; flex: 0 0 auto; }

.fl-slider .fl-fleet__item { width: min(320px, 82vw); border: 1px solid var(--fl-line-dark); background: var(--fl-paper); }

.fl-slider__nav { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.fl-slider__btn {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--fl-line-dark);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fl-ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.fl-slider__btn:hover { border-color: var(--fl-amber); color: var(--fl-amber); }
.fl-slider--quote .fl-slider__btn { color: var(--fl-white); border-color: var(--fl-line); }
.fl-slider--quote .fl-slider__btn:hover { border-color: var(--fl-amber); color: var(--fl-amber); }

.fl-quote {
  width: min(560px, 88vw);
  margin: 0;
  padding: 2.5rem;
  background: var(--fl-ink-soft);
  border: 1px solid var(--fl-line);
}
.fl-quote blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--fl-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fl-white);
}
.fl-quote figcaption strong { display: block; color: var(--fl-white); }
.fl-quote figcaption span { font-size: 0.9rem; color: rgba(244,245,247,0.65); }
#testimonials.fl-section { background: var(--fl-ink); color: var(--fl-white); }
#testimonials .fl-section__head p { color: rgba(244,245,247,0.7); }

/* -------------------------------------------------------------------------
   6. Section scaffolding
   ------------------------------------------------------------------------- */
.fl-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.fl-section--paper-dim { background: var(--fl-paper-dim); }
.fl-section--ink { background: var(--fl-ink); color: var(--fl-white); }
.fl-section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.fl-section__head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); max-width: 20ch; }
.fl-section__head p { color: #4a5a68; margin: 0; }
.fl-section--ink .fl-section__head p { color: rgba(244,245,247,0.75); }

/* -------------------------------------------------------------------------
   7. Services — manifest list, not boxed cards
   ------------------------------------------------------------------------- */
.fl-manifest { border-top: 1px solid var(--fl-line-dark); }
.fl-manifest__row {
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--fl-line-dark);
}
.fl-manifest__row h3 { font-size: 1.4rem; }
.fl-manifest__row p { color: #4a5a68; margin: 0; }
.fl-manifest__arrow {
  align-self: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--fl-line-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.fl-manifest__row:hover .fl-manifest__arrow { border-color: var(--fl-amber); transform: translateX(3px); }

@media (max-width: 720px) {
  .fl-manifest__row { grid-template-columns: 1fr; gap: 0.75rem; }
  .fl-manifest__arrow { display: none; }
}

/* -------------------------------------------------------------------------
   8. Fleet showcase
   ------------------------------------------------------------------------- */
.fl-fleet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--fl-line-dark);
  border: 1px solid var(--fl-line-dark);
}
.fl-fleet__item { background: var(--fl-paper); position: relative; }
.fl-fleet__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--fl-paper-dim); }
.fl-fleet__media img { width: 100%; height: 100%; object-fit: cover; }
.fl-fleet__caption { padding: 1.1rem 1.25rem; }
.fl-fleet__caption h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.fl-fleet__caption p { font-size: 0.9rem; color: #4a5a68; margin: 0; }

/* -------------------------------------------------------------------------
   9. CTA band
   ------------------------------------------------------------------------- */
.fl-cta {
  background: var(--fl-ink);
  color: var(--fl-white);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.fl-cta__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
}
.fl-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 16ch; }
.fl-cta p { color: rgba(244,245,247,0.75); margin-top: 0.5rem; }

/* -------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------- */
.fl-footer { background: var(--fl-ink-soft); color: rgba(244,245,247,0.85); padding: 4rem 0 2rem; }
.fl-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--fl-line);
}
.fl-footer__grid h4 { font-size: 0.85rem; text-transform: none; color: var(--fl-white); margin-bottom: 1rem; }
.fl-footer__grid ul { list-style: none; margin: 0; padding: 0; }
.fl-footer__grid li { margin-bottom: 0.6rem; }
.fl-footer__grid a { text-decoration: none; opacity: 0.8; font-size: 0.95rem; }
.fl-footer__grid a:hover { opacity: 1; color: var(--fl-amber); }
.fl-footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem; font-size: 0.85rem; opacity: 0.6;
}
@media (max-width: 780px) {
  .fl-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------
   11. Generic page / blog content
   ------------------------------------------------------------------------- */
.fl-page-header { background: var(--fl-ink); color: var(--fl-white); padding: 6.5rem 0 3.5rem; }
.fl-page-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.fl-content { padding: 4rem 0; }
.fl-content .fl-container { max-width: 74ch; }
.fl-content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.fl-content ul, .fl-content ol { padding-left: 1.25rem; }
.fl-content blockquote {
  border-left: 3px solid var(--fl-amber);
  margin: 1.5rem 0; padding-left: 1.25rem; color: #4a5a68;
}

/* -------------------------------------------------------------------------
   12. About page
   ------------------------------------------------------------------------- */
.fl-about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.fl-about__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fl-about__copy h2 { font-size: 1.5rem; margin: 1.75rem 0 0.75rem; }
.fl-about__copy h2:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .fl-about { grid-template-columns: 1fr; }
  .fl-about__media { order: -1; }
}

/* -------------------------------------------------------------------------
   13. Contact page + form
   ------------------------------------------------------------------------- */
.fl-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.fl-contact__details { list-style: none; margin: 2rem 0 0; padding: 0; }
.fl-contact__details li {
  padding: 1rem 0; border-top: 1px solid var(--fl-line-dark);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.fl-contact__details span { font-size: 0.8rem; color: #4a5a68; }
.fl-contact__details a { text-decoration: none; font-size: 1.05rem; }
.fl-contact__details a:hover { color: var(--fl-amber-dim); }

.fl-form { background: var(--fl-paper-dim); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--fl-line-dark); }
.fl-form__row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.fl-form label { font-size: 0.9rem; font-weight: 600; }
.fl-form input, .fl-form textarea {
  font-family: var(--fl-font-body);
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--fl-line-dark);
  border-radius: var(--fl-radius);
  background: var(--fl-white);
  resize: vertical;
}
.fl-form input:focus, .fl-form textarea:focus {
  outline: 2px solid var(--fl-amber); outline-offset: 1px; border-color: var(--fl-amber);
}
.fl-form button { margin-top: 0.5rem; border: 0; }
.fl-form__notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 3px solid; font-size: 0.95rem; }
.fl-form__notice--ok { background: #eaf5ea; border-color: #3a8a3a; color: #205a20; }
.fl-form__notice--error { background: #fdeceb; border-color: var(--fl-amber); color: #8a3a20; }
@media (max-width: 860px) {
  .fl-contact { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   14. Archives (Services / Fleet) and 404
   ------------------------------------------------------------------------- */
.fl-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--fl-line-dark);
  border: 1px solid var(--fl-line-dark);
}
.fl-archive-card { background: var(--fl-paper); padding: 1.75rem; transition: background-color 0.15s ease; }
.fl-archive-card:hover { background: var(--fl-white); }
.fl-archive-card__media { aspect-ratio: 16/10; overflow: hidden; margin: -1.75rem -1.75rem 1.25rem; background: var(--fl-paper-dim); }
.fl-archive-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.fl-archive-card:hover .fl-archive-card__media img { transform: scale(1.04); }
.fl-archive-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.fl-archive-card h2 a { text-decoration: none; }
.fl-archive-card h2 a:hover { color: var(--fl-amber-dim); }
.fl-archive-card p { color: #4a5a68; font-size: 0.95rem; margin: 0; }

.fl-404 { text-align: center; padding: 6rem 0; }
.fl-404__code {
  font-family: var(--fl-font-display); font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem); color: var(--fl-paper-dim);
  line-height: 1; margin-bottom: 0.5rem;
}
.fl-404 h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.fl-404 p { margin: 0 auto 2rem; }
.fl-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.fl-post-list { display: grid; gap: 2px; background: var(--fl-line-dark); border: 1px solid var(--fl-line-dark); }
.fl-post-list__item { background: var(--fl-paper); padding: 1.75rem; }
.fl-post-list__item time { font-size: 0.85rem; color: #4a5a68; }
.fl-post-list__item h2 { font-size: 1.3rem; margin: 0.4rem 0 0.5rem; }
.fl-post-list__item h2 a { text-decoration: none; }
.fl-post-list__item h2 a:hover { color: var(--fl-amber-dim); }

/* -------------------------------------------------------------------------
   15. Header additions: actions row, search, sticky, mega menu
   ------------------------------------------------------------------------- */
.fl-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.fl-btn--small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.fl-icon-btn {
  width: 2.25rem; height: 2.25rem;
  border: 0; background: transparent; color: var(--fl-white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 50%;
}
.fl-icon-btn:hover { background: rgba(244,245,247,0.12); }
.fl-header--solid .fl-icon-btn,
.fl-header--sticky.fl-header--scrolled .fl-icon-btn { color: var(--fl-white); }

.fl-header--sticky { position: sticky; top: 0; transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.fl-header--sticky.fl-header--scrolled {
  background: var(--fl-ink);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.fl-search-panel { background: var(--fl-ink-soft); border-top: 1px solid var(--fl-line); padding: 1.25rem 0; }
.fl-search-panel[hidden] { display: none; }
.fl-search-form { display: flex; gap: 0.75rem; max-width: var(--fl-max); margin: 0 auto; padding: 0 var(--fl-gutter); }
.fl-search-form input {
  flex: 1; font-size: 1rem; padding: 0.75rem 1rem;
  border: 1px solid var(--fl-line); border-radius: var(--fl-radius);
  background: var(--fl-ink); color: var(--fl-white);
}
.fl-search-form input::placeholder { color: rgba(244,245,247,0.5); }
.fl-search-form button {
  padding: 0.75rem 1.4rem; border: 0; border-radius: var(--fl-radius);
  background: var(--fl-amber); color: var(--fl-ink); font-weight: 600; cursor: pointer;
}

.fl-nav-list { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.fl-nav-item { position: relative; }
.fl-nav-link {
  display: flex; align-items: center; gap: 0.35rem;
  text-decoration: none; color: var(--fl-white);
  font-size: 0.95rem; opacity: 0.85; transition: opacity 0.15s ease;
}
.fl-nav-link:hover { opacity: 1; }
.fl-nav-caret { transition: transform 0.15s ease; }
.fl-nav-item--has-children:hover .fl-nav-caret { transform: rotate(180deg); }

.fl-submenu {
  list-style: none; margin: 0; padding: 0.5rem;
  position: absolute; top: 100%; left: 0;
  background: var(--fl-ink-soft); border: 1px solid var(--fl-line);
  min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}
.fl-nav-item--has-children:hover > .fl-submenu,
.fl-nav-item--has-children:focus-within > .fl-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.fl-submenu .fl-nav-link { opacity: 0.85; padding: 0.6rem 0.75rem; border-radius: var(--fl-radius); }
.fl-submenu .fl-nav-item:hover .fl-nav-link { opacity: 1; background: rgba(244,245,247,0.06); }

/* Mega menu: a top-level item tagged "mega-menu" in Appearance > Menus
   gets a wide, multi-column panel instead of a narrow dropdown. */
.fl-nav-item--mega > .fl-submenu {
  left: 50%; transform: translate(-50%, 6px);
  min-width: 560px; columns: 2; column-gap: 1.5rem; padding: 1.25rem;
}
.fl-nav-item--mega:hover > .fl-submenu { transform: translate(-50%, 0); }
.fl-nav-item--mega .fl-nav-item { break-inside: avoid; }

@media (max-width: 860px) {
  .fl-nav { display: none; }
}

/* -------------------------------------------------------------------------
   16. Newsletter + map
   ------------------------------------------------------------------------- */
.fl-newsletter { background: var(--fl-paper-dim); border-top: 1px solid var(--fl-line-dark); border-bottom: 1px solid var(--fl-line-dark); padding: 2.5rem 0; }
.fl-newsletter__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.fl-newsletter h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.fl-newsletter p { margin: 0; color: #4a5a68; }
.fl-newsletter__form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.fl-newsletter__form input {
  padding: 0.8rem 1rem; border: 1px solid var(--fl-line-dark); border-radius: var(--fl-radius);
  font-size: 1rem; min-width: 220px;
}
.fl-map iframe { display: block; }

/* -------------------------------------------------------------------------
   17. Team page
   ------------------------------------------------------------------------- */
.fl-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2rem; }
.fl-team-card__media { aspect-ratio: 1; overflow: hidden; margin-bottom: 1rem; background: var(--fl-paper-dim); }
.fl-team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fl-team-card h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.fl-team-card__role { color: #4a5a68; font-size: 0.9rem; margin: 0 0 0.6rem; }
.fl-team-card__links { display: flex; gap: 1rem; }
.fl-team-card__links a { font-size: 0.85rem; text-decoration: none; color: var(--fl-amber-dim); }
.fl-team-card__links a:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   18. Pricing page
   ------------------------------------------------------------------------- */
.fl-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.fl-pricing-card {
  position: relative; background: var(--fl-paper); border: 1px solid var(--fl-line-dark);
  padding: 2.25rem; display: flex; flex-direction: column;
}
.fl-pricing-card--featured { background: var(--fl-ink); color: var(--fl-white); border-color: var(--fl-ink); }
.fl-pricing-card__badge {
  position: absolute; top: -0.9rem; left: 2.25rem;
  background: var(--fl-amber); color: var(--fl-ink); font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.75rem;
}
.fl-pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.fl-pricing-card__price { font-family: var(--fl-font-display); font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.fl-pricing-card__price span { display: block; font-family: var(--fl-font-body); font-size: 0.85rem; font-weight: 400; opacity: 0.65; }
.fl-pricing-card__features { list-style: none; margin: 0 0 2rem; padding: 0; flex-grow: 1; }
.fl-pricing-card__features li { padding: 0.6rem 0; border-top: 1px solid var(--fl-line-dark); font-size: 0.95rem; }
.fl-pricing-card--featured .fl-pricing-card__features li { border-color: var(--fl-line); }
.fl-pricing-card__features li:first-child { border-top: 0; }

/* -------------------------------------------------------------------------
   19. FAQ accordion
   ------------------------------------------------------------------------- */
.fl-faq-list { border-top: 1px solid var(--fl-line-dark); max-width: 74ch; }
.fl-faq-item { border-bottom: 1px solid var(--fl-line-dark); }
.fl-faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--fl-font-body); font-size: 1.1rem; font-weight: 600; color: var(--fl-ink);
}
.fl-faq-icon { flex-shrink: 0; transition: transform 0.2s ease; }
.fl-faq-question[aria-expanded="true"] .fl-faq-icon { transform: rotate(180deg); }
.fl-faq-answer { padding: 0 0 1.5rem; color: #4a5a68; }
.fl-faq-answer[hidden] { display: none; }

/* -------------------------------------------------------------------------
   20. Case study result callout
   ------------------------------------------------------------------------- */
.fl-case-result {
  display: inline-block; font-family: var(--fl-font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--fl-amber-dim); margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------------------
   21. Placeholder graphics (shown when a card has no featured image)
   ------------------------------------------------------------------------- */
.fl-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--fl-paper-dim) 0%, var(--fl-line-dark) 100%);
  color: var(--fl-ink);
  opacity: 0.5;
}
.fl-placeholder-icon { width: 30%; height: 30%; min-width: 32px; min-height: 32px; }
.fl-team-card__media .fl-placeholder,
.fl-fleet__media .fl-placeholder,
.fl-archive-card__media .fl-placeholder { position: static; }
