/* ==========================================================================
   CMC Bahrain — Global Stylesheet
   --------------------------------------------------------------------------
   Author: (build) 2026
   Structure:
     1.  Design tokens (CSS variables)
     2.  Reset & base
     3.  Typography
     4.  Layout helpers (container, section, grid)
     5.  Buttons & links
     6.  Header / navigation
     7.  Hero (accordion slider)
     8.  Cards (value, model)
     9.  Sections (values, models, differentiators, callout)
     10. Model detail page
     11. Filters / search (models listing)
     12. Downloads
     13. Contact & forms
     14. Lightbox
     15. Footer
     16. Page loader
     17. Scroll-reveal & animations
     18. 404
     19. Responsive breakpoints
     20. Reduced-motion & print
   Breakpoints used: 360, 768, 1024, 1280, 1440
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================= */
:root {
  /* Brand palette
     TODO: Confirm the exact primary blue hex with the client. The brief listed
     "#083bb" (invalid, 5-digit). We default to #0083bb, which matches the CTA
     blue in the supplied design mockup. */
  --brand-primary: #0083bb;
  --brand-primary-dark: #006a97;
  --brand-primary-darker: #024e6e;
  --brand-primary-light: #33a0cc;
  --brand-primary-050: #eaf6fb;
  --brand-black: #000000;
  --brand-gray: #8e8f91;

  /* Extended neutrals (derived for UI surfaces) */
  --ink: #10151c;         /* primary text */
  --ink-soft: #3c4551;    /* secondary text */
  --muted: #6b7280;       /* tertiary text */
  --line: #e6e9ee;        /* borders */
  --line-strong: #d3d8e0;
  --surface: #ffffff;
  --surface-2: #f5f7fa;   /* alt section background */
  --surface-3: #eef1f5;
  --night: #0b1017;       /* dark section background */
  --night-2: #131b26;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-darker) 100%);
  --grad-brand-soft: linear-gradient(135deg, #0891c9 0%, #024e6e 100%);
  --grad-dark: linear-gradient(160deg, #0d141d 0%, #060a0f 100%);
  --grad-scrim: linear-gradient(90deg, rgba(6,10,15,.82) 0%, rgba(6,10,15,.55) 42%, rgba(6,10,15,.15) 72%, rgba(6,10,15,0) 100%);

  /* Typography */
  --font-heading: "Poppins", "Inter", system-ui, Arial, sans-serif;
  --font-body: "Inter", system-ui, Arial, sans-serif;

  /* Spacing scale (8pt based) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;

  /* Shadows / depth */
  --shadow-xs: 0 1px 2px rgba(16,21,28,.06);
  --shadow-sm: 0 4px 14px rgba(16,21,28,.08);
  --shadow-md: 0 10px 30px rgba(16,21,28,.10);
  --shadow-lg: 0 24px 60px rgba(16,21,28,.16);
  --shadow-brand: 0 12px 28px rgba(0,131,187,.28);

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --header-h: 84px;
  --header-h-shrunk: 64px;

  /* Motion */
  --dur-1: .16s; --dur-2: .28s; --dur-3: .5s; --dur-4: .8s;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Z-index scale */
  --z-header: 100;
  --z-panel: 200;
  --z-lightbox: 300;
  --z-loader: 400;
}

/* 2. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea, button { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--brand-primary); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm); z-index: var(--z-loader);
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: 12px; }

/* Screen-reader-only */
.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;
}

/* 3. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand-primary);
  display: inline-block;
}
.eyebrow--light { color: var(--brand-primary-light); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); }

/* 4. LAYOUT HELPERS ======================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--grad-dark); color: #e9edf2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #aeb8c4; }
.section--alt { background: var(--surface-2); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; }

.stack > * + * { margin-top: 1rem; }

/* 5. BUTTONS & LINKS ======================================================= */
.btn {
  --btn-bg: var(--brand-primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); background: var(--brand-primary-dark); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-md); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { background: #fff; color: var(--brand-primary-dark); }

.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* Text link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; color: var(--brand-primary);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. HEADER / NAVIGATION =================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), backdrop-filter var(--dur-2) var(--ease);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
/* Scrolled / shrunk state (toggled by JS) */
.site-header.is-scrolled {
  height: var(--header-h-shrunk);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: var(--shadow-sm);
}

.brand-logo { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo img { height: 44px; width: auto; transition: height var(--dur-2) var(--ease); }
.is-scrolled .brand-logo img { height: 36px; }

.main-nav { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 22px); margin-left: auto; }
/* Top-level nav links only (the mega panel lives inside .main-nav but must NOT
   inherit the nav-link underline/colour treatment). */
.main-nav > a, .mega-trigger {
  font-family: var(--font-heading); font-weight: 500; font-size: .95rem;
  color: var(--ink-soft); padding: 8px 4px; position: relative;
  transition: color var(--dur-2) var(--ease);
}
.main-nav > a::after, .mega-trigger::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px;
  background: var(--brand-primary); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.main-nav > a:hover, .main-nav > a[aria-current="page"],
.mega-trigger:hover, .mega-trigger[aria-current="page"] { color: var(--ink); }
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after,
.mega-trigger:hover::after, .mega-trigger[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; border: 1px solid var(--line);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1px); }

