/* Pago Taxi — theme v2
   Light theme, red/gold gradient accents, rounded cards — matches provided template.
   Colors: red #d32f2f/#b71c1c, gold #d4af37/#b8941f, black #0b0b14, grays, white.
*/
* { margin:0; padding:0; box-sizing:border-box; }

:root{
  --red:#d32f2f;
  --red-dark:#b71c1c;
  --red-light:#ffebee;
  --gold:#d4af37;
  --gold-dark:#b8941f;
  --gold-light:#fdf8e8;
  --black:#0b0b14;
  --gray-50:#fafafc;
  --gray-100:#f4f4f7;
  --gray-200:#e8e8ef;
  --gray-300:#d0d0dd;
  --gray-400:#9a9aad;
  --gray-500:#6b6b80;
  --gray-600:#4b4b5e;
  --white:#ffffff;
}

html{scroll-behavior:smooth;}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background-color:var(--white);
  color:var(--black);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{ font-weight:700; letter-spacing:-0.03em; color:var(--black); margin:0 0 0.5em; }
h1{ font-size:4rem; line-height:1.05; font-weight:800; }
h2{ font-size:2.5rem; margin-bottom:2.5rem; position:relative; display:inline-block; }
h2::after{
  content:''; position:absolute; bottom:-10px; left:0; width:60px; height:4px;
  background:linear-gradient(90deg,var(--red),var(--gold)); border-radius:4px;
}
p{ color:var(--gray-600); font-size:1.05rem; }
.lead{ font-size:1.25rem; color:var(--gray-600); max-width:520px; line-height:1.7; }
a{ color:var(--red-dark); }
img{ max-width:100%; display:block; }

.container{ max-width:1200px; margin:0 auto; padding:0 24px; }
section{ padding:100px 0; }

.route-divider{ height:1px; background:linear-gradient(90deg,transparent,var(--gray-200),transparent); width:100%; }

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 36px; border-radius:60px; font-weight:600; font-size:1rem;
  text-decoration:none; cursor:pointer; border:none; letter-spacing:-0.01em;
  transition:all 0.3s cubic-bezier(0.25,0.46,0.45,0.94); position:relative; overflow:hidden;
  font-family:'Inter',sans-serif;
}
.btn-sm{ padding:10px 24px; font-size:0.9rem; }
.btn-primary{
  background:linear-gradient(135deg,var(--red) 0%,var(--red-dark) 100%);
  color:var(--white); box-shadow:0 8px 24px rgba(211,47,47,0.3);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(211,47,47,0.4); }
.btn-gold{
  background:linear-gradient(135deg,var(--gold) 0%,var(--gold-dark) 100%);
  color:var(--black); box-shadow:0 8px 24px rgba(212,175,55,0.3);
}
.btn-gold:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(212,175,55,0.4); }
.btn-outline{ background:transparent; color:var(--black); border:2px solid var(--gray-200); }
.btn-outline:hover{ border-color:var(--gold); background:var(--gold-light); transform:translateY(-2px); }

/* ===== HEADER / NAV ===== */
.site-header{
  padding:20px 0; border-bottom:1px solid var(--gray-100); position:sticky; top:0;
  background:rgba(255,255,255,0.95); backdrop-filter:blur(20px); z-index:1000;
}
.nav-row{ max-width:1200px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; }
.logo{ font-weight:800; font-size:1.7rem; letter-spacing:-0.04em; color:var(--black); text-decoration:none; display:flex; align-items:baseline; }
.logo .accent{ color:var(--red); }
.logo .gold-dot{ color:var(--gold); }
.logo em{ font-style:normal; font-size:0.9rem; color:var(--gray-500); margin-left:8px; letter-spacing:0.08em; }
.nav-links{ display:flex; gap:36px; align-items:center; font-weight:500; font-size:0.95rem; color:var(--gray-600); }
.nav-links a{ text-decoration:none; color:inherit; position:relative; }
.nav-links a::after{
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px;
  background:linear-gradient(90deg,var(--red),var(--gold)); transition:width 0.3s ease; border-radius:2px;
}
.nav-links a:hover{ color:var(--black); }
.nav-links a:hover::after{ width:100%; }

