/*
 * Aero-Hill "Pick Your Path" (Direction B) front pages.
 *
 * Plain CSS on purpose: Hyvä themes do not compile LESS, and Tailwind already owns generic class
 * names (.container, .btn, .card …). Everything here is scoped to the .ahb root that the CMS
 * content renders, so the theme header, footer and other pages are untouched.
 * Loaded only on the cms_index_index handle (store home pages).
 */

@font-face {
  font-family: "Archivo PathB";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 700 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.ahb {
  --ahb-ff-display: "Archivo PathB", "Arial Black", system-ui, sans-serif;
  --ahb-ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ahb-ink: #111827;
  --ahb-body: #3d3d3d;
  --ahb-muted: #5b6573;
  --ahb-line: #e3e6ea;
  --ahb-canvas: #f5f6f7;
  --ahb-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
  --ahb-actionbar-h: 68px;
  --ahb-anchor-offset: 96px;

  --ahb-marine: #0f5487;
  --ahb-marine-deep: #0a3550;
  --ahb-marine-tint: #e9f1f8;
  --ahb-diesel: #ffbb00;
  --ahb-diesel-deep: #1a1a1a;
  --ahb-diesel-tint: #fff6db;
  --ahb-hub: #17353d;
  --ahb-hub-deep: #0e2329;

  font-family: var(--ahb-ff-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ahb-body);
  -webkit-font-smoothing: antialiased;
}
.ahb--hub    { --ahb-brand: var(--ahb-hub);    --ahb-brand-deep: var(--ahb-hub-deep);    --ahb-on-brand: #fff; --ahb-tint: #edf3f4;               --ahb-focus: #00a8d6; }
.ahb--marine { --ahb-brand: var(--ahb-marine); --ahb-brand-deep: var(--ahb-marine-deep); --ahb-on-brand: #fff; --ahb-tint: var(--ahb-marine-tint); --ahb-focus: #1a6fa3; }
.ahb--diesel { --ahb-brand: var(--ahb-diesel); --ahb-brand-deep: var(--ahb-diesel-deep); --ahb-on-brand: #111; --ahb-tint: var(--ahb-diesel-tint); --ahb-focus: #111; }

/* Local reset: Tailwind preflight and theme prose styles must not leak in. */
.ahb *, .ahb *::before, .ahb *::after { box-sizing: border-box; }
.ahb [hidden] { display: none !important; }
.ahb :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ahb :where(h1, h2, h3, h4) { font-size: inherit; font-weight: inherit; }
.ahb :where(ul, ol) { list-style: none; padding: 0; }
.ahb :where(img) { max-width: 100%; height: auto; display: block; }
.ahb :where(a) { color: inherit; }
.ahb :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ahb :focus-visible { outline: 3px solid var(--ahb-focus, #1a6fa3); outline-offset: 2px; border-radius: 6px; }
.ahb [id] { scroll-margin-top: var(--ahb-anchor-offset); }
.ahb-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ahb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ahb-icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ahb-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.ahb-stack { display: grid; gap: var(--ahb-gap, 16px); }

/* If a page keeps a boxed layout (e.g. 1column instead of cms-full-width), let the bands bleed edge to edge. */
.page-main:not(.page-main-full-width) .ahb :is(.ahb-section, .ahb-hero, .ahb-intro, .ahb-doors, .ahb-callband) { margin-inline: calc(50% - 50vw); }
body:has(.ahb) { overflow-x: clip; }
.ahb :is(.widget, .block-static-block) { margin: 0; padding: 0; }

/* ---------- Type ---------- */
.ahb-kicker { font: 700 12px/1.2 var(--ahb-ff-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ahb-muted); }
.ahb-h1 {
  font-family: var(--ahb-ff-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.4rem, 9.5vw, 5.4rem); line-height: .95; letter-spacing: -.02em; color: #fff;
}
.ahb-h2 {
  font-family: var(--ahb-ff-display); font-weight: 800; font-stretch: 108%;
  font-size: clamp(1.7rem, 5.6vw, 3rem); line-height: 1; letter-spacing: -.015em; color: var(--ahb-ink);
}
.ahb-h2--md { font-size: clamp(1.5rem, 4.8vw, 2.4rem); }
.ahb-h2--sm { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 10px; }
.ahb-lead { font-size: clamp(16px, 2.5vw, 20px); line-height: 1.4; color: rgba(255, 255, 255, .88); max-width: 34ch; }
.ahb-sub { font-size: 15px; color: var(--ahb-muted); max-width: 48ch; }
.ahb-sub a { color: var(--ahb-ink); font-weight: 700; }

/* ---------- Sections ---------- */
.ahb-section { padding: clamp(44px, 8vw, 96px) 0; }
.ahb-section--canvas { background: var(--ahb-canvas); }
.ahb-section--dark { background: #0f1214; color: rgba(255, 255, 255, .8); }
.ahb--marine .ahb-section--dark { background: var(--ahb-marine-deep); padding-block: clamp(32px, 6vw, 64px); }
.ahb-section--dark .ahb-h2 { color: #fff; }
.ahb-section--dark .ahb-kicker { color: rgba(255, 255, 255, .55); }
.ahb-section--flush-top { padding-top: 0; }
.ahb-section--short-top { padding-top: clamp(28px, 5vw, 48px); }
.ahb-head { display: grid; gap: 10px; margin-bottom: clamp(20px, 4vw, 36px); max-width: 720px; }
.ahb-head--tight { margin-bottom: 16px; }
.ahb-head--flush { margin-bottom: 0; }
.ahb-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.ahb-head--row > div:first-child { display: grid; gap: 10px; }

.ahb-step {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 12px/1 var(--ahb-ff-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ahb-brand-deep);
}
.ahb--diesel .ahb-step { color: #7a5700; }
.ahb-step b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ahb-brand); color: var(--ahb-on-brand); font-size: 13px; letter-spacing: 0;
}

/* ---------- Buttons, chips, segmented control ---------- */
.ahb .ahb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .12s ease, filter .15s ease;
}
.ahb .ahb-btn:active { transform: translateY(1px); }
.ahb .ahb-btn:hover { filter: brightness(1.06); }
.ahb .ahb-btn--marine { background: var(--ahb-marine); color: #fff; }
.ahb .ahb-btn--hub, .ahb .ahb-btn--diesel, .ahb .ahb-btn--dark { background: #111; color: #fff; }
.ahb .ahb-btn--outline { background: transparent; border-color: currentColor; color: var(--ahb-marine); }
.ahb .ahb-btn--lg { min-height: 56px; font-size: 17px; padding-inline: 24px; }
.ahb .ahb-btn--start { justify-self: start; }

.ahb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ahb .ahb-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1.5px solid var(--ahb-line);
  font-size: 14px; font-weight: 600; color: var(--ahb-ink); text-decoration: none; white-space: nowrap;
}
.ahb a.ahb-chip:hover { border-color: var(--ahb-ink); }

.ahb-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef0f2; gap: 2px; }
.ahb .ahb-seg button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; font-size: 14px; color: var(--ahb-muted); cursor: pointer;
}
.ahb .ahb-seg button[aria-pressed="true"] { background: #fff; color: var(--ahb-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- Hero (marine, diesel) ---------- */
.ahb-hero { position: relative; isolation: isolate; color: #fff; background: #0f1214; overflow: hidden; }
.ahb-hero__bg { position: absolute; inset: 0; z-index: -1; }
.ahb-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ahb-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .9) 100%); }
.ahb--marine .ahb-hero__bg::after { background: linear-gradient(180deg, rgba(10, 53, 80, .35) 0%, rgba(10, 53, 80, .7) 50%, rgba(8, 36, 56, .97) 100%); }
.ahb-hero__inner { display: grid; gap: 16px; padding-block: clamp(56px, 12vw, 128px) clamp(28px, 5vw, 48px); }
.ahb--marine .ahb-hero__inner { padding-bottom: clamp(64px, 9vw, 84px); }
.ahb-hero .ahb-kicker { color: rgba(255, 255, 255, .78); }
.ahb-hero .ahb-h1 em { font-style: normal; }
.ahb--marine .ahb-hero .ahb-h1 em { color: #8fd8ff; }
.ahb--diesel .ahb-hero .ahb-h1 em { color: var(--ahb-diesel); }
.ahb-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ahb-hero__meta li { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- Hub: intro strip + two doors ---------- */
.ahb-intro { background: #0f1214; color: #fff; }
.ahb-intro .ahb-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.ahb-intro h1 { font-family: var(--ahb-ff-display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.35rem, 4.6vw, 2.1rem); line-height: 1.05; letter-spacing: -.01em; color: #fff; }
.ahb-intro p { font-size: 14px; color: rgba(255, 255, 255, .7); }

.ahb-doors { display: grid; gap: 0; }
@media (min-width: 900px) { .ahb-doors { grid-template-columns: 1fr 1fr; } }
.ahb .ahb-door {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: end; gap: 16px;
  min-height: clamp(380px, 62vh, 640px); padding: clamp(20px, 4vw, 48px); text-decoration: none; border: 0; border-radius: 0;
}
.ahb-door__bg { position: absolute; inset: 0; z-index: -1; }
.ahb-door__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ahb-door:hover .ahb-door__bg img { transform: scale(1.04); }
.ahb .ahb-door--marine { color: #fff; }
.ahb-door--marine .ahb-door__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 84, 135, .25), rgba(10, 53, 80, .95) 78%); }
/* Owner requirement: no blue edge on the yellow door — not as border, outline, shadow or focus ring. */
.ahb .ahb-door--diesel { color: #111; border: 0; outline: none; box-shadow: none; }
.ahb-door--diesel .ahb-door__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 187, 0, .05) 10%, rgba(255, 187, 0, .96) 70%); }
.ahb .ahb-door--diesel:focus, .ahb .ahb-door--diesel:focus-visible { outline: 3px solid #111; outline-offset: -6px; box-shadow: none; border-radius: 0; }
.ahb .ahb-door--marine:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 0; }
.ahb-door__label { font-family: var(--ahb-ff-display); font-weight: 900; font-stretch: 118%; font-size: clamp(3rem, 13vw, 6.4rem); line-height: .85; letter-spacing: -.03em; text-transform: uppercase; }
.ahb-door__tags { font: 700 13px/1.2 var(--ahb-ff-body); letter-spacing: .14em; text-transform: uppercase; }
.ahb-door__links { display: flex; flex-wrap: wrap; gap: 8px; }
.ahb-door__links span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.ahb-door--marine .ahb-door__links span { background: rgba(255, 255, 255, .16); }
.ahb-door--diesel .ahb-door__links span { background: rgba(0, 0, 0, .1); }
.ahb-door__go { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 56px; padding: 0 24px; border-radius: 999px; font-weight: 800; font-size: 17px; }
.ahb-door--marine .ahb-door__go { background: #fff; color: var(--ahb-marine-deep); }
.ahb-door--diesel .ahb-door__go { background: #111; color: #fff; }
.ahb-door__go .ahb-icon { transition: transform .2s ease; }
.ahb-door:hover .ahb-door__go .ahb-icon { transform: translateX(4px); }
@media (max-width: 899px) {
  /* Both doors sit above the fold on a 390×844 phone. */
  .ahb .ahb-door { min-height: 300px; gap: 10px; padding: 20px; }
  .ahb-door__label { font-size: clamp(2.8rem, 15vw, 4rem); }
  .ahb-door__links { display: none; }
  .ahb-door__go { min-height: 48px; font-size: 16px; padding: 0 20px; }
  .ahb-intro .ahb-container { padding-block: 12px; gap: 2px; }
  .ahb-intro p { font-size: 13px; }
}

/* ---------- Intent tiles (marine tabs, diesel accordion) ---------- */
.ahb-intent { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ahb-intent { grid-template-columns: repeat(var(--ahb-cols, 3), 1fr); gap: 14px; } }
.ahb-intent--4 { --ahb-cols: 4; }
.ahb .ahb-tile {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  width: 100%; min-height: 76px; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--ahb-line); background: #fff;
  text-align: left; cursor: pointer; color: var(--ahb-ink); text-decoration: none; font: inherit;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ahb .ahb-tile:hover { border-color: var(--ahb-brand); }
.ahb .ahb-tile[aria-selected="true"], .ahb .ahb-tile[aria-expanded="true"] { border-color: var(--ahb-brand); background: var(--ahb-brand); color: var(--ahb-on-brand); box-shadow: var(--ahb-shadow); }
.ahb-tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ahb-tint); color: var(--ahb-brand-deep); }
.ahb--diesel .ahb-tile__icon { color: #111; }
.ahb-tile[aria-selected="true"] .ahb-tile__icon, .ahb-tile[aria-expanded="true"] .ahb-tile__icon { background: rgba(255, 255, 255, .18); color: inherit; }
.ahb--diesel .ahb-tile[aria-expanded="true"] .ahb-tile__icon { background: rgba(0, 0, 0, .1); }
.ahb-tile__icon .ahb-icon { width: 24px; height: 24px; }
.ahb-tile__title { display: block; font-weight: 800; font-size: 17px; line-height: 1.2; }
.ahb-tile__sub { display: block; font-size: 14px; opacity: .78; margin-top: 2px; }
.ahb-tile__chev { transition: transform .2s ease; }
.ahb-tile[aria-selected="true"] .ahb-tile__chev, .ahb-tile[aria-expanded="true"] .ahb-tile__chev { transform: rotate(90deg); }
@media (min-width: 900px) {
  .ahb .ahb-tile { grid-template-columns: 1fr; align-content: start; gap: 12px; min-height: 168px; padding: 20px; }
  .ahb-tile__chev { position: absolute; top: 20px; right: 20px; }
}
.ahb-intent--on-hero { margin-top: -36px; position: relative; z-index: 2; }
.ahb .ahb-intent--on-hero .ahb-tile { box-shadow: var(--ahb-shadow); border-color: transparent; }
.ahb .ahb-intent--on-hero .ahb-tile[aria-selected="true"] { border-color: var(--ahb-brand); }

.ahb-panel { margin-top: 16px; background: #fff; border: 1px solid var(--ahb-line); border-radius: 22px; padding: clamp(18px, 4vw, 36px); box-shadow: var(--ahb-shadow); display: grid; gap: 18px; }
.ahb-panel--first { margin-top: 0; }
.ahb-panel__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .ahb-panel__grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; } }
.ahb-checks { display: grid; gap: 8px; font-weight: 600; color: var(--ahb-ink); }
.ahb-checks li { display: flex; gap: 10px; align-items: center; }
.ahb-checks .ahb-icon { color: var(--ahb-brand); }
.ahb--diesel .ahb-checks .ahb-icon { color: #7a5700; }
.ahb-panel .ahb-callband__num { color: var(--ahb-brand-deep); }

/* ---------- Search inside a panel ---------- */
.ahb-search { display: flex; gap: 8px; }
.ahb .ahb-search .ahb-input { flex: 1; min-width: 0; min-height: 60px; font-size: 17px; border-width: 2px; border-radius: 14px; }
.ahb .ahb-search button {
  min-width: 60px; min-height: 60px; border-radius: 14px; border: 0; background: var(--ahb-brand); color: var(--ahb-on-brand);
  display: grid; place-items: center; cursor: pointer; padding: 0 18px; font-weight: 800;
}
.ahb-search button .ahb-icon { width: 24px; height: 24px; }

/* ---------- Brand picker (marine), brand scroller (diesel), mosaic (diesel) ---------- */
.ahb-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .ahb-picker { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.ahb .ahb-picker a {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; aspect-ratio: 5 / 4;
  display: flex; align-items: end; padding: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; line-height: 1.15; background: #222;
}
.ahb-picker img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.ahb-picker a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .8)); }
.ahb-picker a:hover img { transform: scale(1.05); }

.ahb-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px clamp(16px, 4vw, 32px) 14px; margin-inline: calc(-1 * clamp(16px, 4vw, 32px)); scrollbar-width: thin;
}
@media (min-width: 640px) { .ahb-scroller { grid-auto-columns: 24%; } }
@media (min-width: 1024px) { .ahb-scroller { grid-auto-columns: calc((100% - 6 * 12px) / 7.3); gap: 12px; } }
.ahb .ahb-scroller a {
  scroll-snap-align: start; position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; aspect-ratio: 1 / 1;
  display: flex; align-items: end; padding: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; background: #222;
}
.ahb-scroller img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; z-index: -2; }
.ahb-scroller a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .82)); }

