/* Hero Section */
.hero-section {
    background-color: #12111f;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 50%;
    gap: 3rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(187, 189, 178, 0.15);
    color: #bbbdb2;
    border-radius: 1.25rem;
}

.hero-big-text-wrapper {
    min-height: 4.25rem;
}

.hero-big-text {
    max-width: 27rem;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 0;
}

.hero-small-text {
    max-width: 27rem;
    color: #bbbdb2;
}

.hero-talk-to-us-link {
    font-size: 1.25rem;
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid white;
    color: #12111f;
    text-decoration: none;
    border-radius: 1.75rem;
    margin: 1.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease-in;
}

.hero-talk-to-us-link i {
    padding-left: 1rem;
}

@media (hover: hover) and (pointer: fine) {
    .hero-talk-to-us-link:hover {
        background-color: #dfe0d9;
    }    
}

.hero-talk-to-us-link:active {
    transform: scale(0.9);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.stat-item span {
    font-size: 0.875rem;
    color: #bbbdb2;
}

.hero-slideshow-wrapper {
    display: grid;
    align-items: last baseline;
}

.hero-video {
    width: 100%;
    height: 19rem;
    object-fit: cover;
    object-position: top;
    border-radius: 16px;
}

@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: auto;
        gap: 6rem;
    }

    .hero-grid {
        max-width: 27rem;
        margin: 0 auto;
    }
}

@media (max-width: 360px) {
    .hero-big-text-wrapper {
        min-height: 6.625rem;
    }
}


/* Services */
.two-one, .one-two {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.one-two {
    grid-template-columns: 1fr 2fr;
}

.separating {
    height: 1rem;
}

.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.service-img {
    display: block; /* Don't delete: it makes the image occupy the whole space. */
    width: 100%;
    height: 28rem;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: all 0.3s ease-in;
}

@media (hover: hover) and (pointer: fine) {
    .service-item:hover .service-img {
        transform: scale(1.05);
    }
}

.service-content {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)); 
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px;
    display: grid; 
    align-items: last baseline;
    padding: 1.5rem;
}

.service-content h3 {
    color: white;
    font-size: clamp(2rem, 10vw, 3rem);
}

.service-content .learn-more, .service-content .get-quote {
    display: inline-block;
    width: 8rem;
    text-align: center;
    padding: 0.5rem 0;
    margin: 0.5rem 0.25rem 0 0;
    text-decoration: none;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid #bbbdb2;
    color: #bbbdb2;
    font-weight: 500;
    transition: all 0.6s ease;
}

.service-content .get-quote {
    background-color: #bbbdb2;
    color: black;
    margin-right: 0;
}

@media (hover: hover) and (pointer: fine) {
    .service-content .learn-more:hover {
        border: 1px solid white;
        color: white;
    }

    .service-content .get-quote:hover {
        border: 1px solid white;
        background-color: white;
    }
}

@media (max-width: 1034px) {
    .one-two, .two-one {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 775px) {
    .one-two, .two-one {
        grid-template-columns: auto;
        max-width: 27rem;
        margin: 0 auto;
    }
}


/* Trusted by */
.trusted-by-section {
    overflow: hidden;
    padding: 0 1rem 6rem 1rem;
}

.trusted-by-wrapper {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scrollTestimonials 120s linear infinite;
}

.trusted-by-wrapper > div {
    flex-shrink: 0;
}

.trusted-by-img {
    width: 4rem;
    height: auto;
}

@keyframes scrollTestimonials {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (hover: hover) and (pointer: fine) {
    .trusted-by-wrapper:hover {
        animation-play-state: paused;
    }
}