/* CSS Variables */
:root {
  --color-black: #111318;

  /* ZimboDrive brand gold, sampled from the ZD logo (black mark on #E5A31F).
     Gold is a solid fill with black content on it; on white, gold-family
     text and icons use gold-700 (5.9:1), never gold-500 (2.1:1). */
  --color-gold-50: #FEF8EC;
  --color-gold-100: #FCEFD2;
  --color-gold-200: #F8DFA6;
  --color-gold-300: #F2C96B;
  --color-gold-400: #ECB542;
  --color-gold-500: #E5A31F;
  --color-gold-600: #C78A12;
  --color-gold-700: #8A5B00;
  --color-gold-800: #6F4800;
  --color-gold-900: #4D3300;
  --color-gold-950: #2E1E00;

  /* Accents: gold and black stay dominant; these mark services across the
     page (Sheya green, Parcels red, School Run blue). Each takes white
     content (5.5:1 or better); the light variants are icon colours on black. */
  --color-accent-green: #007A16;
  --color-accent-red: #C62828;
  --color-accent-blue: #1D64C7;
  --color-accent-green-light: #5CCB72;
  --color-accent-red-light: #FF7A6E;
  --color-accent-blue-light: #6FA8FF;

  --color-status-50: #F6F7F9;
  --color-gray-100: #EDEEF1;
  --color-gray-200: #D7DAE0;
  --color-gray-300: #B3BAC6;
  --color-gray-400: #8A94A6;
  --color-gray-500: #687387;
  --color-gray-600: #565F73;
  --color-gray-700: #464D5E;
  --color-gray-800: #3D434F;
  --color-gray-900: #363A44;

  --color-status-success: #F6F7F9;
  --color-status-warning: #EDEEF1;
  --color-status-danger: #D7DAE0;
  --color-status-info: #B3BAC6;

  /* ZimboDrive brand: flag red (accent) */
  --color-driver-50: #FFF0F0;
  --color-driver-100: #FFDBDC;
  --color-driver-200: #FFB8BA;
  --color-driver-300: #FF8589;
  --color-driver-400: #FF474E;
  --color-driver-500: #FA0008;
  --color-driver-600: #D1050C;
  --color-driver-700: #AA090E;
  --color-driver-800: #840B0F;
  --color-driver-900: #650B0E;
  --color-driver-950: #370608;
}



html {
  scroll-behavior: smooth;
}


/* Base font setup */
body {
  font-family: 'Inter', sans-serif;
}


.menu_link {
  color: var(--color-black);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  text-transform: capitalize;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.menu_link_active {
  color: var(--color-black);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  /* 150% */
  position: relative;
}

.menu_link_active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  background: var(--color-gold-500);
  border-radius: 2px;
}


/* sidebar code  */
.sidebar {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.sidebar.open {
  transform: translateX(0);
}

.main-content {
  transition: margin-left 0.3s ease-in-out;
}


/* scrollbar section  */

.scrollbar-hide {
  -ms-overflow-style: none;
  /* for Internet Explorer and Edge */
  scrollbar-width: none;
  /* for Firefox */
  -webkit-overflow-scrolling: touch;
}


.scrollbar-hide::-webkit-scrollbar {
  display: none;
}


.scrollbar-style::-webkit-scrollbar {
  height: 2px;
  width: 4px;
}

/* Track */
.scrollbar-style::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgb(187, 187, 187);
  border-radius: 10px;
}

/* Handle */
.scrollbar-style::-webkit-scrollbar-thumb {
  background: rgb(187, 187, 187);
  border-radius: 90px;

}

.scrollbar-style::-webkit-scrollbar-corner {}

/* Handle on hover */
.scrollbar-style::-webkit-scrollbar-thumb:hover {
  background: rgb(187, 187, 187)
}


/* scroll / load reveal animation  */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.reveal-zoom {
  transform: scale(0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

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


/* hover effect helper  */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px 0 rgba(17, 19, 24, 0.18);
}


/* floating animation for icons & images  */
@keyframes float-lg {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes float-sm {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.floating {
  animation: float-lg 3.6s ease-in-out infinite;
}

.floating-icon {
  display: inline-block;
  animation: float-sm 2.8s ease-in-out infinite;
}

.float-delay-1 {
  animation-delay: 0.4s;
}

.float-delay-2 {
  animation-delay: 0.8s;
}

.float-delay-3 {
  animation-delay: 1.2s;
}

#why-choose-grid>div:nth-child(3n+2) .floating-icon {
  animation-delay: 0.3s;
}

#why-choose-grid>div:nth-child(3n+3) .floating-icon {
  animation-delay: 0.6s;
}

#exclusive-features-grid>div:nth-child(3n+2) .floating-icon {
  animation-delay: 0.3s;
}

