/* ================================
   Modern CSS for Bercy Car
   Optimized for SEO and Performance
   ================================ */

/* CSS Custom Properties (Variables) */
:root {
    /* Moroccan Sunshine Color Palette */
    --primary-color: #D2691E; /* Terracotta - Moroccan clay */
    --primary-dark: #A0522D; /* Sienna - Deep terracotta */
    --secondary-color: #E67E22; /* Sunset orange */
    --accent-color: #D4AF37; /* Rich gold - Moroccan gold */
    --accent-dark: #B8860B; /* Dark goldenrod */
    --text-dark: #3E2723; /* Deep brown - Moroccan wood */
    --text-medium: #6D4C41; /* Medium brown */
    --text-light: #8D6E63; /* Light brown */
    --bg-light: #FFF8DC; /* Cornsilk - Sahara sand */
    --bg-warm: #F5E6D3; /* Warm beige - Desert sand */
    --bg-white: #FFFEF7; /* Warm white */
    --border-color: #DEB887; /* Burlywood - Warm border */
    --moroccan-blue: #1A4D7C; /* Deep Moroccan tile blue */
    --moroccan-teal: #008B8B; /* Moroccan teal accent */
    --success-color: #27ae60;
    --success-dark: #229954;
    --shadow: 0 4px 15px rgba(210, 105, 30, 0.15); /* Warm shadow */
    --shadow-hover: 0 8px 25px rgba(210, 105, 30, 0.25); /* Warm hover shadow */
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3); /* Golden glow */

    /* Typography - Readable fonts with Moroccan elegance */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-headings: 'Trebuchet MS', 'Lucida Grande', 'Arial', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    --heading-line-height: 1.4;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Border Radius - Moroccan arches */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-arch: 50% 50% 0 0; /* Moroccan arch shape */

    /* Hover Transforms - Standardized */
    --hover-lift-sm: -2px;
    --hover-lift-md: -5px;
    --hover-lift-lg: -10px;

    /* Moroccan Pattern Colors */
    --pattern-color-1: rgba(212, 175, 55, 0.1); /* Light gold */
    --pattern-color-2: rgba(210, 105, 30, 0.05); /* Light terracotta */

    /* Aspect Ratios */
    --aspect-16-9: 56.25%;
    --aspect-4-3: 75%;

    /* Container */
    --container-max-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-slow: 0.5s;
}

/* ================================
   Global Styles
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: #2c3e50; /* Darker text for better readability */
    line-height: var(--line-height-base);
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-light) 50%, var(--bg-white) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Moroccan decorative pattern overlay - subtle for readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, var(--pattern-color-1) 35px, var(--pattern-color-1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--pattern-color-2) 35px, var(--pattern-color-2) 70px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15; /* Reduced from 0.4 for better readability */
}

/* ================================
   Accessibility - Skip Link
   ================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    top: 0;
}

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

a {
    color: var(--primary-dark); /* Changed from primary-color for better contrast (WCAG AA) */
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover, a:focus {
    color: var(--text-dark); /* Changed from accent-color for better contrast */
}

/* ================================
   Container
   ================================ */

/* Headings - Moroccan elegant style with improved readability */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: var(--heading-line-height);
    color: var(--primary-dark); /* Darker for better contrast */
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-color);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ================================
   Header - Moroccan Style
   ================================ */

header {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-warm) 100%);
    box-shadow: var(--shadow-gold);
    position: sticky;
    border-bottom: 4px solid var(--accent-color);
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
}

header .logo img {
    max-height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    transition: all var(--transition-speed);
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.language-selector {
    flex-shrink: 0;
}

.language-selector select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color var(--transition-speed);
    min-width: 130px;
    width: 130px;
}

.language-selector select:hover,
.language-selector select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Hamburger Menu Button (hidden on desktop) */
.hamburger-btn {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: all var(--transition-speed);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

/* Hamburger animation when menu is open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ================================
   Unified Card System - Moroccan Style
   ================================ */

/* Base card styles - Moroccan tile inspired */
.card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-warm) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Moroccan corner decoration */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.2;
}

.card:hover {
    transform: translateY(var(--hover-lift-md));
    box-shadow: var(--shadow-gold);
    border-color: var(--accent-color);
}

/* Card variants */
.card--light {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-warm) 100%);
}

.card--large-radius {
    border-radius: var(--radius-lg);
}

.card--overflow-hidden {
    overflow: hidden;
}

.card--accent-border {
    border-left: 5px solid var(--accent-color);
    border-top: 1px solid var(--accent-color);
}

