/* Everything below the hero: stats, features, process, driver app, CTA banner, footer. */

/* ---------------------------------------------------------------- stats */

.stats {
  position: relative;
  z-index: 2;
  /* Half the card rides over the hero band, as in the design. */
  margin-top: -90px;
}

.stats__card {
  display: grid;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-2);
  text-align: left;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.stat b {
  display: block;
  font-size: var(--fs-stat);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

/* Each tile owns one hue, exactly as the design does. */
.stat--green .stat__icon {
  background: var(--brand-50);
  color: var(--brand-700);
}

.stat--green b {
  color: var(--brand-500);
}

.stat--blue .stat__icon {
  background: var(--blue-50);
  color: var(--blue-700);
}

.stat--blue b {
  color: var(--blue-500);
}

.stat--orange .stat__icon {
  background: var(--accent-50);
  color: var(--accent-700);
}

.stat--orange b {
  color: var(--accent-600);
}

.stat--violet .stat__icon {
  background: var(--violet-50);
  color: var(--violet-700);
}

.stat--violet b {
  color: var(--violet-500);
}

/* ---------------------------------------------------------------- generic grids */

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: var(--space-5);
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------------------------------------------------------------- process */

.steps {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  counter-increment: step;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--ink-500);
  font-size: var(--fs-sm);
}

/* Chevron joining consecutive steps — decorative, so it disappears when the grid stacks. */
.step__arrow {
  position: absolute;
  z-index: 1;
  top: 46px;
  right: -22px;
  width: 20px;
  height: 20px;
  color: #c3d0e0;
}

.step--green .step__num {
  background: var(--brand-50);
  color: var(--brand-700);
}

.step--blue .step__num {
  background: var(--blue-50);
  color: var(--blue-700);
}

.step--orange .step__num {
  background: var(--accent-50);
  color: var(--accent-700);
}

.step--violet .step__num {
  background: var(--violet-50);
  color: var(--violet-700);
}

/* ---------------------------------------------------------------- driver app */

.app__grid {
  display: grid;
  align-items: center;
  gap: var(--space-16);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.points {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.points li {
  display: grid;
  gap: var(--space-3);
  color: var(--ink-700);
  font-size: var(--fs-sm);
  grid-template-columns: 22px minmax(0, 1fr);
}

.points .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--brand-600);
}

.section--dark .points li {
  color: var(--on-dark-muted);
}

.section--dark .points .icon {
  color: var(--brand-400);
}

.app__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}

.app__phones .phone {
  width: 46%;
  max-width: 232px;
}

.app__phones .phone--raised {
  margin-bottom: var(--space-12);
}

/* ---------------------------------------------------------------- CTA banner */

/* An inset rounded card inside the container, over a green gradient that fades to reveal the
   photograph on its right — not a full-bleed band. */
.cta-wrap {
  padding-block: 8px 88px;
}

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 46px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #0a4a35 0%, #0d7350 52%, #15885e 100%);
}

.cta__bg {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 58%;
  height: 100%;
  object-fit: cover;
  /* The trucks sit left-of-centre in the source, so bias the crop to keep them in frame. */
  object-position: 22% center;
  opacity: 0.9;
}

.cta::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 74, 53, 0.99) 24%, rgba(10, 74, 53, 0.72) 48%, rgba(13, 115, 80, 0.28) 100%);
  content: '';
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.cta h2 {
  color: #fff;
}

.cta__sub {
  max-width: 52ch;
  margin-top: var(--space-3);
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--fs-sm);
}

.cta__contact {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-sm);
}

.cta__contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: var(--space-16) var(--space-8);
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
}

.site-footer h3 {
  margin-bottom: var(--space-4);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer__tagline {
  max-width: 30ch;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-xs);
  letter-spacing: 0.01em;
}

/* Legal identity — a Vietnamese commercial site is required to publish these. */
.site-footer__legal {
  margin-top: var(--space-5);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  line-height: 1.75;
}

.site-footer__legal b {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.site-footer__links {
  display: grid;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.social a:hover {
  background: var(--brand-600);
  text-decoration: none;
}

.social .icon {
  width: 19px;
  height: 19px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--on-dark-line);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
}
