/* ===== Base ===== */
:root {
  --yellow: #f2bf4f;
  --yellow-hover: #e6ad2e;
  --dark: #222222;
  --text-light: #eeeeee;
  --header-h: 92px;
  --container: 1320px;
  --hero-h: clamp(520px, 42vw, 780px);
  --wm-w: min(54vw, 820px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: "DM Sans", sans-serif;
  background: #ffffff;
  color: var(--dark);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ===== Button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--yellow);
  color: #ffffff;
  padding: 15px 20px;
}

.btn--primary:hover {
  background: var(--yellow-hover);
}

.btn--primary:hover .btn__icon {
  transform: translateX(3px);
}

.btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

/* ===== Header ===== */
.header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  width: 64px;
  height: auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  height: var(--hero-h);
  background: #000 url("assets/bhhero.png") center / cover no-repeat;
  display: flex;
  align-items: center;
}

/* Faded logo mark on the right */
.hero__watermark {
  position: absolute;
  right: 6%;
  top: calc(var(--hero-h) * 0.12);
  width: var(--wm-w);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Road image anchored bottom-left, fills hero height */
.hero__road {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  max-width: 62%;
  z-index: 2;
  pointer-events: none;
}

.hero__road img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left bottom;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

/* Headline */
.hero__title {
  color: var(--text-light);
  text-align: center;
  font-weight: 400;
  line-height: 1.15;
  width: max-content;
  max-width: 100%;
}

.hero__title-light {
  display: block;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  margin-bottom: 8px;
}

.hero__title-main {
  display: block;
}

.hero__title-main strong {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
}

.hero__title-small {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  white-space: nowrap;
}

.hero__title-small em {
  font-style: normal;
  color: var(--yellow);
}

/* ===== Section title ===== */
.section-title {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  color: #000;
}

.section-title strong {
  font-weight: 700;
}

.btn--lg {
  padding: 16px 46px;
  font-size: 17px;
  gap: 0.3em;
}

.btn--lg strong {
  font-weight: 700;
}

/* ===== About ===== */
.about {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: clamp(56px, 6vw, 88px) 0 clamp(48px, 6vw, 88px);
}

/* Continuation of the hero logo mark (same right offset & width,
   shifted up by the hero height so both copies line up) */
.about__watermark {
  position: absolute;
  right: 6%;
  top: calc(var(--hero-h) * -0.88);
  width: var(--wm-w);
  filter: brightness(0.94);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.about__content .section-title {
  margin-bottom: 18px;
}

.about__text {
  font-size: 17px;
  line-height: 1.4;
  color: #000;
  margin-bottom: 42px;
}

.about__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 28px;
}

/* ===== Section title variants ===== */
.section-title--center {
  text-align: center;
}

.section-title--light {
  color: #ffffff;
}

/* ===== Core Features ===== */
.features {
  padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 7vw, 100px);
  background: #ffffff;
}

.features .section-title {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.features__grid {
  --gap: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 216px;
  padding: 28px 30px;
  border-radius: 28px;
  background: #ffffff;
  border: 1.5px solid #ececec;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #000;
}

/* Desktop widths: two rows of three, matching the design proportions */
.feature-card--w1 { width: calc((100% - 2 * var(--gap)) * 0.308); }
.feature-card--w2 { width: calc((100% - 2 * var(--gap)) * 0.436); }
.feature-card--w3 { width: calc((100% - 2 * var(--gap)) * 0.256); }
.feature-card--w4 { width: calc((100% - 2 * var(--gap)) * 0.259); }
.feature-card--w5 { width: calc((100% - 2 * var(--gap)) * 0.440); }
.feature-card--w6 { width: calc((100% - 2 * var(--gap)) * 0.301); }

.feature-card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 320px;
}

/* Yellow – Verified Drivers */
.feature-card--yellow {
  background: #e3b54b;
  border-color: #e3b54b;
  box-shadow: none;
}

.feature-card--yellow .feature-card__body {
  position: relative;
  z-index: 1;
  max-width: 64%;
}