.card--lift-sm:hover {
    transform: translateY(var(--hover-lift-sm));
}

.card--lift-lg:hover {
    transform: translateY(var(--hover-lift-lg));
}

.card--no-hover:hover {
    transform: none;
    border-color: var(--border-color);
}

/* ================================
   Hero Section - Moroccan Sunset Style
   ================================ */

.hero {
    /* Background with overlay support for images */
    /* Gradient-only version (commented out):
    background:
        linear-gradient(135deg,
            rgba(210, 105, 30, 0.85) 0%,
            rgba(230, 126, 34, 0.85) 35%,
            rgba(243, 156, 18, 0.85) 65%,
            rgba(212, 175, 55, 0.85) 100%
        );
    End of commented gradient */

    /* Active: Image with lighter dark overlay for text contrast */
    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        url(../images/agadir-hero.jpg) center/cover no-repeat;
    color: var(--bg-white);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid var(--accent-color);
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Moroccan geometric pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    pointer-events: none;
}

/* Sun icon decoration */
.hero::after {
    content: '☀';
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 4rem;
    opacity: 0.2;
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    color: var(--bg-white);
    text-shadow:
        3px 3px 12px rgba(0, 0, 0, 0.9),
        2px 2px 8px rgba(0, 0, 0, 0.8),
        1px 1px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
    text-shadow:
        2px 2px 10px rgba(0, 0, 0, 0.9),
        1px 1px 6px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.hero-highlight {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* ================================
   Booking Form Styles
   ================================ */

.booking-form-container {
    max-width: 650px;
    margin: var(--spacing-md) auto 0;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-speed);
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.checkbox-group {
    margin: var(--spacing-xs) 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.btn-large {
    padding: 1rem var(--spacing-md);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-form-container {
        padding: var(--spacing-sm);
    }
}

/* ================================
   Button System - Moroccan Golden Style
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Moroccan gold shimmer effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: var(--bg-white);
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--success-dark);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--success-color) 100%);
    transform: translateY(var(--hover-lift-sm)) scale(1.05);
    box-shadow: var(--shadow-hover);
    color: var(--bg-white);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(var(--hover-lift-sm)) scale(1.05);
}

.btn-book {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--bg-white);
    width: 100%;
    box-shadow: var(--shadow-gold);
    border: 2px solid var(--accent-dark);
    padding: 0.65rem 1rem; /* Slightly reduced padding for compact cards */
    font-size: 0.95rem; /* Slightly smaller font */
}

.car-details .btn-book {
    margin-top: 0.75rem; /* Fixed margin for precise alignment */
    margin-bottom: 0; /* Remove any bottom margin */
    align-self: stretch; /* Ensure button fills width in grid */
}

.btn-book:hover,
.btn-book:focus {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    transform: translateY(var(--hover-lift-sm)) scale(1.02);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    color: var(--bg-white);
}

.whatsapp-icon {
    height: 24px;
    width: auto; /* Respect natural image aspect ratio */
    display: inline-block;
}

/* ================================
   Trust Badges Section
   ================================ */

.trust-badges {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: var(--spacing-lg) var(--spacing-md);
    border-bottom: 3px solid var(--accent-color);
    position: relative;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-color);
    transition: all var(--transition-speed);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    border-color: var(--primary-color);
}

.badge-icon {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.3;
}

/* Responsive adjustments for trust badges */
@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .badge-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }

    .badge-item {
        padding: var(--spacing-sm);
    }
}

/* ================================
   Simplified Info Section
   ================================ */

.info-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed);
    box-shadow: var(--shadow);
}

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

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.link-arrow:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Location Info Section
   ================================ */

.location-info {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-light) 100%);
    position: relative;
    border-top: 4px solid var(--moroccan-blue);
}

/* Airplane decoration for flights section */
.location-info::before {
    content: '✈️';
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    opacity: 0.1;
}

.location-info h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: var(--spacing-lg);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.location-card {
    background-color: var(--bg-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.location-card:hover {
    transform: translateY(var(--hover-lift-sm));
    box-shadow: var(--shadow-hover);
}

.location-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.location-card ul {
    list-style: none;
    margin-top: var(--spacing-xs);
}

.location-card ul li {
    padding: 0.25rem 0;
    padding-left: var(--spacing-sm);
    position: relative;
}

.location-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.location-card p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #2c3e50; /* Darker for better readability */
}

.location-card strong {
    color: var(--text-dark); /* Changed to text-dark for better contrast (WCAG AA) */
    font-size: 0.85rem;
    font-weight: 700;
}

.flights-summary {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg,
        var(--moroccan-blue) 0%,
        var(--primary-color) 50%,
        var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-gold);
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.flights-summary h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.flights-summary p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.flights-summary p:last-child {
    margin-bottom: 0;
}

/* ================================
   Why Us Section - Moroccan Style
   ================================ */

.why-us {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 50%, var(--bg-warm) 100%);
    position: relative;
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
}