/* ===== HERO ===== */
.hero{
  padding:80px 0 100px;
  background:
    radial-gradient(circle at 20% 80%, rgba(212,175,55,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(211,47,47,0.05) 0%, transparent 50%),
    linear-gradient(180deg,#ffffff 0%,#fefefe 100%);
  position:relative; overflow:hidden; display:block;
}
.hero .hero-inner{ display:flex; align-items:center; gap:80px; flex-wrap:wrap; position:relative; z-index:1; }
.hero-content{ flex:1 1 440px; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,var(--red-light) 0%,var(--gold-light) 100%);
  padding:8px 18px; border-radius:60px; font-size:0.85rem; font-weight:600;
  color:var(--red-dark); margin-bottom:28px; border:1px solid rgba(212,175,55,0.3);
}
.hero-badge i{ color:var(--gold); }
.hero h1 .highlight{
  background:linear-gradient(135deg,var(--red) 0%,var(--gold) 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-ctas{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }
.hero-visual{ flex:1 1 440px; position:relative; }

.map-frame{
  background:var(--white); border-radius:32px; overflow:hidden; position:relative;
  box-shadow:0 40px 80px -20px rgba(0,0,0,0.15), 0 0 0 1px rgba(212,175,55,0.15);
  border:1px solid var(--gray-100); height:440px; transition:transform 0.4s ease, box-shadow 0.4s ease;
}
.map-frame:hover{ transform:translateY(-6px); box-shadow:0 50px 90px -20px rgba(0,0,0,0.2), 0 0 0 1px rgba(212,175,55,0.3); }
.map-badge{
  position:absolute; top:20px; left:20px; background:rgba(255,255,255,0.95); backdrop-filter:blur(10px);
  padding:12px 22px; border-radius:60px; font-size:0.85rem; font-weight:600; display:flex; align-items:center;
  gap:10px; box-shadow:0 8px 24px rgba(0,0,0,0.08); z-index:10; color:var(--black); border:1px solid rgba(212,175,55,0.2);
}
.pulse-dot{
  width:10px; height:10px; background-color:#22c55e; border-radius:50%; display:inline-block;
  animation:pulse 2s infinite; box-shadow:0 0 0 0 rgba(34,197,94,0.5);
}
@keyframes pulse{
  0%{ opacity:1; transform:scale(1); box-shadow:0 0 0 0 rgba(34,197,94,0.5); }
  50%{ opacity:0.7; transform:scale(1.1); box-shadow:0 0 0 8px rgba(34,197,94,0); }
  100%{ opacity:1; transform:scale(1); box-shadow:0 0 0 0 rgba(34,197,94,0); }
}
#kigali-map{ width:100%; height:100%; background:#f4f6fa; }

.driver-float{
  position:absolute; bottom:28px; right:28px; background:rgba(255,255,255,0.97); backdrop-filter:blur(12px);
  padding:16px 20px; border-radius:20px; display:flex; align-items:center; gap:14px;
  box-shadow:0 16px 40px rgba(0,0,0,0.1); border:1px solid rgba(212,175,55,0.25);
  animation:floaty 5s ease-in-out infinite; z-index:10;
}
@keyframes floaty{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-8px);} }
.driver-avatar{
  width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,var(--red) 0%,var(--gold) 100%);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1rem;
}
.driver-info{ display:flex; flex-direction:column; }
.driver-info .name{ font-weight:700; font-size:0.9rem; color:var(--black); }
.driver-info .status{ font-size:0.75rem; color:#22c55e; font-weight:600; display:flex; align-items:center; gap:4px; }

/* ===== STEPS ===== */
.steps{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:28px; }
.step{
  background:var(--white); padding:32px 28px; border-radius:24px; box-shadow:0 4px 20px rgba(0,0,0,0.03);
  border:1px solid var(--gray-100); transition:all 0.3s ease; position:relative; overflow:hidden;
}
.step::before{
  content:''; position:absolute; top:0; left:0; width:100%; height:4px;
  background:linear-gradient(90deg,var(--red),var(--gold)); opacity:0; transition:opacity 0.3s ease;
}
.step:hover::before{ opacity:1; }
.step:hover{ box-shadow:0 20px 40px -12px rgba(0,0,0,0.08); transform:translateY(-4px); }
.step .step-number{ font-size:0.75rem; font-weight:800; color:var(--gold); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:12px; }
.step h4{ font-size:1.2rem; margin-bottom:10px; }
.step p{ font-size:0.95rem; color:var(--gray-500); margin:0; }

/* ===== SERVICES ===== */
.grid-3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:28px; }
.service-card{
  background:var(--white); padding:36px 32px; border-radius:28px; border:1px solid var(--gray-100);
  box-shadow:0 4px 20px rgba(0,0,0,0.02); transition:all 0.3s ease; position:relative; overflow:hidden;
}
.service-card::after{
  content:''; position:absolute; bottom:0; left:0; width:100%; height:3px;
  background:linear-gradient(90deg,var(--red),var(--gold)); transform:scaleX(0); transform-origin:left; transition:transform 0.4s ease;
}
.service-card:hover::after{ transform:scaleX(1); }
.service-card:hover{ transform:translateY(-6px); box-shadow:0 30px 50px -16px rgba(0,0,0,0.1); }
.service-icon{
  width:56px; height:56px; border-radius:18px;
  background:linear-gradient(135deg,var(--red-light) 0%,var(--gold-light) 100%);
  display:flex; align-items:center; justify-content:center; margin-bottom:22px;
  font-size:1.4rem; color:var(--red-dark); border:1px solid rgba(212,175,55,0.2);
}
.service-card h4{ font-size:1.25rem; margin-bottom:12px; }
.service-card p{ color:var(--gray-500); font-size:0.95rem; margin:0; }

