/* Pests */
.max-pests__grid {
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--primary);
    border-radius: 1.4rem;
    overflow: hidden;
}

.max-pests__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: 100%;
    height: 100%;
    min-height: 11.5rem;
    padding: 1.5rem 1rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: var(--mint-cream);
    color: var(--primary);
    box-shadow: inset 0 0 0 0.75px var(--primary);
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.max-pests__cell:hover, .max-pests__cell--active {
    background: var(--primary);
    color: var(--white);
}

.max-pests__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    overflow: visible;
}

.max-pests__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: visible;
    filter: none;
    transition: filter 0.3s ease;
}

.max-pests__cell:hover .max-pests__icon svg, .max-pests__cell--active .max-pests__icon svg, .max-pests__cell:focus-visible .max-pests__icon svg {
    filter: brightness(0) invert(1);
}

.max-pests__label {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    font-weight: 700;
    color: var(--max-ink);
    transition: color 0.3s ease;
}

.max-pests__cell:hover .max-pests__label, .max-pests__cell--active .max-pests__label, .max-pests__cell:focus-visible .max-pests__label {
    color: var(--white);
}

.max-pests__cell:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -3px;
}

/* Services */

.max-services {
    background-color: var(--mint-cream);
}

.max-services__grid {
    --bs-gutter-y: 2rem;
}

.max-services__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border-radius: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.max-services__card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 5px 10px #075E4540;
}

.max-services__image {
    width: 100%;
    height: 15.625rem;
    overflow: hidden;
    background: var(--light-bg);
}

.max-services__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.max-services__card:hover .max-services__image img {
    transform: scale(1.04);
}

.max-services__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2rem 1rem 2rem;
}

.max-services__card-title {
    margin-bottom: 0.75rem;
    color: var(--black);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.max-services__text {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 0.875rem;
    line-height: 1.65;
}

/* Why Choose MetroMax */
.max-why {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: var(--white);
}

.max-why__header {
    max-width: 48rem;
    margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.max-why__grid {
    --bs-gutter-y: 1.75rem;
}

.max-why__card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
}

.max-why__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
}

.max-why__icon svg {
    display: block;
    width: 2rem;
    height: 2rem;
}

.max-why__content {
    flex: 1;
    padding-top: 0.35rem;
}

.max-why__title {
    margin-bottom: 0.4rem;
    color: var(--black);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.max-why__text {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* How It Works */
.max-process {
    background: var(--brand-mint);
}

.max-process__header {
    margin-bottom: clamp(1.75rem, 3vw, 2rem);
}

.max-process__header .max-title-sm {
    margin-bottom: 0.8rem;
}

.max-process__header .max-title {
    margin-bottom: 0;
}

.max-process__grid {
    --bs-gutter-y: 1.5rem;
}

.max-process__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 1.1rem;
    overflow: hidden;
}

.max-process__image {
    position: relative;
    width: 100%;
    height: 15.75rem;
    flex: none;
    background: var(--light-bg);
}

.max-process__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.max-process__number {
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.max-process__progress {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    overflow: visible;
    transform: rotate(-90deg);
}

.max-process__progress circle {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
}

.max-process.is-visible .max-process__progress circle {
    animation: max-process-progress 1.5s ease-out forwards;
}

.max-process__item:nth-child(1) .max-process__progress circle {
    animation-delay: 0s;
}

.max-process__item:nth-child(2) .max-process__progress circle {
    animation-delay: 1.5s;
}

.max-process__item:nth-child(3) .max-process__progress circle {
    animation-delay: 3s;
}

.max-process__item:nth-child(4) .max-process__progress circle {
    animation-delay: 4.5s;
}

@keyframes max-process-progress {
    to {
        stroke-dashoffset: 0;
    }
}

.max-process__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 2.3rem 1.5rem 1.5rem;
}

.max-process__card-title {
    margin-bottom: 0.65rem;
    color: var(--primary);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 700;
    line-height: 1.4;
}

.max-process__text {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.65;
}

/* Testimonials */
.max-testimonials {
    background: var(--white);
    overflow: hidden;
}

.max-testimonials__header {
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.max-testimonials__header .max-title-sm {
    margin-bottom: 0.8rem;
}

.max-testimonials__header .max-title {
    margin-bottom: 0;
}

.max-testimonials__slider {
    width: 100%;
    padding: 1.5rem 0 0.5rem;
    overflow: hidden;
}

.max-testimonials__slider .swiper-slide {
    display: flex;
    height: auto;
}

.max-testimonials__slider .max-testimonials__card {
    width: 100%;
}

.max-testimonials__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 16.25rem;
    padding: 2.8rem 1.25rem 1.5rem;
    border: 1.5px solid var(--brand-mint);
    border-radius: 1.25rem;
    background: var(--white);
}

.max-testimonials__quote {
    position: absolute;
    top: -1.65rem;
    left: 50%;
    z-index: 2;
    padding: 0 0.35rem;
    background: var(--white);
    color: var(--brand-yellow);
    font-family: Georgia, serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    transform: translateX(-50%);
}

.max-testimonials__body {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    height: 100%;
}

.max-testimonials__avatar {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    height: 6.5rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--light-bg);
}

