/* --- Global Styles and Typography --- */
:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gold: #C8A951; /* The specified gold accent color */
    --color-dark-blue: #0A192F; /* A dark blue for contrast */
    --font-family: 'Poppins', sans-serif;
    --transition-duration: 0.3s;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--color-white);
    color: var(--color-black);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    color: var(--color-black);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--color-dark-blue);
}

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

.bg-light {
    background-color: #f8f8f8;
}

/* --- Buttons (Rounded Style) --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    margin: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 50px; /* Rounded buttons */
    transition: all var(--transition-duration) ease-in-out;
    cursor: pointer;
    font-size: 1rem;
}

.whatsapp-btn i {
    margin-right: 10px;
}

.primary-btn {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    border-color: var(--color-dark-blue);
}

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

.secondary-btn {
    background-color: transparent;
    color: var(--color-dark-blue);
    border-color: var(--color-gold);
}

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

.cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

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

/* Logo Alignment */
.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #bfa143; /* Matches your gold branding */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 600;
    padding: 10px 15px;
    transition: color var(--transition-duration);
}

nav ul li a:hover {
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark-blue);
}

/* --- 1. Hero Section --- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    /* Updated background with a car detailing image and a dark overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.pexels.com/photos/4557766/pexels-photo-4557766.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover no-repeat;
    background-color: var(--color-dark-blue); /* Fallback */
    color: var(--color-white); /* Ensures text is readable over the dark image */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--color-white); /* White headline on dark background */
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--color-white); /* White subtext on dark background */
}

/* Adjust button colors for the dark hero background */
.hero-section .primary-btn {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark-blue);
}

.hero-section .primary-btn:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-dark-blue);
}

.hero-section .secondary-btn {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero-section .secondary-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-dark-blue);
    border-color: var(--color-gold);
}

/* --- 2. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

.service-card:hover {
    transform: translateY(-10px); /* Lift animation */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Shadow animation */
}

.service-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--color-dark-blue);
    margin-bottom: 15px;
}

/* --- 3. Why Choose Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.why-us-item {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.check-icon {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.why-us-item h4 {
    margin-bottom: 5px;
    color: var(--color-dark-blue);
}

/* --- 4. Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-duration);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3; /* Enforce consistent aspect ratio for the grid */
}

.placeholder-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* --- 5. Contact Section (CTA) --- */
.bg-gold-cta {
    background-color: var(--color-dark-blue); /* Background highlight box */
    padding: 60px 0;
}

.contact-box {
    text-align: center;
}

.cta-headline {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.wide-cta .whatsapp-btn {
    min-width: 300px;
}

.bg-gold-cta .primary-btn {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark-blue);
}
.bg-gold-cta .primary-btn:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-dark-blue);
}
.bg-gold-cta .secondary-btn {
    color: var(--color-white);
    border-color: var(--color-white);
}
.bg-gold-cta .secondary-btn:hover {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
}


/* --- 6. Footer --- */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-grid {
    display: flex;
    justify-content: space-around;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-info h4 {
    color: var(--color-gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.copyright p {
    font-size: 0.8rem;
    color: #999;
}

/* --- JS Fade-in Animation Classes --- */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

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

/* --- Media Queries (Fully Responsive Layout) --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    
    /* Mobile Menu Toggle */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    .menu-toggle {
        display: block;
    }

    /* CTA Adjustments */
    .cta-headline {
        font-size: 2rem;
    }
    .wide-cta .whatsapp-btn {
        min-width: 100%;
    }
    .cta-group {
        flex-direction: column;
    }
    .btn {
        margin: 5px 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    .footer-info {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .section-padding {
        padding: 50px 0;
    }
}
/* 1. Ensure the gallery-item container manages the size */
.gallery-grid .gallery-item {
    /* Define a fixed or maximum height for all items in the grid */
    height: 250px; /* Adjust this value to control the vertical size */
    overflow: hidden; /* Important: Hides any part of the video that exceeds the height */
    position: relative; /* Needed if you add overlays later */
}

/* 2. Style for both Images and Videos within the gallery item */
.gallery-grid .gallery-item img,
.gallery-grid .gallery-item video {
    width: 100%; /* Makes the media fill the width of the container */
    height: 100%; /* Makes the media fill the height of the container */
    
    /* Ensures the video/image covers the entire container without squishing,
       it will crop the edges if the aspect ratio doesn't match the container. */
    object-fit: cover; 
    
    display: block; /* Removes any extra space beneath inline elements */
}

/* 3. Style for the gallery-grid (if not already defined) */
.gallery-grid {
    display: grid;
    /* Creates a 3-column layout on desktop, adjusts to 1 or 2 columns on mobile */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; /* Space between grid items */
}
/* 1. Ensure the hero section is positioned relative to anchor the video */
.hero-section {
    position: relative; 
    height: 100vh; /* Make the hero section take up the full screen height */
    overflow: hidden; /* Hide video overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 2. Position and size the video */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Make the video cover the entire container without stretching */
    object-fit: cover; 
    
    z-index: 1; /* Keep the video behind the content */
}

/* 3. Ensure the text content appears above the video */
.hero-content {
    position: relative; 
    z-index: 10; /* Bring content to the front */
    color: white; /* Make sure text is visible over the video */
    /* Add text-shadow for better readability over busy video content */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); 
}

/* Optional: Add a dim overlay to improve text readability */
/* Add this as an empty <div> with class 'video-overlay' right before the .hero-content */
.video-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark transparency */
    z-index: 5; /* Between the video (z-index: 1) and the content (z-index: 10) */
}

/* --- Modal Styling --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; /* Ensure it is above all other content */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); /* Darker, more professional overlay */
    backdrop-filter: blur(4px); /* Optional: Adds a nice blur effect */
}

