/* huntingtonbeachford-dealer-city.css
   Huntington Beach Ford — dealer / location pages (Orange County and the other 21).
   Lives in github.com/ntddigital/dealer-model-page and is served by Cloudflare Pages:
     <link rel="stylesheet" href="https://dealer-model-page.pages.dev/huntingtonbeachford-dealer-city.css">
   Pages redeploys on push, so there is no cache to purge by hand.
   Source of truth: Ntddigital-GEO/HB-Ford/dealer-pages/_ford-dealer-pages.css — edit there,
   copy here, push. */

/* ============================================================================
   _ford-dealer-pages.css — Ford-styled CSS for Huntington Beach Ford dealer pages
   ============================================================================

   Written from scratch for Ford. Nothing is ported from the Fairfield Subaru
   sheet; only the section anatomy is shared.

   TYPE — huntingtonbeachford.com already loads Ford's brand typeface from
   DealerOn's CDN:
       https://cdn.dealeron.com/assets/fonts/fordantenna/fonts.min.css
   Those faces are packaged the old way: one @font-face family per weight, all
   declared font-weight:normal. So bold is a DIFFERENT FAMILY, not a weight.
   That is why this sheet switches family instead of writing font-weight:700.
       antennaRegularLight   light body / large numerals
       antennaRegular        body
       antennaRegularBold    headings, emphasis
       antennaCondensedBold  eyebrows, stat numerals
       antennaSmallRegular   legal / fine print

   COLOR — Ford Blue #00095B is the brand navy; #066FEF is the accent blue used
   for links and active states. Everything else is neutral.

   NAMESPACE — every class is prefixed `hbf-`. These blocks get pasted into a
   DealerOn CustomHtml block that already inherits the dealer theme's stylesheet,
   which owns generic names like .section, .eyebrow and .model-card. Prefixing is
   what keeps this page from inheriting or clobbering theme rules.

   CAROUSELS — CSS only, no JavaScript. Both the specials rail and the lineup
   rail are native overflow scrollers with scroll-snap. Every slide stays in the
   DOM, visible and un-clipped, so crawlers and answer engines read all five
   offers as plain text. Nothing here hides content behind interaction.
   ========================================================================== */