/* 6b. MEGA MENU (under "Models") ========================================= */
.nav-item { display: inline-flex; align-items: center; }
.nav-item.has-mega { position: relative; }
.mega-trigger { display: inline-flex; align-items: center; }
.mega-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: var(--ink-soft); margin-left: 2px;
}
.mega-toggle svg { width: 14px; height: 14px; transition: transform var(--dur-2) var(--ease); }

/* Invisible "bridge" so the pointer can travel from the trigger down to the
   panel (which is pinned to the header's bottom edge) without losing :hover. */
.has-mega::before {
  content: ""; position: absolute; left: -12px; right: -12px; top: 100%;
  height: 46px; z-index: 89;
}

.mega {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 90;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2) var(--ease);
}
.site-header.is-scrolled .mega { top: var(--header-h-shrunk); }
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover .mega-toggle svg,
.has-mega.is-open .mega-toggle svg { transform: rotate(180deg); }

.mega__inner { padding: 28px clamp(20px, 5vw, 40px) 34px; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Mega model card */
.mega-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  background: var(--surface);
}
.mega-card:hover { border-color: var(--brand-primary-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mega-card__media { display: block; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.mega-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.mega-card:hover .mega-card__media img { transform: scale(1.05); }
.mega-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.mega-card__title { font-size: 1.15rem; }
.mega-card__usp { color: var(--brand-primary); font-weight: 600; font-size: .82rem; }
.mega-specs { display: flex; gap: 8px; margin: 12px 0 16px; }
.mega-specs li {
  flex: 1 1 0; text-align: center; background: var(--surface-2);
  border-radius: var(--r-sm); padding: 8px 6px;
}
.mega-specs b { display: block; font-family: var(--font-heading); font-size: .92rem; color: var(--ink); }
.mega-specs span { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mega-card__cta { display: flex; gap: 8px; margin-top: auto; }
.mega-card__cta .btn { flex: 1; justify-content: center; }
/* Keep CTA text white and underline-free on hover/focus */
.mega-card__cta .btn:hover,
.mega-card__cta .btn:focus-visible { color: #fff; text-decoration: none; }

/* Small button modifier (used in the mega menu) */
.btn--sm { padding: 9px 14px; font-size: .82rem; }

/* 7. HERO — FADE CAROUSEL ================================================
   Standard one-at-a-time slider: only the active slide is visible; slides
   cross-fade. (Previously an accordion; simplified per request.) */
.hero {
  position: relative;
  margin-top: var(--header-h);
}
.hero__track {
  position: relative; width: 100%;
  height: min(88vh, 760px);
  overflow: hidden;
}
/* Each slide is stacked full-bleed; only .is-active is shown. */
.hero__slide {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Subtle slow zoom on the active slide for a premium feel */
.hero__slide.is-active .hero__media img { animation: heroZoom 8s var(--ease-out) forwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--grad-scrim); }

@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 40px);
  color: #fff;
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-3) var(--ease-out) .15s, transform var(--dur-3) var(--ease-out) .15s;
  pointer-events: none;
}
.hero__content > * { max-width: 620px; }
.hero__slide.is-active .hero__content { opacity: 1; transform: none; pointer-events: auto; }
.hero__content .eyebrow { color: #fff; opacity: .85; }
.hero__content h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.4rem); margin: 12px 0 14px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__content p { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Vertical slide labels are only meaningful in the accordion layout — hidden here. */
.hero__tab { display: none; }

/* Hero controls */
.hero__controls {
  position: absolute; z-index: 3; right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 14px;
}
.hero__dots { display: flex; gap: 8px; }
.hero__dots button {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4);
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.hero__dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  display: grid; place-items: center;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.hero__arrows button:hover { background: rgba(255,255,255,.16); border-color: #fff; transform: scale(1.06); }
.hero__arrows svg { width: 18px; height: 18px; }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.75); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,.6); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* 8. CARDS ================================================================= */
/* Value cards */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.value-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(24px, 2.4vw, 32px);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  position: relative; overflow: hidden;
}
.value-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.value-card:hover::before { transform: scaleX(1); }
.value-card .num { font-family: var(--font-heading); font-weight: 700; color: var(--brand-gray); font-size: .85rem; letter-spacing: .1em; }
.value-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin: 14px 0 18px;
  background: var(--brand-primary-050); color: var(--brand-primary);
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; }
.value-card p { margin-top: 8px; font-size: .96rem; }