.why-us h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.feature:hover {
    transform: translateY(var(--hover-lift-md));
    background-color: var(--bg-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ================================
   Surf Spots / Coast Section - Moroccan Beach Style
   ================================ */

.surf-spots-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg,
        #FFF8DC 0%,      /* Sahara sand */
        #FFE4B5 25%,     /* Warm beach */
        #F5DEB3 50%,     /* Wheat */
        #DEB887 75%,     /* Burlywood */
        #D2B48C 100%);   /* Tan */
    position: relative;
    border-top: 4px solid var(--secondary-color);
    border-bottom: 4px solid var(--secondary-color);
}

/* Beach wave decoration */
.surf-spots-section::before {
    content: '🌊';
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 2rem;
    opacity: 0.15;
}

.surf-spots-section::after {
    content: '🏖️';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.15;
}

.surf-spots-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark); /* Strong contrast on beach gradient */
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}

.surf-spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.surf-spot-card {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.surf-spot-card:hover {
    transform: translateY(var(--hover-lift-md));
    box-shadow: var(--shadow-hover);
}

.surf-spot-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.surf-spot-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.surf-spot-card p {
    color: #2c3e50; /* Darker for better readability */
    font-size: 0.95rem;
    line-height: 1.7;
}

.surf-spot-card strong {
    color: var(--text-dark); /* Changed to text-dark for better contrast (WCAG AA) */
    font-weight: 700;
}

.surf-info-box {
    margin-top: var(--spacing-xl);
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.surf-info-box h3 {
    font-size: 1.5rem;
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.surf-info-box ul {
    list-style: none;
    padding: 0;
}

.surf-info-box li {
    padding: var(--spacing-xs) 0;
    font-size: 1rem;
    color: #2c3e50; /* Darker for better readability */
    line-height: 1.7;
}

.surf-info-box strong {
    color: var(--text-dark); /* Changed to text-dark for better contrast (WCAG AA) */
    font-weight: 700;
}

/* ================================
   Cars Section - Moroccan Style
   ================================ */

.cars-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-warm) 100%);
    position: relative;
}

/* Car emoji decoration */
.cars-section::before {
    content: '🚗';
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 3rem;
    opacity: 0.1;
}

.cars-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: #5a6c7d; /* Darker gray for better readability */
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md); /* Reduced from lg for more compact layout */
    margin-top: var(--spacing-lg);
}

.car-card {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-warm) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid var(--border-color);
    position: relative;
}

/* Moroccan corner accent */
.car-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.15;
    border-radius: 0 var(--radius-lg) 0 0;
}

.car-card:hover {
    transform: translateY(var(--hover-lift-lg)) scale(1.02);
    box-shadow: var(--shadow-gold);
    border-color: var(--accent-color);
}

.car-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* Reduced from 240px for more compact cards */
    background-color: var(--bg-light);
}

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

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

.price-badge {
    position: absolute;
    top: 0.75rem; /* Reduced from spacing-sm */
    right: 0.75rem; /* Reduced from spacing-sm */
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    color: var(--bg-white);
    padding: 0.35rem 0.75rem; /* Reduced padding for compact design */
    border-radius: 20px; /* Slightly smaller radius */
    font-weight: 700;
    font-size: 1rem; /* Slightly smaller for compact design */
    box-shadow: var(--shadow-gold);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.car-details {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md); /* Reduced top/side padding */
    display: grid; /* Changed from flex to grid for precise alignment */
    grid-template-rows: auto auto auto auto auto; /* 5 rows: title, desc, features, pricing, button */
    position: relative;
    z-index: 1;
}