/* ===== FORM FIELDS (shared: estimator, contact, auth, booking) ===== */
.field{ flex:1 1 200px; margin-bottom:16px; }
.field label{
  display:block; font-size:0.8rem; font-weight:700; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--gray-500); margin-bottom:10px;
}
.field select, .field input, .field textarea{
  width:100%; padding:16px 20px; border-radius:18px; border:1.5px solid var(--gray-200);
  background:var(--white); font-family:'Inter',sans-serif; font-size:0.95rem; color:var(--black);
}
.field select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b4b5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 18px center;
}
.field select:focus, .field input:focus, .field textarea:focus{
  outline:none; border-color:var(--gold); box-shadow:0 0 0 4px rgba(212,175,55,0.1);
}

.estimator{
  display:flex; flex-wrap:wrap; gap:20px; align-items:flex-end; background:var(--white);
  padding:32px 36px; border-radius:28px; border:1px solid var(--gray-100);
  box-shadow:0 20px 40px -12px rgba(0,0,0,0.04); margin-bottom:24px;
}
#fare-result{
  background:linear-gradient(135deg,var(--gray-50) 0%,var(--gold-light) 100%);
  border-radius:24px; padding:28px 32px; border-left:6px solid var(--red); font-size:1.1rem;
  margin:20px 0 12px; color:var(--black); min-height:70px; display:flex; align-items:center;
}
#fare-result strong{ color:var(--red-dark); }

/* ===== WHY GRID ===== */
.why-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:24px; }
.why-item{
  display:flex; gap:20px; align-items:flex-start; background:var(--white); padding:28px;
  border-radius:24px; border:1px solid var(--gray-100); transition:all 0.3s ease;
}
.why-item:hover{ border-color:rgba(212,175,55,0.4); box-shadow:0 16px 32px -12px rgba(0,0,0,0.06); transform:translateY(-2px); }
.mark{
  font-size:1rem; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--red) 0%,var(--gold) 100%);
  width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; box-shadow:0 6px 16px rgba(211,47,47,0.25);
}
.why-item h4{ font-size:1.15rem; margin-bottom:6px; }
.why-item p{ font-size:0.9rem; color:var(--gray-500); margin:0; }

/* ===== TESTIMONIALS ===== */
.testimonial{
  background:var(--white); padding:36px 32px; border-radius:28px; border:1px solid var(--gray-100);
  box-shadow:0 4px 20px rgba(0,0,0,0.02); position:relative; transition:all 0.3s ease;
}
.testimonial:hover{ box-shadow:0 24px 40px -16px rgba(0,0,0,0.08); transform:translateY(-4px); }
.testimonial p{ font-size:1.05rem; color:var(--black); margin-bottom:24px; line-height:1.7; }
.testimonial .who{ font-weight:700; color:var(--black); font-size:0.95rem; display:flex; align-items:center; gap:8px; }
.testimonial .who::before{ content:''; width:24px; height:2px; background:linear-gradient(90deg,var(--red),var(--gold)); border-radius:2px; }

