/* HI-FI STYLES — Westenstar homepage
   Theme: clean white base, vivid red accents, sharp contrast blocks.
   Three font-pair variants applied via .hf-typeA / .hf-typeB / .hf-typeC.
*/

:root {
  --hf-bg: #ffffff;
  --hf-bg-2: #f5f5f4;       /* warm off-white panels */
  --hf-bg-3: #ebebe8;
  --hf-ink: #0c0c0c;        /* near-black */
  --hf-ink-2: #2a2a2a;
  --hf-ink-3: #5a5a5a;
  --hf-ink-4: #8a8a8a;
  --hf-line: #e0e0dc;
  --hf-line-strong: #1a1a1a;
  --hf-red: #e10600;        /* vivid McCormick red */
  --hf-red-hover: #b80500;
  --hf-onred: #ffffff;
  --hf-dark: #0c0c0c;
  --hf-on-dark: #f5f5f4;
}

.hf {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--hf-ink);
  background: var(--hf-bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============ TYPE PAIRS ============ */

/* A — Antonio (heavy condensed) + Inter */
.hf-typeA          { font-family: 'Inter', system-ui, sans-serif; }
.hf-typeA .hf-display, .hf-typeA .hf-h1, .hf-typeA .hf-h2, .hf-typeA .hf-h3 {
  font-family: 'Antonio', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hf-typeA .hf-h1, .hf-typeA .hf-display { line-height: 0.88; }

/* B — Archivo Black + Archivo */
.hf-typeB          { font-family: 'Archivo', system-ui, sans-serif; }
.hf-typeB .hf-display, .hf-typeB .hf-h1, .hf-typeB .hf-h2, .hf-typeB .hf-h3 {
  font-family: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: none;
}
.hf-typeB .hf-h1, .hf-typeB .hf-display { line-height: 0.94; }

/* C — Oswald + IBM Plex Sans */
.hf-typeC          { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.hf-typeC .hf-display, .hf-typeC .hf-h1, .hf-typeC .hf-h2, .hf-typeC .hf-h3 {
  font-family: 'Oswald', 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.hf-typeC .hf-h1, .hf-typeC .hf-display { line-height: 0.92; }
.hf-typeC .hf-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* ============ TYPE SCALE ============ */
.hf-display   { font-size: clamp(80px, 9vw, 168px); margin: 0; }
.hf-h1        { font-size: clamp(56px, 6vw, 96px); margin: 0; }
.hf-h1, .hf-h2, .hf-h3, .hf-h4, .hf-display,
.hf-cat-name, .hf-pagehero-title, .hf-region-block .name {
  overflow-wrap: break-word;
}
.hf-h2        { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; margin: 0; }
.hf-h2-sm     { font-size: 36px; line-height: 1.05; margin: 0; font-weight: 700; }
.hf-h3        { font-size: 26px; line-height: 1.15; margin: 0; font-weight: 700; }
.hf-h4        { font-size: 17px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -0.005em; }
.hf-body      { font-size: 16px; line-height: 1.55; color: var(--hf-ink-2); margin: 0; }
.hf-body-lg   { font-size: 19px; line-height: 1.5; color: var(--hf-ink-2); margin: 0; }
.hf-small     { font-size: 13px; line-height: 1.5; color: var(--hf-ink-3); margin: 0; }
.hf-mono      { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "ss01"; }
.hf-eyebrow   {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hf-ink-3);
  font-weight: 500;
  margin: 0;
}
.hf-eyebrow-red { color: var(--hf-red); }
.hf-eyebrow.on-dark { color: rgba(255,255,255,0.65); }

/* ============ HEADER ============ */
.hf-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  height: 72px;
  padding: 0 56px;
  border-bottom: 1px solid var(--hf-line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.hf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--hf-ink);
  text-decoration: none;
}
.hf-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--hf-red);
  position: relative;
  transform: rotate(45deg);
}
.hf-logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  transform: rotate(-45deg);
}
.hf-nav { display: flex; gap: 32px; justify-self: center; }
.hf-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--hf-ink-2);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}
.hf-nav a:hover { color: var(--hf-ink); }
.hf-header-right { display: flex; align-items: center; gap: 14px; }
.hf-lang {
  display: flex;
  border: 1px solid var(--hf-line-strong);
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
}
.hf-lang button {
  background: transparent;
  border: 0;
  padding: 6px 11px;
  cursor: pointer;
  color: var(--hf-ink-2);
  font: inherit;
  letter-spacing: 0.08em;
}
.hf-lang button.on {
  background: var(--hf-ink);
  color: #fff;
}

