/* ============================================================
   I CABS — style.css
   Theme: Luxury Black & Gold | Mobile-First
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }
input, select, button { font-family: inherit; }

/* ---- Tokens ---- */
:root {
  --gold: #C9A84C;
  --gold-light: #E2C47A;
  --gold-dim: rgba(201,168,76,0.15);
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #161616;
  --dark3: #1e1e1e;
  --border: rgba(201,168,76,0.2);
  --text: #e0e0e0;
  --text-muted: #888;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); color: #fff; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: #fff; font-weight: 600; }
h3 { font-size: 1.15rem; color: #fff; font-weight: 600; }
h4 { font-size: 1rem; color: #fff; font-weight: 600; }

/* ---- Container ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Section ---- */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
  cursor: default;
}
.logo-i {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.logo-cabs {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.logo-tagline {
  display: none;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-left: 8px;
}
.nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav a:hover { color: var(--gold); }
.btn-call-header {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 6px;
  transition: background var(--transition);
  margin-left: auto;
  flex-shrink: 0;
}
.btn-call-header:hover { background: var(--gold-light); }
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav open */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #111;
  border-bottom: 1px solid var(--border);
  padding: 20px;
  gap: 18px;
  margin-left: 0;
}

/* Desktop header */
@media (min-width: 768px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .logo-tagline { display: inline; }
  .btn-call-header { margin-left: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #111 40%, #0d0b05 100%);
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 30%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay { display: none; }
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-headline {
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-badges span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
}

/* --- Booking Card --- */
.booking-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}
.booking-header {
  background: linear-gradient(135deg, #1a1500, #0f0e0a);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.booking-header h2 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 2px;
}
.booking-header p { font-size: 0.82rem; color: var(--text-muted); }
.booking-body { padding: 20px 24px; }

/* Trip Tabs */
.trip-tabs {
  display: flex;
  background: var(--dark3);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.trip-tab {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.trip-tab.active {
  background: var(--gold);
  color: #000;
}

/* Form */
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-row input,
.form-row select {
  width: 100%;
  background: var(--dark3);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px;
  font-size: 0.92rem;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row input::placeholder { color: #444; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Buttons */
.btn-calc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #b8902e, var(--gold));
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--transition);
  margin-top: 4px;
}
.btn-calc:hover { opacity: 0.9; }
.btn-book {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity var(--transition);
}
.btn-book:hover { opacity: 0.9; }

/* Fare Result */
.fare-result {
  margin-top: 16px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.fare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid #1e1e1e;
}
.fare-row:last-child { border-bottom: none; }
.fare-row span:first-child { color: var(--text-muted); }
.fare-row span:last-child { font-weight: 600; color: var(--text); }
.fare-row.total {
  background: var(--gold-dim);
  border-top: 1px solid var(--border);
}
.fare-row.total span:last-child { color: var(--gold); font-size: 1.05rem; }

/* Loading & Error */
.loading-indicator {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; color: var(--text-muted); font-size: 0.88rem; margin-top: 12px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid #333;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Hero desktop layout */
@media (min-width: 900px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .hero-text { flex: 1; }
  .booking-card { width: 440px; flex-shrink: 0; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--dark); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201,168,76,0.1);
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.service-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}
.service-link:hover { opacity: 0.7; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us { background: var(--black); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--dark2);
}
.why-icon { font-size: 1.6rem; flex-shrink: 0; }
.why-card h4 { margin-bottom: 6px; }
.why-card p { font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--dark); }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 0.9rem; color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.reviewer { display: flex; flex-direction: column; gap: 2px; }
.reviewer strong { font-size: 0.88rem; color: var(--white); }
.reviewer span { font-size: 0.78rem; color: var(--gold); }
@media (min-width: 600px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--black); }
.about-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.about-text h2 { margin-bottom: 20px; }
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.about-cta-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #b8902e, var(--gold));
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 8px;
  transition: opacity var(--transition);
  width: 100%;
  text-align: center;
}
.btn-gold:hover { opacity: 0.9; }
.or-call { font-size: 0.8rem; color: var(--text-muted); }
.btn-outline-call {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  transition: background var(--transition);
}
.btn-outline-call:hover { background: var(--gold-dim); }
@media (min-width: 900px) {
  .about-inner { flex-direction: row; align-items: flex-start; }
  .about-text { flex: 1; }
  .about-cta-block { width: 300px; flex-shrink: 0; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--dark); }
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 0.95rem; color: var(--gold); }
.contact-item span { color: var(--text); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 768px) {
  .contact-grid { flex-direction: row; }
  .contact-info { flex: 1; }
  .map-wrap { flex: 1; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #070707; border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-col p { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; font-family: 'Inter', sans-serif; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-logo { margin-bottom: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
@media (min-width: 600px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ============================================================
   STICKY BUTTONS
   ============================================================ */
.sticky-call,
.sticky-whatsapp {
  position: fixed;
  right: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform var(--transition), opacity var(--transition);
  width: 52px;
  height: 52px;
}
.sticky-whatsapp {
  bottom: 22px;
  background: #25D366;
  color: #fff;
}
.sticky-call {
  bottom: 84px;
  background: var(--gold);
  color: #000;
}
.sticky-call:hover, .sticky-whatsapp:hover { transform: scale(1.08); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-panel {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-header h3 { font-size: 1rem; color: var(--gold); font-family: 'Inter', sans-serif; }
.admin-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.admin-body { padding: 20px; }
#adminLogin p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
#adminLogin input {
  width: 100%; background: var(--dark3); border: 1px solid #333;
  border-radius: 6px; color: var(--text); padding: 10px 12px;
  font-size: 0.9rem; margin-bottom: 10px;
}
#adminLogin input:focus { outline: none; border-color: var(--gold); }
#adminLoginBtn {
  width: 100%; background: var(--gold); color: #000;
  border: none; border-radius: 6px; padding: 10px;
  font-weight: 700; cursor: pointer;
}
.admin-err { color: #f87171; font-size: 0.82rem; }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.admin-grid label { font-size: 0.8rem; color: var(--text-muted); }
.admin-grid input {
  background: var(--dark3); border: 1px solid #333;
  border-radius: 6px; color: var(--text); padding: 8px 10px; font-size: 0.88rem;
}
.admin-grid input:focus { outline: none; border-color: var(--gold); }
#adminSave {
  margin-top: 16px; width: 100%;
  background: var(--gold); color: #000; border: none;
  border-radius: 6px; padding: 11px; font-weight: 700; cursor: pointer;
}
.admin-success { color: #4ade80; font-size: 0.85rem; margin-top: 8px; }

/* ============================================================
   UTILITIES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}

/* Date/time input color fix */
input[type="date"], input[type="time"] {
  color-scheme: dark;
}