/* =============================================================
   HINO BAHRAIN — Global Stylesheet
   Author: Front-end build
   Organized by: 1) Tokens  2) Reset/Base  3) Utilities
                 4) Layout (header/footer)  5) Components
                 6) Page sections  7) Forms  8) Motion  9) Responsive
   ============================================================= */

/* ============================================================
   1) DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colors */
  --c-primary: #bf1e2e;
  --c-primary-dark: #9a1723;
  --c-charcoal: #3e3934;
  --c-charcoal-2: #2a2622;
  --c-ink: #3e3934;
  --c-muted: #6b645d;
  --c-line: #e6e2dd;
  --c-bg: #ffffff;
  --c-bg-alt: #f6f4f1;
  --c-bg-dark: #241f1b;
  --c-white: #ffffff;

  /* Gradient used for headings (half & half) */
  --grad-heading: linear-gradient(90deg, #bf1e2e 0 50%, #3e3934 50% 100%);
  --grad-primary: linear-gradient(135deg, #bf1e2e 0%, #7c141d 100%);

  /* Typography — single typeface across the whole site */
  --font-base: Helvetica, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(30, 24, 20, 0.08);
  --sh-md: 0 8px 24px rgba(30, 24, 20, 0.12);
  --sh-lg: 0 20px 50px rgba(30, 24, 20, 0.18);
  --sh-primary: 0 10px 24px rgba(191, 30, 46, 0.28);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  /* Z-index scale */
  --z-header: 1000;
  --z-drawer: 1100;
  --z-modal: 1200;
  --z-preloader: 1300;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;
}

/* ============================================================
   2) RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; display: block; height: auto; }

a { color: var(--c-primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-primary-dark); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Headings — Helvetica bold, uppercase, gradient text.
   Margin is em-based, not a flat rem: Helvetica carries built-in leading that
   uppercase never fills, so each level needs a gap proportional to its own
   size to keep the optical rhythm League Gothic had at line-height 0.98. */
h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--c-charcoal);
}

/* Gradient heading treatment for h1–h3 */
.h-grad,
h1.grad, h2.grad, h3.grad {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); line-height: 1.06; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4 { font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.2; letter-spacing: 0.04em; }