/* ===== DRIVER CTA ===== */
.driver-cta{
  background:linear-gradient(135deg,var(--black) 0%,#1a1a2e 100%); border-radius:36px; padding:56px 60px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:32px;
  position:relative; overflow:hidden; box-shadow:0 30px 60px -20px rgba(0,0,0,0.3);
}
.driver-cta h3{ font-size:2rem; color:#fff; margin-bottom:10px; }
.driver-cta p{ color:var(--gray-400); max-width:440px; margin:0; font-size:1.05rem; }

/* ===== CONTACT ===== */
.contact-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
form.stacked{ background:var(--white); padding:32px; border-radius:28px; border:1px solid var(--gray-100); box-shadow:0 4px 20px rgba(0,0,0,0.03); }

/* ===== FLOATING CALL BUTTON ===== */
.floating-call{
  position:fixed; bottom:24px; right:24px; z-index:100; width:64px; height:64px; border-radius:50%;
  background:linear-gradient(135deg,var(--red) 0%,var(--red-dark) 100%);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(211,47,47,0.45); animation:callpulse 2.2s infinite;
}
.floating-call svg{ width:28px; height:28px; fill:#fff; }
@keyframes callpulse{
  0%{ box-shadow:0 0 0 0 rgba(211,47,47,0.55); }
  70%{ box-shadow:0 0 0 16px rgba(211,47,47,0); }
  100%{ box-shadow:0 0 0 0 rgba(211,47,47,0); }
}

/* ===== FOOTER ===== */
.site-footer{ border-top:1px solid var(--gray-100); padding:48px 0; background:var(--gray-50); }
.footer-copy{ color:var(--gray-500); font-size:0.9rem; }
.footer-links{ display:flex; gap:32px; flex-wrap:wrap; }
.footer-links a{ color:var(--gray-500); text-decoration:none; font-size:0.9rem; }
.footer-links a:hover{ color:var(--red); }
.lang-toggle{ display:flex; gap:8px; }
.lang-toggle button{
  background:transparent; border:1px solid var(--gray-200); color:var(--gray-500);
  padding:5px 10px; border-radius:20px; font-size:13px; cursor:pointer;
}
.lang-toggle button.active{ border-color:var(--gold); color:var(--red-dark); background:var(--gold-light); }

/* ===== AUTH CARDS ===== */
.auth-card{
  max-width:440px; margin:64px auto; background:var(--white); border:1px solid var(--gray-100);
  border-radius:28px; padding:40px; box-shadow:0 20px 50px -20px rgba(0,0,0,0.1);
}
.auth-card h2{ text-align:center; display:block; }
.auth-card h2::after{ left:50%; transform:translateX(-50%); }
.auth-card .switch{ text-align:center; margin-top:16px; font-size:14px; color:var(--gray-500); }
.alert-error{ background:var(--red-light); border:1px solid var(--red); color:var(--red-dark); padding:12px 16px; border-radius:14px; margin-bottom:16px; font-size:14px; }
.alert-success{ background:var(--gold-light); border:1px solid var(--gold); color:var(--gold-dark); padding:12px 16px; border-radius:14px; margin-bottom:16px; font-size:14px; }

/* ===== DASHBOARDS (driver / admin) ===== */
.dash-shell{ display:grid; grid-template-columns:220px 1fr; min-height:100vh; }
.dash-side{ background:var(--gray-50); border-right:1px solid var(--gray-100); padding:24px 18px; }
.dash-side a{ display:block; color:var(--black); padding:10px 14px; border-radius:14px; margin-bottom:4px; font-size:14px; text-decoration:none; }
.dash-side a:hover, .dash-side a.active{ background:var(--gold-light); color:var(--red-dark); }
.dash-main{ padding:32px; }
table.data{ width:100%; border-collapse:collapse; font-size:14px; background:var(--white); border-radius:16px; overflow:hidden; }
table.data th, table.data td{ padding:12px 14px; border-bottom:1px solid var(--gray-100); text-align:left; }
table.data th{ color:var(--gray-500); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:0.04em; background:var(--gray-50); }
.badge{ padding:4px 12px; border-radius:20px; font-size:12px; display:inline-block; font-weight:600; }
.badge-requested{ background:var(--gold-light); color:var(--gold-dark); }
.badge-accepted, .badge-driver_arriving, .badge-in_progress{ background:#e8f0fe; color:#3b6fd6; }
.badge-completed{ background:#e6f7ec; color:#1f9d54; }
.badge-cancelled{ background:var(--red-light); color:var(--red-dark); }
.rider-photo-thumb{ width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); }

@media (max-width:1024px){
  h1{ font-size:3rem; } h2{ font-size:2.1rem; }
  .hero .hero-inner{ gap:50px; } .driver-cta{ padding:44px; }
}
@media (max-width:880px){
  h1{ font-size:2.5rem; } h2{ font-size:1.8rem; } section{ padding:70px 0; }
  .hero{ padding:50px 0 70px; } .map-frame{ height:340px; }
  .estimator{ padding:24px; flex-direction:column; align-items:stretch; }
  .driver-cta{ padding:36px; flex-direction:column; align-items:flex-start; }
  .nav-links{ display:none; }
  .driver-float{ display:none; }
  .contact-wrap{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .dash-shell{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  h1{ font-size:2rem; } h2{ font-size:1.6rem; }
  .hero-ctas .btn{ width:100%; }
  .driver-cta h3{ font-size:1.6rem; }
}
