/* ============================================================
   BalkanDriver.com — style.css
   Design System: Corporate, flat, mobile-first
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --blue:        #023678;
  --blue-light:  #EFF6FF;
  --white:       #FFFFFF;
  --gray-dark:   #2D2D2D;
  --gray-mid:    #6B7280;
  --gray-light:  #F4F6F9;
  --green:       #16A34A;
  --amber:       #D97706;
  --red:         #DC2626;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.10);
  --radius:      6px;
  --radius-sm:   4px;
  --transition:  0.2s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent inline baseline gap on ALL images (fixes white-line artefact at bottom of replaced placeholders) */
img { display: block; max-width: 100%; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* prevent any element from causing horizontal page scroll */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white);
}

/* Break long words in NON-table contexts — tables need normal word-break for correct column sizing */
p, li, dd, figcaption, blockquote, label {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--gray-dark); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

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

/* ── Scroll Progress Bar ────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--blue);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 6rem 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--gray-mid);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }
/* Handle element that has BOTH classes on itself (e.g. driver pages Compliance section) */
.section-lead.text-center { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #012d65;
  border-color: #012d65;
  box-shadow: 0 4px 12px rgba(2,54,120,0.25);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--gray-light);
  border-color: var(--gray-light);
  text-decoration: none;
}

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-white-outline:hover {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Nav — Scroll Progress ──────────────────────────────── */
#site-header { position: sticky; top: 0; z-index: 100; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo-balkan {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.nav__logo-driver {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--gray-mid);
}
.nav__logo-tld {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--gray-mid);
  margin-left: 1px;
  align-self: flex-end;
  padding-bottom: 3px;
}

/* Desktop nav */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.875rem;
  color: var(--gray-dark);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active {
  color: var(--blue);
  background: var(--blue-light);
  text-decoration: none;
}

.nav__link--arrow::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 2px;
  margin-top: 1px;
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  /* top:100% so the dropdown starts flush below the nav item — no gap.
     The visual 8px spacing is handled by padding-top below.
     A gap here would create a dead zone where hover is lost and the menu vanishes. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 460px;
  /* padding-top creates the visual gap without breaking hover continuity */
  padding: 8px 1rem 1rem;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  z-index: 200;
}
.nav__item:hover .nav__dropdown { display: grid; }

.nav__dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--gray-dark);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown-link:hover {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

/* Right side nav actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switcher__sep {
  color: var(--gray-mid);
  user-select: none;
}
.lang-switcher a {
  color: var(--gray-mid);
  text-decoration: none;
  padding: 2px 4px;
}
.lang-switcher a.active {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}
.lang-switcher a:hover { color: var(--blue); }

/* Phone in nav (desktop) */
.nav__phone {
  font-size: 0.8rem;
  color: var(--gray-mid);
  display: none;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Sidebar Overlay */
.nav__sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 100vw);
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 300;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
}
.nav__sidebar.open { right: 0; }

.nav__sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.nav__sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--gray-mid);
  padding: 4px;
  line-height: 1;
}

.nav__sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__sidebar-menu li { border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav__sidebar-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--gray-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__sidebar-menu a:hover { color: var(--blue); }
.nav__sidebar-menu .sub-title {
  padding: 0.75rem 0 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  font-weight: 600;
  border-bottom: none;
}

.nav__sidebar-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 290;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav__overlay.open { opacity: 1; pointer-events: auto; }

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  background: var(--blue);
  color: var(--white);
  padding: 5rem 0 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content { order: 1; }

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}
.hero__breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.hero__breadcrumb a:hover { color: var(--white); }
.hero__breadcrumb span { opacity: 0.6; }

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

/* section-lead and btn-primary inside hero need inverted colours */
.hero .section-lead {
  color: rgba(255,255,255,0.85);
}
.hero .btn-primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.hero .btn-primary:hover {
  background: var(--gray-light);
  border-color: var(--gray-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__image { order: 2; }

/* ── Partner Trust Strip ─────────────────────────────────── */
.partner-trust {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 1.5rem 0;
}

.partner-trust__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.5rem;
}

/* ── BARMER badge ── */
.partner-trust__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.25rem 2rem;
  background: #f5fffd;
  border: 1px solid rgba(0,155,141,0.22);
  border-left: 3px solid #009B8D;
  border-radius: var(--radius);
  min-width: 210px;
}

.partner-trust__koop {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #009B8D;
}

.partner-trust__logo {
  display: block;
  height: 24px;
  width: auto;
}

.partner-trust__tagline {
  font-size: 0.77rem;
  color: var(--gray-mid);
  line-height: 1.45;
  font-style: italic;
}

/* ── Feature list ── */
.partner-trust__feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 2rem;
}

.partner-trust__feat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-dark);
}

