/* Custom CSS for LC HVAC Website */

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0d6efd;
}

a {
    color: #0d6efd;
    transition: all 0.3s ease;
}

a:hover {
    color: #0a58ca;
    text-decoration: none;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #fff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.dropdown-item.active {
    background-color: #0d6efd;
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://source.unsplash.com/random/1920x1080/?hvac');
    background-size: cover;
    background-position: center;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
    color: #0d6efd;
}

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

.hero-section img {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.services-section h2,
.why-choose-us h2,
.testimonials h2,
.about-section h2,
.service-areas h2 {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.services-section h2::after,
.why-choose-us h2::after,
.testimonials h2::after,
.about-section h2::after,
.service-areas h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

.services-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.services-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

.services-section .card-title {
    color: #0d6efd;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.services-section .card-text {
    margin-bottom: 1.5rem;
}

.services-section .btn {
    margin-top: auto;
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.why-choose-us i {
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

.why-choose-us h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-section img {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.about-section h2 {
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

.about-section .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.about-section p {
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.testimonials .card {
    border: none;
    border-radius: 0.5rem;
    height: 100%;
}

.testimonials .card-body {
    padding: 2rem;
}

.testimonials .text-warning {
    color: #ffc107 !important;
}

/* Service Areas */
.service-areas {
    padding: 5rem 0;
}

.service-area {
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.service-area:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.service-area i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-area h4 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    padding: 5rem 0;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #212529;
    color: #fff;
    padding: 5rem 0 3rem;
}

footer h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

footer p, footer li {
    color: rgba(255, 255, 255, 0.7);
}

footer .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: 10px;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* Service Pages */
.service-header {
    padding: 6rem 0;
    background: linear-gradient(rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.8)), url('https://source.unsplash.com/random/1920x1080/?hvac');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 3rem;
}

.service-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.service-content {
    padding: 3rem 0 5rem;
}

.service-content h2 {
    color: #0d6efd;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-content h3 {
    color: #0d6efd;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-content ul, .service-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.service-content .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-cta {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 0.5rem;
    margin: 3rem 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.service-cta h3 {
    margin-bottom: 1rem;
}

.service-cta p {
    margin-bottom: 1.5rem;
}

/* Related Services */
.related-services {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.related-services h2 {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.related-services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

.related-services .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

.related-services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.related-services .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* About Page */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member .text-muted {
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-info i {
    width: 30px;
    color: #0d6efd;
}

.contact-form .form-control {
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.map-container {
    height: 400px;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #0d6efd;
    background-color: #fff;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d6efd'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background-color: #fff;
}

/* Netlify Form Styles */
form[data-netlify="true"] .form-label {
    font-weight: 600;
}

form[data-netlify="true"] .form-control {
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
}

form[data-netlify="true"] .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

form[data-netlify="true"] .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .service-header {
        padding: 4rem 0;
    }
    
    .services-section,
    .why-choose-us,
    .about-section,
    .testimonials,
    .service-areas,
    .related-services {
        padding: 4rem 0;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    footer {
        padding: 4rem 0 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .service-header {
        padding: 3rem 0;
    }
    
    .services-section,
    .why-choose-us,
    .about-section,
    .testimonials,
    .service-areas,
    .related-services {
        padding: 3rem 0;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    footer {
        padding: 3rem 0 2rem;
    }
    
    .service-cta {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .service-header {
        padding: 2rem 0;
    }
    
    .services-section,
    .why-choose-us,
    .about-section,
    .testimonials,
    .service-areas,
    .related-services {
        padding: 2rem 0;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .service-cta {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cta-section,
    .related-services,
    footer {
        display: none;
    }
    
    .service-header {
        background: none !important;
        color: #000;
        padding: 1rem 0;
    }
    
    .service-header h1 {
        color: #000;
    }
    
    .service-content {
        padding: 0;
    }
    
    .service-cta {
        display: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}