.feature-card--yellow .feature-card__text {
  max-width: none;
}

.feature-card__driver {
  position: absolute;
  right: 22px;
  bottom: -6px;
  height: 92%;
  width: auto;
  max-width: none;
}

/* Photo cards */
.feature-card--ratings,
.feature-card--payments {
  color: #ffffff;
  border: none;
  box-shadow: none;
  background-color: #13313d;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.feature-card--ratings {
  justify-content: flex-start;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  padding-top: 44px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28)),
    url("assets/c2160fb6ae2523aa8eab88c7b3244fe52314d48b.png");
}

.feature-card--payments {
  background-color: #1d1d1d;
  background-image: url("assets/Rectangle%201798.png");
  background-size: 100% 100%;
}

/* Grey – Transparent Pricing */
.feature-card--pricing {
  background: #f2f2f2;
  border-color: var(--yellow);
  box-shadow: none;
}

/* ===== How it Works ===== */
.how {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 100px) 0 clamp(64px, 7vw, 100px);
  background: linear-gradient(170deg, #f5c552 0%, #deb04a 45%, #b48c37 100%);
}

.how .section-title {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.how__qmark {
  position: absolute;
  font-size: clamp(120px, 14vw, 220px);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  text-shadow: 6px 8px 0 rgba(120, 85, 20, 0.08);
  pointer-events: none;
  user-select: none;
}

.how__qmark--1 { left: 4%;  top: 6%;  transform: rotate(-14deg); }
.how__qmark--2 { right: 7%; top: 2%;  transform: rotate(18deg); }
.how__qmark--3 { left: -1%; bottom: 4%; transform: rotate(-8deg); }
.how__qmark--4 { right: 1%; bottom: 0; transform: rotate(12deg); }

.how__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.how-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  min-height: 428px;
  padding: 0 32px 0 40px;
  border-radius: 32px;
  background: #ffffff;
}

.how-card__phone {
  position: relative;
  flex: 0 0 clamp(170px, 18vw, 232px);
  align-self: stretch;
}

/* Phone sits near the top and is cut off by the card's bottom edge */
.how-card__phone img {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
}

.how-card__content {
  flex: 1;
  align-self: center;
  padding: 40px 0;
  color: #000;
}

.how-card__title {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  margin-bottom: 20px;
}

.how-card__title strong {
  font-weight: 700;
}

.how-card__list {
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.35;
}

.how-card__list li + li {
  margin-top: 14px;
}

.how-card__list li::marker {
  color: #000;
}

/* ===== Footer ===== */
.footer {
  background: #ffffff;
  padding: 48px 0 28px;
  text-align: center;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  width: 76px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 36px 0 32px;
}

.footer__nav a {
  color: #000;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--yellow-hover);
}

.footer__bottom {
  border-top: 1px solid #d4d4d4;
  padding-top: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: #6f6f6f;
}