/* ============ BUTTONS ============ */
.hf-btn {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--hf-ink);
  background: transparent;
  color: var(--hf-ink);
  font: 600 13.5px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform 0.12s ease, background 0.12s ease;
}
.hf-btn:hover { transform: translateY(-1px); }
.hf-btn.primary {
  background: var(--hf-red);
  border-color: var(--hf-red);
  color: var(--hf-onred);
}
.hf-btn.primary:hover { background: var(--hf-red-hover); border-color: var(--hf-red-hover); }
.hf-btn.on-dark { border-color: rgba(255,255,255,0.5); color: #fff; }
.hf-btn.on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.hf-btn.sm { height: 40px; padding: 0 16px; font-size: 12px; }
.hf-btn.lg { height: 60px; padding: 0 32px; font-size: 14px; }
.hf-btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 12px;
}
.hf-btn .arrow::before { content: "→"; font-family: 'JetBrains Mono', monospace; }

/* ============ HERO ============ */
.hf-hero {
  position: relative;
  min-height: 880px;
  background: var(--hf-dark);
  color: #fff;
  overflow: hidden;
}
/* Carousel: all photo layers stack, z-index handled per layer */
.hf-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hf-hero-photo image-slot,
.hf-hero-photo .photo-fallback {
  width: 100%;
  height: 100%;
  display: block;
}
.hf-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.65) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.hf-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 56px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  pointer-events: none;
}
.hf-hero-inner a,
.hf-hero-inner button,
.hf-hero-inner .hf-spec-card {
  pointer-events: auto;
}
.hf-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hf-hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
.hf-hero-headline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 880px;
}
.hf-hero-title { color: #fff; }
.hf-hero-title .red { color: var(--hf-red); }
.hf-hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 540px; }
.hf-hero-ctas { display: flex; gap: 12px; margin-top: 8px; }

