/* KonkLift Landing Page — Merged Stitch + Custom Styles */

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F7F9FC;
  color: #111827;
  overflow-x: hidden;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #00B4D8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0096B4; }

/* ===================== NAVBAR ===================== */
#navbar.scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ===================== HERO RADIAL PATTERN ===================== */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 55%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===================== FOCUS STATES ===================== */
input:focus,
select:focus {
  outline: none;
  border-color: #00B4D8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
}

button:focus-visible {
  outline: 2px solid #00B4D8;
  outline-offset: 2px;
}

/* ===================== RIDE CARDS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ride-card {
  animation: fadeInUp 0.4s ease-out both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  /* Level-1 shadow from Stitch DESIGN.md */
  box-shadow: 0 2px 8px -2px rgba(15,23,42,0.05), 0 1px 4px -1px rgba(15,23,42,0.03);
}

.ride-card:hover {
  transform: translateY(-3px);
  /* Level-2 hover shadow from Stitch DESIGN.md */
  box-shadow: 0 8px 24px -4px rgba(0,119,182,0.08), 0 4px 12px -2px rgba(15,23,42,0.04);
  border-color: #00B4D8 !important;
}

/* ===================== ROUTE TIMELINE DOTS ===================== */
.route-dot-origin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #00B4D8;
  box-shadow: 0 0 0 4px rgba(0,180,216,0.20);
  flex-shrink: 0;
  margin-top: 4px;
}

.route-dot-dest {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0E7490;
  box-shadow: 0 0 0 4px rgba(14,116,144,0.20);
  flex-shrink: 0;
  margin-top: 4px;
}

.route-track {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    #CBD5E1 0px,
    #CBD5E1 6px,
    transparent 6px,
    transparent 12px
  );
}

/* ===================== KYC BADGE ===================== */
.kyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ECFDF5;
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
}

/* ===================== SEAT URGENCY PILL ===================== */
.seats-low {
  background: #FEF3C7;
  color: #D97706;
}

.seats-ok {
  background: #F1F5F9;
  color: #475569;
}

/* ===================== SPINNER ===================== */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ===================== BUTTON RIPPLE ===================== */
button {
  position: relative;
  overflow: hidden;
}
button::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
button:active::after {
  width: 280px; height: 280px;
  opacity: 1;
}

/* ===================== SWAP BUTTON ===================== */
#swap-btn {
  transition: transform 0.2s ease;
}
#swap-btn:active {
  transform: rotate(180deg);
}

/* ===================== GRADIENT TEXT UTILITY ===================== */
.gradient-text {
  background: linear-gradient(135deg, #00B4D8 0%, #0E7490 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 640px) {
  #hero h1 { font-size: 2.25rem; }
  #hero p  { font-size: 1.1rem; }
}

/* ===================== PRINT ===================== */
@media print {
  nav, footer, #search-btn { display: none; }
}