#exclusive-features-grid>div:nth-child(3n+3) .floating-icon {
  animation-delay: 0.6s;
}

.tech-icons .floating:nth-child(2n) {
  animation-delay: 0.3s;
}

.tech-icons .floating:nth-child(3n) {
  animation-delay: 0.6s;
}

.tech-icons .floating:nth-child(4n) {
  animation-delay: 0.9s;
}

@media (prefers-reduced-motion: reduce) {

  .floating,
  .floating-icon {
    animation: none;
  }
}


/* installation services comparison table  */
.service-row:nth-child(odd) {
  background-color: #ffffff;
}

.service-row:nth-child(even) {
  background-color: #fafafa;
}

.service-row:nth-child(odd) .service-row-bg {
  background-color: #ffffff;
}

.service-row:nth-child(even) .service-row-bg {
  background-color: #fafafa;
}
/* ---------------------------------------------------------------
   App screens carousel (One App section)
   A seamless marquee: the track holds the slide set twice and moves
   by half its width. Slow by default, pauses on hover/focus, and the
   Light / Dark / All filter hides the other theme's slides.
   --------------------------------------------------------------- */
.sc-marquee {
  --sc-duration: 150s;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.sc-track {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  width: max-content;
  padding: 1rem 0 1.5rem;
  animation: sc-marquee var(--sc-duration) linear infinite;
  will-change: transform;
}
@keyframes sc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* slides travel right -> left by default; add data-direction="ltr" to .sc-marquee to reverse */
.sc-marquee[data-direction="ltr"] .sc-track { animation-direction: reverse; }
.sc-marquee:hover .sc-track,
.sc-marquee:focus-within .sc-track,
.sc-marquee[data-paused="true"] .sc-track { animation-play-state: paused; }
.sc-slide {
  flex: 0 0 auto;
  width: 200px;
  transition: transform 300ms ease, filter 300ms ease;
}
@media (min-width: 768px) { .sc-slide { width: 230px; } }
@media (min-width: 1280px) { .sc-slide { width: 250px; } }
.sc-slide:hover { transform: translateY(-6px) scale(1.03); }
.sc-phone {
  border-radius: 2.2rem;
  border: 9px solid #18181b;
  background: #18181b;
  overflow: hidden;
  box-shadow: 0 24px 48px -18px rgba(17, 19, 24, 0.45);
}
.sc-phone img { display: block; width: 100%; height: auto; border-radius: 1.65rem; }
.sc-marquee[data-filter="light"] .sc-slide[data-theme="dark"],
.sc-marquee[data-filter="dark"] .sc-slide[data-theme="light"] { display: none; }
.sc-filter-btn[aria-pressed="true"] {
  background: var(--color-gold-500);
  color: var(--color-black);
  border-color: var(--color-gold-500);
}
@media (prefers-reduced-motion: reduce) {
  .sc-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .sc-track { animation: none; }
}

/* ---------------------------------------------------------------
   Secondary pages (privacy, terms, account deletion, contact)
   --------------------------------------------------------------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  color: #27272a;
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .legal { padding: 4rem 0 6rem; font-size: 1.0625rem; } }
.legal h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; color: #18181b; margin: 0 0 0.5rem; }
@media (min-width: 768px) { .legal h1 { font-size: 2.5rem; } }
.legal .legal-effective { color: #52525b; font-size: 0.95rem; margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e4e4e7; }
.legal h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--color-gold-700); margin: 2.25rem 0 0.75rem; }
.legal h1 + p, .legal .legal-effective + p { margin-top: 0; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin: 0 0 0.5rem; }
.legal a { color: var(--color-gold-700); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--color-black); }
.legal .legal-button {
  display: inline-block; margin-top: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 0.75rem;
  background: var(--color-gold-500); color: var(--color-black); font-weight: 600; text-decoration: none;
}
.legal .legal-button:hover { background: var(--color-black); color: #fff; }
.legal .legal-contacts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.legal .legal-contacts li { margin: 0; }
.legal .legal-contacts a {
  display: inline-block; padding: 0.6rem 1rem; border: 1px solid #d4d4d8; border-radius: 0.75rem;
  background: #fff; text-decoration: none; color: #18181b; font-weight: 500;
}
.legal .legal-contacts a:hover { border-color: var(--color-black); color: var(--color-black); }

/* ---------------------------------------------------------------
   Website live chat widget (js/chat.js)
   --------------------------------------------------------------- */
.zd-chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; font-family: 'Inter', sans-serif; }
.zd-chat__bubble {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--color-gold-500); color: var(--color-black); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); position: relative;
}
.zd-chat__bubble:hover { background: var(--color-black); color: #fff; }
.zd-chat__bubble:focus-visible { outline: 3px solid var(--color-black); outline-offset: 2px; }
.zd-chat__bubble-icon { font-size: 1.1rem; line-height: 1; }
.zd-chat__badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-driver-600, #D1050C); color: #fff; font-size: 0.72rem; line-height: 20px; text-align: center; }
.zd-chat__panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem); width: min(380px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 6rem));
  display: flex; flex-direction: column; background: #fff; border-radius: 1.25rem; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17, 19, 24, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.zd-chat__header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--color-black); color: #fff; }