/* Model cards */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.model-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.model-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.model-card__media {
  position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden;
}
.model-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.model-card:hover .model-card__media img { transform: scale(1.05); }
.model-card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(10,14,20,.72); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--font-heading); font-weight: 600; font-size: .72rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: var(--r-pill);
}
.model-card__body { padding: clamp(18px, 2vw, 24px); display: flex; flex-direction: column; flex: 1; }
.model-card__body h3 { font-size: 1.35rem; }
.model-card__tagline { color: var(--brand-primary); font-weight: 600; font-size: .85rem; margin-top: 4px; }
.spec-mini { display: flex; gap: 10px; margin: 16px 0 20px; flex-wrap: wrap; }
.spec-mini li {
  flex: 1 1 0; min-width: 72px; background: var(--surface-2); border-radius: var(--r-sm);
  padding: 10px 12px; text-align: center;
}
.spec-mini .v { font-family: var(--font-heading); font-weight: 700; font-size: .98rem; color: var(--ink); display: block; }
.spec-mini .k { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
/* Available variants inside a model card */
.model-card__variants { margin: 0 0 20px; }
.model-card__variants .mv-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.mv-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-list li { font-size: .74rem; font-weight: 500; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-soft); background: var(--surface-2); }
.model-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* 9. DIFFERENTIATORS / STATS ============================================== */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.diff-item { padding: 8px 4px; border-left: 2px solid rgba(255,255,255,.12); padding-left: 20px; }
.diff-item .diff-ico { width: 40px; height: 40px; color: var(--brand-primary-light); margin-bottom: 14px; }
.diff-item h3 { font-size: 1.15rem; color: #fff; }
.diff-item p { margin-top: 6px; font-size: .94rem; }

/* Callout strips */
.callout {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--grad-brand); color: #fff;
  padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.callout::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.callout__text { position: relative; z-index: 1; max-width: 640px; }
.callout__text h2 { color: #fff; }
.callout__text p { color: rgba(255,255,255,.9); margin-top: 8px; }
.callout__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

.callout-strips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.callout-strips .strip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.callout-strips .strip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-primary-light); }
.callout-strips .strip .ico { width: 40px; height: 40px; color: var(--brand-primary); }
.callout-strips .strip h3 { font-size: 1.15rem; }

/* 10. MODEL DETAIL PAGE =================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb .sep { opacity: .5; }

.model-hero {
  margin-top: var(--header-h);
  background: var(--grad-dark); color: #fff;
  padding-block: clamp(32px, 5vw, 56px);
}
.model-hero .grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.model-hero h1 { color: #fff; margin: 14px 0 10px; }
.model-hero .tagline { color: var(--brand-primary-light); font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.model-hero p { color: #b7c1cd; margin-top: 16px; max-width: 52ch; }
.model-hero .breadcrumb a, .model-hero .breadcrumb { color: #90a0b0; }
.model-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.model-hero__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.model-hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Key spec summary cards */
.spec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.spec-cards .card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.spec-cards .card:hover { border-color: var(--brand-primary-light); box-shadow: var(--shadow-sm); }
.spec-cards .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.spec-cards .v { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; margin-top: 6px; color: var(--ink); }

/* Full spec table */
.spec-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec-table caption { text-align: left; padding: 16px 20px; font-family: var(--font-heading); font-weight: 600; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.spec-table th { width: 40%; color: var(--ink-soft); font-weight: 600; background: var(--surface); }
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:nth-child(even) th, .spec-table tr:nth-child(even) td { background: var(--surface-2); }

/* Feature list */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-primary-050); color: var(--brand-primary); display: grid; place-items: center;
}
.feature-list .tick svg { width: 15px; height: 15px; }

