/* ==========================================================================
   PREMIER DETAILING LLC - MASTER STYLESHEET
   Design: Luxury Automotive / Mobile First
   Developer: Joe Young & AI Co-Pilot
   ========================================================================== */

/* --- 1. CORE VARIABLES (BRAND IDENTITY) --- */
:root {
    --navy: #050a14; 
    --light-navy: #0f1c35;
    --gold: #bda26b; 
    --gold-hover: #e2c285;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray: #a8b2d1;
    --glass-bg: rgba(5, 10, 20, 0.85);
    --border-gold: rgba(197, 160, 89, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* --- 2. RESET & ACCESSIBILITY --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy);
    color: var(--off-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

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

/* Keyboard Focus for Accessibility */
*:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* --- 3. GLASSMORPHISM NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    padding: 1rem 5%;
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* --- 4. BUTTONS & UI ELEMENTS --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* --- 5. HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5% 3rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 10, 20, 0.7), rgba(5, 10, 20, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--off-white);
    margin-bottom: 2.5rem;
}

/* --- 6. TRUST BAR --- */
.trust-bar {
    background: rgba(189, 162, 107, 0.05); /* Very subtle gold tint */
    color: var(--gold);
    padding: 1.5rem 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid rgba(189, 162, 107, 0.2);
    border-bottom: 1px solid rgba(189, 162, 107, 0.2);
    letter-spacing: 1px;
}

}

/* --- 7. GRID LAYOUTS & CARDS --- */
/* --- LUXURY SPACING UPGRADE --- */
.section {
    padding: 10rem 5%; /* Increased from 8rem to 10rem to give more air */
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem; /* Pushes the content down away from the title */
}

.section-header h2 {
    font-size: 3.5rem; /* Slightly larger for more authority */
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}


.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--light-navy);
    border: 1px solid var(--border-gold);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

/* --- 8. INTERACTIVE BOOKING CONCIERGE --- */
.booking-container {
    background: var(--light-navy);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-premium);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 2px;
    background: var(--border-gold);
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    color: var(--gray);
    transition: var(--transition);
    font-size: 1.2rem;
}

.step-indicator.active {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

.step-indicator.completed {
    border-color: var(--gold);
    background: var(--navy);
    color: var(--gold);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--navy);
    border: 1px solid var(--border-gold);
    color: var(--white);
    font-size: 1.1rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-option {
    border: 2px solid var(--border-gold);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: left;
}

.service-option:hover {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.05);
}

.service-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-option.selected {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
}

.service-price {
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
    display: block;
    margin: 10px 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

/* --- 9. FOOTER --- */
.footer {
    background: #02040a;
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-gold);
    text-align: center;
}

.footer h2 {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.legal {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #666;
}

/* --- 10. ANIMATIONS & MEDIA QUERIES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        background: var(--glass-bg);
    }
    
    .nav-links {
        display: none; /* Can be toggled with JS later */
    }

    .booking-container {
        padding: 2rem 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
/* Fix the ugly default Safari/Mac dropdown */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 3rem !important; /* Make room for the custom arrow */
}
/* --- MEGA HOMEPAGE ADDITIONS: GALLERY & REVIEWS --- */

/* The Photo Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08); /* Creates a slow zoom effect when they hover over a photo */
}

/* The Review Cards */
.review-card {
    background: var(--navy);
    border: 1px solid var(--border-gold);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: left;
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
}

.review-stars {
    color: var(--gold);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.review-card p {
    font-style: italic;
    color: var(--off-white);
    font-size: 1.05rem;
}
/* --- ELITE POLISH --- */
.card, .review-card {
    background: rgba(15, 28, 53, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(189, 162, 107, 0.3) !important;
    padding: 4rem 3rem !important; /* Makes the cards physically bigger */
}

.card:hover {
    box-shadow: 0 0 30px rgba(189, 162, 107, 0.15) !important;
    border-color: var(--gold) !important;
}

/* Fix the text contrast */
.card p, .review-card p {
    color: #ffffff; /* Brighter white for easier reading */
    line-height: 1.8;
}
/* --- SCREEN EDGE PROTECTION --- */
.section {
    padding-left: 10% !important;
    padding-right: 10% !important;
    box-sizing: border-box;
}

/* Make sure the split layout (Process section) doesn't hit the edges */
#why-us .section-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure mobile users have a gap too */
@media (max-width: 768px) {
    .section {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}
/* --- LUXURY SHOWROOM GALLERY --- */
.gallery-item {
    position: relative;
    border: 1px solid rgba(189, 162, 107, 0.2);
    background: #000; /* Black background behind images for a deeper look */
}

.gallery-item img {
    filter: brightness(0.9); /* Slightly dims the photo for a moodier, premium look */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    filter: brightness(1.1); /* "Lights up" the car when they hover over it */
    transform: scale(1.05);
}

/* Add a gold border-bottom to the whole gallery to separate it from the reviews */
.gallery-grid {
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(189, 162, 107, 0.1);
}
