/* =========================================
   CSS VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #0d9488; /* Tropical Teal/Green */
    --primary-dark: #0f766e;
    --secondary-color: #f59e0b; /* Sunset Orange/Gold */
    --secondary-dark: #d97706;
    
    --bg-dark: #0f172a; /* Deep Navy/Slate for sections */
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    --white: #ffffff;
    --whatsapp-color: #25D366;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Layout & Shadows */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--bg-dark);
    line-height: 1.2;
}

h1 span, h2 span {
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
}

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

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

.btn-outline-light {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Glassmorphism Utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .hamburger i {
    color: var(--bg-dark);
}

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

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

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--secondary-color);
}

.navbar.scrolled .brand-logo {
    height: 55px; /* Shrink logo slightly when scrolling */
}

.logo i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('assets/hero_costa_rica.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   QUICK QUOTE WIDGET
   ========================================= */
.booking-widget-section {
    position: relative;
    margin-top: -60px;
    z-index: 20;
}

.quick-quote-form {
    padding: 40px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    width: 100%;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bg-dark);
    font-size: 0.9rem;
}

.input-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--white);
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.booking-form button {
    flex: 0 0 auto;
    height: 48px; /* match input height roughly */
}

/* =========================================
   FLEET SECTION
   ========================================= */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.car-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    border: 1px solid #e2e8f0;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.car-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.car-card:hover .car-img {
    transform: scale(1.05);
}

.car-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.car-info {
    padding: 30px;
}

.car-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.car-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.car-features span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-features i {
    color: var(--primary-color);
}

.car-desc {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.car-includes {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

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

.price {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price span {
    font-size: 1.8rem;
    color: var(--bg-dark);
    font-weight: 800;
}

/* =========================================
   WHY US SECTION
   ========================================= */
.why-us {
    background-color: var(--bg-dark);
    color: var(--white);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.why-us-text p {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefits-list i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(13, 148, 136, 0.1);
    padding: 15px;
    border-radius: 50%;
    height: max-content;
}

.benefits-list h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: var(--font-primary);
}

.benefits-list li p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.why-us-image {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.8), rgba(15, 118, 110, 0.9)), url('assets/hero_costa_rica.png') center/cover;
    border: none;
    padding: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

.stat-box:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-box h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: #e2e8f0;
    margin-bottom: 0;
    font-weight: 600;
}

/* =========================================
   CONTACT / CTA SECTION
   ========================================= */
.cta {
    background: url('assets/hero_costa_rica.png') center/cover fixed;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
}

.cta .container {
    position: relative;
    z-index: 10;
}

.cta-card {
    background: rgba(13, 148, 136, 0.2);
    border-color: rgba(255,255,255,0.1);
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #020617;
    color: #94a3b8;
    padding-top: 80px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-brand p {
    max-width: 350px;
    line-height: 1.8;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

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

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-contact i {
    color: var(--primary-color);
}

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

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .why-us-content {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .navbar.scrolled .hamburger i {
        color: var(--bg-dark);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

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

    .nav-links a {
        font-size: 1.5rem;
        color: var(--white) !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-form {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-form button {
        margin-top: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