.hbf {
  --ford-blue: #00095b;
  --ford-accent: #066fef;
  --ford-accent-dk: #0b4fae;
  --ink: #12161f;
  --mute: #5b6472;
  --line: #d8dde5;
  --bg-soft: #f2f4f7;
  --bg-softer: #f8f9fb;
  --white: #fff;
  --radius: 4px;

  --f-light: "antennaRegularLight", "Helvetica Neue", Arial, sans-serif;
  --f-body: "antennaRegular", "Helvetica Neue", Arial, sans-serif;
  --f-bold: "antennaRegularBold", "Helvetica Neue", Arial, sans-serif;
  --f-cond: "antennaCondensedBold", "Helvetica Neue Condensed", Arial, sans-serif;
  --f-small: "antennaSmallRegular", "Helvetica Neue", Arial, sans-serif;

  font-family: var(--f-body);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hbf *,
.hbf *::before,
.hbf *::after { box-sizing: border-box; }

.hbf img { max-width: 100%; height: auto; }

.hbf-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── section shells ──────────────────────────────────────────────────────── */

.hbf-section { padding: 56px 0; }
.hbf-section--soft { background: var(--bg-soft); }
.hbf-section--navy { background: var(--ford-blue); color: #fff; }
.hbf-section--navy .hbf-h2,
.hbf-section--navy .hbf-eyebrow { color: #fff; }
.hbf-section--navy .hbf-p { color: rgba(255, 255, 255, .84); }

/* One width for every section, matching the homepage strips (.container-fluid = viewport minus
   a 50px gutter each side; 1340 at 1440). The hero rail uses the same 50px so all edges align. */
.hbf-inner { max-width: none; margin: 0 auto; padding: 0 50px; }
@media (max-width: 1100px) { .hbf-inner { padding: 0 30px; } }
@media (max-width: 640px)  { .hbf-inner { padding: 0 20px; } }

.hbf-eyebrow {
  font-family: var(--f-cond);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ford-accent); margin: 0 0 10px;
}

.hbf-h1 {
  font-family: var(--f-bold); font-weight: normal;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08;
  letter-spacing: -.02em; color: var(--ford-blue); margin: 0 0 14px;
}
.hbf-section--navy .hbf-h1 { color: #fff; }

.hbf-h2 {
  font-family: var(--f-bold); font-weight: normal;
  font-size: clamp(24px, 3.1vw, 35px); line-height: 1.15;
  letter-spacing: -.015em; color: var(--ford-blue); margin: 0 0 14px;
}

.hbf-h3 {
  font-family: var(--f-bold); font-weight: normal;
  font-size: 19px; line-height: 1.25; color: var(--ford-blue); margin: 0 0 8px;
}

.hbf-p { font-size: 17px; color: var(--mute); margin: 0 0 18px; max-width: 74ch; }
.hbf-p--lead { font-size: 18.5px; color: var(--ink); }

/* Homepage pattern: eyebrow, title and intro centred in every section. */
.hbf-section .hbf-eyebrow,
.hbf-section .hbf-h2,
.hbf-section > .hbf-inner > .hbf-p,
.hbf-here__inner > .hbf-p { text-align: center; }
.hbf-section > .hbf-inner > .hbf-p,
.hbf-here__inner > .hbf-p { margin-left: auto; margin-right: auto; }
.hbf-section .hbf-h2, .hbf-cta .hbf-h2,
.hbf-section > .hbf-inner > .hbf-p, .hbf-here__inner > .hbf-p,
.hbf-lineup__sub, .hbf-cta .hbf-p { max-width: 800px; margin-left: auto; margin-right: auto; }
.hbf-section .hbf-btns { justify-content: center; }
.hbf-trust { justify-content: center; }
.hbf-faq { margin-left: auto; margin-right: auto; }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.hbf-btn {
  display: inline-block; padding: 13px 30px;
  font-family: var(--f-bold); font-size: 15px; letter-spacing: .02em;
  text-decoration: none; border-radius: 0; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hbf-btn--primary { background: var(--ford-blue); color: #fff; border-color: var(--ford-blue); }
.hbf-btn--primary:hover, .hbf-btn--primary:focus-visible { background: var(--ford-accent); border-color: var(--ford-accent); color: #fff; }
.hbf-btn--ghost { background: transparent; color: var(--ford-blue); border-color: var(--ford-blue); }
.hbf-btn--ghost:hover, .hbf-btn--ghost:focus-visible { background: var(--ford-blue); color: #fff; }
.hbf-btn--white { background: #fff; color: var(--ford-blue); border-color: #fff; }
.hbf-btn--white:hover, .hbf-btn--white:focus-visible { background: var(--ford-accent); border-color: var(--ford-accent); color: #fff; }

.hbf-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hbf-btns--center { justify-content: center; }

.hbf-link {
  color: var(--ford-accent); text-decoration: none;
  font-family: var(--f-bold); border-bottom: 0;
}
.hbf-link:hover, .hbf-link:focus-visible { color: var(--ford-accent-dk); text-decoration: underline; }

/* ── specials hero: full-width banner carousel (CSS only) ─────────────────
   One offer per view, laid out like the dealer's PNG banners: car on the left,
   offer panel on the right, dots underneath, prev/next arrows on the edges.
   Native scroll-snap does the sliding. Arrows are per-slide anchors to the
   neighbouring slide ids, so no script has to know which slide is current. */

.hbf-specials { background: #fff; padding: 0; overflow-x: clip; }
.hbf-specials .hbf-eyebrow { color: var(--ford-accent); }
.hbf-specials .hbf-h1 { color: var(--ford-blue); font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.hbf-specials .hbf-p--lead { font-size: 16.5px; color: var(--mute); margin-bottom: 18px; }

.hbf-rail {
  position: relative;
  /* Edge to edge, like the homepage hero (.carousel-Main = 100% viewport). The block sits
     inside the theme's 1170px .container, so break out to the viewport edges. */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.hbf-rail__radio { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.hbf-rail__viewport { overflow: hidden; }
.hbf-rail__track { display: flex; width: 500%; transition: transform .5s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.hbf-rail__track > .hbf-slide { flex: 0 0 20%; }

#offer-bronco-r:checked ~ .hbf-rail__viewport .hbf-rail__track { transform: translateX(-0%); }
#offer-bronco-sport-r:checked ~ .hbf-rail__viewport .hbf-rail__track { transform: translateX(-20%); }
#offer-explorer-r:checked ~ .hbf-rail__viewport .hbf-rail__track { transform: translateX(-40%); }
#offer-maverick-r:checked ~ .hbf-rail__viewport .hbf-rail__track { transform: translateX(-60%); }
#offer-mach-e-r:checked ~ .hbf-rail__viewport .hbf-rail__track { transform: translateX(-80%); }

.hbf-slide__arrow { display: none; }
#offer-bronco-r:checked ~ .hbf-rail__nav .hbf-rail__on-1,
#offer-bronco-sport-r:checked ~ .hbf-rail__nav .hbf-rail__on-2,
#offer-explorer-r:checked ~ .hbf-rail__nav .hbf-rail__on-3,
#offer-maverick-r:checked ~ .hbf-rail__nav .hbf-rail__on-4,
#offer-mach-e-r:checked ~ .hbf-rail__nav .hbf-rail__on-5 { display: flex; }

/* Active dot */
#offer-bronco-r:checked ~ .hbf-dots .hbf-dot:nth-child(1),
#offer-bronco-sport-r:checked ~ .hbf-dots .hbf-dot:nth-child(2),
#offer-explorer-r:checked ~ .hbf-dots .hbf-dot:nth-child(3),
#offer-maverick-r:checked ~ .hbf-dots .hbf-dot:nth-child(4),
#offer-mach-e-r:checked ~ .hbf-dots .hbf-dot:nth-child(5) { background: var(--ford-blue); border-color: #fff; }
.hbf-rail__radio:focus-visible ~ .hbf-dots { outline: 2px solid var(--ford-accent); outline-offset: 6px; border-radius: 99px; }

.hbf-slide {
  position: relative;
  display: grid; grid-template-columns: 48fr 52fr; align-items: stretch;
  /* The dealer's banners are 2000×619 (3.2:1). A hard aspect-ratio clipped the offer
     panel on tablets, so 3.2:1 is a FLOOR, not a cap — the slide grows when the panel
     needs more room. */
  min-height: min(31.25vw, 560px);
  /* Ford palette instead of a flat white panel: warm coast light on the car side
     fading into a pale Ford-blue sky on the offer side. */
  background: linear-gradient(100deg, #f3e4d3 0%, #f6e9db 40%, #e8edf5 100%);
  color: var(--ink);
}
.hbf-slide__media { position: relative; z-index: 1; padding: 16px 16px 16px 56px; display: flex; align-items: flex-end; min-height: 0; }
.hbf-slide__media img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }

.hbf-slide__panel {
  position: relative; z-index: 2;
  padding: 22px 110px 40px 110px;
  /* ford.com tokens read live 2026-09-18: --navbar-color-base #00095b (Ford Blue),
     --brandPrimaryBackgroundColor #00142e, --tab-panel-link-color #0562d2. */
  background: linear-gradient(160deg, #00095b 0%, #00142e 100%);
  color: #fff;
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);   /* slant stays left of the text column */
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  min-height: 100%; display: flex; flex-direction: column; justify-content: center;
}

.hbf-slide__year { margin: 0; font-family: var(--f-body); font-size: 17px; color: #7fb4ff; letter-spacing: .01em; }
.hbf-slide__model {
  margin: 0; font-family: var(--f-bold); font-weight: normal;
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.025em; color: #fff;
}
.hbf-slide__rule { width: 48px; height: 3px; border: 0; background: #0562d2; margin: 9px 0 8px; }
.hbf-slide__trim { margin: 0 0 12px; font-family: var(--f-body); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.85); }

.hbf-slide__figs { display: flex; align-items: flex-start; gap: 26px; margin: 0 0 14px; flex-wrap: wrap; }
.hbf-slide__fig { display: flex; flex-direction: column; }
.hbf-slide__fig + .hbf-slide__fig { padding-left: 26px; border-left: 2px solid rgba(255, 255, 255, .35); }
.hbf-slide__num {
  font-family: var(--f-bold); font-weight: normal;
  font-size: clamp(40px, 4.3vw, 66px); line-height: 1; letter-spacing: -.035em; color: #fff;
}
.hbf-slide__num sup { font-size: .42em; top: -.72em; margin-right: 4px; font-family: var(--f-body); }
.hbf-slide__per { font-family: var(--f-body); font-size: .3em; letter-spacing: 0; margin-left: 10px; color: rgba(255,255,255,.85); }
.hbf-slide__cap { font-family: var(--f-body); font-size: 15px; color: rgba(255,255,255,.85); margin-top: 4px; }

.hbf-slide__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 12px; }
.hbf-slide__btn {
  display: inline-block; padding: 10px 26px;
  font-family: var(--f-bold); font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ford-blue); background: #fff; border: 2.5px solid #fff; border-radius: 0; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.hbf-slide__btn:hover, .hbf-slide__btn:focus-visible { background: #0562d2; border-color: #0562d2; color: #fff; }
.hbf-slide__avail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; }
.hbf-slide__avail svg { color: #7fb4ff; flex: 0 0 auto; }

/* Expiry sits on the card, not only inside the collapsed disclaimer — it is the one
   figure that makes the offer act-now, and the dealer's own specials page prints it. */
.hbf-slide__expires {
  display: flex; align-items: center; gap: 6px; margin: 0 0 6px;
  font-family: var(--f-small); font-size: 12.5px; letter-spacing: 0;
  color: rgba(255, 255, 255, .7);
}
.hbf-slide__expires svg { flex: 0 0 auto; width: 13px; height: 13px; color: rgba(255, 255, 255, .55); }

.hbf-slide__more { margin: 0 0 6px; }
.hbf-slide__more a { font-family: var(--f-small); font-size: 13px; color: #9cc6ff; text-decoration: none; }
.hbf-slide__more a:hover, .hbf-slide__more a:focus-visible { color: #fff; text-decoration: underline; }

/* Collapsed by default, like the dealer's "Disclaimer +" toggles. Native <details>,
   so the verbatim text stays in the DOM for crawlers while the banner stays short. */
.hbf-slide__disc { margin: 0; max-width: 76ch; }
.hbf-slide__disc > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: 13px; color: rgba(255,255,255,.85); padding: 2px 0;
}
.hbf-slide__disc > summary::-webkit-details-marker { display: none; }
.hbf-slide__disc-mark::before { content: "+"; font-family: var(--f-light); font-size: 18px; line-height: 1; color: #7fb4ff; }
.hbf-slide__disc[open] .hbf-slide__disc-mark::before { content: "\2212"; }
.hbf-slide__disc > p { margin: 6px 0 0; font-family: var(--f-small); font-size: 10.5px; line-height: 1.45; color: rgba(255,255,255,.72); text-align: justify; }

.hbf-rail__nav { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hbf-slide__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; pointer-events: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--ford-blue); text-decoration: none; cursor: pointer; user-select: none;
  font-family: var(--f-light); font-size: 34px; line-height: 1; padding-bottom: 4px;
  box-shadow: 0 2px 10px rgba(0, 9, 91, .18); align-items: center; justify-content: center;
}
.hbf-slide__arrow:hover, .hbf-slide__arrow:focus-visible { background: var(--ford-blue); color: #fff; }
.hbf-slide__arrow--prev { left: 24px; }
.hbf-slide__arrow--next { right: 24px; }

/* Dots sit inside the banner, bottom centre, like the dealer's PNG carousel. */
.hbf-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; display: flex; justify-content: center; gap: 12px; margin: 0; }
.hbf-dot {
  width: 14px; height: 14px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .55); border: 2px solid #fff; display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 9, 91, .35);
}
.hbf-dot:hover, .hbf-dot:focus-visible { background: #fff; }

.hbf-fine { font-family: var(--f-small); font-size: 12.5px; line-height: 1.6; color: var(--mute); margin: 18px 0 0; max-width: 100ch; }
.hbf-fine a { color: var(--ford-accent); text-decoration: none; }
.hbf-fine a:hover, .hbf-fine a:focus-visible { text-decoration: underline; }
.hbf-fine--foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  /* Phone: swap the radio carousel for a native swipe scroller. The dots and arrows
     are :checked-driven, so they cannot track a native scroll without script — they
     are replaced by two affordances that need none: the next offer peeks in at the
     right edge, and the scrollbar stays visible. */
  .hbf-rail { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .hbf-rail__viewport {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scroll-padding-left: 12px; padding-bottom: 10px;
    scrollbar-width: thin; scrollbar-color: rgba(0, 9, 91, .45) rgba(0, 9, 91, .12);
  }
  .hbf-rail__viewport::-webkit-scrollbar { height: 6px; }
  .hbf-rail__viewport::-webkit-scrollbar-track { background: rgba(0, 9, 91, .12); border-radius: 99px; }
  .hbf-rail__viewport::-webkit-scrollbar-thumb { background: rgba(0, 9, 91, .45); border-radius: 99px; }
  .hbf-rail__track { width: auto; transform: none !important; transition: none; gap: 10px; padding: 0 12px; }
  .hbf-rail__track > .hbf-slide { flex: 0 0 89%; scroll-snap-align: start; }
  .hbf-rail__nav { display: none; }
  /* Static position counter, so "1 of 5" is visible without script. */
  .hbf-dots { position: static; gap: 0; margin: 10px 0 0; }
  .hbf-dots .hbf-dot { display: none; }
  .hbf-dots::after {
    content: "Swipe for all 5 lease specials \2192";
    font-family: var(--f-small); font-size: 13px; color: var(--mute);
  }
  .hbf-slide { grid-template-columns: 1fr; min-height: 0; overflow: hidden; }
  .hbf-slide__media { padding: 22px 22px 0; align-self: auto; }
  .hbf-slide__panel { clip-path: none; padding: 22px 22px 24px; }
  .hbf-slide__model { font-size: 40px; }
  .hbf-slide__num { font-size: 56px; }
  .hbf-slide__figs { gap: 22px; }
  .hbf-slide__fig + .hbf-slide__fig { padding-left: 22px; }
  .hbf-slide__arrow { top: 22vw; width: 42px; height: 42px; font-size: 30px; }
  .hbf-slide__disc > p { text-align: left; }
}

/* ── cards ───────────────────────────────────────────────────────────────── */

/* Explicit column counts rather than auto-fit: auto-fit dropped to 3 columns on tablets
   and left the 4th card orphaned on its own row. 4 → 2 → 1 always divides evenly. */
.hbf-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .hbf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .hbf-grid { grid-template-columns: 1fr; } }

.hbf-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
}
.hbf-card p { font-size: 15.5px; color: var(--mute); margin: 0 0 10px; }
.hbf-card p:last-child { margin-bottom: 0; }
.hbf-card__more { margin-top: 14px; }

/* Borderless variant with a line icon. Icons are inline SVG so there is no icon font and
   no extra request; the stroke follows currentColor. The handshake is Lucide v1.47.0
   (ISC licence, lucide.dev); the rest are drawn to match its 24x24 / round-cap style. */
.hbf-card--plain { background: none; border: 0; padding: 4px 0 0; text-align: center; }
.hbf-card--plain .hbf-h3, .hbf-card--plain p { text-align: center; }
.hbf-card--plain .hbf-card__more { margin-top: 12px; }
.hbf-card__icon { display: block; color: #8a9199; margin: 0 0 16px; }
.hbf-card__icon svg { display: block; margin: 0 auto; width: 64px; height: 64px; max-width: 100%; }

.hbf-trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 26px; }
.hbf-trust li {
  font-family: var(--f-small); font-size: 13px; color: var(--ford-blue);
  background: var(--white); border: 1px solid var(--line);
  border-radius: 0; padding: 7px 16px;
}

/* ── why: photo tiles, title bar, hover-reveal description ──────────────── */

.hbf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.hbf-tile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  color: #fff; text-decoration: none; background: var(--ford-blue);
}
.hbf-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
/* The evergreen banner is a finished 4:3 creative with its own headline and button, so it is
   fitted whole rather than cropped to 16:9 like the photographic tiles. */
.hbf-tile__img--banner { object-fit: contain; background: #eef1f5; }
.hbf-tile__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; background: rgba(0, 9, 91, .82);
}
.hbf-tile__h { margin: 0; font-family: var(--f-body); font-weight: normal; font-size: 21px; line-height: 1.3; color: #fff; text-align: left; }
.hbf-tile__go { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ford-blue); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.hbf-tile__desc {
  position: absolute; inset: 0; z-index: 1; padding: 28px 28px 96px;
  display: flex; align-items: flex-start;
  font-size: 17px; line-height: 1.55; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(0, 9, 91, .9) 0%, rgba(0, 9, 91, .78) 100%);
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.hbf-tile:hover img, .hbf-tile:focus-visible img { transform: scale(1.04); }
.hbf-tile:hover .hbf-tile__desc, .hbf-tile:focus-visible .hbf-tile__desc { opacity: 1; transform: none; }
.hbf-tile:hover .hbf-tile__bar, .hbf-tile:focus-visible .hbf-tile__bar { background: var(--ford-blue); }
@media (max-width: 640px)  { .hbf-tiles { grid-template-columns: 1fr; } .hbf-tile { aspect-ratio: 16 / 10; } }
@media (hover: none) {
  .hbf-here { background-attachment: scroll; }
  /* Touch screens have no hover: keep the description readable below the bar instead of hidden. */
  .hbf-tile__desc { position: static; opacity: 1; transform: none; padding: 14px 20px 18px; background: var(--ford-blue); display: block; }
  .hbf-tile { aspect-ratio: auto; display: grid; }
  .hbf-tile img { position: relative; aspect-ratio: 16 / 9; }
  .hbf-tile__bar { position: static; }
}

/* ── getting here: photo band ────────────────────────────────────────────── */

.hbf-here {
  position: relative; color: #fff; padding: 84px 0 76px;
  /* full-bleed, edge to edge, like the homepage pier band */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background-color: var(--ford-blue);
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
  background-attachment: fixed;
}
.hbf-here::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Photo is already dark; a light Ford Blue tint is enough to keep white type legible. */
  background: linear-gradient(180deg, rgba(0, 9, 91, .5) 0%, rgba(0, 9, 91, .58) 100%);
}
.hbf-here__inner { position: relative; z-index: 2; }
/* Keep all copy in the left half so the car on the right stays visible; the map
   drops under the cards instead of sitting on top of the photo. */

.hbf-here .hbf-loc { grid-template-columns: 1fr 2fr; gap: 40px; align-items: stretch; margin-top: 8px; }
.hbf-here .hbf-map { position: relative; display: flex; flex-direction: column; }
/* CTA floats over the map's top-right corner instead of taking a row below it. */
.hbf-here .hbf-map__cta { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 0; }
.hbf-here .hbf-map__cta .hbf-btn { padding: 10px 20px; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 9, 91, .35); }
.hbf-here .hbf-map iframe { flex: 1 1 auto; min-height: 380px; height: auto; }
.hbf-here .hbf-grid { grid-template-columns: 1fr !important; gap: 22px; text-align: left; }
.hbf-here .hbf-map iframe { display: block; }
.hbf-here .hbf-eyebrow { color: #7fb4ff; }
.hbf-here .hbf-h2 { color: #fff; }
.hbf-here .hbf-p { color: rgba(255, 255, 255, .88); }
.hbf-here .hbf-trust li { background: none; border-color: rgba(255, 255, 255, .5); color: #fff; }
.hbf-here .hbf-card { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hbf-here .hbf-card .hbf-h3 { color: #fff; }
.hbf-here .hbf-card p { color: rgba(255, 255, 255, .82); }
.hbf-here .hbf-link { color: #9cc6ff; }
.hbf-here .hbf-map { border: 0; background: none; }
.hbf-here .hbf-map__cta { background: none; padding: 14px 0 0; text-align: left; }
.hbf-here .hbf-map__cta .hbf-btn--primary { background: #fff; color: var(--ford-blue); border-color: #fff; }
.hbf-here .hbf-map__cta .hbf-btn--primary:hover { background: var(--ford-accent); border-color: var(--ford-accent); color: #fff; }
@media (max-width: 1100px) {
  .hbf-here { padding: 48px 0 44px; background-attachment: scroll; background-position: 70% 50%; }
  .hbf-here .hbf-loc { grid-template-columns: 1fr; }
  .hbf-here .hbf-map__cta { position: static; padding: 14px 0 0; text-align: center; }
  .hbf-here::before { background: linear-gradient(180deg, rgba(0, 9, 91, .92) 0%, rgba(0, 9, 91, .8) 100%); }
}

/* ── location ────────────────────────────────────────────────────────────── */

.hbf-loc { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 1101px) { .hbf-loc { grid-template-columns: 1fr 1.05fr; } }
.hbf-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.hbf-map iframe { display: block; width: 100%; height: 340px; border: 0; }
.hbf-map__cta { padding: 16px; text-align: center; }

/* ── inventory tabs (CSS-only: radios + labels) ───────────────────────────── */

.hbf-tabs { position: relative; }
.hbf-tabs__radio { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.hbf-tabs__bar { display: flex; justify-content: center; gap: 0; margin: 0 0 30px; border-bottom: 1px solid #cfd3da; }
.hbf-tab {
  padding: 12px 26px; margin-bottom: -1px; cursor: pointer; user-select: none;
  font-family: var(--f-body); font-size: 17px; color: #555; border-bottom: 3px solid transparent;
}
.hbf-tab:hover { color: var(--ford-blue); }
#inv-new:checked  ~ .hbf-tabs__bar .hbf-tab--new,
#inv-used:checked ~ .hbf-tabs__bar .hbf-tab--used,
#inv-ev:checked   ~ .hbf-tabs__bar .hbf-tab--ev { color: var(--ford-blue); font-family: var(--f-bold); border-bottom-color: var(--ford-blue); }
.hbf-tabs__radio:focus-visible ~ .hbf-tabs__bar { outline: 2px solid var(--ford-accent); outline-offset: 4px; }

.hbf-tabpanel { display: none; }
#inv-new:checked  ~ .hbf-tabpanel--new,
#inv-used:checked ~ .hbf-tabpanel--used,
#inv-ev:checked   ~ .hbf-tabpanel--ev { display: block; }

.hbf-usedhero { display: block; max-width: 1100px; margin: 0 auto 26px; }
.hbf-usedhero img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.hbf-usedhero:hover img, .hbf-usedhero:focus-visible img { transform: scale(1.02); }
/* Secondary CTA next to the blue one */
.hbf-btn--alt { background: #fff; color: var(--ford-blue); border-color: var(--ford-blue); }
.hbf-btn--alt:hover, .hbf-btn--alt:focus-visible { background: var(--ford-blue); border-color: var(--ford-blue); color: #fff; }

.hbf-lineup-row { display: flex; align-items: flex-start; gap: 14px; padding: 0 64px; margin: 0 0 26px; }
.hbf-tabpanel__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0 0 22px; font-size: 15px; }
.hbf-tabpanel__links a { color: var(--ford-accent); text-decoration: none; border-bottom: 0; }
.hbf-tabpanel__links a:hover, .hbf-tabpanel__links a:focus-visible { color: var(--ford-blue); text-decoration: underline; }
@media (max-width: 1100px) {
  .hbf-tabs__bar { flex-wrap: wrap; }
  .hbf-tab { padding: 10px 14px; font-size: 15px; }
  .hbf-lineup-row { flex-wrap: wrap; padding: 0; gap: 18px 12px; }
  .hbf-lineup-row .hbf-model { flex: 0 0 calc(50% - 6px); }
}

/* ── lineup strip (CSS-only carousel, homepage look) ─────────────────────── */

.hbf-lineup-sec { background: #eeeff1; padding: 48px 0 52px; }
.hbf-lineup__h { text-align: center; color: #333; font-family: var(--f-light); font-size: clamp(28px, 3.4vw, 46px); margin: 0 0 8px; letter-spacing: -.01em; }
.hbf-lineup__sub { text-align: center; color: #6b7280; font-size: 17px; margin: 0 auto 28px; }

.hbf-lineup { position: relative; margin: 0 0 30px; padding: 0 64px; }
/* position:fixed, not absolute: clicking a <label> focuses its radio, and the browser
   scrolls a focused element into view. A fixed 1px box at the top-left corner is
   always "in view", so the page never jumps. */
.hbf-lineup__radio { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.hbf-lineup__viewport { overflow: hidden; }
.hbf-lineup__track { display: flex; width: 300%; transition: transform .45s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.hbf-lineup-page { flex: 0 0 calc(100% / 3); display: flex; align-items: flex-start; gap: 14px; }

#lineup-p1:checked ~ .hbf-lineup__viewport .hbf-lineup__track { transform: translateX(0); }
#lineup-p2:checked ~ .hbf-lineup__viewport .hbf-lineup__track { transform: translateX(calc(-100% / 3)); }
#lineup-p3:checked ~ .hbf-lineup__viewport .hbf-lineup__track { transform: translateX(calc(-200% / 3)); }

/* Only the arrow pair for the current page is rendered. */
.hbf-lineup__arrow { display: none; }
#lineup-p1:checked ~ .hbf-lineup__nav .hbf-lineup__arrow--on-p1,
#lineup-p2:checked ~ .hbf-lineup__nav .hbf-lineup__arrow--on-p2,
#lineup-p3:checked ~ .hbf-lineup__nav .hbf-lineup__arrow--on-p3 { display: flex; }

.hbf-lineup__dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.hbf-lineup__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #555; background: #fff; cursor: pointer; }
#lineup-p1:checked ~ .hbf-lineup__dots .hbf-lineup__dot:nth-child(1),
#lineup-p2:checked ~ .hbf-lineup__dots .hbf-lineup__dot:nth-child(2),
#lineup-p3:checked ~ .hbf-lineup__dots .hbf-lineup__dot:nth-child(3) { background: #333; border-color: #333; }
.hbf-lineup__radio:focus-visible ~ .hbf-lineup__dots { outline: 2px solid var(--ford-accent); outline-offset: 6px; border-radius: 99px; }

.hbf-model {
  flex: 1 1 0; min-width: 0; text-decoration: none; color: #222; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hbf-model img { display: block; width: 100%; height: auto; aspect-ratio: 1431 / 805; object-fit: contain; transition: transform .2s ease; }
.hbf-model:hover img, .hbf-model:focus-visible img { transform: translateY(-4px); }
.hbf-model__name { font-family: var(--f-body); font-weight: normal; font-size: 18px; line-height: 1.3; color: #222; margin: 0; text-align: center; }
.hbf-model:hover .hbf-model__name { color: var(--ford-accent); }

/* Text placeholder for models with no photo we can honestly use
   (Fathom is a 2027 pre-order with no dealer stock; no Edge photo in the library). */
.hbf-model__ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1431 / 805; border-radius: 6px; background: var(--ford-blue); }
.hbf-model__mark { font-family: var(--f-cond); font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: #9cc6ff; }

.hbf-lineup__arrow {
  position: absolute; top: 34%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  background: #333; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; user-select: none;
}
.hbf-lineup__arrow:hover, .hbf-lineup__arrow:focus-visible { background: var(--ford-blue); }
.hbf-lineup__arrow--prev { left: 0; }
.hbf-lineup__arrow--next { right: 0; }

/* Homepage-style rectangular CTA */
.hbf-btn--block { border-radius: 0; background: #1c7ec2; border-color: #1c7ec2; color: #fff; padding: 16px 48px; font-family: var(--f-body); font-size: 18px; letter-spacing: 0; }
.hbf-btn--block:hover, .hbf-btn--block:focus-visible { background: var(--ford-blue); border-color: var(--ford-blue); color: #fff; }

@media (max-width: 1100px) {
  /* Tablet and phone: native swipe instead of 5-across paging. */
  .hbf-lineup { padding: 0; }
  .hbf-lineup__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hbf-lineup__viewport::-webkit-scrollbar { display: none; }
  .hbf-lineup__track { width: auto; transform: none !important; transition: none; gap: 12px; padding: 0 16px; }
  .hbf-lineup-page { flex: 0 0 auto; display: contents; }
  .hbf-model { flex: 0 0 clamp(150px, 26vw, 230px); scroll-snap-align: start; }
  .hbf-model__name { font-size: 15px; }
  .hbf-lineup__nav, .hbf-lineup__dots { display: none; }
}

/* ── closing CTA: tall photo band ─────────────────────────────────────── */

.hbf-cta { position: relative; overflow: hidden; color: #fff; min-height: 560px; display: flex; align-items: center; padding: 90px 0; background: var(--ford-blue); }
.hbf-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: 0; pointer-events: none; }
.hbf-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 9, 91, .35) 0%, rgba(0, 9, 91, .55) 55%, rgba(0, 20, 46, .85) 100%);
}
.hbf-cta__inner { position: relative; z-index: 2; width: 100%; }
.hbf-cta .hbf-eyebrow { color: #7fb4ff; }
.hbf-cta .hbf-h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.hbf-cta .hbf-p { color: rgba(255, 255, 255, .9); font-size: 18px; }
.hbf-cta .hbf-link { color: #fff; }
.hbf-cta .hbf-btn--primary { background: #fff; color: var(--ford-blue); border-color: #fff; }
.hbf-cta .hbf-btn--primary:hover { background: var(--ford-accent); border-color: var(--ford-accent); color: #fff; }
.hbf-cta .hbf-btn--ghost { color: #fff; border-color: #fff; }
.hbf-cta .hbf-btn--ghost:hover { background: #fff; color: var(--ford-blue); }
.hbf-cta .hbf-cities .hbf-h3 { color: #fff; }
.hbf-cta .hbf-fine--foot { color: rgba(255, 255, 255, .7); border-top-color: rgba(255, 255, 255, .25); text-align: center; margin-left: auto; margin-right: auto; }
.hbf-cta .hbf-fine--foot a { color: #9cc6ff; text-decoration: none; }
.hbf-cta .hbf-fine--foot a:hover, .hbf-cta .hbf-fine--foot a:focus-visible { text-decoration: underline; }
@media (max-width: 860px) { .hbf-cta { min-height: 0; padding: 60px 0; } }

/* ── service lists + city link row ──────────────────────────────────────── */

.hbf-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-top: 8px; text-align: left; }
.hbf-svc__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 18px; }
.hbf-svc__col .hbf-h3 { color: #fff; }
.hbf-svc__col p { font-size: 16px; color: rgba(255, 255, 255, .86); margin: 0 0 20px; }
.hbf-svc__list { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
/* Each item gets a line icon instead of a bullet — hand-drawn inline SVG, so there is
   no icon font to load and the stroke inherits colour from the list. */
.hbf-svc__list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: rgba(255, 255, 255, .86); padding: 7px 0; break-inside: avoid; }
.hbf-svc__ico { flex: 0 0 22px; color: #7fb4ff; margin-top: 2px; }
.hbf-cities { margin: 30px auto 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); max-width: 900px; text-align: center; }
.hbf-cities .hbf-h3 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.hbf-citylinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; }
.hbf-citylinks a { color: #9cc6ff; text-decoration: none; border-bottom: 0; font-size: 15px; }
.hbf-citylinks a:hover, .hbf-citylinks a:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 1100px) { .hbf-svc { grid-template-columns: 1fr; } }
@media (max-width: 700px)  { .hbf-svc__list { columns: 1; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.hbf-faq { display: grid; gap: 10px; max-width: 900px; }
.hbf-faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.hbf-faq__item > summary {
  font-family: var(--f-bold); font-size: 16.5px; color: var(--ford-blue);
  padding: 17px 20px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.hbf-faq__item > summary::-webkit-details-marker { display: none; }
.hbf-faq__item > summary::after {
  content: "+"; font-family: var(--f-light); font-size: 25px;
  color: var(--ford-accent); line-height: 1; flex: 0 0 auto;
}
.hbf-faq__item[open] > summary::after { content: "\2212"; }
.hbf-faq__a { padding: 0 20px 18px; }
.hbf-faq__a p { font-size: 15.5px; color: var(--mute); margin: 0 0 10px; }
.hbf-faq__a p:last-child { margin-bottom: 0; }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hbf-section { padding: 40px 0; }
  .hbf-offer__amount { font-size: 44px; }
}

/* Honour the OS setting. The rails are still fully scrollable — only the
   smooth-scroll animation on a dot click is dropped. */
@media (prefers-reduced-motion: reduce) {
  .hbf-rail, .hbf-lineup { scroll-behavior: auto; }
  .hbf-btn, .hbf-model { transition: none; }
}

