/* Professional RV Repair Theme */
:root {
    --primary-color: #1565C0;
    --primary-hover: #1045a0;
    --secondary-color: #FF6F00;
    --secondary-hover: #e65100;
    --success-color: #2E7D32;
    --warning-color: #FF9800;
    --warning-hover: #f57c00;
    --danger-color: #D32F2F;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --black: #000000;
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

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

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

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--black);
}

.btn-warning:hover {
    background-color: var(--warning-hover);
    border-color: var(--warning-hover);
    color: var(--black);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
    transform: translateY(-1px);
}

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

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976d2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity=".05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat;
    opacity: 0.3;
}

.page-hero {
    padding: 120px 0 80px;
}

.min-vh-75 {
    min-height: 75vh !important;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Project Showcase */
.project-showcase {
    padding: 2rem 0;
}

.project-showcase img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-showcase img:hover {
    transform: scale(1.02);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Team Cards */
.team-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-content {
    padding: 1.5rem;
}

/* Accordion */
.accordion-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
    background-color: var(--light-gray);
    border: none;
    border-radius: 10px !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.25);
}

.accordion-body {
    padding: 1.5rem;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: block;
}

.cookie-consent-banner.hidden {
    display: none;
}

.cookie-consent-banner p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-consent-banner .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Map Container */
.map-container {
    overflow: hidden;
    border-radius: 10px;
}

.map-container iframe {
    border-radius: 10px;
}

/* Service Detail Sections */
.service-detail {
    padding: 3rem 0;
}

.service-detail h3 {
    color: var(--primary-color);
}

/* FAQ Sections */
.faq-section {
    scroll-margin-top: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
    
    .timeline-item {
        padding: 1rem 0;
    }
    
    .project-showcase {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent-banner,
    .btn,
    footer {
        display: none !important;
    }
    
    .page-hero {
        padding: 2rem 0;
        background: none !important;
        color: black !important;
    }
    
    .hero-section {
        padding: 2rem 0;
        background: none !important;
        color: black !important;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid var(--warning-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
    
    .btn-warning {
        border: 2px solid var(--warning-color);
    }
    
    .service-card,
    .testimonial-card,
    .team-card,
    .contact-card {
        border: 1px solid #ccc;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .service-card,
    .testimonial-card,
    .team-card,
    .contact-card,
    .project-showcase img,
    .navbar-nav .nav-link {
        transition: none;
    }
    
    .btn:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .team-card:hover,
    .contact-card:hover {
        transform: none;
    }
}