/* Shared scoped styles for the Free2move homepage + Fleet on Demand page.
   All rules are scoped under .crh-root (or bare element/utility selectors used
   only inside it). Imported by both index.html and fleet-on-demand.html via
   <style id="crh-styles">@import url("crh-styles.css");</style>. */

/* ---- Design tokens (captured live from free2move.com) ---- */
.crh-root {
  --crh-ink: #1e0046;          /* primary text & dark surfaces        */
  --crh-violet: #5133e6;       /* CTA accent                          */
  --crh-violet-hover: #6147ee; /* CTA hover                           */
  --crh-tint: #f0f0ff;         /* light lavender: cards, B2B sections */
  --crh-text-2: #4b336b;       /* secondary text                      */
  --crh-placeholder: #786690;  /* input placeholder                   */
  --crh-grey: #f5f5f5;
  --crh-mint: #35c79a;
  --crh-sky: #1a5ee8;
  --crh-font: -apple-system, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --crh-radius-card: 24px;
  --crh-radius-input: 8px;
  --crh-shadow-card: 0 4px 6px -1px rgba(30, 0, 70, .1), 0 2px 4px -2px rgba(30, 0, 70, .1);
  --crh-shadow-lift: 0 20px 50px rgba(30, 0, 70, .1), 0 8px 16px -6px rgba(30, 0, 70, .1);
}

/* ---- Base ---- */
.crh-root {
  font-family: var(--crh-font);
  color: var(--crh-ink);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
.crh-root h1, .crh-root h2, .crh-root h3, .crh-root h4 { font-weight: 700; color: var(--crh-ink); }
.crh-root p { color: var(--crh-text-2); line-height: 1.6; }
.crh-root a { color: var(--crh-violet); }
.crh-section { padding: 72px 0; }
.crh-eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  font-weight: 700; color: var(--crh-violet);
}
.crh-muted { color: var(--crh-text-2); }