p { margin: 0 0 var(--sp-4); }

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: var(--z-preloader);
  background: var(--c-charcoal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

/* ============================================================
   3) UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: #ece8e3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.section--dark .eyebrow { color: #ff8a95; }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--c-muted); }
.section--dark .lead { color: #c9c3bc; }

.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { width: 64px; height: 4px; background: var(--grad-primary); border-radius: var(--r-pill); margin-bottom: var(--sp-4); }
.center .divider { margin-inline: auto; }

/* ============================================================
   4) BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  min-height: 48px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--sh-primary); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: 0 14px 30px rgba(191, 30, 46, 0.4); }

.btn--dark { background: var(--c-charcoal); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

.btn--ghost { background: transparent; color: var(--c-charcoal); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-charcoal); color: var(--c-charcoal); background: rgba(0,0,0,0.02); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: #fff; color: var(--c-charcoal); border-color:#fff; }

.btn--sm { padding: 0.6rem 1.15rem; min-height: 42px; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.center .btn-row { justify-content: center; }

/* ============================================================
   5) PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: var(--c-bg-dark);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__logo { width: 160px; margin: 0 auto var(--sp-5); animation: pulse 1.4s ease-in-out infinite; }
.preloader__bar { width: 180px; height: 4px; background: rgba(255,255,255,0.15); border-radius: var(--r-pill); overflow: hidden; margin: 0 auto; }
.preloader__bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--c-primary); border-radius: inherit; animation: loadbar 1.1s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.96); } }
@keyframes loadbar { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* ============================================================
   6) HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-md); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 44px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: var(--sp-2); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-family: var(--font-base);
  font-weight: 700; text-transform: uppercase;
  font-size: 0.9rem; letter-spacing: 0.04em; line-height: 1;
  color: var(--c-charcoal);
  padding: 0.7rem 0.85rem 0.55rem; border-radius: var(--r-sm);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 2px; background: var(--c-primary);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--c-primary); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--c-primary); }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle svg { width: 0.7em; height: 0.7em; transition: transform var(--dur) var(--ease); }
.nav__dropdown[data-open="true"] .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: var(--sp-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__dropdown:hover .nav__submenu,
.nav__dropdown[data-open="true"] .nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__submenu a {
  display: block; padding: 0.6rem 0.85rem; border-radius: var(--r-sm);
  color: var(--c-charcoal); font-weight: 500;
  font-family: var(--font-base); text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.04em;
}
.nav__submenu a:hover { background: var(--c-bg-alt); color: var(--c-primary); }

.nav__cta { margin-left: var(--sp-2); }

/* Hamburger */
.nav__toggle {
  display: none; position: relative; z-index: calc(var(--z-drawer) + 2);
  width: 46px; height: 46px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; color: var(--c-charcoal);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after { transform: translateY(5px); }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* Mobile drawer backdrop */
.nav__backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(20,16,13,0.5); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
body.nav-open .nav__backdrop { opacity: 1; visibility: visible; }

/* ============================================================
   7) HERO — standard single-image slider (one image at a time)
   ============================================================ */
.hero { position: relative; overflow: hidden; }
/* Track matches the 1920x800 (2.4:1) banner artwork, capped and floored */
.hero__track { position: relative; width: 100%; aspect-ratio: 1920 / 800; max-height: 800px; min-height: 460px; }
.hero__panel {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.hero__panel.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.06);
}
.hero__panel.is-active .hero__img { animation: heroZoom 7s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero__panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,16,13,0.85) 0%, rgba(20,16,13,0.5) 38%, rgba(20,16,13,0.15) 75%);
}
.hero__caption {
  position: absolute; inset: auto auto 0 0; z-index: 2;
  padding: clamp(1.5rem, 4vw, 4rem); max-width: 680px; color: #fff;
  opacity: 0; transform: translateY(26px);
}
.hero__panel.is-active .hero__caption {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s var(--ease) 0.25s, transform 0.7s var(--ease) 0.25s;
}
.hero__eyebrow { color: #ff9aa4; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; }
.hero__title { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0.2rem 0 0.5rem; }
.hero__subtitle { color: #eee; font-size: clamp(1rem, 2vw, 1.2rem); margin-bottom: var(--sp-5); max-width: 46ch; }
.hero__index {
  position: absolute; top: clamp(1.5rem,4vw,3.5rem); left: clamp(1.5rem,4vw,3.5rem); z-index: 3;
  color: rgba(255,255,255,0.9); font-family: var(--font-base);
  font-weight: 700; font-size: 1rem; letter-spacing: 0.1em;
}

/* Bottom-right control cluster: prev arrow · dots · next arrow
   (kept out of the left-aligned caption so nothing overlaps) */
.hero__controls {
  position: absolute; z-index: 3;
  bottom: clamp(1rem,3vw,2rem); right: clamp(1.5rem,4vw,3.5rem);
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__arrow:hover { background: var(--c-primary); transform: scale(1.06); }
.hero__arrow svg { width: 22px; height: 22px; }

/* Hero dot controls */
.hero__dots { display: flex; gap: 0.6rem; }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: background var(--dur), transform var(--dur); }
.hero__dot[aria-selected="true"] { background: var(--c-primary); transform: scale(1.25); }

/* ============================================================
   8) CARDS & COMPONENTS
   ============================================================ */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Value / highlight cards */
.value-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.value-card__icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: rgba(191,30,46,0.08); color: var(--c-primary);
}
.value-card__icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: var(--sp-2); }
.value-card p { color: var(--c-muted); margin: 0; }

/* Model cards */
.model-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.model-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.model-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--c-bg-alt); }
.model-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.model-card:hover .model-card__media img { transform: scale(1.06); }
.model-card__tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--c-primary); color: #fff; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: var(--r-pill);
}
.model-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.model-card__body h3 { font-size: 1.45rem; margin-bottom: var(--sp-2); }
.model-card__body p { color: var(--c-muted); }
.model-card__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-4); }
.model-card__links { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); font-size: 0.85rem; }
.model-card__links a { font-weight: 600; display: inline-flex; align-items: center; gap: 0.3em; }

