:root {
  --green-deep: #063816;
  --green: #0b7a2b;
  --green-bright: #1fa64a;
  --lime: #9ae66e;
  --mist: #e8ffd6;
  --ink: #122018;
  --sky-top: #7ec8e8;
  --sky-mid: #c5e8f5;
  --sky-low: #eef8e8;
  --road: #3a4248;
  --road-line: #f4f1c8;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--sky-low) 62%, #dfe9d4 100%);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sun {
  position: absolute;
  top: 8vh;
  right: 12vw;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7c2, #ffc857 55%, #f0a202 100%);
  box-shadow: 0 0 60px rgba(255, 200, 80, 0.55);
  animation: sun-glow 4s ease-in-out infinite alternate;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  filter: blur(0.2px);
  animation: drift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-a {
  width: 120px;
  height: 36px;
  top: 14vh;
  left: -10%;
  animation-duration: 48s;
}
.cloud-a::before {
  width: 48px;
  height: 48px;
  top: -24px;
  left: 18px;
}
.cloud-a::after {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 48px;
}

.cloud-b {
  width: 160px;
  height: 42px;
  top: 22vh;
  left: -20%;
  opacity: 0.7;
  animation-duration: 62s;
  animation-delay: -20s;
}
.cloud-b::before {
  width: 56px;
  height: 56px;
  top: -28px;
  left: 28px;
}
.cloud-b::after {
  width: 72px;
  height: 72px;
  top: -36px;
  left: 70px;
}

.cloud-c {
  width: 100px;
  height: 30px;
  top: 10vh;
  left: -15%;
  opacity: 0.55;
  animation-duration: 55s;
  animation-delay: -35s;
}
.cloud-c::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 16px;
}
.cloud-c::after {
  width: 50px;
  height: 50px;
  top: -26px;
  left: 42px;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(11, 122, 43, 0.2);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 122, 43, 0.2);
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, border-color 0.2s;
}

.nav-link:hover {
  background: rgba(232, 255, 214, 0.9);
  border-color: var(--green);
}

.admin-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.admin-link:hover {
  opacity: 1;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.hero-logo {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow:
    0 12px 40px rgba(11, 122, 43, 0.22),
    0 0 0 6px rgba(232, 255, 214, 0.65);
  animation: rise 0.8s ease-out both, logo-float 3.2s ease-in-out 0.8s infinite alternate;
}

.headline {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  animation: rise 0.9s 0.08s ease-out both;
}

.subhead {
  margin: 1rem 0 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  color: rgba(18, 32, 24, 0.72);
  animation: rise 1s 0.16s ease-out both;
}

.stage {
  position: relative;
  width: min(920px, 100%);
  height: clamp(200px, 32vw, 280px);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  animation: rise 1.1s 0.22s ease-out both;
}

.horizon {
  position: absolute;
  inset: 0 0 42% 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(110, 150, 90, 0.25)),
    repeating-linear-gradient(
      90deg,
      transparent 0 40px,
      rgba(11, 122, 43, 0.06) 40px 80px
    );
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, #505860 0%, var(--road) 40%, #2c3238 100%);
  perspective: 400px;
  overflow: hidden;
}

.road::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.28));
}

.road-edge {
  position: absolute;
  top: 10%;
  width: 6px;
  height: 120%;
  background: #dfe6cf;
  opacity: 0.85;
}
.road-edge-l {
  left: 8%;
  transform: skewX(-12deg);
}
.road-edge-r {
  right: 8%;
  transform: skewX(12deg);
}

.lane {
  position: absolute;
  top: 46%;
  left: -20%;
  width: 140%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--road-line) 0 36px,
    transparent 36px 72px
  );
  animation: road-scroll 1.1s linear infinite;
  opacity: 0.9;
}

.lane-2 {
  top: 62%;
  animation-duration: 0.95s;
  opacity: 0.55;
  height: 4px;
}

.lane-3 {
  top: 28%;
  animation-duration: 1.35s;
  opacity: 0.35;
  height: 3px;
}

.rickshaw-wrap {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 220px;
  animation: drive 6.5s linear infinite;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
  will-change: transform;
}

.rickshaw {
  width: 100%;
  height: auto;
  display: block;
  animation: bob 0.55s ease-in-out infinite alternate;
  transform-origin: center bottom;
}

.spokes {
  transform-origin: 0 0;
  animation: spin 0.55s linear infinite;
}

.wheel-rear .spokes,
.wheel-front .spokes {
  transform-box: fill-box;
  transform-origin: center;
}

.headlight {
  animation: blink 2.4s ease-in-out infinite;
}

.dust {
  position: absolute;
  left: 12%;
  bottom: 10%;
  width: 48px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(4px);
  animation: dust 0.55s ease-out infinite;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--green);
}

.cta-row {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  animation: rise 1.05s 0.2s ease-out both;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11, 122, 43, 0.28);
  transition: transform 0.2s, background 0.2s;
}
.cta:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
}

.cta[hidden] {
  display: none !important;
}

.book-type-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: min(460px, 100%);
  animation: book-type-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.book-type-choice[hidden] {
  display: none !important;
}

.book-type-prompt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.book-type-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

.book-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 8.5rem;
  padding: 1.1rem 0.85rem;
  border-radius: 1.25rem;
  text-decoration: none !important;
  color: inherit;
  border: 2px solid transparent;
  box-shadow: 0 14px 32px rgba(6, 56, 22, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  animation: book-type-tile 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.book-type-btn:nth-child(2) {
  animation-delay: 0.08s;
}

.book-type-btn:hover,
.book-type-btn:focus-visible {
  transform: translateY(-4px) scale(1.02);
  outline: none;
}

.book-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  transition: transform 0.22s ease;
}