.car-details h3 {
    font-size: 1.4rem; /* Slightly smaller for compact design */
    color: var(--primary-dark); /* Darker for better contrast */
    margin-bottom: 0.5rem; /* Reduced from spacing-sm */
    font-family: var(--font-headings);
    height: 2.3rem; /* Fixed height instead of min-height for precise alignment */
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.car-details p {
    color: #2c3e50; /* Darker for better readability */
    font-size: 0.9rem; /* Slightly smaller for compact design */
    margin-bottom: 0.75rem; /* Reduced from spacing-sm */
    line-height: 1.5; /* Slightly tighter */
    height: 6.75rem; /* Fixed height (5 lines * 1.5 line-height * 0.9rem) for precise alignment */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Max 5 lines */
    -webkit-box-orient: vertical;
}

.car-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem; /* Reduced from spacing-xs for compact layout */
    list-style: none;
    margin: 0.5rem 0; /* Reduced from spacing-sm */
    padding: 0.75rem; /* Reduced from spacing-sm */
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-warm) 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    height: 6.5rem; /* Increased from 5rem to accommodate 2-line text like "Aire Acondicionado" */
}

.car-features li {
    font-size: 0.8rem; /* Reduced from 0.85rem to fit longer text better */
    color: #2c3e50; /* Dark for strong contrast */
    font-weight: 500;
    display: flex;
    align-items: flex-start; /* Changed from center to handle multi-line text */
    height: 2.8rem; /* Increased from 2rem to accommodate 2 lines */
    overflow: hidden; /* Prevent overflow */
    word-break: break-word; /* Allow long words to break */
    line-height: 1.4; /* Better line spacing for wrapped text */
}

.car-pricing {
    margin: 0.75rem 0; /* Reduced from spacing-sm */
    padding: 0.5rem 0; /* Reduced from spacing-sm */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    height: 3.5rem; /* Fixed height instead of min-height for precise alignment across cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-main {
    font-size: 1.2rem; /* Slightly smaller for compact design */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem; /* Reduced from spacing-xs */
    line-height: 1.2;
}

.price-secondary {
    font-size: 0.85rem; /* Slightly smaller for compact design */
    color: var(--text-light);
    line-height: 1.2;
}

/* ================================
   Travel Info Section
   ================================ */

.travel-info {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-white);
}

.travel-info h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.info-box {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.info-box p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.info-box strong {
    color: var(--primary-color);
}

/* ================================
   Contact Section
   ================================ */

.contact-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    opacity: 0.95;
}

.contact-methods {
    margin: var(--spacing-lg) 0;
}

.contact-whatsapp {
    display: inline-block;
    transition: transform var(--transition-speed);
}

.contact-whatsapp:hover {
    transform: scale(1.05);
}

.contact-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--spacing-sm);
    color: var(--bg-white);
}

.social-links {
    margin-top: var(--spacing-md);
}

.social-links a {
    display: inline-block;
    margin: 0 var(--spacing-sm);
    transition: transform var(--transition-speed);
}

.social-links a:hover {
    transform: scale(1.2);
}

.business-hours {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.business-hours h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.business-hours p {
    font-size: 1rem;
    opacity: 0.95;
}

/* Location Map */
.location-map {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.location-map h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: var(--spacing-xs);
    color: var(--bg-white);
}

.location-map p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
}

.map-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    background-color: var(--bg-light);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* ================================
   Footer - Moroccan Style
   ================================ */

footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--text-dark) 100%);
    color: var(--bg-light);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    border-top: 5px solid var(--accent-color);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    margin-bottom: var(--spacing-sm);
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

footer h4 {
    font-size: 1.2rem;
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: var(--spacing-xs);
}

footer a {
    color: var(--text-light);
    transition: color var(--transition-speed);
}

footer a:hover,
footer a:focus {
    color: var(--bg-white);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ================================
   How to Rent Section
   ================================ */

.how-to-rent {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-light);
}

.how-to-rent h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.how-to-content {
    margin-top: var(--spacing-lg);
}