.ahb-mosaic { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.ahb .ahb-mosaic a {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; min-height: 160px; display: grid; align-content: end; gap: 4px;
  padding: 14px; color: #fff; text-decoration: none; background: #222;
}
.ahb .ahb-mosaic a:first-child { grid-column: 1 / -1; min-height: 240px; }
.ahb-mosaic img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.ahb-mosaic a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .85)); }
.ahb-mosaic a:hover img { transform: scale(1.04); }
.ahb-mosaic strong { font-family: var(--ahb-ff-display); font-weight: 800; font-stretch: 105%; font-size: clamp(1.1rem, 3.6vw, 1.6rem); line-height: 1.05; }
.ahb-mosaic span { justify-self: start; font: 800 11px/1 var(--ahb-ff-body); letter-spacing: .12em; text-transform: uppercase; background: var(--ahb-diesel); color: #111; padding: 6px 8px; border-radius: 6px; }
@media (min-width: 900px) {
  .ahb-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
  .ahb .ahb-mosaic a:first-child { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
  .ahb .ahb-mosaic a { min-height: 0; }
  .ahb .ahb-mosaic a:nth-child(4) { grid-column: 2 / 4; }
}

/* ---------- Hub steps ---------- */
.ahb-steps { display: grid; gap: 12px; counter-reset: ahb-step; }
@media (min-width: 900px) { .ahb-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.ahb-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--ahb-line); }
.ahb-steps li::before {
  counter-increment: ahb-step; content: counter(ahb-step);
  font-family: var(--ahb-ff-display); font-weight: 900; font-size: 44px; line-height: .9; color: var(--ahb-brand);
}
.ahb-steps strong { display: block; color: var(--ahb-ink); font-size: 17px; margin-bottom: 2px; }
.ahb-steps span { font-size: 14px; color: var(--ahb-muted); }

/* ---------- Call band (ahb_call_band block) ---------- */
.ahb-callband { background: var(--ahb-brand); color: var(--ahb-on-brand); }
.ahb-callband .ahb-container { display: grid; gap: 18px; padding-block: clamp(36px, 7vw, 72px); }
.ahb-callband .ahb-kicker { color: inherit; opacity: .7; }
.ahb .ahb-callband__num {
  display: inline-block; padding-block: 6px; font-family: var(--ahb-ff-display); font-weight: 900; font-stretch: 108%;
  font-size: clamp(1.9rem, 8.2vw, 4.4rem); line-height: .95; letter-spacing: -.02em; text-decoration: none; color: inherit; white-space: nowrap;
}
.ahb-callband__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; opacity: .9; }
.ahb-callband__meta span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ahb-callband__meta a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
@media (min-width: 900px) { .ahb-callband .ahb-container { grid-template-columns: 1.3fr 1fr; align-items: center; } }