/* Thin divider above the footer (used on inner pages) */
.footer--divider {
  border-top: 1px solid #e6e6e6;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}

/* ===== Legal pages (Terms / Privacy) ===== */
.legal {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
}

/* Faint yellow wave lines behind the top of the page */
.legal__bg {
  position: absolute;
  left: 0;
  top: clamp(110px, 11vw, 170px);
  width: 100%;
  min-width: 720px;
  max-width: none;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.legal__section {
  position: relative;
  z-index: 1;
}

.legal__section + .legal__section {
  margin-top: clamp(56px, 7vw, 100px);
}

.legal__inner {
  max-width: 1180px;
}

.legal__title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: clamp(36px, 5vw, 72px);
}

.legal__title span {
  color: var(--yellow);
}

.legal__intro,
.legal__list p {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  color: #000;
}

.legal__intro {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.legal__date {
  font-weight: 700;
}

.legal__list {
  list-style: none;
  counter-reset: legal;
}

.legal__list li {
  counter-increment: legal;
}

.legal__list li + li {
  margin-top: clamp(20px, 2.2vw, 30px);
}

.legal__heading {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 1.5;
  color: #000;
  padding-left: 0.4em;
}

.legal__heading::before {
  content: counter(legal) ". ";
}

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

/* Small desktop / laptop */
@media (max-width: 1199px) {
  .about__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .about__text {
    font-size: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  .how-card {
    padding: 0 24px 0 28px;
    min-height: 380px;
  }

  .how-card__list {
    font-size: 15px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  :root {
    --header-h: 80px;
  }

  .header__logo img {
    width: 54px;
  }

  .hero {
    height: auto;
    align-items: flex-start;
    padding-top: 72px;
    /* leave room for the road at the bottom */
    padding-bottom: calc(min(85vw, 640px) * 0.727);
  }

  .hero__inner {
    justify-content: center;
  }

  .hero__road {
    height: auto;
    max-width: none;
    width: min(85vw, 640px);
  }

  .hero__road img {
    width: 100%;
    height: auto;
  }

  .hero__title {
    margin-bottom: 40px;
  }

  .hero__watermark {
    width: min(80vw, 560px);
    right: -10%;
    top: 4%;
  }

  .about__watermark {
    display: none;
  }

  .about__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about__content {
    max-width: 680px;
  }

  .about__media {
    width: 100%;
    max-width: 640px;
  }

  .feature-card--w1,
  .feature-card--w2,
  .feature-card--w3,
  .feature-card--w4,
  .feature-card--w5,
  .feature-card--w6 {
    width: calc((100% - var(--gap)) / 2);
  }

  /* pair the small cards, give the wide ones a full row */
  .feature-card--w1 { order: 1; }
  .feature-card--w3 { order: 2; }
  .feature-card--w2 { order: 3; width: 100%; }
  .feature-card--w4 { order: 4; }
  .feature-card--w6 { order: 5; }
  .feature-card--w5 { order: 6; width: 100%; }

  .feature-card--payments {
    background-size: cover;
    border: 1.5px solid var(--yellow);
  }

  .how__grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }
}

/* Mobile */
@media (max-width: 575px) {
  :root {
    --header-h: 68px;
  }

  .container {
    padding-inline: 16px;
  }

  .header__logo img {
    width: 44px;
  }

  .btn {
    font-size: 14px;
    gap: 8px;
    border-radius: 10px;
  }

  .btn--primary {
    padding: 11px 14px;
  }

  .btn__icon {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: calc(96vw * 0.727);
  }

  .hero__road {
    width: 96vw;
  }

  .hero__title-main strong {
    display: block;
  }

  .about__text {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .btn--lg {
    padding: 14px 36px;
    font-size: 16px;
    gap: 0.3em;
  }

  .about__media img {
    border-radius: 20px;
  }

  .feature-card--w1,
  .feature-card--w2,
  .feature-card--w3,
  .feature-card--w4,
  .feature-card--w5,
  .feature-card--w6 {
    width: 100%;
  }

  .feature-card {
    min-height: 180px;
    border-radius: 22px;
  }

  .feature-card--ratings {
    padding-top: 32px;
  }

  .feature-card--yellow .feature-card__body {
    max-width: 56%;
  }

  .feature-card__driver {
    height: 58%;
    right: 14px;
    bottom: -4px;
  }

  .how-card {
    min-height: 320px;
    gap: 18px;
    padding: 0 18px 0 18px;
    border-radius: 24px;
  }

  .how-card__phone {
    flex-basis: 132px;
  }

  .how-card__phone img {
    top: 28px;
  }

  .how-card__content {
    padding: 28px 0;
  }

  .how-card__title {
    margin-bottom: 14px;
  }

  .how-card__list {
    font-size: 14px;
    padding-left: 18px;
  }

  .how-card__list li + li {
    margin-top: 10px;
  }

  .footer__nav {
    gap: 10px 24px;
  }

  .footer__nav a {
    font-size: 14px;
  }

  .hero__watermark {
    width: 90vw;
    right: -22%;
    opacity: 0.32;
  }
}