.book-type-btn:hover .book-type-icon {
  transform: scale(1.08);
}

.book-type-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.book-type-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.book-type-copy small {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.82;
  max-width: 14ch;
}

.book-type-passenger {
  background: linear-gradient(165deg, #1fa64a 0%, #0b7a2b 72%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.book-type-passenger .book-type-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.book-type-passenger:hover,
.book-type-passenger:focus-visible {
  box-shadow: 0 18px 36px rgba(11, 122, 43, 0.38);
  background: linear-gradient(165deg, #24b554 0%, #096826 72%);
}

.book-type-parcel {
  background: linear-gradient(165deg, #ffffff 0%, #f2f8f1 100%);
  color: var(--green-deep);
  border-color: rgba(11, 122, 43, 0.28);
}

.book-type-parcel .book-type-icon {
  background: rgba(11, 122, 43, 0.1);
  color: var(--green);
}

.book-type-parcel:hover,
.book-type-parcel:focus-visible {
  border-color: var(--green);
  box-shadow: 0 18px 36px rgba(18, 32, 24, 0.14);
  background: #fff;
}

@keyframes book-type-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes book-type-tile {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(18, 32, 24, 0.65);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(31, 166, 74, 0.55);
  animation: pulse 1.6s ease-out infinite;
}

.book {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.book h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.book p {
  margin: 0.75rem 0 0;
  color: rgba(18, 32, 24, 0.7);
  font-size: 1.05rem;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.85rem;
  color: rgba(18, 32, 24, 0.55);
}

.foot a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

/* Homepage promo banners (admin-managed) */
.promo-banners {
  position: relative;
  z-index: 1;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  animation: rise 0.9s 0.2s ease-out both;
}

.promo-banners-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.promo-track {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 16px 40px rgba(6, 56, 22, 0.12),
    0 0 0 1px rgba(11, 122, 43, 0.08);
  aspect-ratio: 16 / 7;
  min-height: 140px;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(8%) scale(0.98);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  pointer-events: none;
}

.promo-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 1;
}

.promo-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 56, 22, 0.72) 100%);
  text-align: left;
  color: #fff;
}

.promo-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.promo-sub {
  margin: 0.25rem 0 0;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 500;
  opacity: 0.9;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.promo-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(11, 122, 43, 0.28);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.promo-dot.is-active {
  width: 22px;
  background: var(--green);
}

@media (max-width: 640px) {
  .promo-track {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
  }

  .promo-caption {
    padding: 1rem 0.9rem 0.75rem;
  }
}

@keyframes drive {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(420%);
  }
}

@keyframes bob {
  from {
    transform: translateY(0) rotate(-0.6deg);
  }
  to {
    transform: translateY(-4px) rotate(0.6deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes road-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-72px);
  }
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(130vw);
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 166, 74, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(31, 166, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 166, 74, 0);
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 1;
  }
  90% {
    opacity: 0.35;
  }
}

@keyframes dust {
  from {
    opacity: 0.5;
    transform: translateX(0) scaleX(1);
  }
  to {
    opacity: 0;
    transform: translateX(-18px) scaleX(1.6);
  }
}

@keyframes sun-glow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes logo-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@media (max-width: 640px) {
  .top {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .top-nav {
    gap: 0.45rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding: 0.5rem 1rem 1.5rem;
  }

  .hero-logo {
    width: 96px;
    margin-bottom: 0.75rem;
    box-shadow:
      0 8px 28px rgba(11, 122, 43, 0.2),
      0 0 0 4px rgba(232, 255, 214, 0.65);
  }

  .headline {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    max-width: 14ch;
  }

  .subhead {
    margin-top: 0.75rem;
    font-size: 0.98rem;
    max-width: 28ch;
  }

  .cta-row {
    margin-top: 1.1rem;
    width: 100%;
  }

  .cta {
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 0.95rem 1.4rem;
  }

  .book-type-choice {
    width: 100%;
    max-width: 340px;
  }

  .book-type-actions {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .book-type-btn {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 4.6rem;
    padding: 0.85rem 1rem;
    gap: 0.85rem;
    text-align: left;
  }

  .book-type-copy {
    align-items: flex-start;
    text-align: left;
  }

  .book-type-copy small {
    max-width: none;
  }

  .rickshaw-wrap {
    width: 150px;
  }

  .stage {
    width: 100%;
    height: 168px;
    margin-top: 1.25rem;
    border-radius: 1rem 1rem 0 0;
  }

  .sun {
    width: 48px;
    height: 48px;
    top: 5vh;
    right: 6vw;
  }

  .cloud-a,
  .cloud-b,
  .cloud-c {
    transform: scale(0.7);
    transform-origin: left center;
  }

  .book {
    padding: 2rem 1rem 3rem;
  }

  .foot {
    padding: 1rem 1rem 1.5rem;
    font-size: 0.8rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
  }

  .hero-logo {
    width: 84px;
  }

  .stage {
    height: 148px;
  }

  .rickshaw-wrap {
    width: 130px;
  }
}

@supports (padding: max(0px)) {
  @media (max-width: 640px) {
    .top,
    .hero,
    .foot {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }

    .foot {
      padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .rickshaw-wrap,
  .rickshaw,
  .spokes,
  .lane,
  .cloud,
  .dust,
  .headlight,
  .dot,
  .sun {
    animation: none !important;
  }

  .rickshaw-wrap {
    left: 50%;
    transform: translateX(-50%);
  }
}
