/* Infurnus Logistics - Firebase Edition */
:root {
  --accent: #F97316;
  --accent-dark: #ea580c;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1c1c1c;
  --border: #262626;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --success: #22c55e;
  --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; padding: 16px 0; transition: background 0.3s; }
.navbar.scrolled { background: rgba(10,10,10,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn-primary { background: var(--accent); padding: 10px 20px; border-radius: 6px; color: white; font-weight: 600; }
.nav-links .btn-primary:hover { background: var(--accent-dark); color: white; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
}

/* Hero */
.hero { padding: 140px 0 80px; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, #111 100%); }
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Stats */
.stats-section { padding: 40px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-muted); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.section-title p { color: var(--text-muted); font-size: 16px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: all 0.3s; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon { font-size: 40px; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.card ul { list-style: none; }
.card ul li { color: var(--text-muted); font-size: 13px; padding: 4px 0; }
.card ul li::before { content: "\2713"; color: var(--success); margin-right: 8px; font-weight: bold; }
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; } }

/* Booking Section */
.booking-section { background: var(--bg-card); padding: 80px 0; border-top: 1px solid var(--border); }
.booking-tabs { display: flex; gap: 8px; margin-bottom: 32px; justify-content: center; flex-wrap: wrap; }
.booking-tab { padding: 12px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.booking-tab:hover { border-color: var(--accent); color: var(--accent); }
.booking-tab.active { background: var(--accent); color: white; border-color: var(--accent); }

.booking-form { display: none; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 32px; max-width: 700px; margin: 0 auto; }
.booking-form.active { display: block; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group .required { color: var(--accent); }
.form-control { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text); font-size: 14px; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--accent); }
.form-control::placeholder { color: #555; }

.route-info { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-card); border-radius: 8px; border: 1px solid var(--border); }
.route-info i { color: var(--accent); font-size: 20px; }
.route-info-text strong { display: block; color: var(--accent); }
.route-info-text span { font-size: 13px; color: var(--text-muted); }

.form-submit { margin-top: 24px; text-align: center; }
.form-submit button { width: 100%; padding: 16px; font-size: 16px; }
.form-submit button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast { padding: 14px 20px; border-radius: 8px; color: white; font-weight: 600; font-size: 14px; margin-bottom: 8px; animation: slideIn 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.info { background: #3b82f6; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Success Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 48px; text-align: center; max-width: 400px; width: 90%; }
.modal-content i { font-size: 64px; color: var(--success); margin-bottom: 16px; }
.modal-content h3 { font-size: 24px; margin-bottom: 8px; }
.modal-content p { color: var(--text-muted); margin-bottom: 24px; }

/* Fare Calculator */
.fare-section { background: var(--bg); padding: 80px 0; }
.fare-calculator { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; max-width: 500px; margin: 0 auto; }
.fare-result { text-align: center; padding: 24px; background: var(--bg); border-radius: 8px; margin-bottom: 24px; }
.fare-result .amount { font-size: 36px; font-weight: 800; color: var(--accent); }
.fare-result .details { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.fare-breakdown { margin-top: 20px; }
.fare-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.fare-row:last-child { border-bottom: none; font-weight: 700; }
.fare-row span:first-child { color: var(--text-muted); }

/* Locations */
.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.location-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; text-align: center; transition: all 0.2s; }
.location-item:hover { border-color: var(--accent); }
.location-item i { color: var(--accent); font-size: 20px; margin-bottom: 8px; }
.location-item span { display: block; font-size: 14px; font-weight: 600; }
@media (max-width: 768px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chat-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: white; border: none; font-size: 24px; cursor: pointer; box-shadow: 0 4px 16px rgba(249,115,22,0.4); transition: transform 0.2s; }
.chat-btn:hover { transform: scale(1.1); }

/* ============================================ */
/* MOBILE RESPONSIVENESS - Smartphones */
/* ============================================ */
@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Navbar */
  .navbar { padding: 12px 0; }
  .logo { font-size: 20px; }
  .nav-links { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 16px; gap: 12px; border-bottom: 1px solid var(--border); z-index: 999; }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 16px; border-radius: 8px; }
  .nav-links a:hover { background: var(--bg-hover); }
  .nav-links .btn-primary { display: block; text-align: center; margin-top: 8px; }
  .mobile-menu-btn { display: block; font-size: 28px; padding: 8px; }

  /* Hero */
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 28px; line-height: 1.3; margin-bottom: 12px; }
  .hero p { font-size: 16px; padding: 0 8px; }
  .hero-buttons { flex-direction: column; gap: 12px; padding: 0 20px; }
  .btn { width: 100%; padding: 16px 24px; font-size: 16px; min-height: 52px; }

  /* Stats */
  .stats-section { padding: 24px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 12px; }

  /* Sections */
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2 { font-size: 26px; }
  .section-title p { font-size: 14px; padding: 0 16px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; }
  .card-icon { font-size: 32px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14px; }
  .card ul li { font-size: 14px; padding: 6px 0; }

  /* Booking Section */
  .booking-section { padding: 48px 0; }
  .booking-tabs { gap: 6px; margin-bottom: 20px; padding: 0 8px; }
  .booking-tab { padding: 10px 16px; font-size: 13px; flex: 1; text-align: center; min-width: 0; }
  .booking-tab i { display: block; margin-bottom: 4px; font-size: 16px; }
  .booking-form { padding: 20px; margin: 0 8px; border-radius: 10px; }

  /* Form Grid - Single column on mobile */
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-group.full-width { grid-column: span 1; }
  .form-group label { font-size: 14px; margin-bottom: 8px; }
  .form-control { padding: 16px 14px; font-size: 16px; min-height: 52px; border-radius: 10px; }
  .form-control:focus { border-width: 2px; }
  select.form-control { padding: 16px 14px; }
  input[type="date"].form-control,
  input[type="time"].form-control { min-height: 52px; }

  /* Route Info */
  .route-info { padding: 14px; flex-direction: column; text-align: center; gap: 8px; }
  .route-info i { font-size: 24px; }
  .route-info-text strong { font-size: 18px; }
  .route-info-text span { font-size: 14px; }

  /* Form Submit Button */
  .form-submit { margin-top: 20px; }
  .form-submit button { padding: 18px; font-size: 16px; min-height: 56px; border-radius: 10px; }
  .form-note { font-size: 13px; margin-top: 14px; padding: 0 8px; }

  /* Toast - Bottom on mobile for thumb reach */
  .toast-container { top: auto; bottom: 20px; left: 16px; right: 16px; }
  .toast { width: 100%; text-align: center; padding: 16px; font-size: 15px; margin-bottom: 8px; }

  /* Success Modal */
  .modal-content { padding: 32px 24px; max-width: 90%; border-radius: 12px; }
  .modal-content i { font-size: 48px; }
  .modal-content h3 { font-size: 20px; }
  .modal-content p { font-size: 14px; }
  .modal-content .btn { margin-top: 8px; }

  /* Fare Calculator */
  .fare-section { padding: 48px 0; }
  .fare-calculator { padding: 24px; margin: 0 8px; border-radius: 10px; }
  .fare-result { padding: 20px; margin-bottom: 20px; }
  .fare-result .amount { font-size: 28px; }
  .fare-result .details { font-size: 14px; }
  .fare-row { padding: 12px 0; font-size: 15px; }
  .fare-vehicle { padding: 14px 16px; font-size: 14px; flex: 1; min-width: 0; text-align: center; }
  .fare-vehicle i { display: block; margin-bottom: 4px; }

  /* Locations */
  .locations-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .location-item { padding: 16px; }
  .location-item i { font-size: 18px; }
  .location-item span { font-size: 13px; }

  /* Footer */
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-brand .logo { font-size: 20px; }
  .footer-brand p { font-size: 14px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 12px; }
  .footer-col a { font-size: 15px; padding: 8px 0; }
  .footer-bottom { font-size: 12px; padding-top: 20px; }

  /* Chat Widget - Bigger on mobile */
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-btn { width: 64px; height: 64px; font-size: 28px; }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .section-title h2 { font-size: 22px; }
  .stat-value { font-size: 20px; }
  .booking-tab { padding: 8px 12px; font-size: 12px; }
  .booking-tab i { font-size: 14px; }
  .card { padding: 20px; }
  .form-control { padding: 14px 12px; font-size: 16px; }
  .btn { padding: 14px 20px; font-size: 15px; }
  .fare-result .amount { font-size: 24px; }
}
