/* 
   Evolution Detailing - Main Stylesheet
   Custom CSS for the car detailing business website
*/

:root {
    --primary: #1a3c6c;
    --primary-dark: #0f2342;
    --primary-light: #2a5ca0;
    --accent: #ff7b00;
    --accent-dark: #e06e00;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(26, 60, 108, 0.95) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
    background-color: rgba(26, 60, 108, 0.8);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    color: white;
    position: relative;
}

.brand-text:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

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

.nav-link.active {
    color: var(--accent) !important;
}

.booking-btn {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-btn:hover, .booking-btn:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

.booking-btn.active {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1617195920950-1145bf9a9c72?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 12rem 0 8rem;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.hero-buttons {
    position: relative;
}

/* Page Header */
.page-header {
    background-color: var(--primary);
    color: white;
    padding: 8rem 0 4rem;
    margin-bottom: 2rem;
    position: relative;
}

.page-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent);
}

/* Sections */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

/* Featured Services */
.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--accent);
}

.service-card.featured {
    border: 1px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}

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

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
}

.service-features i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.5rem 0;
}

/* Why Choose Us */
.feature-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(26, 60, 108, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.testimonial-author p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Call to Action */
.cta {
    background-color: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
}

.footer h5 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer ul li {
    margin-bottom: 0.75rem;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
    color: white;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* Booking Form */
.booking-form {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.booking-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.booking-info .card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Contact Form */
.contact-form {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-card {
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
}

.contact-info-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.contact-info-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

/* About Page */
.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.about-stats {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
}

/* Services Page */
.service-detail {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--light-gray);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.service-detail-content h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.price-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.price-table th {
    background-color: var(--primary);
    color: white;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table .price {
    font-weight: 600;
    color: var(--primary);
}

/* Gallery Page */
.gallery-filter {
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-filter button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem 0.5rem;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-filter button:hover, .gallery-filter button.active {
    color: var(--accent);
}

.gallery-item {
    margin-bottom: 2rem;
}

.gallery-item img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(26, 60, 108, 0.95);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .page-header {
        padding: 7rem 0 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .page-header {
        padding: 6rem 0 2rem;
    }
    
    .service-card, .feature-card, .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cta .btn + .btn {
        margin-left: 0 !important;
    }
}

/* Travel Fee Calculator Styles */
.travel-fee-calculator {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #1a3c6c;
}

.travel-fee-calculator h4 {
    color: #1a3c6c;
    margin-bottom: 1rem;
}

.travel-fee-result {
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.travel-fee-policy {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #666;
}

.travel-fee-highlight {
    color: #ff7b00;
    font-weight: 600;
}

.travel-fee-section .card {
    border: none;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-dark);
}
