/* Legacy Welding & Mechanical Inc. - Homepage Styles */

.hero {
    position: relative;
    color: var(--text-light);
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-dots-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Keep hero text above the animated dots canvas. */
.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.services-section {
    background-color: var(--gray-light);
}

.services-section .row.g-4 > [class*="col-"] {
    display: flex;
}

.service-card {
    transition: transform 0.3s ease;
    min-height: 39rem;
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .card-img-top {
    height: 240px;
    object-fit: cover;
}

.service-card .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.9rem;
    padding: 2rem;
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.service-card h3,
.service-card p,
.service-card ul {
    margin-bottom: 0;
}

.service-card ul {
    padding-left: 1.2rem;
}

.testimonials-carousel {
    --testimonial-gap: 1.5rem;
    --items-per-view: 1;
    overflow: hidden;
}

.testimonials-carousel-wrap {
    position: relative;
    padding: 0 3rem;
}

.testimonials-track {
    display: flex;
    align-items: center;
    gap: var(--testimonial-gap);
    transition: transform 0.45s ease;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 calc((100% - (var(--testimonial-gap) * (var(--items-per-view) - 1))) / var(--items-per-view));
    display: flex;
    align-items: center;
}

.testimonial-slide .card {
    height: auto !important;
    width: 100%;
}

.testimonial-slide .card-body {
    padding: 1.25rem;
}

.testimonial-slide .rounded-circle {
    display: block;
}

.testimonial-source-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.testimonial-quote {
    margin-bottom: 0.8rem;
    line-height: 1.45;
}

.testimonial-author {
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.3;
}

.testimonial-source-link {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.testimonials-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background-color: #fff;
    color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.testimonials-nav:hover,
.testimonials-nav:focus-visible {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.testimonials-nav-prev {
    left: 0;
}

.testimonials-nav-next {
    right: 0;
}

.testimonials-carousel.is-static {
    overflow: visible;
}

.testimonials-carousel.is-static .testimonials-track {
    transition: none;
}

.contact-details-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    padding: 1.6rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.contact-details-intro {
    font-size: 1.03rem;
    color: rgba(255, 255, 255, 0.84);
}

.contact-details-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
}

.contact-detail-icon {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 999px;
    flex: 0 0 3.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 147, 30, 0.16);
    color: #ffd7b0;
    font-size: 1.45rem;
}

.contact-detail-title {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-detail-link {
    color: #ffffff;
    font-size: 1.14rem;
    line-height: 1.5;
    text-decoration-color: rgba(255, 255, 255, 0.55);
    text-underline-offset: 0.2rem;
}

.contact-detail-link:hover,
.contact-detail-link:focus-visible {
    color: #ffd7b0;
    text-decoration-color: currentColor;
}

.contact-detail-note {
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.04rem;
    line-height: 1.6;
}

.contact-details-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-footer-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
}

/* Map Section */
.map-section {
    width: 100%;
    background-color: #f8f9fa;
}

.map-container {
    width: 100%;
    height: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .map-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .map-container {
        height: 300px;
    }

    .service-card {
        min-height: 0;
    }

    .contact-details-card {
        padding: 1.25rem;
    }

    .testimonials-carousel-wrap {
        padding: 0 2.25rem;
    }

    .testimonials-nav {
        width: 2rem;
        height: 2rem;
    }
}

@media (min-width: 768px) {
    .testimonials-carousel {
        --items-per-view: 2;
    }
}

@media (min-width: 992px) {
    .testimonials-carousel {
        --items-per-view: 3;
    }
}
