/* ==========================================================================
   AWL Home — modern clean-light restyle (2026-07-16)
   Loaded only on index.php AFTER style.css; scoped to body.awl-home-modern.
   Direction: generous whitespace, rounded soft-shadow cards, pill tabs,
   red (#db0010) as accent only. Overrides the RTS theme's blocky defaults.
   ========================================================================== */

body.awl-home-modern {
  background: #fff;
  --awlh-red: #db0010;
  --awlh-ink: #16181d;
  --awlh-muted: #5c6470;
  --awlh-line: #eceef1;
  --awlh-card-shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 8px 24px rgba(22, 24, 29, .07);
  --awlh-card-shadow-hover: 0 2px 4px rgba(22, 24, 29, .06), 0 18px 44px rgba(22, 24, 29, .13);
  --awlh-radius: 18px;
}

/* ---- Section rhythm: more air, no hard stripes ---- */
body.awl-home-modern .rts-section-gap { padding: 96px 0 !important; }
body.awl-home-modern .rts-section-gapBottom { padding-bottom: 96px !important; }
body.awl-home-modern .rts-portfolio-area,
body.awl-home-modern .rts-category-area,
body.awl-home-modern .rts-about-area,
body.awl-home-modern .rts-feature-area { background: #fff !important; }
body.awl-home-modern .rts-category-area .bg-shape-area { display: none; }

/* ---- Section titles ---- */
body.awl-home-modern .section-title {
  font-family: "Schibsted Grotesk", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
  color: var(--awlh-ink) !important;
}
body.awl-home-modern .section-title span { color: var(--awlh-red) !important; }
body.awl-home-modern .sub-title {
  color: var(--awlh-red) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px !important;
}

/* ---- Quick-links strip — clean namespace, floats over the hero seam ---- */
body.awl-home-modern .awl-quicklinks {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}
body.awl-home-modern .awl-ql-strip {
  background: #fff;
  border: 1px solid var(--awlh-line);
  border-radius: var(--awlh-radius);
  box-shadow: var(--awlh-card-shadow);
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
body.awl-home-modern .awl-ql-item {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1 1 210px;
  padding: 8px 6px;
  text-decoration: none;
  border-radius: 12px;
  transition: background .18s;
}
body.awl-home-modern .awl-ql-item:hover { background: #faf6f6; text-decoration: none; }
body.awl-home-modern .awl-ql-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fdeaec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* plugins.css force-sizes all .fa-solid to a 46px box — undo inside the chip */
body.awl-home-modern .awl-ql-ico i {
  color: var(--awlh-red);
  width: auto !important;
  height: auto !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: inline-block;
}
body.awl-home-modern .awl-ql-label {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--awlh-ink);
  white-space: nowrap;
}
body.awl-home-modern .awl-ql-item:hover .awl-ql-label { color: var(--awlh-red); }
body.awl-home-modern .awl-ql-arrow {
  color: var(--awlh-red);
  font-size: 15px;
  line-height: 1;
  transition: transform .18s;
}
body.awl-home-modern .awl-ql-item:hover .awl-ql-arrow { transform: translateX(4px); }
/* ---- Range tabs → pill segmented control ---- */
body.awl-home-modern .tab-area .nav-tabs {
  border: none !important;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 6px;
  display: inline-flex !important;
  flex-wrap: wrap;
  margin: 0 auto;
  width: auto;
}
body.awl-home-modern .tab-area { text-align: center; }
body.awl-home-modern .tab-area .nav-tabs .nav-link {
  border: none !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--awlh-muted) !important;
  font-weight: 700 !important;
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 14px !important;
  padding: 10px 22px !important;
  margin: 0 !important;
  transition: all .2s ease;
}
body.awl-home-modern .tab-area .nav-tabs .nav-link:hover { color: var(--awlh-ink) !important; }
body.awl-home-modern .tab-area .nav-tabs .nav-link.active {
  background: var(--awlh-red) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(219, 0, 16, .3);
}
body.awl-home-modern .section-inner.mt--80 { margin-top: 44px !important; }

/* ---- Sub-pills (second row inside a range tab: brands / implement categories) ---- */
body.awl-home-modern .awl-subpills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 30px;
  padding: 0 16px;
}
body.awl-home-modern .awl-subpill {
  background: #fff;
  border: 1.5px solid var(--awlh-line);
  border-radius: 999px;
  color: var(--awlh-muted);
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px !important;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  max-width: max-content !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.2 !important;
}
body.awl-home-modern .awl-subpill:hover { border-color: rgba(219, 0, 16, .45); color: var(--awlh-ink); }
body.awl-home-modern .awl-subpill.active {
  background: #fff;
  border-color: var(--awlh-red);
  color: var(--awlh-red);
}
body.awl-home-modern .awl-range-empty {
  text-align: center;
  color: var(--awlh-muted);
  padding: 48px 0;
}