/* Feature grid (model pages) */
.feature {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: var(--sp-5); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.feature__icon { width: 48px; height: 48px; color: var(--c-primary); margin-bottom: var(--sp-3); }
.feature h4 { margin-bottom: var(--sp-2); color: var(--c-charcoal); }
.feature p { color: var(--c-muted); margin: 0; font-size: 0.96rem; }

/* Split section (image + content) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-md); object-fit: cover; }
.split__media { position: relative; }

/* What-sets-apart bullet groups */
.apart-group + .apart-group { margin-top: var(--sp-5); }
.apart-group h4 { color: var(--c-primary); margin-bottom: var(--sp-3); font-size: 1.1rem; }
.apart-list li {
  position: relative; padding-left: 1.9rem; margin-bottom: var(--sp-2); color: var(--c-ink);
}
.apart-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg);
  background: var(--grad-primary);
}

/* Support tiles */
.support-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--sh-md);
}
.support-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.support-tile:hover img { transform: scale(1.08); }
.support-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,13,0) 30%, rgba(20,16,13,0.88) 100%); }
.support-tile__body { position: relative; z-index: 2; padding: var(--sp-5); }
.support-tile__body h3 { color: #fff; font-size: 1.3rem; margin-bottom: var(--sp-2); }
.support-tile__body p { color: #e6e1db; margin-bottom: var(--sp-3); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.5s var(--ease); }
.support-tile:hover .support-tile__body p,
.support-tile:focus-within .support-tile__body p { max-height: 200px; opacity: 1; }
.support-tile__link { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4em; }
.support-tile__link::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.support-tile:hover .support-tile__link::after { transform: translateX(4px); }
.support-tile a.stretched { position: absolute; inset: 0; z-index: 3; font-size: 0; }

/* Video section */
.video-section { position: relative; overflow: hidden; color: #fff; padding-block: clamp(5rem, 12vw, 9rem); }
.video-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.video-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,16,13,0.85), rgba(20,16,13,0.45)); z-index: 1; }
.video-section .container { position: relative; z-index: 2; }
.video-section h2 { color: #fff; }
.video-controls { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }

/* Contact CTA strip */
.cta-strip { background: var(--grad-primary); color: #fff; }
.cta-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.cta-strip h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-strip p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-strip__contacts { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-3); font-weight: 600; }
.cta-strip__contacts a { color: #fff; display: inline-flex; align-items: center; gap: 0.5em; }
.cta-strip__contacts a:hover { color: #ffe1e4; }

/* ============================================================
   9) PAGE HERO (interior pages)
   ============================================================ */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,13,0.85) 0%, rgba(20,16,13,0.45) 60%, rgba(20,16,13,0.2) 100%); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 8rem); }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero p { color: #ede9e4; max-width: 54ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; margin-bottom: var(--sp-4); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.75); }
.breadcrumbs a { color: rgba(255,255,255,0.9); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li[aria-current] { color: #fff; font-weight: 600; }
.breadcrumbs .sep { opacity: 0.5; }

/* ============================================================
   10) GALLERY + LIGHTBOX
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.gallery__item { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; background: var(--c-bg-alt); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(191,30,46,0); transition: background var(--dur) var(--ease);
}
.gallery__item:hover::after { background: rgba(191,30,46,0.18); }
.gallery__btn { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); display: none;
  place-items: center; background: rgba(15,12,10,0.92); padding: var(--sp-5);
}
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(1000px, 92vw); max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; width: 52px; height: 52px;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem;
  transition: background var(--dur) var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav--prev { left: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-4); top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: var(--sp-5); left: 0; right: 0; text-align: center; color: #eee; font-size: 0.9rem; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.specs-table caption { text-align: left; color: var(--c-muted); font-size: 0.85rem; margin-bottom: var(--sp-3); }
.specs-table th, .specs-table td { text-align: left; padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--c-line); }
.specs-table th { background: var(--c-bg-alt); font-weight: 700; width: 40%; color: var(--c-charcoal); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* Timeline (about) */
.timeline { position: relative; margin-top: var(--sp-6); padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item::before { content: ""; position: absolute; left: -1.85rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 4px rgba(191,30,46,0.15); }
.timeline__year { font-family: var(--font-base); font-weight: 700; font-size: 1.25rem; color: var(--c-primary); line-height: 1; }
.timeline__item h4 { margin: 0.3rem 0 0.4rem; }
.timeline__item p { color: var(--c-muted); margin: 0; }

/* Quote block */
.quote-block { background: var(--c-charcoal); color: #fff; border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; }
.quote-block::before { content: "\201C"; font-family: var(--font-base); font-weight: 700; font-size: 3.5rem; line-height: 1; height: 0.5em; color: var(--c-primary); display: block; margin-bottom: var(--sp-3); }
.quote-block blockquote { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin: 0 0 var(--sp-4); font-weight: 300; }
.quote-block cite { font-style: normal; font-weight: 700; color: #ff9aa4; }

/* Icon list (why choose) */
.icon-list { display: grid; gap: var(--sp-4); }
.icon-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.icon-list__icon { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(191,30,46,0.08); color: var(--c-primary); display: grid; place-items: center; }
.icon-list__icon svg { width: 24px; height: 24px; }
.icon-list h4 { margin: 0 0 0.2rem; }
.icon-list p { margin: 0; color: var(--c-muted); }

/* ============================================================
   10b) BROCHURES — cards + flipbook modal
   ============================================================ */
.brochure-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brochure-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.brochure-card__media { position: relative; background: var(--c-bg-alt); overflow: hidden; display: grid; place-items: center; min-height: 240px; }
.brochure-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; }
.brochure-card__tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--c-primary); color: #fff; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.75rem; border-radius: var(--r-pill);
}
.brochure-card__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.brochure-card__body h3 { font-size: 1.45rem; margin-bottom: var(--sp-2); }
.brochure-card__body p { color: var(--c-muted); }
.brochure-card__meta { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin: 0 0 var(--sp-4); color: var(--c-muted); font-size: 0.85rem; }
.brochure-card__meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.brochure-card__meta svg { width: 16px; height: 16px; color: var(--c-primary); }
.brochure-card__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Flipbook modal */
.flip-modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: none;
  background: rgba(15,12,10,0.94); padding: clamp(0.5rem, 2vw, 1.5rem);
}
.flip-modal.is-open { display: grid; grid-template-rows: auto 1fr; gap: 0.75rem; }
.flip-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); color: #fff; }
.flip-modal__title { font-family: var(--font-base); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.03em; }
.flip-modal__actions { display: flex; gap: var(--sp-3); align-items: center; }
.flip-modal__close {
  width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 1.4rem;
  background: rgba(255,255,255,0.14); display: grid; place-items: center;
  transition: background var(--dur) var(--ease);
}
.flip-modal__close:hover { background: var(--c-primary); }
.flip-modal__frame { width: 100%; height: 100%; border: 0; border-radius: var(--r-md); background: #fff; display: block; }

@media (max-width: 720px) {
  .brochure-card { grid-template-columns: 1fr; }
  .brochure-card__media { aspect-ratio: 16/10; }
  .flip-modal__title { font-size: 1.2rem; }
}

/* ============================================================
   11) FORMS
   ============================================================ */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--sh-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--c-charcoal); }