.max-testimonials__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.max-testimonials__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.max-testimonials__text {
    margin: 0 0 2.25rem;
    color: var(--text-dark);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
}

.max-testimonials__author {
    margin: auto 0 0;
    color: var(--text-dark);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.5;
}

.max-testimonials__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2rem;
}

.max-testimonials__pagination .swiper-pagination-bullet {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 !important;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: transparent;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.max-testimonials__pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

.max-testimonials__trust {
    margin-top: 1.8rem;
    text-align: center;
}

.max-testimonials__stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
    color: var(--brand-yellow);
    font-size: 2.8rem;
    line-height: 1;
}

.max-testimonials__trust-text {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
}

/* Service Areas CTA */
.max-area-cta {
    position: relative;
    width: 100%;
    min-height: 20rem;
    background-image: url("../img/service-area-bg.png");
    background-repeat: no-repeat;
    background-position: center 50%;
    background-size: cover;
    overflow: hidden;
}

.max-area-cta__overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
    padding: clamp(2.5rem, 5vw, 3.5rem) 1rem;
    background: rgba(0, 166, 117, 0.7);
}

.max-area-cta__content {
    max-width: 58rem;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.max-area-cta__title {
    margin: 0 0 1.5rem;
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
}

.max-area-cta__description {
    max-width: 58rem;
    margin: 0 auto 2rem;
    color: var(--white);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 400;
    line-height: 1.65;
}

/* Final CTA */
.max-final-cta {
    padding: clamp(3rem, 5vw, 4rem) 0;
    background: #F9DF9A;
    overflow: hidden;
}

.max-final-cta__content {
    max-width: 78rem;
    margin: 0 auto;
    text-align: center;
}

.max-final-cta__title {
    margin: 0 0 1rem;
    color: var(--primary);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
}

.max-final-cta__description {
    margin: 0 0 1.6rem;
    color: var(--black);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    line-height: 1.6;
}

.max-final-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.max-final-cta__actions svg {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    flex: none;
}

/* Responsive */
@media (max-width: 991.98px) {
    .max-pests__icon {
        width: 5rem;
        height: 5rem;
    }

    .max-process__image {
        height: 13rem;
    }

    .max-process__content {
        padding: 2.2rem 1.2rem 1.3rem;
    }

    .max-testimonials__card {
        min-height: 15rem;
    }

    .max-testimonials__avatar {
        flex-basis: 5rem;
        width: 5rem;
        height: 5rem;
    }

    .max-testimonials__text {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .max-pests__cell {
        min-height: 10rem;
        padding: 1.25rem 0.75rem 1rem;
    }

    .max-pests__icon {
        width: 4.5rem;
        height: 4.5rem;
        flex-basis: 4.5rem;
    }

    .max-services__image {
        height: 12rem;
    }

    .max-services__text {
        font-size: 0.85rem;
    }

    .max-why__card {
        gap: 0.75rem;
    }

    .max-why__icon {
        flex-basis: 3rem;
        width: 3rem;
        height: 3rem;
    }

    .max-why__icon svg {
        width: 1.7rem;
        height: 1.7rem;
    }
    
    .max-why__text {
        font-size: 0.85rem;
    }

    .max-process {
        padding: 3rem 0;
    }

    .max-process__image {
        height: 13.5rem;
    }

    .max-process__card-title {
        font-size: 1.05rem;
    }

    .max-process__text {
        font-size: 0.95rem;
    }

    .max-testimonials {
        padding: 3rem 0;
    }

    .max-testimonials__card {
        min-height: auto;
        padding: 2.5rem 1rem 1.5rem;
    }

    .max-testimonials__body {
        gap: 0.85rem;
    }

    .max-testimonials__avatar {
        flex-basis: 3.75rem;
        width: 3.75rem;
        height: 3.75rem;
    }

    .max-testimonials__text {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .max-testimonials__author {
        font-size: 0.95rem;
    }

    .max-testimonials__pagination {
        gap: 0.65rem;
    }

    .max-testimonials__pagination .swiper-pagination-bullet {
        width: 1rem;
        height: 1rem;
    }

    .max-testimonials__stars {
        font-size: 2.2rem;
    }

    .max-area-cta, .max-area-cta__overlay {
        min-height: 17rem;
    }

    .max-final-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (min-width: 992px) {
    .max-services__image {
        height: 15.625rem;
    }
}

@media (max-width: 767.98px) {
    .max-services {
        padding: 3rem 0;
    }

    .max-services__image {
        height: 10rem;
    }

    .max-services__content {
        padding: 1rem;
    }

    .max-why {
        padding: 3rem 0;
    }

    .max-why__grid {
        --bs-gutter-y: 1.5rem;
    }

    .max-area-cta, .max-area-cta__overlay {
        min-height: 18rem;
    }

    .max-area-cta__overlay {
        padding: 3rem 1rem;
    }

    .max-area-cta__title {
        margin-bottom: 1rem;
    }

    .max-area-cta__description {
        margin-bottom: 1.5rem;
    }

    .max-final-cta {
        padding: 3rem 0;
    }

    .max-final-cta__description {
        margin-bottom: 1.5rem;
    }

    .max-final-cta__actions {
        gap: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .max-services__card, .max-services__image img, .max-services__link {
        transition: none;
    }

    .max-services__card:hover, .max-services__card:hover .max-services__image img {
        transform: none;
    }
}

/* Contact */
.max-contact {
    padding: 55px 0;
    background-color: var(--white);
}

.max-contact__form-card {
    height: 100%;
    padding: 28px 34px;
    background-color: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.max-contact__title {
    margin: 0 0 24px;
    color: var(--black);
    font-size: clamp(1.8rem, 3vw, 2.1rem);
    font-weight: 700;
}

.max-contact__field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.max-contact__field label {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.max-contact__field input,
.max-contact__field textarea {
    width: 100%;
    padding: 13px 15px;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid #a8e8cf;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.max-contact__field input {
    height: 46px;
}

.max-contact__field textarea {
    min-height: 125px;
    resize: vertical;
}

.max-contact__field input:focus,
.max-contact__field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 94, 69, 0.08);
}

.max-contact__field input::placeholder,
.max-contact__field textarea::placeholder {
    color: #999;
}

.max-contact__submit {
    width: 100%;
    min-height: 45px;
    padding: 12px 20px;
    color: var(--white);
    background-color: var(--primary);
    border: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.max-contact__submit:hover {
    background-color: #064b38;
}

.max-contact__note {
    margin: 22px 0 5px;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
}

.max-contact__info {
    height: 100%;
    padding: 25px 22px;
    background-color: var(--mint-cream);
    border-radius: 16px;
}

.max-contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 9px 0 28px;
    border-bottom: 1px solid #65b99a;
}

.max-contact__info-item + .max-contact__info-item {
    padding-top: 23px;
}

.max-contact__info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
}


.max-contact__info-icon span svg {
    width: 100%;
    height: 100%;
    display: block;
}
.max-contact__info-content {
    padding-top: 7px;
}

.max-contact__info-content h3 {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.max-contact__info-content p,
.max-contact__info-content a {
    display: block;
    margin: 0;
    color: var(--primary);
    font-size: 0.9rem;
    line-height: 1.5;
    text-decoration: none;
}

.max-contact__info-content a:hover {
    text-decoration: underline;
}

.max-contact__social {
    padding-top: 22px;
}

.max-contact__social .max-contact__info-item {
    padding: 0;
    border: 0;
}

.max-contact__social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: -16px;
    padding-left: 0px;
}

.max-contact__social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.max-contact__social-links a i {
    font-size: 1.4rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .max-contact {
        padding: 45px 0;
    }

    .max-contact__info {
        padding: 25px;
    }

    .max-contact__social-links {
        justify-content: flex-start;
        margin: 18px 0 0 70px;
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .max-contact {
        padding: 35px 0;
    }

    .max-contact__form-card {
        padding: 25px 20px;
    }

    .max-contact__title {
        font-size: 1.7rem;
    }

    .max-contact__info {
        padding: 22px 18px;
    }

    .max-contact__social-links {
        gap: 20px;
        margin-left: 70px;
    }
}

@media (max-width: 575.98px) {
    .max-contact__form-card {
        padding: 22px 16px;
    }

    .max-contact__note {
        font-size: 0.75rem;
    }

    .max-contact__social-links {
        justify-content: space-between;
        margin-left: 0;
        padding-left: 70px;
        gap: 12px;
    }

    .max-contact__social-links a {
        width: 38px;
        height: 38px;
    }
}

/* What Happens Next */
.max-next {
    padding: 42px 0 40px;
    background-color: var(--mint-cream);
}

.max-next__title {
    margin: 0 0 30px;
    color: var(--black);
    font-size: clamp(1.7rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.max-next__card {
    height: 100%;
    padding: 25px 18px 16px;
    background-color: var(--brand-mint);
    border-radius: 15px;
}

.max-next__icon {
    display: flex;
    align-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.max-next__icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.max-next__icon svg {
    display: block;
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
}

.max-next__card h3 {
    margin: 0 0 14px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.max-next__card p {
    margin: 0;
    color: var(--black);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 991.98px) {
    .max-next {
        padding: 40px 0;
    }

    .max-next__card {
        padding: 22px 18px;
    }
}

@media (max-width: 767.98px) {
    .max-next {
        padding: 35px 0;
    }

    .max-next__title {
        margin-bottom: 25px;
    }

    .max-next__card {
        padding: 22px 18px;
    }
}

@media (max-width: 575.98px) {
    .max-next__title {
        font-size: 1.6rem;
    }

    .max-next__card p {
        font-size: 0.9rem;
    }
}

/* Our Service Area */
.max-service-area {
    padding: 55px 0 48px;
    background-color: var(--white);
}

.max-service-area__heading {
    margin-bottom: 30px;
    text-align: center;
}

.max-service-area__heading h2 {
    margin: 0 0 22px;
    color: var(--black);
    font-size: clamp(1.8rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
}

.max-service-area__heading p {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.7;
}

.max-service-area__heading p span {
    display: block;
}

.max-service-area__map {
    width: 100%;
    height: 485px;
    overflow: hidden;
    border-radius: 15px;
}

.max-service-area__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .max-service-area {
        padding: 45px 0;
    }

    .max-service-area__map {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .max-service-area {
        padding: 40px 0;
    }

    .max-service-area__heading {
        margin-bottom: 25px;
    }

    .max-service-area__heading h2 {
        margin-bottom: 15px;
    }

    .max-service-area__heading p {
        font-size: 0.9rem;
    }

    .max-service-area__map {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .max-service-area__map {
        height: 280px;
        border-radius: 10px;
    }
}