/* Spec card overlay */
.hf-spec-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  padding: 28px;
  position: relative;
}
.hf-spec-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 56px;
  background: var(--hf-red);
}
.hf-spec-card-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.hf-spec-card-model { color: #fff; font-size: 32px; margin-bottom: 4px; }
.hf-spec-card-class { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.hf-spec-card-divider { height: 1px; background: rgba(255,255,255,0.18); margin-bottom: 18px; }
.hf-spec-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.hf-spec-row { display: flex; flex-direction: column; gap: 4px; }
.hf-spec-row-l {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hf-spec-row-v { font-size: 13.5px; color: #fff; font-weight: 500; }

/* ============ SECTIONS ============ */
.hf-section { padding: 120px 56px; }
.hf-section.tight { padding: 80px 56px; }
.hf-section.dark { background: var(--hf-dark); color: var(--hf-on-dark); }
.hf-section.muted { background: var(--hf-bg-2); }
.hf-section.red { background: var(--hf-red); color: #fff; }
.hf-section.red .hf-body { color: rgba(255,255,255,0.9); }
.hf-section.red .hf-eyebrow { color: rgba(255,255,255,0.8); }

.hf-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.hf-section-head.center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  align-items: center;
}
.hf-section-head .left { display: flex; flex-direction: column; gap: 16px; }
.hf-section-head .right { display: flex; flex-direction: column; gap: 16px; }

/* ============ STAT BAND ============ */
.hf-statband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--hf-line);
  border-top: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
}
.hf-stat {
  padding: 36px 32px;
  background: var(--hf-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hf-stat-num { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-family: inherit; white-space: nowrap; }
.hf-typeA .hf-stat-num, .hf-typeC .hf-stat-num { font-family: 'Antonio', 'Oswald', 'Inter', system-ui, sans-serif; font-size: clamp(44px, 4.6vw, 64px); }
.hf-typeB .hf-stat-num { font-family: 'Archivo Black', system-ui, sans-serif; font-size: clamp(40px, 4vw, 52px); }
.hf-stat-lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-ink-3);
}
.hf-section.dark .hf-stat-lbl { color: rgba(255,255,255,0.6); }
.hf-section.dark .hf-statband { background: #1f1f1f; border-color: #1f1f1f; }
.hf-section.dark .hf-stat { background: var(--hf-dark); }

/* ============ MODEL CARDS ============ */
.hf-models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hf-model {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hf-bg);
  border: 1px solid var(--hf-line);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.hf-model:hover { border-color: var(--hf-ink); transform: translateY(-2px); }
.hf-model-photo {
  height: 320px;
  background: #ebebea;
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  box-sizing: border-box;
}
.hf-model-photo image-slot { width: 100%; height: 100%; display: block; }
.hf-model-photo image-slot::part(frame) { background: transparent; }
.hf-model-photo .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--hf-ink);
  color: #fff;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hf-model-photo .tag.red { background: var(--hf-red); }
.hf-model-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.hf-model-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 42px; }
.hf-model-name { font-size: 32px; }
.hf-typeB .hf-model-name { font-size: 28px; }
.hf-model-range {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--hf-red);
  font-weight: 600;
  white-space: nowrap;
}
.hf-model-use {
  font-size: 13px;
  color: var(--hf-ink-3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hf-line);
}
.hf-model-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hf-model-bullets li {
  font-size: 13.5px;
  color: var(--hf-ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hf-model-bullets li::before {
  content: "";
  width: 8px;
  height: 1px;
  background: var(--hf-red);
  flex: 0 0 8px;
}
.hf-model-ctas { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.hf-model-ctas .hf-btn { flex: 1; }

/* ============ PARTS + SERVICE TILES ============ */
.hf-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hf-ps-tile {
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 540px;
  position: relative;
}
.hf-ps-tile.light { background: var(--hf-bg); border: 1px solid var(--hf-line); }
.hf-ps-tile.dark { background: var(--hf-dark); color: #fff; }
.hf-ps-tile.dark .hf-body { color: rgba(255,255,255,0.78); }
.hf-ps-tile.dark .hf-eyebrow { color: rgba(255,255,255,0.65); }

.hf-ps-photo {
  flex: 1;
  min-height: 200px;
  background: var(--hf-bg-2);
  border: 1px solid var(--hf-line);
  position: relative;
  overflow: hidden;
}
.hf-ps-tile.dark .hf-ps-photo { background: #1a1a1a; border-color: #2a2a2a; }
.hf-ps-photo image-slot { width: 100%; height: 100%; display: block; }

.hf-ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hf-ps-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--hf-line);
  background: var(--hf-bg-2);
  color: var(--hf-ink-2);
}
.hf-ps-tile.dark .hf-ps-tag {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}
.hf-ps-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hf-ps-bullets li {
  font-size: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hf-ps-bullets li .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--hf-red);
  flex: 0 0 24px;
  padding-top: 1px;
}

/* ============ REGIONS ============ */
.hf-regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hf-line);
}
.hf-region {
  padding: 40px;
  border-left: 1px solid var(--hf-line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  background: var(--hf-bg);
}
.hf-region:first-child { border-left: 0; }
.hf-region-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hf-region-name { font-size: 30px; }
.hf-region-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--hf-red);
  letter-spacing: 0.12em;
}
.hf-region-meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--hf-ink-3);
  font-family: 'JetBrains Mono', monospace;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hf-line);
}
.hf-region-countries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hf-region-countries li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--hf-ink-2);
}
.hf-flag {
  width: 22px;
  height: 14px;
  background: var(--hf-bg-3);
  border: 1px solid var(--hf-line);
  flex: 0 0 22px;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-ink-3);
  font-weight: 600;
}

/* ============ WHY US ============ */
.hf-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.hf-why {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--hf-line-strong);
  position: relative;
}
.hf-why-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--hf-red);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.hf-why-title { font-size: 22px; line-height: 1.15; font-weight: 700; }

