/* ============================================================
   Amsterdam Transit BV — site.css
   ============================================================ */

:root {
  color-scheme: light;
  --navy: #0a1f44;
  --navy-2: #12305f;
  --navy-3: #1c4177;
  --accent: #ff5a1f;
  --accent-dark: #e04a12;
  --accent-2: #00a878;
  --accent-soft: #fff1eb;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #16202f;
  --muted: #5b6b82;
  --line: #e0e7f1;
  --ink: #0a1f44;
  --header-bg: rgba(255, 255, 255, .92);
  --danger: #d33;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06), 0 4px 14px rgba(10, 31, 68, .06);
  --shadow: 0 18px 40px -18px rgba(10, 31, 68, .35);
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --accent-soft: rgba(255, 90, 31, .16);
  --accent-2: #2fd6a4;
  --bg: #0a1120;
  --surface: #0f1728;
  --surface-2: #1a263b;
  --text: #e7edf7;
  --muted: #9aa9bf;
  --line: #223049;
  --ink: #edf2fa;
  --header-bg: rgba(10, 17, 32, .92);
  --danger: #ff6b6b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .35);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--muted); }

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

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding-top: 0; padding-bottom: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--bg); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head--small { margin-bottom: 1.5rem; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}
.section-lede { font-size: 1.08rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(255, 90, 31, .8); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  margin-top: .5rem;
}
.link-arrow svg { transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); flex-shrink: 0; }
.brand-mark { display: inline-flex; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.site-nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.site-nav a {
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  padding: .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch:hover { border-color: var(--ink); }
.lang-flag { font-size: 1em; line-height: 1; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.header-phone span { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 31, 68, .94) 0%, rgba(10, 31, 68, .8) 45%, rgba(10, 31, 68, .35) 100%);
}
.hero-inner { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 760px; }
.hero .eyebrow { color: #ffb59b; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero-sub { color: rgba(255, 255, 255, .85); font-size: clamp(1rem, 1.6vw, 1.22rem); max-width: 54ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- stats ---------- */
.stats-strip { background: var(--surface); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem;
  margin-top: -3rem;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: .5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- cards / grids ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.pillar-card h3 { margin-bottom: .4rem; }
.pillar-card p { font-size: .9rem; margin: 0; }
.pillar-icon, .value-icon, .service-card-icon, .service-row-icon, .mv-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.pillar-icon::before, .value-icon::before, .service-card-icon::before,
.service-row-icon::before, .mv-icon::before { content: ""; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service-card h3 { margin-bottom: .35rem; }
.service-card-desc { font-size: .92rem; }
.check-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.check-list li { position: relative; padding-left: 1.5rem; font-size: .88rem; color: var(--muted); margin-bottom: .45rem; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}
.check-list--two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.service-card .link-arrow { margin-top: auto; }

/* ---------- imagery ---------- */
.service-card-media {
  width: calc(100% + 3.4rem);
  margin: -1.7rem -1.7rem 1.2rem;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.service-row-media {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  display: block;
}
.fleet-block-media {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  display: block;
}
.depot-card-media {
  width: calc(100% + 3.6rem);
  margin: -1.8rem -1.8rem 1.2rem;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.value-card p { font-size: .9rem; margin: 0; }

/* ---------- project cards ---------- */
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.project-card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card-media img { transform: scale(1.04); }
.project-card-cat {
  position: absolute; left: .9rem; top: .9rem;
  background: rgba(10, 31, 68, .88);
  color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .6rem; border-radius: 999px;
}
.project-card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.project-card-meta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-weight: 600; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.project-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.project-card h3 a:hover { color: var(--accent); }
.project-card p { font-size: .9rem; }
.project-card .link-arrow { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.5rem, 5vw, 4rem) 1.25rem; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { color: rgba(255, 255, 255, .78); margin: 0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- page hero ---------- */
.page-hero { position: relative; color: #fff; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 31, 68, .95), rgba(10, 31, 68, .62)); }
.page-hero-inner { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); max-width: 780px; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; margin: 0; }
.page-hero--plain { background: linear-gradient(120deg, var(--navy), var(--navy-2)); }
.page-hero--error { text-align: center; }
.page-hero--error .page-hero-inner { margin: 0 auto; }
.error-code { display: block; font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 1rem; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; font-weight: 600; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media-badge {
  position: absolute; right: -1rem; bottom: -1rem;
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  padding: 1rem 1.3rem; text-align: center; box-shadow: var(--shadow);
}
.split-media-badge strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.split-media-badge span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.split-body h2 { margin-bottom: 1rem; }

/* ---------- mission / vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.mv-card--accent { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-color: transparent; color: #fff; }
.mv-card--accent p { color: rgba(255, 255, 255, .82); }
.mv-card--accent .mv-icon { background: rgba(255, 255, 255, .12); }
.mv-icon { font-size: 1.4rem; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step-num { display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: .6rem; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .88rem; margin: 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 74px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-item { display: flex; gap: 2rem; padding: .85rem 0; position: relative; }
.timeline-year { flex: 0 0 58px; font-weight: 800; color: var(--ink); text-align: right; }
.timeline-item::before { content: ""; position: absolute; left: 70px; top: 1.35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.timeline-item p { margin: 0; padding-left: .35rem; }

/* ---------- certifications ---------- */
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert-card { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .9rem; font-weight: 600; }
.cert-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 168, 120, .12); color: var(--accent-2); font-weight: 800; flex-shrink: 0; }

/* ---------- services page ---------- */
.services-stack { display: flex; flex-direction: column; gap: 2rem; }
.service-row { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; scroll-margin-top: 100px; }
.service-row-head { display: flex; gap: 1rem; align-items: flex-start; }
.service-row-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .3rem; }
.service-row-head p { margin: 0; }
.service-row-icon { flex-shrink: 0; margin-bottom: 0; background: var(--accent-soft); }
.service-row-body { display: flex; flex-direction: column; align-items: flex-start; }
.service-row-body .check-list { margin-bottom: 1.2rem; }

/* ---------- fleet page ---------- */
.fleet-stack { display: flex; flex-direction: column; gap: 2rem; }
.fleet-block { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.fleet-block-head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.2rem; }
.fleet-count { flex-shrink: 0; width: 92px; height: 92px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; }
.fleet-count strong { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.fleet-count span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.fleet-block-head h3 { margin-bottom: .5rem; }
.fleet-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; max-width: 420px; margin-bottom: .35rem; }
.fleet-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.fleet-pct { font-size: .8rem; color: var(--muted); font-weight: 600; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.data-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--line); }
.data-table td { padding: .7rem; border-bottom: 1px solid var(--line); color: var(--text); }
.data-table tbody tr:hover { background: var(--bg); }

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: .3rem .75rem; }

.depot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.depot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.depot-address { font-size: .85rem; color: var(--muted); }
.depot-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1rem; font-size: .82rem; color: var(--muted); }
.depot-meta strong { display: block; font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.depot-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem 0 .6rem; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mini-stat { background: var(--bg); border-radius: var(--radius-sm); padding: 1.2rem; text-align: center; }
.mini-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.mini-stat span { font-size: .78rem; color: var(--muted); }

/* ---------- works filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { font-family: inherit; font-size: .85rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .15s ease; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.work-item[hidden] { display: none; }
.work-item { display: flex; }
.work-item > .project-card { flex: 1 1 auto; width: 100%; }
.empty-state { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ---------- project detail ---------- */
.project-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-stat { background: var(--bg); border-radius: var(--radius); padding: 1.4rem; text-align: center; }
.project-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.project-stat span { font-size: .82rem; color: var(--muted); }
.meta-list { margin: 1.5rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.meta-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.meta-list dd { margin: .2rem 0 0; font-weight: 600; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- clients ---------- */
.client-group { margin-bottom: 3rem; }
.client-group:last-child { margin-bottom: 0; }
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.client-card { display: flex; }
.client-card a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1rem; min-height: 150px; flex: 1 1 auto; width: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.client-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.client-logo-wrap { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.client-logo-wrap img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }
.client-initials { font-weight: 800; color: var(--ink); font-size: 1.4rem; line-height: 1.25; letter-spacing: .04em; }
.client-card.has-logo .client-initials { display: none; }
.client-card.logo-missing img { display: none; }
.client-name { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-main h2 { margin-bottom: 1.5rem; }
.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.info-card { background: var(--bg); border-radius: var(--radius); padding: 1.6rem; }
.info-card--accent { background: linear-gradient(135deg, var(--accent), #ff7b47); color: #fff; }
.info-card--accent h3 { color: #fff; }
.info-card--accent p { color: rgba(255, 255, 255, .9); }
.info-card--accent .btn-primary { background: #fff; color: var(--accent-dark); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; font-size: .9rem; color: var(--muted); }
.contact-list svg { flex-shrink: 0; margin-top: .2rem; color: var(--accent); }
.contact-list a:hover { color: var(--accent); }
.pre-line { white-space: pre-line; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-field label { font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.form-field label span { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: .92rem; color: var(--text);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, .12); background: var(--surface);
}
.field-error { display: none; font-size: .76rem; color: var(--danger); margin-top: .3rem; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--danger); }
.form-field.has-error .field-error { display: block; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .88rem; font-weight: 600; }
.form-status.is-success { color: var(--accent-2); }
.form-status.is-error { color: var(--danger); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #fff; margin-top: 0; }
.footer-top { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.brand--footer { color: #fff; margin-bottom: 1rem; }
.brand--footer .brand-mark { color: var(--accent); }
.brand--footer .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-desc { color: rgba(255, 255, 255, .66); font-size: .9rem; max-width: 34ch; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s ease; }
.footer-social a:hover { background: var(--accent); }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a, .footer-col ul span { font-size: .88rem; color: rgba(255, 255, 255, .78); }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact .contact-list li { color: rgba(255, 255, 255, .78); font-size: .86rem; }
.footer-contact .contact-list svg { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.25rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.footer-credit { font-size: .75rem !important; }

/* ---------- icons (emoji) ---------- */
.icon-bus::before { content: "🚌"; }
.icon-route::before { content: "🗺️"; }
.icon-charter::before { content: "🚍"; }
.icon-green::before { content: "🌱"; }
.icon-shield::before { content: "🛡️"; }
.icon-clock::before { content: "⏱️"; }
.icon-leaf::before { content: "🍃"; }
.icon-lightbulb::before { content: "💡"; }
.icon-heart::before { content: "💚"; }
.icon-users::before { content: "👥"; }
.icon-target::before { content: "🎯"; }
.icon-eye::before { content: "👁️"; }
.icon-bus-city::before { content: "🏙️"; }
.icon-bus-regional::before { content: "🛣️"; }
.icon-bus-charter::before { content: "🎪"; }
.icon-bus-special::before { content: "♿"; }

/* ---------- motion & states ---------- */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10, 31, 68, .35); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
/* Compact desktop: keep the full nav but reclaim horizontal space. */
@media (max-width: 1240px) {
  .header-inner { gap: .75rem; }
  .site-nav { gap: .2rem; }
  .site-nav a { padding: .45rem .5rem; font-size: .83rem; }
  .lang-switch { padding: .4rem .5rem; }
  .lang-switch > span:last-child { display: none; }
}

@media (max-width: 1080px) {
  .site-nav a { padding: .45rem .55rem; font-size: .84rem; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.2rem;
    box-shadow: 0 20px 30px -20px rgba(10, 31, 68, .3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem .8rem; font-size: .95rem; }
  .header-actions { margin-left: 0; }
  .header-phone { width: 40px; height: 40px; justify-content: center; }
  .pillar-grid, .steps, .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3, .value-grid, .depot-grid, .gallery, .client-grid, .cert-grid, .project-stats, .meta-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; box-shadow: none; border: 1px solid var(--line); }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media-badge { right: 1rem; }
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .brand-text small { display: none; }
  .header-inner { gap: .5rem; }
  .timeline::before { left: 58px; }
  .timeline-year { flex-basis: 42px; }
  .timeline-item::before { left: 54px; }
}

@media (max-width: 620px) {
  .header-inner { gap: .4rem; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-text strong {
    font-size: .92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-mark svg { width: 34px; height: 34px; }
  .header-cta { display: none; }
  .lang-switch { padding: .45rem .5rem; }
  .lang-switch > span:last-child { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
}

@media (max-width: 340px) {
  /* Very narrow phones: keep the logo mark, drop the wordmark so nothing looks cut off. */
  .brand-text { display: none; }
}

@media (max-width: 520px) {
  .card-grid--3, .value-grid, .depot-grid, .gallery, .client-grid, .cert-grid, .project-stats, .meta-list,
  .pillar-grid, .steps, .mini-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fleet-block-head { flex-direction: column; align-items: flex-start; }
  .hero-inner { max-width: none; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- dark theme component overrides ---------- */
[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .85); }
[data-theme="dark"] .site-nav { box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .75); }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
[data-theme="dark"] .filter-btn:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .btn-primary { box-shadow: 0 10px 24px -12px rgba(255, 90, 31, .55); }
[data-theme="dark"] .project-card-cat { background: rgba(5, 10, 20, .82); }
[data-theme="dark"] .fleet-count { background: var(--surface-2); color: var(--ink); }
[data-theme="dark"] .map-wrap iframe { filter: invert(.92) hue-rotate(180deg) saturate(.85) contrast(.92); }
[data-theme="dark"] ::selection { background: rgba(255, 90, 31, .35); color: #fff; }