/* ---------- Quote form widget (posts to contact/index/post) ---------- */
.ahb-qform { display: grid; gap: 14px; }
.ahb-grid-2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .ahb-grid-2 { grid-template-columns: 1fr 1fr; } }
.ahb-field { display: grid; gap: 6px; }
.ahb-field label { font-size: 14px; font-weight: 600; color: var(--ahb-ink); }
.ahb-opt { font-weight: 400; color: var(--ahb-muted); }
.ahb .ahb-input {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 16px; /* 16px stops iOS zoom-on-focus */
  border: 1.5px solid #cfd4da; border-radius: 12px; background: #fff; color: var(--ahb-ink);
  -webkit-appearance: none; appearance: none; box-shadow: none;
}
.ahb .ahb-input:focus { outline: none; border-color: var(--ahb-focus); box-shadow: 0 0 0 4px rgba(26, 111, 163, .2); }
.ahb--diesel .ahb-input:focus { box-shadow: 0 0 0 4px rgba(0, 0, 0, .15); }
.ahb-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ahb-qform__error { padding: 12px 14px; border-radius: 12px; background: #fef3f2; color: #b42318; font-weight: 600; font-size: 15px; }
.ahb-qform .ahb-btn { justify-self: start; }
.ahb-qform :is(.recaptcha-legal-notice, [class*="legal"]) { font-size: 12px; color: var(--ahb-muted); }
.ahb-note { font-size: 12px; color: var(--ahb-muted); }

/* ---------- Marine product cards ---------- */
.ahb-cards { display: grid; gap: 14px; }
@media (min-width: 800px) { .ahb-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.ahb-card { background: #fff; border: 1px solid var(--ahb-line); border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.ahb-card > a img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ahb-card__body { padding: 16px; display: grid; gap: 10px; align-content: start; }
.ahb .ahb-card__name { display: flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 18px; color: var(--ahb-ink); line-height: 1.2; text-decoration: none; }
.ahb-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ahb-card__price { font-weight: 700; color: var(--ahb-ink); }
.ahb-card details { border-top: 1px solid var(--ahb-line); padding-top: 10px; display: grid; gap: 10px; }
.ahb-card summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ahb-marine); min-height: 40px; display: flex; align-items: center; }
.ahb-card dl { margin: 6px 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.ahb-card dt { color: var(--ahb-muted); }
.ahb-card dd { font-weight: 600; color: var(--ahb-ink); }

/* ---------- Facts row (dark band) ---------- */
.ahb-facts { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 800px) { .ahb-facts { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.ahb .ahb-facts > * { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.ahb-facts .ahb-icon { width: 28px; height: 28px; color: var(--ahb-diesel); }
.ahb--marine .ahb-facts .ahb-icon { color: #8fd8ff; }
.ahb-facts small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.ahb-facts strong { font-size: 17px; }

/* ---------- Fold-away long copy ---------- */
.ahb-fold { border-top: 1px solid var(--ahb-line); }
.ahb-fold:last-child { border-bottom: 1px solid var(--ahb-line); }
.ahb-fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 4px; font-weight: 700; font-size: 17px; color: var(--ahb-ink);
}
.ahb-fold > summary::-webkit-details-marker { display: none; }
.ahb-fold > summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--ahb-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.ahb-fold[open] > summary::after { transform: rotate(45deg); }
.ahb-fold__body { padding: 0 4px 20px; display: grid; gap: 12px; max-width: 72ch; font-size: 15px; }
.ahb-fold__body a { color: var(--ahb-ink); font-weight: 700; }

/* ---------- Spec disclaimer (ahb_spec_disclaimer block; required wherever specs appear) ---------- */
.ahb-disclaimer {
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #4a3b00;
  background: #fff8e1; border: 1px solid #f3d27a; border-radius: 10px; padding: 10px 12px;
}
.ahb-disclaimer .ahb-icon { color: #a16207; margin-top: 1px; }

/* ---------- Mobile action bar ---------- */
.ahb-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ahb-line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
}
.ahb .ahb-actionbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; border-radius: 12px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--ahb-ink); background: #f2f4f6;
}
.ahb-actionbar a .ahb-icon { width: 22px; height: 22px; }
.ahb .ahb-actionbar a.is-primary { background: var(--ahb-brand); color: var(--ahb-on-brand); flex-direction: row; font-size: 15px; gap: 8px; }
@media (max-width: 899px) { body:has(.ahb-actionbar) { padding-bottom: calc(var(--ahb-actionbar-h, 68px) + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .ahb-actionbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ahb *, .ahb *::before, .ahb *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Mike 2026-10-21: theme top bar (.ah-topbar) text was near-black on #333. Light text on the
   home pages that load this file (hub, /marine/, /diesel/). Same fix belongs in the themes for all pages. */
.ah-topbar .ah-topbar__loc,
.ah-topbar .ah-topbar__ship { color: #f5f5f5; }
.ah-topbar .ah-topbar__ship:hover,
.ah-topbar .ah-topbar__ship:focus-visible { color: #ffffff; }

/* 2026-10-21 (Mike/DEM) hub phone header: Menu button overlapped logo (theme search box min-widths
   pushed the tools row left), empty dark engine-nav bar, Diesel door button under the action bar. */
@media (max-width: 767px) {
  body.cms-aerohill-home .page-header div:has(> a.ah-logo) { width: auto !important; flex: 0 0 auto !important; padding-bottom: 0 !important; }
  body.cms-aerohill-home .page-header .ah-header-tools { min-width: 0 !important; }
  body.cms-aerohill-home .page-header .ah-header-shop-btn__label { display: none !important; }
  body.cms-aerohill-home #header #ah-header-search.ah-inline-search,
  body.cms-aerohill-home #header .ah-header-tools div.ah-inline-search { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
  body.cms-aerohill-home #header .ah-inline-search__wrap,
  body.cms-aerohill-home #header .ah-inline-search search,
  body.cms-aerohill-home #header .ah-inline-search__form,
  body.cms-aerohill-home .page-header .ah-header-tools .input-group { min-width: 0 !important; width: 100% !important; }
  body.cms-aerohill-home #header input#search.ah-inline-search__input { min-width: 0 !important; width: 100% !important; }
  body.cms-aerohill-home .ah-engine-nav { min-height: 0 !important; height: auto !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  .ahb--hub .ahb-door { min-height: 250px; }
}

/* 2026-10-21 (Mike) tighter vertical rhythm on Marine and Diesel below the hero */
.ahb--marine .ahb-section, .ahb--diesel .ahb-section { padding-block: clamp(28px, 4.5vw, 56px); }
.ahb--marine .ahb-section--flush-top, .ahb--diesel .ahb-section--flush-top { padding-top: 0; }
.ahb--marine .ahb-section--short-top, .ahb--diesel .ahb-section--short-top { padding-top: clamp(20px, 3vw, 32px); }
.ahb--marine .ahb-head:not(.ahb-head--tight):not(.ahb-head--flush), .ahb--diesel .ahb-head:not(.ahb-head--tight):not(.ahb-head--flush) { margin-bottom: clamp(14px, 2vw, 22px); }
/* Diesel brand photo grid (same block as Marine) + search under it */
.ahb-picker--brands + .ahb-search { margin-top: 14px; }

/* Diesel 4-tab first box: 2x2 on phone, no overflow */
@media (max-width: 639px) {
  .ahb .ahb-intent--4[role="tablist"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ahb .ahb-intent--4[role="tablist"] .ahb-tile { min-width: 0; padding: 12px 10px; gap: 8px; align-items: center; }
  .ahb .ahb-intent--4[role="tablist"] .ahb-tile__title { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .ahb .ahb-intent--4[role="tablist"] .ahb-tile__sub, .ahb .ahb-intent--4[role="tablist"] .ahb-tile__chev { display: none; }
}
@media (max-width: 639px) {
  .ahb--diesel .ahb-intent--4.ahb-intent--on-hero { margin-top: 16px; }
}

/* Diesel search tab dropdowns */
.ahb-nav { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 640px) { .ahb-nav { grid-template-columns: 1fr 1fr; gap: 14px; } }
.ahb-nav__field { min-width: 0; display: grid; gap: 6px; }
.ahb-nav__label { font-size: 14px; font-weight: 600; }
.ahb .ahb-select { width: 100%; max-width: 100%; min-width: 0; min-height: 56px; font-size: 16px; padding: 0 40px 0 14px; border-width: 2px; border-radius: 14px; text-overflow: ellipsis; background-color: #fff; }
.ahb .ahb-select:disabled { opacity: .6; }