/* ============ CONTACT BAND ============ */
.hf-cta-band {
  padding: 96px 56px;
  background: var(--hf-red);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hf-cta-band .left { display: flex; flex-direction: column; gap: 16px; }
.hf-cta-band h2 { font-size: 64px; color: #fff; line-height: 0.95; }
.hf-typeB .hf-cta-band h2 { font-size: 54px; }
.hf-cta-band .right { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.hf-cta-band .right .hf-btn.primary { background: var(--hf-ink); border-color: var(--hf-ink); }
.hf-cta-band .right .hf-btn.primary:hover { background: #000; }
.hf-cta-band .right .hf-btn { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ============ FOOTER ============ */
.hf-footer {
  background: var(--hf-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 56px 40px;
}
.hf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid #1f1f1f;
}
.hf-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 600;
}
.hf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hf-footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.hf-footer a:hover { color: #fff; }
.hf-footer .brand { display: flex; flex-direction: column; gap: 18px; }
.hf-footer .brand .hf-logo { color: #fff; }
.hf-footer .brand .hf-logo-mark::after { background: var(--hf-dark); }
.hf-footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ REQUEST-DETAILS MODAL ============ */
.hf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 2147483000;
}
.hf-modal {
  position: relative;
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--hf-bg);
  border-top: 4px solid var(--hf-red);
  padding: 44px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}
.hf-modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hf-line);
  background: var(--hf-bg);
  color: var(--hf-ink-2);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.12s ease;
}
.hf-modal-x:hover { background: var(--hf-bg-2); }
.hf-modal-sub { margin-top: 10px; margin-bottom: 26px; }
.hf-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hf-field { display: flex; flex-direction: column; gap: 7px; }
.hf-field span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-ink-3);
  font-weight: 500;
}
.hf-field input,
.hf-field textarea {
  border: 1px solid var(--hf-line);
  background: var(--hf-bg);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--hf-ink);
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}
.hf-field input:focus,
.hf-field textarea:focus { outline: none; border-color: var(--hf-line-strong); }
.hf-field input[readonly] { background: var(--hf-bg-2); color: var(--hf-ink-2); }
.hf-field textarea { resize: none; }
.hf-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.hf-modal-sent { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.hf-modal-sent .hf-h3 { margin-top: 4px; }
.hf-modal-sent .hf-btn { align-self: flex-start; margin-top: 10px; }

/* =============================================================
   MULTI-PAGE ADDITIONS — inner pages share the homepage system
   ============================================================= */

/* ---- active nav state ---- */
.hf-nav a.active { color: var(--hf-ink); }
.hf-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--hf-red);
}

/* ---- INNER-PAGE HERO BANNER ---- */
.hf-pagehero {
  position: relative;
  background: var(--hf-dark);
  color: #fff;
  overflow: hidden;
  min-height: 460px;
  display: flex;
}
.hf-pagehero-photo { position: absolute; inset: 0; z-index: 1; }
.hf-pagehero-photo image-slot { width: 100%; height: 100%; display: block; }
.hf-pagehero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
}
.hf-pagehero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 44px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  pointer-events: none;
}
.hf-pagehero-inner a,
.hf-pagehero-inner button {
  pointer-events: auto;
}
.hf-pagehero-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hf-pagehero-bottom { display: flex; flex-direction: column; gap: 22px; max-width: 1040px; }
.hf-pagehero-title { color: #fff; }
/* Override the tight homepage-hero line-height for (often 3-line) page titles. */
.hf-typeA .hf-pagehero-title,
.hf-typeB .hf-pagehero-title,
.hf-typeC .hf-pagehero-title {
  line-height: 1.0;
  font-size: clamp(46px, 5.2vw, 84px);
}
.hf-pagehero-sub {
  font-size: 19px; line-height: 1.5;
  color: rgba(255,255,255,0.82);
  max-width: 660px; margin: 0;
}

/* ---- JUMP / SUB-NAV BAR (catalog series) ---- */
.hf-jumpbar {
  position: sticky;
  top: 72px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hf-line);
  padding: 0 56px;
}
.hf-jumpbar .label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-ink-4);
  padding-right: 28px;
}
.hf-jumpbar a {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hf-ink-2);
  text-decoration: none;
  padding: 18px 22px;
  border-left: 1px solid var(--hf-line);
  transition: color 0.12s ease, background 0.12s ease;
}
.hf-jumpbar a:hover { color: var(--hf-ink); background: var(--hf-bg-2); }
.hf-jumpbar a .n { color: var(--hf-red); margin-right: 8px; }

