/* =========================================================================
   style.css — Wanderly Travels (Travel Booking Website)
   Main stylesheet: design tokens, reset, typography, navigation, buttons,
   cards, hero/sections, footer, floating buttons, forms, flash messages,
   scroll-reveal animations, and responsive breakpoints.
   ========================================================================= */

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
    --color-primary: #0B5ED7;
    --color-primary-dark: #094aad;
    --color-secondary: #00C2A8;
    --color-accent: #FFC107;
    --color-bg: #F8FAFC;
    --color-dark: #1E293B;
    --color-white: #FFFFFF;
    --color-gray-100: #F1F5F9;
    --color-gray-300: #CBD5E1;
    --color-gray-500: #64748B;
    --color-gray-700: #334155;

    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-accent: linear-gradient(135deg, #FFC107 0%, #FF8A00 100%);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
    --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.10);
    --shadow-lg: 0 16px 48px rgba(30, 41, 59, 0.14);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 76px;
}

/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-dark);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

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

.site-main { min-height: 60vh; }

section { padding: 80px 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .eyebrow {
    display: inline-block;
    color: var(--color-primary);
    background: rgba(11, 94, 215, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 12px; }
.section-header p { color: var(--color-gray-500); font-size: 1.05rem; }

/* =========================================================================
   3. BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); filter: brightness(1.05); }

.btn-accent {
    background: var(--gradient-accent);
    color: var(--color-dark);
    box-shadow: var(--shadow-md);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }

.btn-dark-outline {
    background: transparent;
    border: 2px solid var(--color-gray-300);
    color: var(--color-dark);
}
.btn-dark-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* =========================================================================
   4. NAVIGATION
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-dark);
}
.nav-logo i { color: var(--color-primary); font-size: 1.5rem; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu > a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-gray-700);
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}
.nav-menu > a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}
.nav-menu > a:hover, .nav-menu > a.active { color: var(--color-primary); }
.nav-menu > a:hover::after, .nav-menu > a.active::after { width: 100%; }

.nav-auth { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.btn-nav-outline, .btn-nav-filled {
    padding: 9px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-nav-outline { border: 2px solid var(--color-gray-300); color: var(--color-dark); }
.btn-nav-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-nav-filled { background: var(--gradient-primary); color: var(--color-white); }
.btn-nav-filled:hover { filter: brightness(1.08); transform: translateY(-2px); }

.nav-toggle { display: none; font-size: 1.4rem; color: var(--color-dark); }

/* =========================================================================
   5. HERO SECTION
   ========================================================================= */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #eef4ff 0%, var(--color-bg) 100%);
}
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    animation: floatShape 8s ease-in-out infinite;
}
.hero-bg-shape.one { width: 420px; height: 420px; background: var(--color-secondary); top: -120px; right: -100px; }
.hero-bg-shape.two { width: 320px; height: 320px; background: var(--color-accent); bottom: -100px; left: -80px; animation-delay: 2s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hero-content h1 span { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-content p { font-size: 1.15rem; color: var(--color-gray-700); margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats div strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; color: var(--color-primary); }
.hero-stats div span { color: var(--color-gray-500); font-size: 0.9rem; }

/* =========================================================================
   6. GLASSMORPHIC SEARCH BAR
   ========================================================================= */
.search-bar {
    position: relative;
    z-index: 3;
    margin-top: -60px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: 0.78rem; font-weight: 600; color: var(--color-gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.search-field input, .search-field select {
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: var(--color-white);
    font-size: 0.95rem;
    transition: var(--transition);
}
.search-field input:focus, .search-field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12); }

/* =========================================================================
   7. CARDS (Packages / Cars / Gallery / Testimonials)
   ========================================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.pkg-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.pkg-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pkg-card .pkg-img { position: relative; height: 220px; overflow: hidden; }
.pkg-card .pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.pkg-card:hover .pkg-img img { transform: scale(1.08); }
.pkg-card .pkg-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--gradient-accent);
    color: var(--color-dark);
    font-weight: 700; font-size: 0.75rem;
    padding: 6px 14px; border-radius: var(--radius-full);
}
.pkg-card .pkg-body { padding: 22px; }
.pkg-card .pkg-location { display: flex; align-items: center; gap: 6px; color: var(--color-gray-500); font-size: 0.85rem; margin-bottom: 8px; }
.pkg-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pkg-card .pkg-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-gray-100); }
.pkg-card .pkg-price { font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 1.2rem; }
.pkg-card .pkg-price small { color: var(--color-gray-500); font-weight: 400; font-size: 0.75rem; }
.pkg-card .pkg-rating { color: var(--color-accent); font-size: 0.9rem; font-weight: 600; }

.car-card { background: var(--color-white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.car-card img { height: 140px; object-fit: contain; margin: 0 auto 16px; }
.car-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.car-card .car-specs { display: flex; justify-content: center; gap: 16px; color: var(--color-gray-500); font-size: 0.82rem; margin: 12px 0; }

.gallery-grid { column-count: 4; column-gap: 16px; }
.gallery-grid img { width: 100%; border-radius: var(--radius-md); margin-bottom: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card i.fa-quote-left { color: var(--color-secondary); font-size: 1.8rem; opacity: 0.3; margin-bottom: 12px; }
.testimonial-card .stars { color: var(--color-accent); margin-bottom: 14px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-card .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author strong { display: block; font-size: 0.95rem; }
.testimonial-card .author span { font-size: 0.8rem; color: var(--color-gray-500); }

/* =========================================================================
   8. FORMS (Booking / Login / Register / Contact)
   ========================================================================= */
.form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 560px;
    margin: 0 auto;
}
.form-card.wide { max-width: 820px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--color-gray-700); }
.form-group .required { color: #E11D48; }

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }

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

