/* Site header + footer (2026-10-03 redesign, all public pages). Scoped to .ks-* classes.
   Design source: claude.ai canvas "Kasbah Transfers Homepage Redesign". */

:root {
  --ks-brand: #104B59;
  --ks-brand-dark: #0A3540;
  --ks-footer: #072A33;
  --ks-accent: #B84F18;      /* white text on it: 5.0:1 */
  --ks-ink: #1F2A2D;
  --ks-pad: clamp(16px, 4vw, 40px);
}

/* The old theme header was an absolute overlay and pages pushed their first block down with
   .header-space-fix. The new header is in the normal flow, so that offset is no longer needed. */
.header-space-fix { margin-top: 0 !important; }

/* Inner-page banner: our real van (plates blurred) instead of the theme's stock team photo.
   Dark tint keeps the white H1/breadcrumb above 4.5:1. */
.inner-banner-one {
  background: linear-gradient(rgba(7, 42, 51, 0.62), rgba(7, 42, 51, 0.62)),
              url(../images/fleet/banner-van.jpg) center 55% / cover no-repeat;
}

.ks-inner { max-width: 1200px; margin: 0 auto; padding-left: var(--ks-pad); padding-right: var(--ks-pad); }

/* Utility bar */
.ks-util { background: var(--ks-brand-dark); color: #E6EEF0; font-family: 'Figtree', system-ui, sans-serif; font-size: 14px; }
.ks-util .ks-inner { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.ks-util-contact { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.ks-util a { color: #E6EEF0; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.ks-util a:hover { color: #fff; text-decoration: underline; }
.ks-lang { display: flex; gap: 2px; align-items: center; }
.ks-lang a { padding: 0 10px; border-radius: 6px; min-height: 32px; }
.ks-lang a[aria-current="true"] { background: rgba(255,255,255,0.16); color: #fff; font-weight: 700; }

/* Main header (sticky) */
.ks-header { position: sticky; top: 0; z-index: 999; background: #fff; border-bottom: 1px solid #E3E9EA;
  font-family: 'Figtree', system-ui, sans-serif; box-shadow: 0 6px 24px -18px rgba(4, 28, 34, 0.35); }
.ks-header .ks-inner { max-width: 1320px; display: flex; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.ks-logo { display: flex; align-items: center; flex: 0 0 auto; }
.ks-logo img { height: 44px; width: auto; display: block; }
.ks-nav { flex: 1 1 auto; }
.ks-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; }
.ks-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ks-ink); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ks-nav a:hover { color: var(--ks-brand); border-bottom-color: #C9D5D8; }
.ks-nav a[aria-current="page"] { color: var(--ks-brand); border-bottom-color: var(--ks-accent); }
.ks-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-left: auto; }
.ks-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none !important; border: 2px solid transparent; white-space: nowrap; }
.ks-btn-line { border-color: var(--ks-brand); color: var(--ks-brand) !important; background: #fff; }
.ks-btn-line:hover { background: #EEF4F5; }
.ks-btn-accent { background: var(--ks-accent); color: #fff !important; }
.ks-btn-accent:hover { filter: brightness(0.93); }
.ks-menu-btn { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px;
  border: 2px solid #C9D5D8; background: #fff; color: var(--ks-brand); cursor: pointer; padding: 0; }
.ks-menu-btn svg { display: block; }
.ks-menu-btn .ks-ico-close { display: none; }
.ks-menu-btn[aria-expanded="true"] .ks-ico-open { display: none; }
.ks-menu-btn[aria-expanded="true"] .ks-ico-close { display: block; }

/* The WhatsApp label needs room: icon-only (aria-label kept) below 1400px */
@media (max-width: 1399px) {
  .ks-btn-wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ks-btn-line { width: 44px; padding: 0; }
}
/* Below 1240px logo + 7 menu items + buttons no longer fit one row: collapse the menu */
@media (max-width: 1239px) {
  .ks-menu-btn { display: inline-flex; order: 3; }
  .ks-actions { order: 2; }
  .ks-nav { order: 4; flex-basis: 100%; display: none; }
  .ks-nav.is-open { display: block; }
  .ks-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; border-top: 1px solid #E3E9EA; }
  .ks-nav a { width: 100%; min-height: 48px; border-bottom: 1px solid #EEF2F3; font-size: 17px; }
  .ks-nav a[aria-current="page"] { border-bottom-color: #EEF2F3; box-shadow: inset 4px 0 0 var(--ks-accent); padding-left: 12px; }
}
@media (max-width: 575px) {
  /* logo + WhatsApp + Get a price + menu must fit one row at 360px; every target stays ≥ 44px */
  .ks-logo img { height: 34px; }
  .ks-btn-wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* icon-only WhatsApp */
  .ks-header .ks-inner { gap: 8px; }
  .ks-actions { gap: 8px; }
  .ks-btn { padding: 0 12px; font-size: 14px; }
  .ks-btn-line { width: 44px; padding: 0; }
  .ks-menu-btn { width: 44px; height: 44px; }
  .ks-util-email { display: none !important; }   /* still in the footer */
}

/* Footer */
.ks-footer { background: var(--ks-footer); color: #C9D8DC; font-family: 'Figtree', system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.ks-footer-top { display: flex; flex-wrap: wrap; gap: 36px 48px; padding-top: 56px; padding-bottom: 32px; }
.ks-footer-brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ks-footer-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 22px; color: #fff; }
.ks-footer p { margin: 0; color: #C9D8DC; }
.ks-footer a { color: #C9D8DC; text-decoration: none; }
.ks-footer a:hover { color: #fff; text-decoration: underline; }
.ks-footer-brand a { color: #fff; }
.ks-footer-col { flex: 1 1 170px; }
.ks-footer-col h2 { font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; color: #fff; font-size: 16px; margin: 0 0 10px; letter-spacing: 0; }
.ks-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ks-footer-col li a { display: inline-flex; align-items: center; min-height: 34px; }
.ks-social { display: flex; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.ks-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; }
.ks-news { flex: 1 1 240px; }
.ks-news form { display: flex; gap: 8px; margin-top: 8px; }
.ks-news input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #3B6470; background: #0D3640; color: #fff; font: inherit; }
.ks-news input::placeholder { color: #9FB6BC; }
.ks-news button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--ks-accent); color: #fff; font-weight: 700; cursor: pointer; }
.ks-footer-bottom { border-top: 1px solid #1C4652; padding-top: 18px; padding-bottom: 28px; font-size: 14px; }