/* ---- CATALOG MODEL ROWS ---- */
.hf-catalog { display: flex; flex-direction: column; }
.hf-cat-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  padding: 100px 0;
  border-bottom: 1px solid var(--hf-line);
  align-items: start;
}
.hf-cat-row:first-child { padding-top: 64px; }
.hf-cat-row:last-child { border-bottom: 0; }
.hf-cat-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--hf-bg-2);
  border: 1px solid var(--hf-line);
  overflow: hidden;
  position: sticky;
  top: 132px;
  min-width: 0;
}
.hf-cat-row.flip .hf-cat-media { order: 2; }
.hf-cat-media image-slot { width: 100%; height: 100%; display: block; }
.hf-cat-media .tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--hf-ink);
  color: #fff;
  padding: 6px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.hf-cat-media .tag.red { background: var(--hf-red); }
.hf-cat-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hf-cat-info-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.hf-cat-name { font-size: 48px; }
.hf-cat-range {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px; font-weight: 600;
  color: var(--hf-red);
  white-space: nowrap;
}
.hf-cat-class {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--hf-ink-3);
}
.hf-cat-desc { font-size: 16px; line-height: 1.6; color: var(--hf-ink-2); }

/* spec table */
.hf-spectable { width: 100%; border-collapse: collapse; border-top: 1px solid var(--hf-line-strong); }
.hf-spectable tr { border-bottom: 1px solid var(--hf-line); }
.hf-spectable td { padding: 15px 0; vertical-align: top; }
.hf-spectable .l {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--hf-ink-3); width: 44%;
}
.hf-spectable .v { font-size: 15px; color: var(--hf-ink); font-weight: 500; }
.hf-cat-actions { display: flex; gap: 12px; margin-top: 6px; }

/* ---- PARTS CATEGORY GRID ---- */
.hf-parts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hf-line);
  border-left: 1px solid var(--hf-line);
}
.hf-pcat {
  border-right: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
  background: var(--hf-bg);
  display: flex;
  flex-direction: column;
}
.hf-pcat-photo {
  height: 150px;
  background: var(--hf-bg-2);
  border-bottom: 1px solid var(--hf-line);
  overflow: hidden;
}
.hf-pcat-photo image-slot { width: 100%; height: 100%; display: block; }
.hf-pcat-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hf-pcat-n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; color: var(--hf-red);
}
.hf-pcat-title { font-size: 17px; font-weight: 700; letter-spacing: -0.005em; }
.hf-pcat-desc { font-size: 13px; line-height: 1.5; color: var(--hf-ink-3); }

/* ---- PROCESS / STEPS BAND ---- */
.hf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.hf-step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--hf-line-strong); }
.hf-step-n { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; color: var(--hf-red); letter-spacing: 0.1em; }
.hf-step-t { font-size: 20px; font-weight: 700; line-height: 1.15; }
.hf-section.dark .hf-step { border-top-color: rgba(255,255,255,0.25); }
.hf-section.dark .hf-step:first-child { border-top-color: var(--hf-red); }

/* ---- SERVICE PILLARS ---- */
.hf-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hf-pillar {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--hf-line);
  background: var(--hf-bg);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.hf-pillar:hover { border-color: var(--hf-ink); transform: translateY(-2px); }
.hf-pillar-photo { background: var(--hf-bg-2); border-right: 1px solid var(--hf-line); overflow: hidden; min-height: 200px; }
.hf-pillar-photo image-slot { width: 100%; height: 100%; display: block; }
.hf-pillar-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.hf-pillar-n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--hf-red); letter-spacing: 0.12em; }
.hf-pillar-t { font-size: 24px; font-weight: 700; line-height: 1.1; }

/* ---- REGIONS PAGE ---- */
.hf-regions-page { display: flex; flex-direction: column; }
.hf-region-block {
  display: grid;
  grid-template-columns: 80px 1.1fr 2fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--hf-line);
  align-items: start;
}
.hf-region-block:first-child { padding-top: 0; }
.hf-region-block:last-child { border-bottom: 0; }
.hf-region-block .num {
  font-family: 'Oswald', 'IBM Plex Sans', sans-serif;
  font-size: 56px; font-weight: 600; color: var(--hf-ink-4); line-height: 0.9;
}
.hf-region-block .side { display: flex; flex-direction: column; gap: 18px; }
.hf-region-block .side .name { font-size: 34px; }
.hf-region-stats {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--hf-line);
}
.hf-region-stats .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hf-line);
}
.hf-region-stats .row .k {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--hf-ink-3);
}
.hf-region-stats .row .v { font-size: 13.5px; font-weight: 500; color: var(--hf-ink); }
.hf-region-block .markets-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--hf-ink-3);
  margin-bottom: 16px;
}
.hf-region-block .markets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px;
}
.hf-region-block .markets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--hf-ink-2);
  padding: 8px 0; border-bottom: 1px solid var(--hf-line);
  list-style: none;
}
.hf-region-block .markets { padding: 0; margin: 0; }

