/* Vanzy Homepage — Premium mobile-first redesign */

.page-home {
  --hero-overlay: linear-gradient(
    180deg,
    rgba(8, 20, 38, 0.72) 0%,
    rgba(8, 20, 38, 0.55) 45%,
    rgba(8, 20, 38, 0.88) 100%
  );
}

/* System font first paint — webfonts swap in without blocking hero readability */
.page-home .home-hero__title,
.page-home .home-hero__brand {
  font-family: var(--font-display, 'Outfit', system-ui, sans-serif);
}

.page-home .site-header {
  position: fixed;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.page-home .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(77, 163, 255, 0.15);
  box-shadow: 0 4px 24px rgba(8, 20, 38, 0.08);
}

.page-home .site-header:not(.scrolled) .logo-link,
.page-home .site-header:not(.scrolled) .nav-desktop a,
.page-home .site-header:not(.scrolled) .menu-toggle span {
  color: #fff;
}

.page-home .site-header:not(.scrolled) .nav-desktop a { color: rgba(255,255,255,0.85); }
.page-home .site-header:not(.scrolled) .nav-desktop a:hover,
.page-home .site-header:not(.scrolled) .nav-desktop a.active { color: #fff; background: rgba(255,255,255,0.12); }
.page-home .site-header:not(.scrolled) .menu-toggle { background: rgba(255,255,255,0.12); }
.page-home .site-header:not(.scrolled) .menu-toggle span { background: #fff; }
.page-home .site-header:not(.scrolled) .btn-secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
.page-home .site-header:not(.scrolled) .header-cta .btn-primary { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

/* ── Hero full-screen ── */
.home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, transparent 78%),
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 22%, rgba(0,0,0,0.16) 44%, rgba(0,0,0,0.48) 66%, rgba(8,20,38,0.88) 100%);
  z-index: 1;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  padding: 0;
  width: auto;
  margin: 0;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(77, 163, 255, 0.2);
  border: 1px solid rgba(142, 197, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.home-hero__title {
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
  max-width: 640px;
}

.home-hero__title span {
  color: var(--light-blue);
}

.home-hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin: 0 0 28px;
  line-height: 1.55;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.home-hero__actions .btn-primary {
  padding: 14px 28px;
  font-size: 1rem;
  min-height: 52px;
}

.home-hero__actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.home-hero__actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.home-hero__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Stats bar ── */
.home-stats {
  background: #fff;
  padding: 0;
  margin-top: -1px;
  position: relative;
  z-index: 3;
  box-shadow: 0 -8px 40px rgba(8, 20, 38, 0.12);
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: min(100%, var(--max-w));
  margin-inline: auto;
}

.home-stat {
  padding: 28px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
  border-right: 1px solid rgba(77, 163, 255, 0.1);
}

.home-stat:nth-child(2n) { border-right: none; }
.home-stat:nth-child(n+3) { border-bottom: none; }

.home-stat__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(77,163,255,0.12), rgba(26,86,219,0.08));
  border-radius: 14px;
  color: var(--seed-blue);
}

.home-stat__icon svg { width: 24px; height: 24px; }

.home-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.home-stat span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Services with real images ── */
.home-services {
  padding: 64px 0;
  background: linear-gradient(180deg, #fff 0%, #E8EEF8 100%);
}

.home-services__grid {
  display: grid;
  gap: 20px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-lg);
}

.service-card__img {
  position: absolute;
  inset: 0;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8,20,38,0.92) 100%);
}

.service-card__body {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #fff;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--electric-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.service-card__icon svg { width: 22px; height: 22px; color: #fff; }

.service-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--light-blue);
  font-weight: 700;
  font-size: 0.9rem;
}

.service-card__link:hover { color: #fff; }

/* ── Map section ── */
.home-map {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.home-map__panel {
  background: linear-gradient(135deg, var(--navy-top), var(--navy-bottom));
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.home-map__panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77,163,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.home-map__header {
  position: relative;
  margin-bottom: 24px;
}

.home-map__header .section-label { color: var(--light-blue); }
.home-map__header .section-title { color: #fff; margin-bottom: 8px; }
.home-map__header p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.95rem; }

.home-map__visual {
  position: relative;
  background: rgba(8, 20, 38, 0.6);
  border: 1px solid rgba(77, 163, 255, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.home-map__visual img,
.home-map__visual svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-map__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.route-pill {
  padding: 8px 14px;
  background: rgba(77,163,255,0.15);
  border: 1px solid rgba(77,163,255,0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Feature cards ── */
.home-features {
  padding: 64px 0;
  background: linear-gradient(180deg, #E8EEF8 0%, #DCE6F5 100%);
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Testimonials ── */
.home-testimonials {
  padding: 64px 0;
  background: var(--bg-top);
}

.testimonial-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  height: 100%;
}

.testimonial-card__stars {
  color: #FFB800;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-blue), var(--seed-blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.testimonial-card__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
}

.testimonial-card__author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial-card__tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: rgba(77,163,255,0.1);
  color: var(--seed-blue);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ── CTA ── */
.home-cta {
  padding: 64px 0 80px;
  background: #fff;
}

.home-cta__box {
  background: linear-gradient(135deg, var(--navy-top) 0%, #0E1E36 50%, var(--seed-blue) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-cta__box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/hero/ro-uk-corridor.jpg?v=26') center/cover;
  opacity: 0.08;
}

.home-cta__box > * { position: relative; }

.home-cta__box h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.home-cta__box p {
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
  max-width: 420px;
  margin-inline: auto;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Section headers ── */
.section-head {
  margin-bottom: 32px;
}

.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

/* ── Responsive ── */
@media (min-width: 640px) {
  .home-stats__grid { grid-template-columns: repeat(4, 1fr); }
  .home-stat { border-bottom: none !important; border-right: 1px solid rgba(77, 163, 255, 0.1); }
  .home-stat:last-child { border-right: none; }
  .home-services__grid { grid-template-columns: repeat(2, 1fr); }
  .home-features .card-grid { grid-template-columns: repeat(2, 1fr); }
  .home-testimonials .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .home-hero__content { padding-bottom: 64px; }
  .home-services__grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { min-height: 320px; }
  .home-map__panel { padding: 48px 40px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
  .home-map__header { margin-bottom: 0; }
  .home-features .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .home-testimonials .card-grid { grid-template-columns: repeat(3, 1fr); }
  .home-cta__box { padding: 64px 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__content > * {
    animation: fadeUp 0.7s ease backwards;
  }
  .home-hero__eyebrow { animation-delay: 0.1s; }
  .home-hero__title { animation-delay: 0.2s; }
  .home-hero__lead { animation-delay: 0.3s; }
  .home-hero__actions { animation-delay: 0.4s; }
  .home-hero__stores { animation-delay: 0.5s; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