/* ---- Vehicle cards (projectSlider) — compact showroom carousel ----
   The theme's .content-area is a hover overlay (hidden, absolute, clipped on
   the active slide). We convert it to a permanent in-card block: USPs are
   always visible on every card, in every slide position. */
body.awl-home-modern .rts-portfolio-area .projectSlider .swiper-slide {
  padding-bottom: 18px !important;
  transition: transform .35s ease, opacity .35s ease;
  transform: scale(.95);
  opacity: .82;
}
body.awl-home-modern .rts-portfolio-area .projectSlider .swiper-slide.swiper-slide-active {
  transform: scale(1);
  opacity: 1;
}
body.awl-home-modern .project-wrapper {
  background: #fff;
  border: 1px solid var(--awlh-line);
  border-radius: 16px;
  box-shadow: var(--awlh-card-shadow);
  padding: 10px 10px 16px;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
body.awl-home-modern .swiper-slide-active .project-wrapper,
body.awl-home-modern .project-wrapper:hover {
  border-color: rgba(219, 0, 16, .25);
  box-shadow: 0 2px 4px rgba(22, 24, 29, .05), 0 18px 44px rgba(219, 0, 16, .12);
}
body.awl-home-modern .project-wrapper .image-area {
  border-radius: 10px !important;
  background: linear-gradient(150deg, #fafbfc 0%, #eef1f5 62%, #fdeaec 130%);
  aspect-ratio: 16/10 !important;
}
body.awl-home-modern .project-wrapper .image-area img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
body.awl-home-modern .project-wrapper:hover .image-area img { transform: scale(1.04); }

/* USP block: permanent, identical on every slide position */
body.awl-home-modern .project-wrapper .content-area {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 14px 6px 0 !important;
  text-align: center !important;
  transition: none !important;
}
body.awl-home-modern .project-wrapper:hover .content-area { bottom: auto !important; opacity: 1 !important; }
body.awl-home-modern .project-wrapper .content-area h5 { margin: 4px 0 10px !important; }
body.awl-home-modern .project-wrapper .content-area h5 a {
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 800;
  color: var(--awlh-ink);
  font-size: 17px;
  line-height: 1.25;
}
body.awl-home-modern .project-wrapper .content-area h5 a:hover { color: var(--awlh-red); }
body.awl-home-modern .project-wrapper .vehicletypehome,
body.awl-home-modern .project-wrapper .vehicletypehome p {
  display: inline-block;
  background: #fdeaec;
  color: #b8000d !important;
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 12px !important;
  border-radius: 999px;
  margin: 0 !important;
}
body.awl-home-modern .project-wrapper .vehicletypehome:empty { display: none; }
body.awl-home-modern .project-wrapper .feature-area {
  gap: 14px !important;
  margin-bottom: 14px !important;
  justify-content: center !important;
  flex-wrap: wrap;
}
body.awl-home-modern .project-wrapper .feature-area li {
  color: #3c434d !important;
  font-weight: 600;
  font-size: 12.5px !important;
  border: none !important;
  gap: 6px !important;
}
body.awl-home-modern .project-wrapper .feature-area li img { width: 20px; height: auto; }
body.awl-home-modern .project-wrapper .rts-btn::before,
body.awl-home-modern .project-wrapper .rts-btn::after {
  display: none !important;
  content: none !important;
}
body.awl-home-modern .project-wrapper .rts-btn {
  background: var(--awlh-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 9px 26px !important;
  transition: all .2s ease;
  box-shadow: 0 6px 16px rgba(219, 0, 16, .28) !important;
}
body.awl-home-modern .project-wrapper .rts-btn:hover {
  background: var(--awlh-red-dark, #b8000d) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(219, 0, 16, .34) !important;
}

/* ---- Category showroom chips ---- */
body.awl-home-modern .category-wrapper {
  background: #fff !important;
  border: 1px solid var(--awlh-line) !important;
  border-radius: var(--awlh-radius) !important;
  box-shadow: var(--awlh-card-shadow);
  padding: 28px 18px !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
body.awl-home-modern .category-wrapper:hover {
  transform: translateY(-5px);
  background: #fff !important;
  color: var(--awlh-ink) !important;
  box-shadow: var(--awlh-card-shadow-hover);
  border-color: rgba(219, 0, 16, .35) !important;
}
body.awl-home-modern .category-wrapper:hover .title { color: var(--awlh-red) !important; }
body.awl-home-modern .category-wrapper:hover .icon {
  filter: none !important;
  background: var(--awlh-red) !important;
}
body.awl-home-modern .category-wrapper:hover .icon img { filter: brightness(0) invert(1); }
body.awl-home-modern .category-wrapper .icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: #fdeaec !important;
  display: flex; align-items: center; justify-content: center;
}
body.awl-home-modern .category-wrapper .title {
  color: var(--awlh-ink) !important;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 700 !important;
  margin: 0 !important;
}

/* ---- Featured products ---- */
body.awl-home-modern .rts-feature-area .feature-wrapper {
  border-radius: 22px;
  overflow: hidden;
  background: #f7f8f9;
  border: 1px solid var(--awlh-line);
  box-shadow: var(--awlh-card-shadow);
}
body.awl-home-modern .rts-feature-area .image-area img { border-radius: 0; }
body.awl-home-modern .rts-feature-area .shape { opacity: .5; }

/* ---- About + video ---- */
body.awl-home-modern .about-image-area img { border-radius: var(--awlh-radius) !important; }
body.awl-home-modern .about-content-area .desc { color: var(--awlh-muted) !important; line-height: 1.75; }
body.awl-home-modern .rts-video-area {
  border-radius: 24px !important;
  overflow: hidden;
  margin: 0 auto 96px;
  max-width: 1290px;
}
body.awl-home-modern .about-content-area .rts-btn,
body.awl-home-modern .rts-feature-area .rts-btn {
  border-radius: 999px !important;
}

/* ---- Buttons: global soft rounding on the page ---- */
body.awl-home-modern .rts-btn.radius-big { border-radius: 999px !important; }

/* ---- Swiper pagination dots ---- */
body.awl-home-modern .swiper-pagination-bullet { background: #c9ced6; opacity: 1; }
body.awl-home-modern .swiper-pagination-bullet-active { background: var(--awlh-red); }

/* ---- Serving-Kenya contrast band: soften into a rounded panel ---- */
body.awl-home-modern .awl-geo-band {
  border-radius: 24px;
  max-width: 1290px;
  margin: 0 auto 24px;
}

/* ---- CTA band: straighten the theme's skewed clip-path slab ---- */
body.awl-home-modern .rts-cta-area { margin: 0 0 96px; }
body.awl-home-modern .rts-cta-area .cta-inner {
  clip-path: none !important;
  bottom: 0 !important;
  margin-bottom: 0 !important;
  border-radius: 24px !important;
  overflow: hidden;
  background: linear-gradient(120deg, #b8000d 0%, var(--awlh-red) 60%, #ef2231 100%) !important;
  padding: clamp(34px, 5vw, 58px) clamp(26px, 5vw, 72px) !important;
  box-shadow: 0 18px 44px rgba(219, 0, 16, .22);
  gap: 24px;
  flex-wrap: wrap;
}
body.awl-home-modern .cta-inner .title {
  font-family: "Schibsted Grotesk", sans-serif !important;
  font-size: clamp(22px, 3vw, 36px) !important;
  font-weight: 800;
  color: #fff !important;
}
body.awl-home-modern .cta-inner .contact a {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: clamp(20px, 2.6vw, 30px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 14px 28px;
  gap: 14px !important;
  transition: background .2s;
}
body.awl-home-modern .cta-inner .contact a:hover { background: rgba(255, 255, 255, .24); }
body.awl-home-modern .cta-inner .contact a img { width: 34px; height: 34px; }
body.awl-home-modern .cta-inner img.shape { display: none !important; }

/* ---- Card weight/spec icon ---- */
body.awl-home-modern .awl-payload-ico { flex-shrink: 0; }

/* ---- Mobile ---- */
@media (max-width: 767px) {
  body.awl-home-modern .rts-section-gap { padding: 64px 0 !important; }
  body.awl-home-modern .awl-quicklinks { margin-top: -20px; }
  body.awl-home-modern .awl-ql-item { flex: 1 1 46%; }
  body.awl-home-modern .tab-area .nav-tabs { border-radius: 20px; }
}