/* Variant chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px; font-size: .88rem; font-weight: 500; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery button {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3;
  background: var(--surface-3);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after {
  content: ""; position: absolute; inset: 0; background: rgba(10,14,20,0);
  transition: background var(--dur-2) var(--ease);
}
.gallery button:hover::after { background: rgba(10,14,20,.12); }

/* 11. FILTERS / SEARCH =================================================== */
.filters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; box-shadow: var(--shadow-xs);
}
.filters .field { display: flex; flex-direction: column; gap: 6px; }
.filters label { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filters .search { flex: 1 1 220px; }
.control {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 14px; background: var(--surface); font-size: .92rem; color: var(--ink);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  min-height: 44px; width: 100%;
}
.control:focus-visible { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px var(--brand-primary-050); }
select.control { 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 fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.filters-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 20px; }
.filters-meta .count { color: var(--muted); font-size: .92rem; }
.no-results { text-align: center; padding: 60px 20px; color: var(--muted); }
.model-card.is-hidden { display: none; }

/* 12. DOWNLOADS ========================================================== */
.download-list { display: grid; gap: 16px; }
.download-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; background: var(--surface);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.download-row:hover { border-color: var(--brand-primary-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.download-row .doc-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--brand-primary-050); color: var(--brand-primary); display: grid; place-items: center; }
.download-row .doc-ico svg { width: 26px; height: 26px; }
.download-row .meta { flex: 1 1 240px; }
.download-row .meta h3 { font-size: 1.1rem; }
.download-row .meta .sub { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.download-row .size { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.download-row .dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.download-row .dl-actions .btn { padding: 11px 18px; font-size: .88rem; }
@media (max-width: 560px) {
  .download-row .dl-actions { width: 100%; }
  .download-row .dl-actions .btn { flex: 1; justify-content: center; }
}

/* 13. CONTACT & FORMS =================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.info-block { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--brand-primary-050); color: var(--brand-primary); display: grid; place-items: center; }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h3 { font-size: 1rem; }
.info-item p, .info-item a { color: var(--ink-soft); font-size: .96rem; }
.info-item a:hover { color: var(--brand-primary); }

.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.form label .req { color: #d33; }
textarea.control { min-height: 130px; resize: vertical; }
.field .err { color: #c0392b; font-size: .8rem; min-height: 1em; }
.control[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-primary); flex: 0 0 auto; }
.consent label { font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.form-status {
  border-radius: var(--r-sm); padding: 0; font-size: .95rem; overflow: hidden;
  max-height: 0; transition: max-height var(--dur-3) var(--ease), padding var(--dur-3) var(--ease);
}
.form-status.is-visible { padding: 14px 18px; max-height: 160px; }
.form-status.is-success { background: #e7f7ee; color: #166a3b; border: 1px solid #b7e4c9; }
.form-status.is-error { background: #fdecea; color: #a5261a; border: 1px solid #f5c6c0; }

.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* 14. LIGHTBOX ========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  display: grid; place-items: center; padding: 24px;
  background: rgba(6,10,15,.92); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease), visibility var(--dur-2) var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1100px, 92vw); max-height: 86vh; display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.8); text-align: center; font-size: .9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center;
  transition: background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 20px; } .lightbox__nav.next { right: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.15); }
.lightbox svg { width: 22px; height: 22px; }

/* 15. FOOTER =========================================================== */
.site-footer { background: var(--night); color: #aab4c0; padding-block: clamp(48px, 6vw, 80px) 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(24px, 3vw, 48px); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: #8b96a3; max-width: 32ch; font-size: .94rem; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #aab4c0; font-size: .94rem; transition: color var(--dur-2) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col .contact-li { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .contact-li svg { width: 18px; height: 18px; color: var(--brand-primary-light); flex: 0 0 auto; margin-top: 2px; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #cdd5de;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: #7c8794;
}
.footer-bottom a { color: #aab4c0; transition: color var(--dur-2) var(--ease); }
.footer-bottom a:hover { color: #fff; }

/* Cookie consent banner (Google Consent Mode) ------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 360;
  background: #0b1017; color: #f4f7fa;
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -8px 30px rgba(0,0,0,.35);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: 18px clamp(20px, 5vw, 40px);
  display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap;
}
.cookie-banner__text { margin: 0; font-size: .9rem; line-height: 1.6; flex: 1 1 320px; color: #f4f7fa; }
.cookie-banner__text a { color: #7cc6e8; text-decoration: underline; font-weight: 600; }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie-banner .btn { padding: 11px 22px; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* 16. PAGE LOADER ====================================================== */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: var(--night); display: grid; place-items: center;
  transition: opacity var(--dur-3) var(--ease), visibility var(--dur-3) var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader__mark img { height: 56px; width: auto; }
.loader__bar { width: 160px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; background: var(--brand-primary); border-radius: 2px; animation: loaderslide 1s var(--ease) infinite; }
@keyframes loaderslide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* 17. SCROLL REVEAL ==================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }

/* 18. 404 ============================================================== */
.notfound { margin-top: var(--header-h); min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; background: var(--grad-dark); color: #fff; }
.notfound h1 { color: #fff; font-size: clamp(4rem, 14vw, 9rem); line-height: 1; }
.notfound p { color: #aeb8c4; max-width: 46ch; margin: 12px auto 26px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.notfound .search-inline { display: flex; gap: 8px; max-width: 420px; margin: 22px auto 0; }

/* 18b. THANK YOU (post-submission) ==================================== */
.thankyou { margin-top: var(--header-h); min-height: 72vh; display: grid; place-items: center; text-align: center; padding: clamp(56px, 9vw, 112px) 20px; }
.thankyou__inner { max-width: 620px; }
.thankyou .badge {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 26px;
  display: grid; place-items: center; color: var(--brand-primary);
  background: var(--brand-primary-050); border: 1px solid #cfe8f3;
  animation: popIn var(--dur-3) var(--ease-out) both;
}
.thankyou .badge svg { width: 46px; height: 46px; }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.thankyou h1 { margin-bottom: 14px; }
.thankyou p { margin: 0 auto; }
.thankyou .next {
  margin: 30px auto 0; text-align: left; max-width: 440px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px;
}
.thankyou .next h2 { font-size: 1rem; margin-bottom: 12px; }
.thankyou .next ul { display: grid; gap: 10px; }
.thankyou .next li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.thankyou .next svg { width: 20px; height: 20px; color: var(--brand-primary); flex: 0 0 auto; margin-top: 1px; }
.thankyou .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Generic page header band */
.page-band { margin-top: var(--header-h); background: var(--grad-dark); color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.page-band h1 { color: #fff; margin-top: 8px; }
.page-band p { color: #aeb8c4; margin-top: 12px; max-width: 60ch; }
.page-band .breadcrumb, .page-band .breadcrumb a { color: #90a0b0; }

/* Related models reuse model-grid */

/* 19. RESPONSIVE ====================================================== */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .model-hero .grid { grid-template-columns: 1fr; }
  .model-hero__media { order: -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a, .mega-trigger { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .main-nav > a::after, .mega-trigger::after { display: none; }
  .header-cta .btn:not(.nav-cta) { display: none; }
  .header-cta .nav-cta { padding: 10px 16px; font-size: .85rem; }

  /* Mega menu becomes an inline, collapsible submenu inside the drawer */
  .nav-item.has-mega { display: block; position: static; }
  .nav-item.has-mega { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .mega-trigger { flex: 1; }
  .mega-toggle { width: 44px; height: 48px; border-bottom: 1px solid var(--line); }
  .has-mega::before { display: none; }
  .mega {
    position: static; box-shadow: none; border-top: 0;
    flex-basis: 100%; opacity: 1; visibility: hidden; transform: none;
    display: none; background: var(--surface-2); border-radius: var(--r-md);
    margin: 6px 0 10px;
  }
  .has-mega.is-open .mega { display: block; visibility: visible; }
  .mega__inner { padding: 12px; }
  .mega__grid { grid-template-columns: 1fr; gap: 12px; }
  .mega-card { flex-direction: row; }
  .mega-card__media { flex: 0 0 116px; aspect-ratio: 1 / 1; }
  .mega-card__body { padding: 12px 14px; flex: 1; }
  .mega-specs { margin: 8px 0 12px; }

  /* Shorter hero on small screens (still one slide at a time) */
  .hero__track { height: 72vh; }
  .contact-grid { grid-template-columns: 1fr; }
  .callout-strips { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .values-grid, .diff-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .callout { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .spec-mini { flex-wrap: nowrap; }
}

/* 20. REDUCED MOTION & PRINT ========================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
@media print {
  .site-header, .site-footer, .loader, .hero__controls, .scroll-cue, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
