/* ============================================================
   JomShuttle — Modern, Mobile-First, Lightweight CSS
   ============================================================ */

/* CSS Variables for theming */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --accent: #00c853;
  --border: #e9ecef;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 64px;
  --transition: 0.25s ease;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-alt: #16162a;
  --bg-card: #1e1e3f;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --primary: #4d94ff;
  --primary-dark: #3385ff;
  --accent: #00e676;
  --border: #2a2a4a;
  --shadow: 0 4px 20px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border-radius: var(--radius-sm); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* Utility */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; text-align: center; }
.section-sub { color: var(--text-muted); text-align: center; margin-bottom: 32px; font-size: 0.95rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(0,102,255,0.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-outline { border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.card-text { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.card-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-height); background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(15,15,26,0.85); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--text); transition: background var(--transition);
}
.icon-btn:hover { background: var(--border); }
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; padding: 32px 24px; gap: 20px;
    transform: translateX(100%); transition: transform var(--transition);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* Hero */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(0,102,255,0.08) 0%, rgba(0,200,83,0.05) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.15;
  background: url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Services */
.services { background: var(--bg-alt); }
.service-card { text-align: center; padding: 32px 24px; }
.service-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}

/* States */
.state-card .card-img { height: 220px; }
.state-highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.state-highlights span {
  font-size: 0.75rem; background: var(--bg-alt); color: var(--text-muted);
  padding: 4px 10px; border-radius: 999px;
}

/* Packages */
.packages { background: var(--bg-alt); }
.package-inclusions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.package-inclusions span {
  font-size: 0.75rem; background: rgba(0,102,255,0.08); color: var(--primary);
  padding: 3px 10px; border-radius: 999px;
}

/* Booking */
.booking-form {
  max-width: 640px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.95rem; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; } }

/* Honeypot */
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 14px 22px; border-radius: var(--radius-sm);
  font-weight: 600; box-shadow: var(--shadow); transform: translateY(120px); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.footer-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition);
}
.socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-bottom { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; }

/* Page transitions */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Detail view */
.detail-hero { height: 40vh; position: relative; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.detail-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.detail-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 16px; color: #fff; }
.detail-hero-content h1 { font-size: 2rem; font-weight: 800; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; cursor: pointer; }
.back-btn:hover { color: var(--primary); }