/* ---- Buttons (pill) ---- */
.crh-root .crh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; max-height: 48px; line-height: 1;
  border-radius: 999px; padding: 12px 28px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.crh-root .crh-btn-primary { background: var(--crh-violet); color: #fff; border-color: var(--crh-violet); }
.crh-root .crh-btn-primary:hover { background: var(--crh-violet-hover); border-color: var(--crh-violet-hover); color: #fff; }
.crh-root .crh-btn-secondary { background: #fff; color: var(--crh-violet); border-color: var(--crh-tint); }
.crh-root .crh-btn-secondary:hover { background: var(--crh-tint); color: var(--crh-violet); }
.crh-root .crh-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.crh-root .crh-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.crh-root .crh-btn-lg { padding: 13px 34px; font-size: 1.05rem; }
.crh-root .crh-btn:focus-visible { outline: 3px solid var(--crh-sky); outline-offset: 2px; }

/* ---- Chip ---- */
.crh-chip {
  display: inline-block; background: var(--crh-tint); color: var(--crh-violet);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}

/* ---- Header ---- */
.crh-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030; background: #fff;
  box-shadow: 0 1px 0 rgba(30,0,70,.06); min-height: 64px;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.crh-header .navbar { min-height: 64px; padding-top: 0; padding-bottom: 0; }
.crh-brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Free2move logo: dark variant on the solid white header, white variant while
   .crh-at-top (transparent over the dark hero). */
.crh-brand-logo { display: block; height: 28px; width: auto; }
.crh-brand-logo--light { display: none; }
.crh-nav-link { color: var(--crh-ink) !important; font-weight: 700; padding: .5rem .9rem !important; transition: color .2s ease; }
.crh-nav-link:hover { color: var(--crh-violet) !important; }
/* Transparent-over-hero state (JS toggles .crh-at-top while scrolled to the top) */
.crh-header.crh-at-top { background: transparent; box-shadow: none; }
.crh-header.crh-at-top .crh-nav-link { color: #fff !important; }
.crh-header.crh-at-top .crh-nav-link:hover { color: rgba(255,255,255,.75) !important; }
.crh-header.crh-at-top .crh-brand-logo--dark { display: none; }
.crh-header.crh-at-top .crh-brand-logo--light { display: block; }
.crh-header.crh-at-top .navbar-toggler { border-color: rgba(255,255,255,.5); }
.crh-header.crh-at-top .navbar-toggler-icon { filter: invert(1) brightness(2); }
.crh-lang { display: inline-flex; align-items: center; }
.crh-flag { width: 20px; height: 14px; border-radius: 3px; margin-right: 7px;
  box-shadow: 0 0 0 1px rgba(30,0,70,.08); flex: 0 0 auto; }
.crh-header .dropdown-menu { border: none; border-radius: 16px; box-shadow: var(--crh-shadow-card); padding: .5rem; }
.crh-header .dropdown-item { border-radius: 10px; font-weight: 600; color: var(--crh-ink); padding: .6rem .9rem; }
.crh-header .dropdown-item:hover { background: var(--crh-tint); color: var(--crh-violet); }

/* ---- Hero ---- */
.crh-hero {
  background: linear-gradient(120deg, #1e0046 0%, #3a1e8f 55%, #5133e6 100%);
  color: #fff; position: relative; overflow: hidden;
}
.crh-hero::after { /* scrim to guarantee headline contrast over any media */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,0,70,.55) 0%, rgba(30,0,70,0) 60%);
  pointer-events: none;
}
.crh-hero-inner { position: relative; z-index: 1; padding: 64px 0 80px; }
.crh-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 48px); line-height: 1.1; }
.crh-root .crh-hero-sub { color: rgba(255,255,255,.85); font-size: 1.2rem; }
.crh-hero-media {
  border-radius: var(--crh-radius-card); overflow: hidden;
  box-shadow: var(--crh-shadow-lift); background: rgba(255,255,255,.08);
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block;
}
.crh-root .crh-microtrust { color: rgba(255,255,255,.9); font-weight: 600; font-size: .9rem; }
.crh-microtrust .crh-dot { opacity: .5; padding: 0 .5rem; }

/* ---- Booking widget ---- */
.crh-widget-col { margin-top: 24px; }
.crh-widget {
  background: #fff; border-radius: var(--crh-radius-card); box-shadow: var(--crh-shadow-lift);
  padding: 18px 20px;
}
/* All controls on a single line (wrap only on narrow viewports) */
.crh-booking-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.crh-field { flex: 1 1 150px; min-width: 0; }
.crh-field--loc { flex: 2 1 230px; }
.crh-field--btn { flex: 0 0 auto; }
.crh-field label { font-size: .78rem; font-weight: 700; color: var(--crh-ink); margin-bottom: 4px; display: block; }
.crh-root .crh-input {
  width: 100%; border: 1.5px solid #e4e0ef; border-radius: var(--crh-radius-input);
  padding: 10px 12px; font-size: .95rem; color: var(--crh-ink); background: #fff; font-weight: 500;
}
.crh-root .crh-input::placeholder { color: var(--crh-placeholder); }
.crh-root .crh-input:focus { border-color: var(--crh-violet); outline: none; box-shadow: 0 0 0 3px rgba(81,51,230,.15); }
/* Date + time paired side by side under one label */
.crh-datetime { display: flex; gap: 8px; }
.crh-datetime .crh-input { flex: 1 1 0; min-width: 0; }
/* Pickup location with leading search icon */
.crh-input-wrap { position: relative; display: block; }
.crh-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--crh-placeholder); pointer-events: none;
}
.crh-root .crh-input--icon { padding-left: 38px; }
.crh-field-hint { color: var(--crh-violet); font-size: .78rem; font-weight: 600; margin-top: 4px; display: none; }
.crh-field-hint.is-visible { display: block; }
.crh-toggle-link {
  background: none; border: none; color: var(--crh-violet); font-weight: 700; font-size: .82rem;
  padding: 0; cursor: pointer;
}
/* Round icon-only search button */
.crh-root .crh-search-btn {
  width: 48px; height: 48px; padding: 0; border: none; border-radius: 999px;
  background: var(--crh-violet); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
}
.crh-root .crh-search-btn:hover { background: var(--crh-violet-hover); }
.crh-search-btn svg { width: 22px; height: 22px; }
/* lg+: cap widget width; the hero widget is also pulled up to overlap the hero image */
@media (min-width: 992px) {
  .crh-widget-col { margin-top: 0; }
  .crh-widget { max-width: 76%; }
  .crh-widget-col .crh-widget { margin-top: -100px; position: relative; z-index: 3; }
}
/* narrow: stack fields, full-width pill button */
@media (max-width: 767.98px) {
  .crh-field, .crh-field--loc, .crh-field--btn { flex: 1 1 100%; }
  .crh-root .crh-search-btn { width: 100%; height: 48px; }
}

/* ---- Trust bar ---- */
.crh-trustbar { background: var(--crh-grey); padding: 22px 0; }
.crh-trustbar .crh-rating { font-weight: 700; color: var(--crh-ink); }
.crh-logo-mono { height: 26px; filter: grayscale(1); opacity: .55; }
.crh-logo-svg { height: 24px; width: auto; color: var(--crh-ink); opacity: .5; vertical-align: middle;
  transition: opacity .18s ease; }
.crh-logo-svg:hover { opacity: .8; }
.crh-logo-press { width: auto; color: #fff; opacity: .68; vertical-align: middle;
  transition: opacity .18s ease; }
.crh-logo-press:hover { opacity: 1; }