.zd-chat__brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.zd-chat__brand img { width: 32px; height: 32px; border-radius: 8px; }
.zd-chat__title { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.zd-chat__status-row { display: flex; align-items: center; gap: 0.4rem; }
.zd-chat__status { margin: 0; font-size: 0.78rem; opacity: 0.9; }
.zd-chat__dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFC9A; box-shadow: 0 0 0 3px rgba(124, 252, 154, 0.25); }
.zd-chat__dot--closed { background: #A1A1AA; box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.25); }
.zd-chat__close { border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.zd-chat__close:hover { background: rgba(255, 255, 255, 0.28); }
.zd-chat__body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0.9rem; gap: 0.6rem; background: #F8F7F4; overflow: hidden; }
.zd-chat__form { display: flex; flex-direction: column; gap: 0.55rem; overflow-y: auto; }
.zd-chat__lead { margin: 0; font-size: 0.9rem; color: #3f3f46; }
.zd-chat__field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: #52525b; }
.zd-chat__field input, .zd-chat__field textarea, .zd-chat__composer textarea {
  font: inherit; font-size: 0.95rem; color: #18181b; padding: 0.55rem 0.7rem; border: 1px solid #d4d4d8; border-radius: 0.6rem; background: #fff;
}
.zd-chat__field input:focus, .zd-chat__field textarea:focus, .zd-chat__composer textarea:focus { outline: 2px solid var(--color-black); outline-offset: 0; border-color: transparent; }
.zd-chat__field [aria-invalid="true"] { border-color: var(--color-driver-600, #D1050C); }
.zd-chat__error { color: var(--color-driver-700, #A4040A); font-size: 0.78rem; margin: 0; }
.zd-chat__notice { margin: 0; padding: 0.55rem 0.7rem; border-radius: 0.6rem; background: var(--color-gold-50); color: #5c3d00; font-size: 0.8rem; line-height: 1.45; border: 1px solid var(--color-gold-200); }
.zd-chat__notice--error { background: #FDECEC; border-color: #F5B5B5; color: #7a0c10; }
.zd-chat__fine { margin: 0; font-size: 0.72rem; color: #71717a; }
.zd-chat__fine a { text-decoration: underline; }
.zd-chat__send { border: 0; border-radius: 0.7rem; padding: 0.6rem 1rem; background: var(--color-gold-500); color: var(--color-black); font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.zd-chat__send:hover { background: var(--color-black); color: #fff; }
.zd-chat__send:disabled { opacity: 0.6; cursor: default; }
.zd-chat__send--wide { width: 100%; padding: 0.75rem 1rem; }
.zd-chat__messages { list-style: none; margin: 0; padding: 0.25rem 0; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.zd-chat__msg { max-width: 85%; padding: 0.55rem 0.75rem; border-radius: 1rem; font-size: 0.92rem; line-height: 1.4; display: flex; flex-direction: column; gap: 0.15rem; }
.zd-chat__msg--user { align-self: flex-end; background: var(--color-gold-500); color: var(--color-black); border-bottom-right-radius: 0.35rem; }
.zd-chat__msg--agent { align-self: flex-start; background: #fff; color: #18181b; border: 1px solid #e4e4e7; border-bottom-left-radius: 0.35rem; }
.zd-chat__who { font-size: 0.72rem; font-weight: 600; color: var(--color-gold-700); }
.zd-chat__text { margin: 0; white-space: pre-wrap; word-break: break-word; }
.zd-chat__time { font-size: 0.68rem; opacity: 0.75; align-self: flex-end; }
.zd-chat__composer { display: flex; gap: 0.5rem; align-items: flex-end; }
.zd-chat__composer textarea { flex: 1; resize: none; max-height: 7rem; }
.zd-chat__link { border: 0; background: none; color: #52525b; font-size: 0.75rem; text-decoration: underline; cursor: pointer; align-self: center; padding: 0.1rem; }
.zd-chat__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .zd-chat { right: 0.75rem; bottom: 0.75rem; }
  .zd-chat__bubble-text { display: none; }
  .zd-chat__bubble { padding: 0.85rem; }
  .zd-chat--open .zd-chat__bubble { display: none; }
  .zd-chat__panel { position: fixed; inset: auto 0 0 0; width: 100vw; height: min(85vh, 640px); border-radius: 1.25rem 1.25rem 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .zd-chat__panel { animation: zd-chat-in 180ms ease-out; }
  @keyframes zd-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------
   How It Works phone (js/how-it-works.js): four screens share one box;
   the active one is visible, the next slides in from the side.
--------------------------------------------------------------- */
.hiw-screen {
  position: relative;
  width: min(260px, 68vw);
  aspect-ratio: 540 / 1174;
  overflow: hidden;
  border-radius: 2rem;
  background: #f4f4f5;
}
@media (min-width: 768px) { .hiw-screen { width: min(294px, 26vw); } }
.hiw-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  visibility: hidden;
  transition: none;
}
.hiw-frame.is-active {
  transform: translateX(0);
  visibility: visible;
  z-index: 2;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hiw-frame.from-right { transform: translateX(100%); visibility: visible; transition: none; }
.hiw-frame.from-left { transform: translateX(-100%); visibility: visible; transition: none; }
.hiw-frame.to-left,
.hiw-frame.to-right {
  visibility: visible;
  z-index: 1;
  opacity: 0.55;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.65s ease;
}
.hiw-frame.to-left { transform: translateX(-28%); }
.hiw-frame.to-right { transform: translateX(28%); }
.hiw-step[role="button"] { cursor: pointer; }
.hiw-step.is-current {
  box-shadow: 0 0 0 3px var(--color-gold-500), 0 10px 24px 0 rgba(17, 19, 24, 0.12);
}
.hiw-step:focus-visible { outline: 3px solid var(--color-black); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .hiw-frame,
  .hiw-frame.is-active,
  .hiw-frame.to-left,
  .hiw-frame.to-right { transition: none; }
}

/* ---------------------------------------------------------------
   Brand helpers: solid gold highlight behind black heading words,
   and the hero panel (ZD mark beside a phone on solid gold).
--------------------------------------------------------------- */
/* Section bands: one very light solid tint per section, rotating through
   the brand gold and the flag's green, red and black, with white sections
   between them, so each transition is visible without busying the page. */
.band-gold { background-color: #FEF8EC; }
.band-green { background-color: #F2F8F3; }
.band-red { background-color: #FDF3F2; }
.band-stone { background-color: #F4F4F2; }

/* Hero: Harare city buildings at dusk at 12% strength on white (pre-blended
   in the image, no overlay), so the section is not plain white. */
.hero-bg {
  background: #fff url("assets/images/herosection/hero-harare-faint.jpg") center / cover no-repeat;
}
.hero-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
  border-radius: 2rem;
  background: var(--color-gold-500);
  overflow: hidden;
}
.hero-mark {
  position: absolute;
  left: 8%;
  top: 10%;
  width: 40%;
  height: auto;
}
.hero-phone {
  position: absolute;
  right: 9%;
  top: 9%;
  width: 37%;
}
.hero-tag {
  position: absolute;
  left: 8%;
  bottom: 9%;
  max-width: 44%;
  color: var(--color-black);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* Tablet and up: a long 3:2 panel fills the wider visual column to the
   container edge and shows past the floating cards (inset 3rem); the
   phone leans into the extra space. */
@media (min-width: 768px) {
  .hero-panel { max-width: none; aspect-ratio: 3 / 2; }
  .hero-mark { left: 6%; top: 12%; width: 33%; }
  .hero-tag { left: 6%; bottom: 10%; max-width: 38%; }
  .hero-phone {
    right: 17%;
    top: 13%;
    width: 31%;
    transform: rotate(9deg);
    transform-origin: 50% 40%;
  }
}
