/* ==========================================
   MARAWA RENT - CSS DESIGN SYSTEM
   ========================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --brand-red: #EE1C25;
    --brand-red-dark: #CC1920;
    --brand-red-light: #FF3D45;
    --brand-dark: #212529;
    --brand-charcoal: #333333;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-300: #CED4DA;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --silver: #B0B0B0;
    
    /* Functional Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --whatsapp: #25D366;
    
    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--brand-charcoal);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-red {
    color: var(--brand-red);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn .icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(238, 28, 37, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.logo-accent {
    color: var(--brand-red);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-charcoal);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width var(--transition-base);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--brand-red);
}

.nav-cta {
    margin-left: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand-dark);
    transition: all var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/static/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 40%,
        rgba(255, 255, 255, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(238, 28, 37, 0.1);
    color: var(--brand-red);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-dark);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Booking Widget */
.booking-widget {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
}

.booking-widget h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-charcoal);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: var(--space-3xl) 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(238, 28, 37, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--brand-red);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--space-sm);
}

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

/* ==========================================
   FLEET SECTION
   ========================================== */
.fleet {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.car-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.car-status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.car-status.available {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.car-status.unavailable {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.car-image {
    padding: var(--space-xl);
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.car-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform var(--transition-base);
}

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

.car-info {
    padding: var(--space-lg);
}

.car-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--space-md);
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.car-specs span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.car-specs svg {
    width: 16px;
    height: 16px;
}

.car-price {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-lg);
}

.price-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-red);
}

.price-value span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing {
    padding: var(--space-3xl) 0;
    background: var(--light-gray);
}

.pricing-table {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-table th {
    background: var(--brand-dark);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
}

.pricing-table th:first-child {
    border-radius: var(--radius-xl) 0 0 0;
}

.pricing-table th:last-child {
    border-radius: 0 var(--radius-xl) 0 0;
}

.pricing-table tr:hover {
    background: var(--light-gray);
}

.pricing-table .status {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-table .status.available {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success);
}

.pricing-table .status.unavailable {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger);
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ==========================================
   TERMS SECTION
   ========================================== */
.terms {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.terms-card {
    background: var(--light-gray);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--brand-red);
}

.terms-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--space-lg);
}

.terms-card ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.terms-card li {
    position: relative;
    padding-left: var(--space-lg);
    color: var(--brand-charcoal);
}

.terms-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-weight: bold;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--brand-red);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-item h4 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    border-radius: var(--radius-xl);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--brand-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    color: var(--gray-400);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-red);
}

.footer-contact p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

.payment-logos {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-block;
    background: var(--white);
    color: var(--brand-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ==========================================
   FLOATING ACTION BUTTON
   ========================================== */
.fab-whatsapp {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--whatsapp);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: fabPulse 2s infinite;
    transition: all var(--transition-base);
}

.fab-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.fab-whatsapp svg {
    width: 28px;
    height: 28px;
}

.fab-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ==========================================
   MOBILE BOTTOM BAR
   ========================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    padding: var(--space-sm);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    gap: var(--space-sm);
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-btn svg {
    width: 20px;
    height: 20px;
}

.call-btn {
    background: var(--white);
    color: var(--brand-dark);
    border: 2px solid var(--gray-200);
}

.wa-btn {
    background: var(--whatsapp);
    color: var(--white);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-xl);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .booking-widget {
        order: 2;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding: 100px 0 120px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .payment-logos {
        justify-content: center;
    }
    
    .fab-whatsapp {
        bottom: 80px;
        right: 10px;
        padding: var(--space-md);
    }
    
    .fab-label {
        display: none;
    }
    
    .mobile-bottom-bar {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: var(--space-md);
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .car-info {
        padding: var(--space-md);
    }
    
    .car-specs {
        font-size: 0.75rem;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
}