.partner-trust__feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-trust__feat-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--gray-light);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-item__value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__value--green { color: var(--green); }
.stat-item__value--blue  { color: var(--blue);  }
.stat-item__value--amber { color: var(--amber); }

.stat-item__label {
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-weight: 500;
}

/* ── Problem / Solution Sections ────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
/* Reverse column order without direction:rtl (which causes horizontal scroll on mobile) */
.two-col--reverse > *:first-child { order: 2; }
.two-col--reverse > *:last-child  { order: 1; }

.pain-list, .check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.pain-list li, .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.pain-list li:last-child, .check-list li:last-child { border-bottom: none; }

.icon-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 2px;
}
.icon-dot--red    { background: rgba(220,38,38,0.12); color: var(--red); }
.icon-dot--amber  { background: rgba(217,119,6,0.12); color: var(--amber); }
.icon-dot--green  { background: rgba(22,163,74,0.12); color: var(--green); }
.icon-dot--blue   { background: rgba(2,54,120,0.1); color: var(--blue); }
/* Checkmark via CSS so driver pages don't need inline content in the span */
.icon-dot--green::after { content: '✓'; font-weight: 700; }

/* ── Driver Types Grid (Cards) ──────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Animated top accent bar */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, #2563eb 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(2,54,120,0.16);
}
.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.card:hover .card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.card__text {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: gap 0.2s ease;
}
/* Make the entire card surface clickable via the link's ::after overlay */
.card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card:hover .card__link {
  gap: 0.6rem;
  text-decoration: none;
}

/* ── How It Works ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: rgba(2,54,120,0.15);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.step__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.875rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

/* ── Benefit Cards (Why section) ────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2,54,120,0.12);
}

.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefit-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.benefit-card__text {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.benefit-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-dark);
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 1rem;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.faq-item[open] summary::after {
  content: '+';
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: var(--blue);
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer p { color: var(--gray-mid); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── CTA Strips ─────────────────────────────────────────── */
.cta-strip {
  background: var(--blue);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

.cta-strip h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-strip p {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.cta-strip-inline {
  background: var(--blue);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 3rem 0;
  text-align: center;
}

.cta-strip-inline p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  max-width: 600px;
}

/* ── cta-strip-inline used as a SECTION (with .section class) needs stretch ── */
/* flex column + align-items:center shrinks the .container child — fix with stretch */
section.cta-strip-inline,
.section.cta-strip-inline {
  align-items: stretch;
}
section.cta-strip-inline .container,
.section.cta-strip-inline .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
section.cta-strip-inline p,
.section.cta-strip-inline p {
  margin-left: auto;
  margin-right: auto;
}

/* ── cta-strip-inline inside .cta-strip: stretch inner div to full width ── */
.cta-strip .cta-strip-inline > div {
  flex: 1;
  text-align: center;
}
.cta-strip .cta-strip-inline > div p {
  margin-left: auto;
  margin-right: auto;
}

/* ── btn-primary inside any cta-strip-inline (dark bg) must be visible ── */
.cta-strip-inline .btn-primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.cta-strip-inline .btn-primary:hover {
  background: var(--gray-light);
  border-color: var(--gray-light);
  text-decoration: none;
}

/* ── btn-group inside .cta-strip always centered ── */
.cta-strip .btn-group {
  justify-content: center;
}

/* ── Light-bg variant: when cta-strip-inline sits on bg-blue-light ── */
/* bg-blue-light wins the background battle (#EFF6FF), so text must flip to dark */
.cta-strip-inline.bg-blue-light {
  border: 1px solid rgba(2,54,120,0.1);
}
.cta-strip-inline.bg-blue-light h2 {
  color: var(--blue);
}
.cta-strip-inline.bg-blue-light p {
  color: var(--gray-mid);
}

/* ── Key Facts Aside ────────────────────────────────────── */
.key-facts {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.key-facts__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.key-facts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-facts li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--gray-dark);
  display: flex;
  gap: 0.5rem;
  border-bottom: none;
  margin-bottom: 0;
}

.key-facts li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Qualifications Table ───────────────────────────────── */
.quals-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.quals-table th,
.quals-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.quals-table th {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quals-table th:first-child { border-radius: var(--radius) 0 0 0; }
.quals-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.quals-table tr:nth-child(even) td { background: var(--gray-light); }
.quals-table tr:hover td { background: var(--blue-light); }

/* ── Related Pages Cards ────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(2,54,120,0.12);
  text-decoration: none;
}

.related-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }

.related-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.related-card__text {
  font-size: 0.85rem;
  color: var(--gray-mid);
}

/* ── Image Placeholders ─────────────────────────────────── */
.img-placeholder {
  background: #E5E9F0;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-height: 200px;
  color: var(--blue);
  font-size: 0.85rem;
  font-family: monospace;
  text-align: center;
  padding: 1.5rem;
}

.img-placeholder--hero { min-height: 380px; }
.img-placeholder--section { min-height: 320px; }
.img-placeholder--square { min-height: 260px; aspect-ratio: 1; }

.img-placeholder__label {
  font-size: 0.8rem;
  color: var(--blue);
  opacity: 0.7;
}

/* ── Replaced images (JS swaps placeholder → real img) ───── */
.img-replaced {
  display: block;       /* already set globally but explicit here too */
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  /* Layered shadow: soft ambient + crisp edge */
  box-shadow:
    0 2px 6px  rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.14),
    0 20px 48px rgba(0,0,0,0.10);
}