.field .req { color: var(--c-primary); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--c-ink); background: var(--c-bg-alt);
  border: 1.5px solid var(--c-line); border-radius: var(--r-sm); padding: 0.8rem 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(191,30,46,0.12);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--c-primary); }
.field__error { color: var(--c-primary); font-size: 0.82rem; font-weight: 600; min-height: 1.1em; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-primary); background: #fff; }
.field__hint { font-size: 0.82rem; color: var(--c-muted); }

.checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.check {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1rem;
  border: 1.5px solid var(--c-line); border-radius: var(--r-sm); cursor: pointer; background: var(--c-bg-alt);
  font-size: 0.92rem; transition: border-color var(--dur), background-color var(--dur);
}
.check:hover { border-color: var(--c-charcoal); }
.check input { width: auto; accent-color: var(--c-primary); }
.check input:checked ~ span { font-weight: 600; }

.form-status {
  display: none; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-radius: var(--r-md);
  margin-bottom: var(--sp-5); font-weight: 600;
}
.form-status.is-visible { display: flex; }
.form-status--success { background: #e8f6ec; color: #1c7a3e; border: 1px solid #b9e3c6; }
.form-status svg { width: 22px; height: 22px; flex: none; }

/* ============================================================
   12) FOOTER
   ============================================================ */
.site-footer { background: var(--c-bg-dark); color: #c9c3bc; padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0.06em; margin-bottom: var(--sp-4); }
.site-footer a { color: #c9c3bc; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 25px; margin-bottom: var(--sp-4); }
.footer-brand p { color: #a49d95; max-width: 32ch; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-contact li { display: flex; gap: 0.6rem; margin-bottom: var(--sp-3); align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c-primary); }
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.social a:hover { background: var(--c-primary); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center; font-size: 0.85rem; color: #8f8880; }
.footer-bottom a { color: #8f8880; }
.footer-bottom nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-legal a, .footer-legal__btn { color: #8f8880; font-size: 0.85rem; }
.footer-legal a:hover, .footer-legal__btn:hover { color: #fff; text-decoration: underline; }
.footer-legal__btn { padding: 0; background: none; border: 0; cursor: pointer; font: inherit; }

/* ============================================================
   12b) COOKIE CONSENT BANNER
   ============================================================ */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1150; /* above header (1000) / drawer (1100), below modals (1200) */
  background: #fff;
  border-top: 3px solid var(--c-primary);
  box-shadow: 0 -10px 40px rgba(30, 24, 20, 0.18);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-4) clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.cookie-consent__text { flex: 1 1 320px; }
.cookie-consent__text p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--c-muted); }
.cookie-consent__title { font-weight: 700; color: var(--c-charcoal); margin-bottom: 0.15rem !important; }
.cookie-consent__text a { font-weight: 600; text-decoration: underline; }
.cookie-consent__actions {
  display: flex;
  gap: var(--sp-3);
  flex: 0 0 auto;
  margin-left: auto;
}
.cookie-consent__actions .btn { min-width: 108px; }

@media (max-width: 560px) {
  .cookie-consent__inner { gap: var(--sp-3); }
  .cookie-consent__actions { width: 100%; }
  .cookie-consent__actions .btn { flex: 1; }
}

/* ============================================================
   13) SCROLL REVEAL + MOTION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__img { transform: none !important; }
}

/* ============================================================
   14) RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  /* Mobile nav */
  .nav__toggle { display: inline-flex; }
  /* backdrop-filter on an ancestor traps position:fixed children inside it,
     which would squash the drawer — disable it while the drawer is in use */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
    width: min(340px, 85vw); flex-direction: column; align-items: stretch;
    background: #fff; padding: calc(var(--header-h) + 1rem) var(--sp-5) var(--sp-6);
    gap: var(--sp-1); box-shadow: var(--sh-lg);
    transform: translateX(105%); transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .nav__menu { transform: translateX(0); }
  .nav__link { padding: 0.85rem 0.5rem; font-size: 1.6rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; padding: 0 0 0 var(--sp-4); max-height: 0; overflow: hidden;
    transition: max-height var(--dur) var(--ease);
  }
  .nav__dropdown[data-open="true"] .nav__submenu { max-height: 260px; }
  .nav__cta { margin: var(--sp-3) 0 0; }
  .nav__cta .btn { width: 100%; }

  /* Hero: taller portrait layout on mobile (uses 1280x1600 mobile art) */
  .hero__track { height: clamp(560px, 92vh, 760px); aspect-ratio: auto; max-height: none; }
  .hero__arrow { width: 44px; height: 44px; }
  /* Vertical bottom-up scrim so the truck stays visible and the text is readable */
  .hero__panel::after {
    background: linear-gradient(to top,
      rgba(20,16,13,0.94) 0%,
      rgba(20,16,13,0.7) 30%,
      rgba(20,16,13,0.25) 58%,
      rgba(20,16,13,0) 82%);
  }
  .hero__caption {
    max-width: 100%;
    padding: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: 5.5rem; /* clear the bottom control cluster */
  }
  .hero__title { font-size: clamp(1.7rem, 6.5vw, 2.3rem); margin-top: 0.25rem; }
  .hero__subtitle { font-size: 1rem; max-width: 100%; margin-bottom: 1.1rem; }
  .hero__index { font-size: 0.9rem; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
}

@media (max-width: 400px) {
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
}