.modal-content {
    background-color: #ffffff; /* Clean white background */
    margin: 5vh auto; /* 5% from the top and centered */
    padding: 30px;
    border: none;
    width: 90%; 
    max-width: 550px; /* Slightly wider modal */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Stronger shadow for depth */
    font-family: 'Poppins', sans-serif; /* Use your primary font */
    animation: slideInTop 0.4s ease-out; /* Use a nicer animation */
}

/* Modal Header/Title Styling */
.modal-content h2 {
    color: #333; /* Dark text */
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f2c700; /* Use a gold/accent line */
}

#modalServiceName {
    color: #f2c700; /* Highlight the service name with the accent color */
    font-weight: 700;
}

.close-btn {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: 300; /* Lighter weight 'x' */
    cursor: pointer;
    line-height: 1; /* Aligns 'x' better */
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #e74c3c; /* Red on hover for closing action */
    text-decoration: none;
}

/* Form Input Styling */
#quoteForm label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

#quoteForm input[type="text"],
#quoteForm input[type="tel"],
#quoteForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px; /* Slightly rounded corners */
    box-sizing: border-box; 
    font-size: 1em;
    transition: border-color 0.3s;
}

#quoteForm input:focus,
#quoteForm textarea:focus {
    border-color: #f2c700; /* Gold/Accent border on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(242, 199, 0, 0.3);
}

#quoteForm textarea {
    resize: vertical;
}

/* Button Styling (Assuming primary-btn is defined elsewhere, but ensuring it looks good here) */
.full-width.primary-btn {
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    /* If your primary-btn is gold: */
    background-color: #f2c700; 
    color: #333; /* Dark text on gold button */
}

.full-width.primary-btn:hover {
    background-color: #e0b400; /* Darker gold on hover */
    transform: translateY(-1px);
}

.modal-note {
    text-align: center;
    font-size: 0.9em;
    color: #999;
    margin-top: 15px;
}

/* Animation for entry */
@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Update the footer-grid to accommodate the 3rd column */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Now three columns */
    gap: 20px;
    padding-bottom: 30px;
}

/* Styling for the social icons wrapper */
.social-icons {
    margin-left:150px ;
    margin-top: 10px;
    display: flex;
    gap: 15px; /* Spacing between icons */
}

/* Styling for individual icons/links */
.social-icons a {
    color: #fff; /* Assuming your footer text is white/light */
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f2c700; /* Use your accent color on hover */
}

/* Media query for smaller screens to stack the columns */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        text-align: center;
    }
    .social-icons {
        justify-content: center; /* Center icons when stacked */
    }
}

/* --- Customer Reviews Section Styles --- */

#customer-reviews .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.review-icon {
    font-size: 2.5rem;
    color: var(--primary-color); /* Assuming you have a CSS variable for your primary color */
    margin-bottom: 15px;
    opacity: 0.7;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows the text to take up space */
}

.review-author p {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.review-author strong {
    font-weight: 700;
}

.rating {
    color: #FFC107; /* A nice gold/star color */
    margin-top: 5px;
}

.rating .fas.fa-star {
    font-size: 1rem;
    margin-right: 2px;
}

/* Make sure your existing CSS has a background color for bg-light, 
   for example: */
/*
.bg-light {
    background-color: #f8f8f8;
}
*/

/* --- 1. General Modal Structure (Ensure this handles both Quote and Review Modals) --- */
/* If you already have these, you can skip them, but ensure they target the .modal class */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border-radius: 10px;
    width: 90%; 
    max-width: 500px; /* Max width for a nice form box */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.modal-content h2 {
    color: #333;
    margin-top: 0;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color, #007bff); /* Assuming a primary color */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    cursor: pointer;
}

/* --- 2. Form Specific Styling (Applies to both forms) --- */

.modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="number"],
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    outline: none;
}

.modal-content textarea {
    resize: vertical;
}

/* --- 3. Review Modal Specific Styles --- */

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-input input[type="number"] {
    width: 60px; /* Smaller width for the rating number input */
    text-align: center;
    font-weight: 700;
}

.modal-note {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    margin-top: 15px;
}

/* Optional: Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
}

.gallery-grid {
    display: flex; /* Changes grid to a horizontal row */
    overflow-x: auto; /* Enables horizontal scrolling */
    gap: 15px; /* Space between items */
    padding-bottom: 20px; /* Space for the scrollbar */
    scroll-snap-type: x mandatory; /* Makes items "snap" into place */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.gallery-item {
    flex: 0 0 auto; /* Prevents items from shrinking */
    width: 300px; /* Set a fixed width for your items */
    scroll-snap-align: start; /* Alignment for the snapping feature */
}

.gallery-item img, 
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Optional: adds nice rounded corners */
}

/* Optional: Hide the scrollbar for a cleaner look */
.gallery-grid::-webkit-scrollbar {
    height: 8px;
}
.gallery-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}