/* ---- Cards (steps, products, pillars) ---- */
.crh-card {
  background: #fff; border-radius: var(--crh-radius-card); box-shadow: var(--crh-shadow-card);
  padding: 28px; height: 100%; transition: transform .18s ease, box-shadow .18s ease;
}
.crh-card:hover { transform: translateY(-4px); box-shadow: var(--crh-shadow-lift); }
.crh-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--crh-tint);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem;
  color: var(--crh-violet); margin-bottom: 16px;
}
.crh-step-num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--crh-violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---- Section tints ---- */
.crh-tint-bg { background: var(--crh-tint); }
.crh-ink-bg { background: var(--crh-ink); color: #fff; }
.crh-ink-bg h2, .crh-ink-bg h3 { color: #fff; }
.crh-ink-bg p { color: rgba(255,255,255,.8); }

/* ---- Split media ---- */
.crh-split-media {
  width: 100%; border-radius: var(--crh-radius-card); box-shadow: var(--crh-shadow-card);
  background: var(--crh-tint); aspect-ratio: 4 / 3; object-fit: cover; display: block;
}

/* ---- Stats ---- */
.crh-stat-num { font-size: 2.4rem; font-weight: 700; color: var(--crh-violet); line-height: 1; }
.crh-ink-bg .crh-stat-num { color: #fff; }
.crh-stat-label { font-size: .9rem; color: var(--crh-text-2); }
.crh-ink-bg .crh-stat-label { color: rgba(255,255,255,.75); }

/* ---- Testimonials ---- */
.crh-avatar { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; background: var(--crh-tint); }

/* ---- Coverage (location carousels) ---- */
.crh-loc-group + .crh-loc-group { margin-top: 44px; }
.crh-loc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.crh-loc-head h4 { margin: 0; }
.crh-loc-scroll {
  display: flex; gap: 20px; overflow-x: auto;
  width: calc(50vw + 50%);          /* left stays at container edge; right edge bleeds to viewport edge */
  padding: 6px 24px 18px 2px;       /* right padding = trailing space at the scroll end */
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.crh-loc-card {
  flex: 0 0 auto; width: 220px; scroll-snap-align: start;
  background: #fff; border-radius: var(--crh-radius-card); box-shadow: var(--crh-shadow-card);
  overflow: hidden; text-decoration: none; color: var(--crh-ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.crh-loc-card:hover { transform: translateY(-4px); box-shadow: var(--crh-shadow-lift); color: var(--crh-violet); }
.crh-loc-media { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--crh-tint); }
.crh-loc-body { padding: 14px 16px; }
.crh-loc-name { display: block; font-weight: 700; font-size: 1.02rem; }
.crh-loc-sub { display: block; margin-top: 2px; color: var(--crh-placeholder); font-size: .85rem; }

/* ---- Final CTA band ---- */
.crh-cta { background: var(--crh-tint); color: var(--crh-ink); }
.crh-cta h2 { color: var(--crh-ink); }

/* ---- Footer ---- */
.crh-footer { background: var(--crh-ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.crh-footer h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.crh-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: block; padding: 5px 0; font-weight: 500; }
.crh-footer a:hover { color: #fff; }
.crh-footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .8rem; }
.crh-newsletter-input { border-radius: 999px 0 0 999px; border: none; }
.crh-appbadge { height: 40px; border-radius: 8px; background: rgba(255,255,255,.12); }

/* ---- Accordion (FAQ) ---- */
/* One centred, width-capped column. All panels closed by default; the accordion
   IIFE toggles aria-expanded + .is-open (single-open). Reuse on any page by
   dropping the markup in and pasting the IIFE (it early-returns if absent). */
.crh-accordion { max-width: 760px; margin: 32px auto 0; }
.crh-accordion-item {
  background: #fff; border: 1px solid #e4e0ef; border-radius: var(--crh-radius-input);
  margin-bottom: 12px; overflow: hidden;
}
.crh-root .crh-accordion-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; font-size: 1.05rem; font-weight: 700; color: var(--crh-ink);
}
.crh-root .crh-accordion-trigger:hover { color: var(--crh-violet); }
.crh-accordion-icon {
  flex: 0 0 auto; width: 20px; height: 20px; color: var(--crh-violet);
  transition: transform .2s ease;
}
.crh-accordion-trigger[aria-expanded="true"] .crh-accordion-icon { transform: rotate(180deg); }
.crh-accordion-panel { display: none; padding: 0 20px 18px; }
.crh-accordion-panel.is-open { display: block; }
.crh-accordion-panel p { margin: 0; color: var(--crh-text-2); }

/* ---- Accessibility & motion ---- */
.crh-root :focus-visible { outline: 3px solid var(--crh-sky); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .crh-root * { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* ---- Responsive: keep search reachable, stack cleanly ---- */
@media (max-width: 991px) {
  .crh-hero-inner { padding: 72px 0 56px; }
  .crh-hero-media { margin-top: 28px; aspect-ratio: 16 / 10; }
}
@media (max-width: 575px) {
  .crh-section { padding: 48px 0; }
}
