/* BHM Otomotiv — shared styles.
   Official corporate palette: navy #082E59 (RGB 8,46,89) and orange #F15A29 (RGB 241,90,41),
   with white and a light navy-tinted grey. Fonts: Oswald (headings) + Open Sans (body). */

:root {
  --orange: #f15a29;           /* corporate orange */
  --orange-strong: #c8431a;   /* darker orange for small text on white (AA contrast) */
  --orange-light: #f47b54;    /* hover shade of the corporate orange */
  --orange-soft: #fde9e1;
  --navy: #082e59;            /* corporate dark blue */
  --navy-deep: #05203f;
  --ink: #082e59;             /* headings/body text and dark surfaces use the corporate navy */
  --ink-2: #082e59;
  --ink-3: #0d3a6e;
  --black: #000;
  --white: #fff;
  --surface: #f3f6fa;
  --line: rgba(8, 46, 89, 0.14);
  --muted: #4a5a6e;
  --muted-on-dark: rgba(255, 255, 255, 0.72);

  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--black); padding: 10px 16px; font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; color: var(--ink); border-radius: var(--radius); position: relative;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav__link:hover { color: var(--orange-strong); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__link { color: var(--orange-strong); }
.nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; background: var(--orange); opacity: .9;
}
.nav__caret { width: 10px; height: 10px; transition: transform .2s; }

.subnav {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav,
.nav__item--has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: none; }
.nav__item--has-sub:hover .nav__caret, .nav__item--has-sub.is-open .nav__caret { transform: rotate(180deg); }
.subnav a { display: block; padding: 10px 12px; text-decoration: none; font-size: .92rem; border-radius: 4px; }
.subnav a:hover { background: var(--orange-soft); color: var(--orange-strong); }
.subnav a[aria-current="page"] { color: var(--orange-strong); font-weight: 700; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    overflow-y: auto; padding: 16px var(--gutter) 40px; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; padding: 16px 4px; font-size: 1rem; justify-content: space-between; }
  .nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 12px; display: none; }
  .nav__item--has-sub.is-open .subnav { display: block; }
  .nav__item--has-sub:hover .nav__caret { transform: none; }
  .nav__item--has-sub.is-open .nav__caret { transform: rotate(180deg); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand img { height: 44px; } }

/* ---------- Hero / page banner ---------- */
.hero {
  position: relative; color: var(--white); background-color: var(--ink-2);
  background-image: linear-gradient(rgba(8, 46, 89, .55), rgba(8, 46, 89, .55)), url("../img/header-bg.svg");
  background-size: cover; background-position: center;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
/* 3D wireframe van (assets/js/hero-van.js) replaces the static background when JS runs. */
.hero--3d { background-image: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero__bar { display: block; width: 72px; height: 10px; background: var(--orange); margin-bottom: 28px; }
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin: 0; max-width: 18ch;
}
.hero__since {
  display: inline-block; margin-top: 18px; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted-on-dark);
}
.hero__since strong { color: var(--orange); font-weight: 700; }
.hero__lead { max-width: 62ch; margin-top: 22px; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.breadcrumb { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 20px; color: var(--muted-on-dark); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--orange); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; border: 2px solid var(--navy); border-radius: var(--radius);
  background: var(--orange); color: var(--black); cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--orange-light); color: var(--black); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--outline { background: var(--white); color: var(--orange-strong); border-color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: var(--black); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  color: var(--orange-strong); text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--ink-2); color: var(--white); }
.section + .section:not(.section--alt):not(.section--dark) { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  color: var(--orange-strong); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--orange); }
.section--dark .eyebrow { color: var(--orange); }

.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-transform: uppercase; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--muted-on-dark); }

/* Feature row: image + text */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media::before { /* orange offset frame */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--orange); border-radius: var(--radius); z-index: 0;
}
.feature--reverse .feature__media::before { inset: 18px 18px -18px -18px; }
.feature__media img, .feature__media a { position: relative; z-index: 1; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature__title { font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; }
.feature__title a { text-decoration: none; }
.feature__title a:hover { color: var(--orange-strong); }
.feature__body p { color: var(--muted); }
.feature__body .link-arrow { margin-top: 8px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media::before { inset: 12px -10px -12px 10px; }
  .feature--reverse .feature__media::before { inset: 12px 10px -12px -10px; }
}

/* Check list */
.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Specs table */
.specs { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding-right: 16px; }
.specs td { font-weight: 600; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { display: block; position: relative; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; border-top: 3px solid var(--orange); flex: 1; }
.card__title { font-size: 1.2rem; text-transform: uppercase; margin-bottom: .4em; }
.card__body p { margin: 0; color: var(--muted); font-size: .95rem; }

.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.6); color: var(--white); opacity: 0; transition: opacity .2s;
}
.zoom-hint svg { width: 18px; height: 18px; }
a:hover > .zoom-hint, a:focus-visible > .zoom-hint { opacity: 1; }