/* ---- CONTACT PAGE ---- */
.hf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.hf-contact-info { display: flex; flex-direction: column; gap: 28px; }
.hf-contact-line { display: flex; flex-direction: column; gap: 6px; }
.hf-contact-line .k {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hf-ink-3);
}
.hf-contact-line .v { font-size: 16px; color: var(--hf-ink); }
.hf-contact-line .v.mono { font-family: 'IBM Plex Mono', monospace; font-size: 14px; }
.hf-form {
  border: 1px solid var(--hf-line);
  border-top: 4px solid var(--hf-red);
  padding: 40px;
  background: var(--hf-bg);
}
.hf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hf-seg {
  display: flex;
  border: 1px solid var(--hf-line);
}
.hf-seg button { flex: 1 1 auto; white-space: nowrap; }
.hf-seg button {
  border: 0; border-left: 1px solid var(--hf-line);
  background: transparent; color: var(--hf-ink-2);
  font: 600 12px/1 'Inter', sans-serif;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 14px 8px; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.hf-seg button:first-child { border-left: 0; }
.hf-seg button.on { background: var(--hf-ink); color: #fff; }
.hf-field select {
  border: 1px solid var(--hf-line);
  background: var(--hf-bg);
  padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--hf-ink);
  border-radius: 0; width: 100%; box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hf-field select:focus { outline: none; border-color: var(--hf-line-strong); }
.hf-form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 28px;
}
.hf-form-sent { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; align-items: flex-start; }

/* ---- MAP STRIP ---- */
.hf-mapstrip {
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--hf-bg-2);
  border: 1px solid var(--hf-line);
  overflow: hidden;
}
.hf-mapstrip image-slot { width: 100%; height: 100%; display: block; }

/* =============================================================
   MOBILE NAV — hamburger + slide-down panel
   ============================================================= */
.hf-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hf-line-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.hf-burger span { display: block; width: 20px; height: 2px; background: var(--hf-ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.hf-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hf-burger.open span:nth-child(2) { opacity: 0; }
.hf-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hf-mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--hf-line);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.25);
  z-index: 9;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  animation: hf-menu-in 0.18s ease;
}
@keyframes hf-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.hf-mobile-menu a.hf-mm-link {
  font-family: 'Oswald', 'IBM Plex Sans', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--hf-ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--hf-line);
}
.hf-mobile-menu a.hf-mm-link.active { color: var(--hf-red); }
.hf-mobile-menu .hf-btn { margin-top: 20px; width: 100%; }

/* =============================================================
   RESPONSIVE — tablet (≤1080) and phone (≤680)
   ============================================================= */
