/* 
   RENTAL ORLEANS | 2025 SOBER LUXURY EDITION 
   Theme: Midnight & Bronze 
*/

:root {
    /* --- COLOR PALETTE --- */
    --bg-dark: #050505;
    /* Ultra-Deep Black */
    --bg-panel: #0a0a0a;
    /* Slightly lighter for cards */
    --text-main: #f0f0f0;
    /* Off-white for better reading than pure white */
    --text-muted: #888888;
    /* Sober grey */

    /* Luxury Accents */
    --accent: #C4A661;
    /* Matte Bronze/Gold (Rolex Style) */
    --accent-glow: 0 0 30px rgba(196, 166, 97, 0.15);
    /* Subtle glow */

    /* Glassmorphism 2.0 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur-strength: 12px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
    /* Very smooth ease */
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    /* Subtle Grain Texture can be added via pseudo-element if needed, kept clean for now */
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    /* Lighter weight for elegance */
    letter-spacing: -0.02em;
    color: #fff;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    /* Editorial look */
    font-weight: 300;
}

.section-title span {
    color: var(--accent);
    font-weight: 600;
}

/* --- NAVIGATION --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s var(--ease-luxury);
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0) 100%);
}

.nav-container.scrolled {
    padding: 1.5rem 5vw;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-luxury);
}

.nav-link:hover {
    color: var(--accent);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8vw;
    position: relative;
    overflow: hidden;
}

/* Background Backlight for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 70%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(196, 166, 97, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-visual {
    flex: 1.2;
    z-index: 1;
    /* Lower z-index so it doesn't cover text */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.sober-car-art {
    width: 100%;
    /* Reduced from 120% to prevent massive overlap */
    max-width: 900px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transform: none;
    /* Removed translation that pushed it onto text */
    transition: transform 0.5s var(--ease-luxury);
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-luxury);
    text-decoration: none;
}

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

/* "Magnetic" Effect Class (JS Hook) */
.btn-magnetic {
    will-change: transform;
}

/* --- CAR GRID (BENTO STYLE) --- */
#fleet {
    padding: 8rem 5vw;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.car-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    /* Sharper corners for modern look */
    overflow: hidden;
    transition: all 0.4s var(--ease-luxury);
    position: relative;
    cursor: pointer;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.car-card .btn-primary {
    position: relative;
    z-index: 2;
    /* Ensure button is clickable above the stretched link */
}

.car-card:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* ... existing code ... */

.detail-card:hover {
    border-color: var(--accent);
    transform: scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.car-image-container {
    padding: 3rem 2rem;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s var(--ease-luxury);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.car-card:hover .car-image {
    transform: scale(1.08)translateY(-5px);
}

.car-details {
    padding: 2rem;
}

.car-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.car-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.car-specs {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.car-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent);
}

/* --- SERVICES --- */
#services {
    padding: 8rem 5vw;
    background: #0a0a0a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
}

.service-card {
    padding: 3rem 2rem;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-color: var(--glass-border);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- CONTACT --- */
#contact {
    padding: 8rem 5vw;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* --- ABOUT LOGO INTEGRATION --- */
.about-logo-container {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(196, 166, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-logo {
    width: 180px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.about-logo:hover {
    transform: scale(1.05) rotate(2deg);
    opacity: 1;
}

/* Fix for Calendar Icon Visibility on Dark Background */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* --- FILTERS (Catalogue) --- */
.filter-section {
    position: relative;
    z-index: 50;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.custom-dropdown {
    position: relative;
    font-family: var(--font-heading);
    cursor: pointer;
    min-width: 280px;
    /* Slightly wider */
    user-select: none;
}

.selected-option {
    background: #000;
    /* Darker background */
    border: 1px solid var(--accent);
    /* Consistent styling */
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    /* White text for contrast */
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-luxury);
}

.selected-option::after {
    content: '▼';
    font-size: 0.8rem;
    color: var(--accent);
    margin-left: 1rem;
}

.selected-option:hover {
    box-shadow: 0 0 15px rgba(196, 166, 97, 0.2);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-top: none;
    display: none;
    /* JS toggles this */
    flex-direction: column;
    z-index: 100;
}

.dropdown-options.show {
    display: flex;
    animation: fadeInDropdown 0.3s var(--ease-luxury);
}

.filter-option {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.filter-option:hover {
    background: rgba(196, 166, 97, 0.1);
    color: var(--accent);
    padding-left: 2rem;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ABOUT PAGE (Editorial) --- */
.about-hero {
    padding: 12rem 8vw 6rem;
    text-align: center;
}

/* --- CUSTOM RANGE SLIDER --- */
input[type=range] {
    -webkit-appearance: none;
    /* Webkit */
    appearance: none;
    /* Standard */
    width: 100%;
    background: transparent;
    margin: 10px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    /* Sharp edges */
    border: 1px solid var(--glass-border);
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 10px;
    /* Rectangular thumb */
    border-radius: 0px;
    /* Sharp edges */
    background: var(--accent);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -9px;
    /* adjust for track height */
    box-shadow: 0 0 10px rgba(196, 166, 97, 0.5);
}

/* Firefox support */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0px;
    border: 1px solid var(--glass-border);
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 10px;
    border: none;
    border-radius: 0px;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(196, 166, 97, 0.5);
}

.editorial-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.editorial-lead {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.05em;
}

.text-grid-section {
    padding: 4rem 8vw 8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.text-grid-item h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.text-grid-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

/* --- ANIMATIONS (Utility Classes) --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--ease-luxury);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MODAL (Previously Missing) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-luxury);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detail-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    /* ensure it stacks */
    display: flex;
    flex-direction: column;
    max-width: 800px;
    /* Reduced width since it's stacked */
    width: 100%;
    margin: 2rem auto;
    /* Center it */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s var(--ease-luxury), box-shadow 0.4s var(--ease-luxury);
}

.detail-card:hover {
    transform: scale(1.005);
    /* Very subtle lift */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-luxury);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e0c888;
}


/* --- CATALOGUE GRID (Restore) --- */
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 8vw 4rem;
}

.catalogue-header {
    padding: 10rem 8vw 4rem;
    text-align: center;
}


/* --- DETAIL PAGE (Restore) --- */
.detail-container {
    padding: 10rem 8vw 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
}

.detail-image-container {
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.detail-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.detail-content {
    padding: 3rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    line-height: 1;
}

.detail-price {
    font-size: 2rem;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-bottom: 2.5rem;
}

.spec-item {
    text-align: center;
}

.spec-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
}


/* --- SERVICE IMAGES --- */
.service-image-container {
    position: relative;
    overflow: hidden;
}

.service-overlay-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2em;
}

.service-image-container img {
    transition: transform 0.7s var(--ease-luxury);
}

.service-image-container:hover img {
    transform: scale(1.05);
}

.services-visuals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-bottom: 4rem;
}

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

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Mobile menu logic to be handled by JS separately or simplified */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

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

    .sober-car-art {
        width: 100%;
        max-width: 500px;
        transform: none;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Fix for Mobile Modal Padding */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        /* More space for content, less padding */
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
        /* Scroll if content is too tall */
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    /* Mobile Service Images */
    .service-image-container img {
        height: 250px !important;
    }

    .service-overlay-text {
        font-size: 1.2rem;
        bottom: 1rem;
        left: 1rem;
    }
}

/* --- FOOTER --- */
footer {
    padding: 3rem 8vw;
    border-top: 1px solid var(--glass-border);
    background-color: #050505;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.6;
    transition: all 0.3s;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}