/* Hero image wrapper: stretch to fill full grid cell so no background peeks through */
.hero__image,
.hero__visual {
  display: flex;
  align-self: stretch;      /* grow to match the taller sibling column */
  min-height: 320px;
}

/* Placeholder also needs to fill the flex container, not just replaced images */
.hero__image .img-placeholder,
.hero__visual .img-placeholder {
  flex: 1;
  align-self: stretch;
}

.hero__image .img-replaced,
.hero__visual .img-replaced {
  flex: 1;                  /* fill the flex container completely */
  width: 100%;
  height: 100%;             /* fill full cell height — no bottom/right gap */
  min-height: 320px;
  border-radius: 12px;
  object-fit: cover;
  /* Stronger hero shadow — image floats on dark blue background */
  box-shadow:
    0 4px 12px  rgba(0,0,0,0.25),
    0 16px 48px rgba(0,0,0,0.40),
    0 32px 80px rgba(0,0,0,0.25);
}

/* Section images (two-col layout) */
.two-col .img-replaced {
  border-radius: 10px;
  box-shadow:
    0 2px 6px  rgba(0,0,0,0.07),
    0 8px 28px rgba(0,0,0,0.12),
    0 20px 48px rgba(0,0,0,0.08);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-cta {
  background: var(--blue);
  padding: 2.5rem 0;
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta__text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer {
  background: #0F1A2B;
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer__logo-balkan {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}
.footer__logo-driver {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin: 0.75rem 0 1rem;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer__social {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer__social:hover {
  background: var(--blue);
  color: var(--white);
}
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.footer__contact-item a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer__contact-item a:hover { color: var(--white); }

.footer__contact-icon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}

.footer__platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.footer__platform-link:hover { background: rgba(255,255,255,0.12); color: var(--white); text-decoration: none; }

.footer__legal {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

.footer__bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.25rem 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer__bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer__bottom a:hover { color: var(--white); }

/* ── Floating Phone Button ──────────────────────────────── */
.phone-float {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 4px 16px rgba(2,54,120,0.35);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  animation: phonePulse 1s ease-in-out 3;
  transition: box-shadow var(--transition), transform var(--transition);
}
.phone-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(2,54,120,0.45);
  text-decoration: none;
  color: var(--white);
}

.phone-float__icon { flex-shrink: 0; width: 20px; height: 20px; }
.phone-float__number { display: none; }

.phone-float[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
}

@keyframes phonePulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(2,54,120,0.35); }
  50% { box-shadow: 0 4px 24px rgba(2,54,120,0.6), 0 0 0 8px rgba(2,54,120,0.1); }
}

/* ── Sticky CTA Bar ─────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 400;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
.sticky-cta.visible { transform: translateY(0); }

.sticky-cta__text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sticky-cta__logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
}
.sticky-cta__sentences { flex: 1; min-width: 0; }
.sticky-cta__s1, .sticky-cta__s2 { white-space: nowrap; }

.sticky-cta__btn {
  background: var(--white);
  color: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-cta__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}
.sticky-cta__close:hover { color: var(--white); }

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Backgrounds ────────────────────────────────── */
.bg-gray { background: var(--gray-light); }
.bg-blue { background: var(--blue); }
.bg-blue-light { background: var(--blue-light); }
.bg-white { background: var(--white); }
.bg-dark { background: #0F1A2B; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gray-mid); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb__sep { opacity: 0.5; }

/* ── 404 Page ───────────────────────────────────────────── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}
.error-page__code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page h1 { margin-bottom: 1rem; }
.error-page p { color: var(--gray-mid); max-width: 500px; margin-bottom: 2rem; }

/* ── Responsive — Tablet 1024px ─────────────────────────── */
@media (max-width: 1024px) {
  .grid-4   { grid-template-columns: repeat(2, 1fr); }
  .steps    { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__menu, .nav__phone { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── Responsive — Tablet 768px ──────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image  { display: none; }
  .hero__visual { display: none; } /* driver pages use hero__visual, same hide behaviour */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  /* two-col--reverse: order:1/order:2 already keeps text first on single-column mobile — no reset needed */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer-cta__inner { flex-direction: column; text-align: center; }
  .partner-trust__inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .partner-trust__badge { min-width: 0; width: 100%; border-left: none; border-top: 3px solid #009B8D; }
  /* partner-trust feats: single column on narrow screens to avoid overflow */
  .partner-trust__feats { grid-template-columns: 1fr; gap: 0.5rem; }
  .partner-trust__feat { min-width: 0; }

  /* cta-strip-inline: stretch div to full width (prevents long h2 from overflowing) */
  .cta-strip-inline {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }
  .cta-strip-inline > .btn,
  .cta-strip-inline > a.btn,
  .cta-strip-inline > a[class*="btn"] {
    align-self: center;
    width: auto;
  }
  /* inner div full-width on mobile */
  .cta-strip .cta-strip-inline > div { width: 100%; }

  .phone-float__number { display: inline; }
  .sticky-cta__text { font-size: 0.8rem; }

  /* flex/grid children: allow shrinking below content size to prevent overflow */
  .check-list li > *:not(.icon-dot),
  .pain-list li > *:not(.icon-dot) { min-width: 0; overflow-wrap: break-word; flex: 1; }
  .two-col > *, .grid-2 > *, .grid-3 > *, .card-grid > * { min-width: 0; }
}

/* ── Responsive — Mobile 480px ──────────────────────────── */
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .phone-float { bottom: 90px; right: 16px; }
}

/* ── Mobile refinements — 375px ─────────────────────────── */
@media (max-width: 375px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .nav__inner { height: 60px; }
  .nav__logo-balkan, .nav__logo-driver { font-size: 1.35rem; }
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .stat-item__value { font-size: 1.8rem; }
  .btn { padding: 12px 20px; font-size: 0.875rem; }
  .step__number { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* ── Tables — horizontal scroll on mobile ───────────────── */
.quals-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
}
.quals-table-wrap .quals-table { margin: 0; }

@media (max-width: 768px) {
  .quals-table th, .quals-table td { padding: 0.75rem 1rem; font-size: 0.85rem; }
  /* partner-trust mobile already set above */
  .hero { padding: 2.5rem 0 2rem; }
  .hero__sub { font-size: 1rem; }
  .section-lead { font-size: 1rem; }
  .cta-strip { padding: 3rem 0; }
  .cta-strip h2 { font-size: 1.8rem; }
  .footer__grid { gap: 1.5rem; }
  .nav__sidebar { width: 100vw; }
  /* Ensure benefit-card text doesn't get cramped */
  .benefit-card { padding: 1.5rem; }
  .key-facts { padding: 1.25rem 1.5rem; }
  /* Pain list / check list on mobile */
  .pain-list li, .check-list li { padding: 0.6rem 0; }
  /* Stats bar — 2 col on mobile */
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  /* Step numbers smaller on mobile */
  .steps { gap: 1.25rem; }
  /* Video embed responsive */
  .video-embed { border-radius: var(--radius); overflow: hidden; }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .section--lg { padding: 3rem 0; }
  .hero { padding: 2rem 0 1.75rem; }
  .stats-bar { padding: 1.5rem 0; }
  .stats-bar__grid { gap: 0.75rem; }
  .stat-item { padding: 1.25rem 0.75rem; }
  .card-grid { gap: 1rem; }
  .card { padding: 1.25rem; }
  .footer__socials { gap: 0.5rem; }
  /* Phone float — perfect circle on small mobile */
  .phone-float {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    bottom: 90px;
    right: 16px;
  }
  .phone-float__number { display: none; }
  .phone-float[title]:hover::after { display: none; }
  /* Sticky CTA — compact bar on mobile, expands to fit text */
  .sticky-cta {
    height: auto;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .sticky-cta__text {
    font-size: 0.72rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex: 1;
    line-height: 1.3;
  }
  .sticky-cta__logo { height: 18px; }
  .sticky-cta__btn {
    padding: 5px 12px;
    font-size: 0.75rem;
    align-self: flex-start;
    margin-top: 2px;
  }
  .sticky-cta__close {
    font-size: 1rem;
    padding: 2px;
    align-self: flex-start;
  }
  /* Lift phone float above the sticky bar */
  .phone-float { bottom: 72px; }
  /* Nav hamburger area */
  .nav__actions .btn { display: none; }
}

/* ── Video embed ─────────────────────────────────────────── */
.video-section {
  padding: 4rem 0;
  background: var(--gray-light);
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .nav, .footer, .sticky-cta, .phone-float, #scroll-progress { display: none !important; }
  .hero { background: none; color: var(--gray-dark); padding: 2rem 0; }
  .hero h1, .hero__sub { color: var(--gray-dark); }
}