.form-footer-link { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--color-gray-500); }
.form-footer-link a { color: var(--color-primary); font-weight: 600; }

/* Flash Messages */
.flash-message {
    max-width: 1240px;
    margin: 16px auto 0;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: var(--shadow-sm);
}
.flash-message button { margin-left: auto; font-size: 1.1rem; opacity: 0.6; }
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.flash-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* =========================================================================
   9. FOOTER
   ========================================================================= */
.site-footer { background: var(--color-dark); color: var(--color-gray-300); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin: 14px 0 18px; color: var(--color-gray-300); font-size: 0.9rem; }
.footer-logo { color: var(--color-white); }
.footer-logo i { color: var(--color-secondary); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--gradient-primary); transform: translateY(-3px); }

.footer-col h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--color-secondary); padding-left: 4px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }

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

/* =========================================================================
   10. FLOATING ACTION BUTTONS
   ========================================================================= */
.floating-btn {
    position: fixed;
    right: 24px;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white);
    font-size: 1.4rem;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: var(--transition);
}
.floating-btn:hover { transform: scale(1.1); }
.whatsapp-btn { background: #25D366; bottom: 96px; animation: pulse 2.4s infinite; }
.call-btn { background: var(--gradient-primary); bottom: 24px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================================
   11. SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================================================
   12. UTILITIES
   ========================================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.bg-light { background: var(--color-gray-100); }
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-pending { background: #FFFBEB; color: #92400E; }
.badge-confirmed { background: #ECFDF5; color: #065F46; }
.badge-cancelled { background: #FEF2F2; color: #991B1B; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--color-gray-500); }
.empty-state i { font-size: 3rem; color: var(--color-gray-300); margin-bottom: 16px; }

/* =========================================================================
   13. RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .search-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { column-count: 3; }
}

@media (max-width: 860px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0; right: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; }
    .nav-menu > a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--color-gray-100); }
    .nav-auth { flex-direction: column; align-items: stretch; width: 100%; margin: 16px 0 0; }
    .nav-toggle { display: block; }

    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { column-count: 2; }
}

@media (max-width: 640px) {
    section { padding: 56px 0; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .search-bar { grid-template-columns: 1fr; padding: 18px; margin-top: -32px; }
    .hero { min-height: auto; padding: 140px 0 80px; }
    .form-card { padding: 26px; }
    .floating-btn { width: 50px; height: 50px; font-size: 1.2rem; right: 16px; }
    .whatsapp-btn { bottom: 82px; }
    .call-btn { bottom: 20px; }
    .gallery-grid { column-count: 1; }
}
