/* ============================================================
   JOMSHUTTLE - MAIN STYLESHEET
   Inspired by booking.com cheerful theme
   Dark/Light mode via CSS custom properties
   Mobile-first responsive design
   ============================================================ */

/* === CSS VARIABLES (Light Mode - Default) === */
:root {
    /* Brand Colors - Cheerful booking.com inspired */
    --primary: #003b95;
    --primary-hover: #002b6e;
    --primary-light: #e8f0fe;
    --accent: #ffb700;
    --accent-hover: #e6a400;
    --success: #28a745;
    --danger: #dc3545;

    /* Light Mode Surfaces */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #003b95 0%, #0056d2 100%);

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-muted: #8e90a6;
    --text-inverse: #ffffff;

    /* Borders & Shadows */
    --border-color: #e2e5ed;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-card-hover: 0 12px 40px rgba(0,59,149,0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === DARK MODE VARIABLES === */
[data-theme="dark"] {
    --bg-primary: #0f1119;
    --bg-secondary: #1a1d2b;
    --bg-card: #1e2132;
    --bg-hero: linear-gradient(135deg, #0a0e1a 0%, #1a2a4a 100%);

    --text-primary: #e8eaf0;
    --text-secondary: #b0b3c5;
    --text-muted: #7a7d92;
    --text-inverse: #ffffff;

    --border-color: #2a2d3d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-card-hover: 0 12px 40px rgba(0,59,149,0.25);

    --primary-light: rgba(0,59,149,0.3);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset for sticky header */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* === HEADER / NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

/* Show/hide logos based on theme */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-nav {
    padding: 10px 20px !important;
    margin-left: 4px;
}

/* === THEME TOGGLE === */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-left: 8px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--primary-light);
}

/* Toggle icon visibility */
[data-theme="light"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }

/* === HAMBURGER (Mobile) === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-inverse);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

.btn-accent {
    background: var(--accent);
    color: #1a1a2e;
    border-color: var(--accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--bg-hero);
    overflow: hidden;
    margin-top: 0;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1596422846543-75c6fc197f07?w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    mix-blend-mode: overlay;
}

[data-theme="dark"] .hero-bg {
    opacity: 0.08;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-icon {
    font-size: 1.3rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === SECTION COMMONS === */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    color: #6ba3ff;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* === STATE CARDS GRID === */
.state-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.state-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.state-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary);
}

.state-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.state-info {
    flex: 1;
    min-width: 0;
}

.state-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.state-routes-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.state-route-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.state-pricing {
    text-align: right;
    flex-shrink: 0;
}

.state-price-original {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.state-price-final {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
}

.state-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.state-card:hover .state-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* === TOUR CARDS === */
.tour-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.tour-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.tour-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-popular {
    background: #ff4757;
    color: white;
}

.badge-private {
    background: var(--accent);
    color: #1a1a2e;
}

.tour-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tour-card-body {
    padding: 20px 24px 24px;
}

.tour-card-flag {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.tour-card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.tour-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tour-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.3rem;
}

.tour-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* === WHY US FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === REVIEWS === */
.reviews {
    background: var(--bg-secondary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.review-stars {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

.review-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === BOOKING FORM === */
.booking-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.booking-header {
    background: var(--primary);
    color: white;
    padding: 24px 32px;
    text-align: center;
}

.booking-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.booking-header p {
    opacity: 0.85;
    font-size: 0.9rem;
}

.booking-form {
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* HONEYPOT - Hidden from human users */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-success {
    padding: 48px 32px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.success-security {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}

/* Form validation styling */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

/* === FOOTER === */
.footer {
    background: #0a0e1a;
    color: #b0b3c5;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #b0b3c5;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 100px 32px 32px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .btn-nav {
        margin-top: 8px;
        text-align: center;
    }

    .state-cards-grid {
        grid-template-columns: 1fr;
    }

    .tour-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .booking-form {
        padding: 20px;
    }

    .booking-header {
        padding: 20px;
    }

    .state-card {
        padding: 16px;
        gap: 12px;
    }

    .state-emoji {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }
}

/* Utility: Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* Loading/disabled state for submit button */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}