/* KRAVE CAR layout and readability correction — 2026-10-29 */
:root {
  --kc-service-border: #e7e8eb;
}

/* Keep navigation in normal document flow. This prevents the sticky header
   from covering page headings and anchor destinations on long-page captures. */
.site-header {
  position: relative;
  top: auto;
  z-index: 20;
}

/* The branded hero is dark, so its copy must not inherit the site's dark body
   text color. Improve contrast for headings, descriptions and the trust row. */
.hero {
  color: #f7f8fa;
  background-color: #111318;
}
.hero h1 {
  color: #f7f8fa;
  text-wrap: balance;
}
.hero h1 em,
.hero .section h2 em {
  color: #d4ae69;
}
.hero-copy > p {
  color: #c1c5cc;
}
.hero .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,.36) !important;
  background: rgba(255,255,255,.07);
}
.hero .trust-row b,
.hero .hero-stats b {
  color: #f7f8fa;
}
.hero .trust-row small,
.hero .hero-stats span {
  color: #b4b8c0;
}
.hero-stats {
  border-top-color: rgba(255,255,255,.26);
}

/* A clear, full service destination for the main navigation link. */
#services,
#featured-fleet {
  scroll-margin-top: 18px;
}
.service-section {
  background: #f7f8fa;
  border-top: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
}
.service-section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}
.service-section-heading h2 {
  margin: 12px 0 14px;
  color: #17191f;
}
.service-section-heading h2 em {
  color: #a27d42;
  font-style: normal;
}
.service-section-heading > p {
  margin: 0 auto;
  max-width: 700px;
  color: #666c76;
  font-size: 15px;
  line-height: 1.8;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 22px 22px;
  border: 1px solid var(--kc-service-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17,19,24,.035);
}
.service-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #f3ead9;
  color: #8c682d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.service-card h3 {
  margin: 20px 0 9px;
  color: #181a1f;
  font: 800 18px/1.35 Manrope, Arial, sans-serif;
  letter-spacing: -.3px;
}
.service-card p {
  margin: 0 0 22px;
  color: #686e78;
  font-size: 13px;
  line-height: 1.75;
  flex: 1 1 auto;
}
.service-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eceef0;
  color: #86632c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.service-card a:hover {
  color: #17191f;
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .service-section-heading {
    margin-bottom: 24px;
    text-align: left;
  }
  .service-section-heading h2 {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .service-section-heading > p {
    font-size: 14px;
    line-height: 1.75;
  }
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .service-card {
    padding: 21px 19px 18px;
  }
  .service-card h3 {
    margin-top: 15px;
    font-size: 17px;
  }
  .service-card p {
    margin-bottom: 17px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* KRAVE CAR — balanced mobile header, direction-aware (LTR/RTL).
   Shared stylesheet: applies to French LTR and Arabic RTL without changing
   desktop navigation or page content. */
@media (max-width: 680px) {
  .site-header .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    height: 70px;
    position: relative;
  }

  .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    min-width: 0;
    margin: 0;
  }

  .site-header .brand-logo {
    width: 132px;
    height: 48px;
    max-width: 132px;
    max-height: 48px;
    object-position: center;
  }

  .site-header .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid rgba(20, 20, 20, .10);
    border-radius: 10px;
    background: #fff;
    color: #171717;
    line-height: 1;
    z-index: 32;
    cursor: pointer;
  }

  .site-header .language-switch {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-size: 11px;
    z-index: 32;
  }

  .site-header .language-switch a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 7px;
    border-radius: 8px;
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    top: 70px;
    z-index: 31;
    text-align: start;
  }

  .site-header .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Grid columns follow the document direction:
     LTR: menu left / logo center / language right.
     RTL: menu right / logo center / language left. */
  html[dir="rtl"] .site-header .main-nav {
    direction: rtl;
    text-align: right;
  }

  html[dir="ltr"] .site-header .main-nav {
    direction: ltr;
    text-align: left;
  }
}


/* KRAVE CAR — agreed mobile header alignment: menu left, logo centered,
   language selector right. Keep this direction-independent for Arabic/French. */
@media (max-width: 760px) {
  .site-header .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    min-height: 70px;
    height: 70px;
    direction: ltr;
    position: relative;
  }

  .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    min-width: 0;
    margin: 0;
  }

  .site-header .brand-logo {
    display: block;
    width: 132px;
    height: 48px;
    max-width: 132px;
    max-height: 48px;
    object-fit: contain;
    object-position: center;
  }

  .site-header .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    z-index: 32;
  }

  .site-header .language-picker {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    z-index: 32;
  }

  .site-header .language-picker-select {
    min-width: 100px;
    max-width: 118px;
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    top: 70px;
    direction: inherit;
    text-align: start;
  }

  html[dir="rtl"] .site-header .main-nav {
    direction: rtl;
    text-align: right;
  }

  html[dir="ltr"] .site-header .main-nav {
    direction: ltr;
    text-align: left;
  }
}
