/* ============================================================
   Hero V6 — 3-card grid layout
   Hire a Driver | DriveU Reserve | DriveU Coach
   ============================================================ */

/* ---- Brand colours ---- */
/* --green:       #36AD72  */
/* --green-deep:  #23905B  */
/* --rv-green:    #002416  */
/* --rv-electric: #4BDB93  */
/* --co-cream:    #FFF3CF  */
/* --co-brown:    #8A5A00  */


/* ---- Section wrapper ---- */

#startingContainer {
  padding: 0;
  margin-bottom: 48px;
}

.v6-hero {
  padding: 20px;
  display: flex;
  flex-direction: column;
}


/* ---- Animated heading ---- */

.v6-h1 {
  margin: 0 0 clamp(10px, 2svh, 20px);
  font-size: clamp(28px, min(4.6vw, 7.4svh), 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
}

/* All words start muted; JS adds .v6-k-* on card hover to highlight */
.v6-h1 span               { color: #A3ABA6; transition: color .35s cubic-bezier(.2,.7,.2,1); }
.v6-h1 .v6-w-driver       { color: #181818; }
.v6-h1.v6-k-reserve .v6-w-reserve { color: #002416; }
.v6-h1.v6-k-coach   .v6-w-coach   { color: #8A5A00; }
.v6-h1.v6-k-reserve .v6-w-driver,
.v6-h1.v6-k-coach   .v6-w-driver  { color: #A3ABA6; }

.v6-lede {
  margin: 0 0 clamp(10px, 2svh, 18px);
  font-size: clamp(14px, min(1.4vw, 2.3svh), 18px);
  color: #5C6460;
  line-height: 1.45;
}


/* ---- 3-column grid ---- */

.v6-cards {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 500px;
}

/* display:contents makes Reserve + Coach direct grid children */
.v6-side-row { display: contents; }


/* ---- Card base ---- */

.v6-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;                    /* keeps z-index stacking self-contained */
  transition: transform .5s cubic-bezier(.2,.7,.2,1),
              box-shadow  .5s cubic-bezier(.2,.7,.2,1);
}

.v6-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -28px rgba(10, 30, 20, .45);
}

.v6-card h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}


/* ---- Hire a Driver card ---- */

.v6-c-driver {
  background: #23905B;
  color: #fff;
  padding: clamp(20px, 3.4svh, 32px) clamp(20px, 2.6vw, 32px);
}

/* Full-bleed video/image background */
.v6-drv-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.v6-drv-media img,
.v6-drv-media video {
  position: absolute;
  inset: 0;
  width: 100%  !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

/* Video fades in once playing; thumbnail stays underneath */
.v6-drv-media video { opacity: 1; }
.v6-c-driver.v6-playing .v6-drv-media img { opacity: 0; transition: opacity .8s; }
.v6-c-driver:hover .v6-drv-media img,
.v6-c-driver:hover .v6-drv-media video { transform: scale(1.03); }

/* Dark-to-green gradient overlay so text stays legible */
.v6-drv-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 22, 14, .35)  0%,
    rgba(6, 22, 14, .05) 30%,
    rgba(6, 22, 14, 0)   48%,
    rgba(20, 96, 58, .55) 72%,
    rgba(35, 144, 91, .88) 100%
  );
}

/* Keep all content above the media layer */
.v6-c-driver > *:not(.v6-drv-media) { z-index: 1; }

/* Play / Pause button (top-right) */
.v6-drv-ctrl {
  position: absolute;
  top: clamp(16px, 2.6svh, 26px);
  right: clamp(16px, 2vw, 26px);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.v6-drv-ctrl:hover { background: rgba(255, 255, 255, .26); }
.v6-drv-ctrl svg   { width: 13px; height: 13px; }

.v6-c-driver h2 { font-size: clamp(28px, min(3.6vw, 6.4svh), 52px); }

/* Sub-line: "For your car • in 30 minutes" */
.v6-sub {
  margin: 8px 0 0;
  font-size: clamp(14px, min(1.15vw, 2svh), 16px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.v6-sub i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
  display: inline-block;
}
.v6-c-driver .v6-sub   { color: rgba(255, 255, 255, .9); }
.v6-c-driver .v6-sub b { color: #fff; }

/* Description paragraph */
.v6-desc {
  margin: clamp(8px, 1.4svh, 12px) 0 0;
  font-size: clamp(13px, min(1.05vw, 1.9svh), 15px);
  line-height: 1.45;
}
.v6-c-driver  .v6-desc { color: rgba(255, 255, 255, .86); max-width: 44ch; }
.v6-c-reserve .v6-desc { color: rgba(255, 255, 255, .74); }
.v6-c-coach   .v6-desc { color: #5D5440; }

/* Trip-type badges + search bar container */
.v6-drv-book {
  margin-top: auto;
  padding-top: 90px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
}

/* Trip-type pill buttons */
.v6-trips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.v6-trips::-webkit-scrollbar { display: none; }

.v6-trips button {
  flex: none;
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s;
  font-family: inherit;
}
.v6-trips button:hover                { background: rgba(255, 255, 255, .3); }
.v6-trips button[aria-pressed="true"] { background: #fff; color: #23905B; }

/* Pickup location search bar */
.v6-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 16px;
  padding: 5px;
  box-shadow: 0 20px 40px -16px rgba(0, 50, 25, .5);
}

.v6-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 12px;
  min-width: 0;
}
.v6-in svg { width: 20px; height: 20px; color: #36AD72; flex: none; }

.v6-in input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #181818;
  padding: 11px 0;
  font-family: inherit;
  cursor: pointer;
}
.v6-in input::placeholder { color: #8E9691; }

/* Book Now button */
.v6-book-now {
  border: 0;
  background: #181818;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: inherit;
  transition: background .2s, transform .15s;
}
.v6-book-now:hover        { background: #000; }
.v6-book-now:active       { transform: scale(.98); }
.v6-book-now svg          { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.v6-book-now:hover svg    { transform: translateX(3px); }


/* ---- USP strips (bottom of each card) ---- */

.v6-usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.v6-usps li   { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.v6-usps svg  { width: 16px; height: 16px; flex: none; }

/* Driver card USP strip */
.v6-c-driver .v6-usps {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}

/* Side-card USP strip (bleeds to card edges) */
.v6-c-side .v6-usps {
  margin: 0 calc(-1 * clamp(16px, 1.6vw, 24px));
  padding: 10px clamp(16px, 1.6vw, 24px) 12px;
  font-size: clamp(11px, 0.9vw, 12.5px);
  gap: 4px clamp(8px, 0.9vw, 14px);
  margin-top: auto;
}
.v6-c-side .v6-usps svg { width: clamp(13px, 1.1vw, 15px); height: clamp(13px, 1.1vw, 15px); }

.v6-c-reserve .v6-usps { background: rgba(0,0,0,.28); border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.92); }
.v6-c-reserve .v6-usps svg { color: #4BDB93; }

.v6-c-coach .v6-usps { background: rgba(255,255,255,.62); border-top: 1px solid #F0E2B6; color: #3F3828; }
.v6-c-coach .v6-usps svg { color: #23905B; }


/* ---- Reserve + Coach side cards ---- */

.v6-c-side {
  padding: clamp(16px, 2.8svh, 26px) clamp(16px, 1.6vw, 24px) 0;
}
.v6-c-side h2 { font-size: clamp(18px, min(2.2vw, 4.4svh), 32px); margin-top: 6px; }

.v6-c-reserve {
  background: radial-gradient(90% 55% at 60% 88%, #11563A 0%, #06301F 45%, #002416 75%);
  color: #fff;
}

.v6-c-coach {
  background: radial-gradient(120% 80% at 50% 100%, #FFE9A8 0%, #FFF3CF 62%);
  color: #181818;
}

/* Brand logo (DriveU Reserve / DriveU Coach) */
.v6-brand { margin-bottom: 10px; display: flex; justify-content: flex-start; }
.v6-brand img { max-width: 110px !important; height: auto !important; width: auto; }

/* Short sub-line: "Car + chauffeur" / "Lessons for every level" — mobile only */
.v6-m-sub { display: none; margin: 6px 0 0; font-size: 13px; font-weight: 600; opacity: .6; }
.v6-c-reserve .v6-m-sub { color: #fff; }
.v6-c-coach   .v6-m-sub { color: #3F3828; }

/* "Reserve ↗" / "Explore ↗" links */
.v6-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: #4BDB93;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s;
}
.v6-go:hover            { border-color: currentColor; }
.v6-go svg              { width: 14px; height: 14px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.v6-card:hover .v6-go svg { transform: translate(2px, -2px); }
.v6-go-dark             { color: #23905B; }

/* Stretch overlay makes the whole card clickable via the link's ::after */
.v6-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }


/* ---- Corner badges ---- */

.v6-corner {
  position: absolute;
  top: clamp(14px, 2.2svh, 22px);
  right: clamp(14px, 1.4vw, 20px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.v6-corner svg { width: 13px; height: 13px; }

/* Reserve: "₹200 off" (electric green) */
.v6-c-offer {
  background: #4BDB93;
  color: #002416;
  box-shadow: 0 0 0 4px rgba(75, 219, 147, .14);
}

/* Coach: "NEW" badge with pulsing dot */
.v6-c-new {
  background: #181818;
  color: #fff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .07em;
}
.v6-c-new i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F0A500;
  animation: v6-ping 2s infinite;
  display: inline-block;
}

@keyframes v6-ping {
  0%   { box-shadow: 0 0 0 0   rgba(240, 165, 0, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(240, 165, 0, 0); }
  100% { box-shadow: 0 0 0 0   rgba(240, 165, 0, 0); }
}


/* ---- Car image stage (Reserve + Coach) ---- */

/* Fills the card behind all content */
.v6-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Radial glow behind the car */
.v6-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(44px);
  opacity: .7;
}
.v6-c-reserve .v6-glow { background: radial-gradient(circle, rgba(75,219,147,.55) 0%, rgba(0,36,22,0) 70%); }
.v6-c-coach   .v6-glow { background: radial-gradient(circle, rgba(240,165,0,.45) 0%, rgba(255,243,207,0) 70%); }

/* Car image — centred, anchored to bottom */
.v6-car {
  position: absolute;
  bottom: 44px;
  left: 50%;
  width: 88%;
  max-width: none !important;
  height: auto !important;
  max-height: 60%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
/* Subtle slide on hover */
.v6-card:hover .v6-car { transform: translateX(calc(-50% - 6px)); }


/* ---- Eyebrow label (unused after logo switch, kept for fallback) ---- */

.v6-eyebrow       { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4BDB93; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.v6-eyebrow-coach { color: #8A5A00; }


/* ---- Screen-reader only helper ---- */

.v6-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ================================================================
   Responsive breakpoints
   ================================================================ */

/* Tablet portrait (769–1024 px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .v6-hero { padding: 60px 100px 0; }
}

/* Desktop (1025 px+) */
@media (min-width: 1025px) {
  .v6-hero { padding: 40px 100px; }
}

/* Tablet — 2-column grid: Driver full-width, Reserve + Coach side by side */
@media (max-width: 1180px) and (min-width: 769px) {
  .v6-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .v6-c-driver { grid-column: 1 / -1; }

}

/* Tablet landscape — restore 3-column layout */
@media (min-width: 1025px) and (max-width: 1180px) and (orientation: landscape) {
  .v6-cards {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .v6-c-driver { grid-column: auto; }
}

/* Mobile (≤ 768 px) */
@media (max-width: 768px) {
  .v6-h1    { font-size: clamp(22px, 6.5vw, 34px); letter-spacing: -0.03em; margin-bottom: 6px; }
  .v6-lede  { font-size: 12px; margin-bottom: 10px; }

  /* 2-column grid: Driver full-width on top, Reserve + Coach below */
  .v6-cards       { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
  .v6-side-row    { display: contents; }
  .v6-c-driver    { grid-column: 1 / -1; min-height: 340px; }
  .v6-c-side      { min-height: 260px; padding: 12px 10px 0; }

  /* Driver card text */
  .v6-c-driver h2          { font-size: 22px; }
  .v6-c-driver .v6-sub     { font-size: 12px; }
  .v6-c-driver .v6-desc    { font-size: 12px; line-height: 1.4; }
  .v6-c-driver .v6-usps    { font-size: 12px; gap: 4px 12px; }

  /* Side cards — hide long description, show short m-sub instead */
  .v6-c-side .v6-desc { display: none; }
  .v6-m-sub { display: block; font-size: 11px; margin-top: 3px; }
  .v6-c-side h2 { font-size: 15px; margin-top: 4px; }
  .v6-go    { font-size: 13px; }

  /* Car image */
  .v6-car { max-height: 52%; bottom: 34px; }

  /* Side card USP strip */
  .v6-c-side .v6-usps     { font-size: 10px; gap: 2px 6px; padding: 7px 10px 9px; }
  .v6-c-side .v6-usps svg { width: 11px; height: 11px; }

  /* Hide second USP on mobile (desktop-only items) */
  .v6-usps .v6-usp-desktop { display: none !important; }

  /* Brand logo */
  .v6-brand img { max-width: 50px !important; }

  /* Corner badge */
  .v6-corner { top: 10px; right: 8px; padding: 3px 8px; font-size: 10px; }

  .v6-book-now             { padding: 10px 14px; font-size: 13px; }
  .v6-bar          { border-radius: 12px; padding: 3px; }
  .v6-in input     { font-size: 13px; padding: 9px 0; }
}

/* Small phones (≤ 400 px) */
@media (max-width: 400px) {
  .v6-cards     { gap: 8px; }
  .v6-c-driver  { min-height: 320px; }
  .v6-c-side    { min-height: 240px; }
  .v6-c-side h2 { font-size: 14px; }
  .v6-trips button { padding: 6px 10px; font-size: 12px; }
  .v6-book-now     { padding: 10px 12px; font-size: 13px; }
}