/* Video Section */
.how-to-video {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.how-to-video h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.video-wrapper {
    position: relative;
    padding-bottom: var(--aspect-16-9);
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-caption {
    margin-top: var(--spacing-md);
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* Rental Steps */
.how-to-steps {
    margin: var(--spacing-lg) 0;
}

.rental-step {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.rental-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content ul li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    line-height: 1.6;
}

.step-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.step-content strong {
    color: var(--text-dark); /* Changed from primary-color for better contrast (WCAG AA) */
    font-weight: 700;
}

/* Important Notes Section */
.important-notes {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.important-notes h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.note-card {
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.note-card:hover {
    transform: translateY(var(--hover-lift-md));
    box-shadow: var(--shadow);
}

.note-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.note-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.note-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.note-card p:last-child {
    margin-bottom: 0;
}

.note-card strong {
    color: var(--text-dark); /* Changed from primary-color for better contrast (WCAG AA) */
    font-weight: 700;
}

/* Rental CTA */
.rental-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.rental-cta h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.rental-cta p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.btn-large {
    font-size: 1.2rem;
    padding: var(--spacing-md) var(--spacing-lg);
}

/* ================================
   FAQ Section
   ================================ */

.faq-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-white);
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.faq-content {
    margin-top: var(--spacing-lg);
}

.faq-language-section {
    margin-bottom: var(--spacing-xl);
}

.faq-language-title {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.faq-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(var(--hover-lift-sm));
}

.faq-item[open] {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-hover);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-answer {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
}

.faq-answer p {
    line-height: 1.7;
    margin-bottom: var(--spacing-xs);
}

.faq-answer ul {
    list-style: none;
    padding-left: var(--spacing-md);
}

.faq-answer ul li {
    padding: var(--spacing-xs) 0;
    position: relative;
}

.faq-answer ul li::before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: var(--success-color);
    font-weight: bold;
}

.faq-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: 15px;
    text-align: center;
}

.faq-cta h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

/* ================================
   Responsive Design
   ================================ */

/* Navigation breakpoint for longer text (e.g. French) */
@media (max-width: 1100px) {
    header .logo img {
        max-height: 50px;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }

    header .container {
        gap: 0.5rem;
    }

    .main-nav ul {
        gap: 0.4rem;
    }

    .language-selector select {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        min-width: 115px;
        width: 115px;
    }
}

/* Tablet/Medium screens */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .location-grid,
    .cars-grid {
        gap: var(--spacing-md);
    }
}

/* Switch to vertical navigation for very long text */
@media (max-width: 950px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

    .main-nav a {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        position: relative;
    }

    /* Show hamburger button on mobile */
    .hamburger-btn {
        display: flex;
        order: 2; /* Position after logo */
        margin-left: auto;
    }

    /* Hide navigation by default on mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-hover);
        z-index: 1000;
        order: 4; /* Appears below everything */
        width: 100%;
        margin-top: var(--spacing-sm);
    }

    /* Show navigation when menu is open */
    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }

    /* Language selector positioning */
    .language-selector {
        order: 3;
        margin-left: var(--spacing-sm);
    }

    .language-selector select {
        width: 110px;
        min-width: 110px;
        font-size: 0.9rem;
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

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

    .car-features {
        grid-template-columns: 1fr;
        height: auto; /* Remove fixed height on mobile for better flexibility */
    }

    /* Adjust car card text heights for mobile - remove fixed heights for natural flow */
    .car-details {
        display: flex; /* Switch back to flex on mobile for natural flow */
        flex-direction: column;
    }

    .car-details h3 {
        height: auto; /* Remove fixed height */
        -webkit-line-clamp: unset; /* Remove line clamp */
    }

    .car-details p {
        height: auto; /* Remove fixed height on mobile for natural flow */
        -webkit-line-clamp: unset; /* Remove line clamp */
    }

    .car-features li {
        height: auto;
    }

    .car-pricing {
        height: auto; /* Remove fixed height */
    }

    .car-details .btn-book {
        margin-top: auto; /* Push to bottom on mobile */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* How to Rent - Mobile */
    .rental-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rental-step:hover {
        transform: translateY(-5px);
    }

    .step-number {
        margin-bottom: var(--spacing-sm);
    }

    .step-content ul li {
        text-align: left;
    }

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

    /* FAQ - Mobile */
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    header .logo img {
        max-height: 50px;
    }

    .price-badge {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ================================
   Sticky WhatsApp Floating Button
   ================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all var(--transition-speed);
    animation: bounce-float 2s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

@keyframes bounce-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile: smaller and bottom-right */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

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

/* ================================
   CTA Button Animations
   ================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: var(--shadow-gold), 0 0 0 0 rgba(39, 174, 96, 0.7);
    }
    50% {
        box-shadow: var(--shadow-gold), 0 0 0 10px rgba(39, 174, 96, 0);
    }
}

.hero .btn-primary {
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none; /* Stop animation on hover */
}

/* ================================
   Accessibility
   ================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Modern focus-visible for better UX */
a:focus-visible,
button:focus-visible,
select:focus-visible,
.btn:focus-visible,
.car-card:focus-visible,
.location-card:focus-visible,
.faq-item:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        --border-color: #000;
    }
}

/* ================================
   Print Styles
   ================================ */

@media print {
    header,
    .hero-cta,
    .contact-section,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .car-card,
    .location-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
