/* Hero Section */
.hero-section {
    position: relative;
}

.hero-background {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0.5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    /* backdrop-filter: blur(2px); */
}

.hero-small-text {
    text-align: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.25rem;
}

.hero-big-text {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-btns {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem;
    justify-content: center;
}

.hero-talk-to-us-link, .hero-get-quote-link {
    background: var(--primary-dark);
    color: #ffffff;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease-in;
}

.hero-get-quote-link {
    background: white;
    color: black;
}

@media (hover: hover) and (pointer: fine) {
    .hero-talk-to-us-link:hover, .hero-get-quote-link:hover {
        background-color: var(--secondary);
    }
}

.hero-talk-to-us-link:active, .hero-get-quote-link:active {
    transform: scale(0.9);
}


/* Services */
.services-section.wrapper { /* Don't add space between these classes */
    padding-left: 2rem;
    padding-right: 2rem;
}

.assurance-span {
    font-weight: 500;
    text-transform: capitalize;
}

.two-one, .one-two {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.one-two {
    grid-template-columns: 1fr 2fr;
}

.separating {
    height: 2rem;
}

.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: var(--primary-dark);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease-in;
}

.service-content .get-quote {
    background-color: white;
    color: black;
    margin-right: 0;
}

@media (hover: hover) and (pointer: fine) {
    .service-content .learn-more:hover, .service-content .get-quote:hover {
        background: gold;
    }
}

@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;
    }
}

@media (max-width: 377px) {
    .services-section.wrapper { /* Don't add space between these classes */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .two-one, .one-two {
        gap: 0.5rem;
    }

    .separating {
        height: 0.5rem;
    }

    .service-content {
        padding: 0.5rem;
    }
}


/* Trusted by */
.trusted-by-section {
    overflow: hidden;
    padding: 0 1rem 6rem 1rem;
}

.trusted-by-wrapper {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scrollTestimonials 40s 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;
    }
}