@media (max-width: 1080px) {
  /* horizontal rhythm */
  .hf-header { padding: 0 28px; gap: 24px; }
  .hf-section, .hf-section.tight { padding: 88px 28px; }
  .hf-cta-band { padding: 72px 28px; }
  .hf-footer { padding: 64px 28px 36px; }
  .hf-pagehero-inner { padding: 36px 28px 44px; }
  .hf-jumpbar { padding: 0 28px; }
  .hf-ps-tile { padding: 40px 32px; }

  /* section heads stack */
  .hf-section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }

  /* hero → flows with content instead of fixed 880 */
  .hf-hero { min-height: 0; }
  .hf-hero-inner { position: relative; inset: auto; padding: 40px 28px 48px; gap: 36px; }
  .hf-hero-bottom { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .hf-hero-headline { max-width: none; }
  .hf-spec-card { max-width: 460px; }

  /* multi-column blocks */
  .hf-ps-grid { grid-template-columns: 1fr; }
  .hf-ps-tile { min-height: 0; }
  .hf-why-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .hf-cta-band { grid-template-columns: 1fr; gap: 32px; }
  .hf-cta-band .right { align-items: flex-start; }
  .hf-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hf-footer .brand { grid-column: 1 / -1; }

  /* inner pages */
  .hf-cat-row, .hf-cat-row.flip { grid-template-columns: 1fr; gap: 36px; padding: 72px 0; }
  .hf-cat-media, .hf-cat-row.flip .hf-cat-media { position: relative; top: auto; order: -1; }
  .hf-parts-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .hf-pillars { grid-template-columns: 1fr; }
  .hf-region-block, .hf-region-block:first-child { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .hf-region-block .num { font-size: 40px; }
  .hf-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hf-pagehero { min-height: 380px; }
}

/* nav → hamburger */
@media (max-width: 920px) {
  .hf-nav { display: none; }
  .hf-header { grid-template-columns: auto 1fr; }
  .hf-header-right { grid-column: 2; justify-self: end; }
  .hf-header .hf-header-right > .hf-btn { display: none; }
  .hf-burger { display: flex; }
}

@media (max-width: 680px) {
  /* tighter gutters */
  .hf-header { padding: 0 18px; gap: 14px; }
  .hf-logo { font-size: 15px; gap: 9px; }
  .hf-logo-mark { width: 22px; height: 22px; }
  .hf-header-right { gap: 10px; }
  .hf-lang button { padding: 6px 9px; }
  .hf-mobile-menu { top: 72px; padding: 8px 18px 24px; }
  .hf-section, .hf-section.tight { padding: 56px 18px; }
  .hf-cta-band { padding: 52px 18px; }
  .hf-footer { padding: 52px 18px 32px; }
  .hf-hero-inner { padding: 32px 18px 40px; }
  .hf-pagehero-inner { padding: 28px 18px 36px; }
  .hf-jumpbar { padding: 0 18px; }
  .hf-ps-tile { padding: 32px 22px; }

  /* single-column everything */
  .hf-models-grid { grid-template-columns: 1fr; }
  .hf-regions { grid-template-columns: 1fr; }
  .hf-region { border-left: 0; border-top: 1px solid var(--hf-line); }
  .hf-region:first-child { border-top: 0; }
  .hf-why-grid { grid-template-columns: 1fr; }
  .hf-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hf-footer .brand { grid-column: auto; }
  .hf-footer-bottom { flex-direction: column; gap: 10px; }

  /* hero spec card + ctas */
  .hf-spec-rows { grid-template-columns: 1fr 1fr; }
  .hf-spec-card { max-width: none; padding: 22px; }
  .hf-hero-ctas { flex-direction: column; align-items: stretch; }
  .hf-hero-ctas .hf-btn { width: 100%; }

  /* inner pages */
  .hf-parts-grid { grid-template-columns: 1fr; }
  .hf-steps { grid-template-columns: 1fr; }
  .hf-region-block .markets { grid-template-columns: repeat(2, 1fr); }
  .hf-form { padding: 28px 22px; }
  .hf-form-grid { grid-template-columns: 1fr; }
  .hf-form-foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .hf-form-foot .hf-btn { width: 100%; }
  .hf-modal-grid { grid-template-columns: 1fr; }
  .hf-modal { width: 100%; }
  /* catalog action buttons stack */
  .hf-cat-actions { flex-direction: column; align-items: stretch; }
  .hf-cat-actions .hf-btn { width: 100%; }
  /* service pillar: photo over body */
  .hf-pillar { grid-template-columns: 1fr; }
  .hf-pillar-photo { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--hf-line); }

  /* type down a notch */
  .hf-body-lg { font-size: 17px; }
  .hf-display { font-size: clamp(40px, 12.5vw, 66px); }
  .hf-h1 { font-size: clamp(34px, 10vw, 56px); }
  .hf-cta-band h2 { font-size: clamp(34px, 10vw, 56px); }
  .hf-spec-card-model { font-size: 26px; }
  .hf-cat-name { font-size: 34px; }
  .hf-region-block .side .name { font-size: 28px; }
  /* CTA-band buttons full width on phone */
  .hf-cta-band .right { width: 100%; }
  .hf-cta-band .right .hf-btn { width: 100%; }
}