/* Model block (ambulance page) */
.model { padding-top: clamp(48px, 7vw, 88px); }
.model:first-child { padding-top: 0; }
.model__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 36px; }
.model__head h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; }
.model__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--black); background: var(--orange); padding: 4px 10px; border-radius: 3px; }
.model__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.model__grid figure { margin: 0; }
.model__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.model__grid figcaption { margin-top: 18px; color: var(--muted); }
@media (max-width: 820px) { .model__grid { grid-template-columns: 1fr; } }

/* Stat / highlight strip */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); overflow: hidden; }
.highlights li { list-style: none; padding: 24px; border-right: 1px solid rgba(255,255,255,.15); font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 14px; }
.highlights li:last-child { border-right: 0; }
.highlights svg { width: 28px; height: 28px; color: var(--orange); flex: none; }
.highlights { padding: 0; margin: 32px 0 0; }
@media (max-width: 720px) {
  .highlights { grid-template-columns: 1fr; }
  .highlights li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .highlights li:last-child { border-bottom: 0; }
}

/* Product hero split */
.product-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.product-intro img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
@media (max-width: 900px) { .product-intro { grid-template-columns: 1fr; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.badge-row li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; background: var(--white); }

/* Brand strip */
.brand-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 1.2em; padding: 0; }
.brand-list li { padding: 8px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
.section--alt .brand-list li { background: var(--white); }

/* Info panels (parts) */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.panel h3 { font-size: 1.15rem; text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.panel h3 svg { width: 28px; height: 28px; color: var(--orange); flex: none; }

/* Textile */
.textile-banner {
  display: grid; place-items: center; padding: clamp(40px, 8vw, 88px) 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s;
}
.textile-banner:hover { box-shadow: var(--shadow); }
.textile-banner img { width: min(320px, 70%); height: auto; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-item__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--black); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; display: block; }
.contact-item__value { font-weight: 600; word-break: break-word; }
.contact-item__value a { text-decoration: none; }
.contact-item__value a:hover { color: var(--orange-strong); text-decoration: underline; }
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.map-frame iframe { display: block; width: 100%; height: clamp(360px, 55vh, 560px); border: 0; }
.map-frame__link { display: flex; justify-content: flex-end; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); }

/* CTA band */
.cta-band { background: var(--orange); color: var(--black); padding: 12px 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.cta-band h2 { margin: 0; font-size: 1.15rem; text-transform: uppercase; line-height: 1.2; }
.cta-band p { margin: 2px 0 0; font-weight: 600; font-size: .85rem; line-height: 1.4; }
.cta-band .btn { min-height: 38px; padding: 6px 16px; font-size: .8rem; }

.cta-band .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.cta-band .btn:hover { background: var(--white); color: var(--navy); }
.cta-band .btn--outline { background: transparent; color: var(--black); border-color: var(--navy); }
.cta-band .btn--outline:hover { background: var(--navy); color: var(--white); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  color: var(--white); background-color: var(--ink);
  /* background image is set inline per page so the relative path resolves correctly */
  background-size: cover; background-position: center;
  padding: clamp(16px, 2.5vw, 24px) 0 0;
  font-size: .9rem; line-height: 1.4;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 14px; } }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 6px; }
.site-footer address { font-style: normal; color: var(--muted-on-dark); }
.site-footer address strong { color: var(--white); display: block; margin-bottom: 2px; font-weight: 700; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.footer-list a { text-decoration: none; color: var(--muted-on-dark); }
.footer-list a:hover { color: var(--orange); text-decoration: underline; }
.footer-list span { color: var(--muted-on-dark); }
.footer-list .lbl { display: inline-block; min-width: 64px; color: rgba(255,255,255,.5); }
.footer-bottom { margin-top: 16px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(5, 32, 63, .92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 16px 24px; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); object-fit: contain; border-radius: 4px; }
.lightbox__caption { color: var(--white); text-align: center; margin-top: 12px; max-width: 800px; }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: var(--black); display: grid; place-items: center;
}
.lightbox__close svg { width: 22px; height: 22px; }

/* Image that failed to load from both the local file and the original source:
   show a neutral branded placeholder instead of the browser's broken-image icon. */
img.is-missing {
  color: transparent; font-size: 0;
  background: var(--ink-2) url("../img/header-bg.svg") center / cover;
  min-height: 160px;
}
.brand img.is-missing { display: none; }
