.am-nc-page {
    overflow: hidden;
}

.am-nc-breadcrumbs {
    padding-top: 28px;
    text-align: center;
}

.am-nc-breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
    color: #686868;
    font-size: 14px;
}

.am-nc-breadcrumbs .woocommerce-breadcrumb span {
    margin: 0 9px;
}

.am-nc-section {
    padding: 36px 0;
}

.am-nc-section-title {
    margin: 0 0 28px;
    color: #3E5338;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.am-nc-section-intro {
    max-width: 760px;
    margin: -14px auto 28px;
    color: #686868;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

.am-nc-button {
    min-height: 52px;
    padding: 15px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.am-nc-button span,
.am-nc-section-link span,
.am-nc-service-card a span {
    transition: transform .25s ease;
}

.am-nc-button:hover span,
.am-nc-section-link a:hover span,
.am-nc-service-card a:hover span {
    transform: translateX(4px);
}

.am-nc-hero {
    padding-top: 28px;
}

.am-nc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
    grid-template-areas:
        "title image"
        "content image"
        "action image";
    column-gap: 38px;
    align-items: start;
}

.am-nc-hero__title {
    grid-area: title;
    max-width: 720px;
    margin: 0 0 22px;
    color: #3E5338;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.am-nc-hero__content {
    grid-area: content;
    color: #282828;
    font-size: 16px;
    line-height: 1.45;
}

.am-nc-hero__content p {
    margin-bottom: 20px;
}

.am-nc-hero__content p:last-child {
    margin-bottom: 0;
}

.am-nc-hero__image {
    grid-area: image;
    height: 480px;
    overflow: hidden;
    border-radius: 4px;
}

.am-nc-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-nc-hero__action {
    grid-area: action;
    margin-top: 28px;
}

.am-nc-services {
    padding-top: 34px;
}

.am-nc-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.am-nc-service-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 24px 20px 20px;
    background: #F2F2F2;
    text-align: center;
}

.am-nc-service-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
}

.am-nc-service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.am-nc-service-card h3 {
    margin: 0 0 10px;
    color: #3E5338;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.am-nc-service-card p {
    margin: 0 0 18px;
    color: #282828;
    font-size: 14px;
    line-height: 1.35;
}

.am-nc-service-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
}

.am-nc-products .am-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.am-nc-products .am-product-card {
    height: 100%;
}

.am-nc-products .am-product-card__media {
    min-height: 225px;
}

.am-nc-products .am-product-card__media a {
    height: 192px;
}

.am-nc-section-link {
    margin-top: 20px;
    text-align: right;
}

.am-nc-section-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
}

.am-nc-trust {
    position: relative;
    margin-top: 22px;
    padding-top: 54px;
    padding-bottom: 34px;
    background: #F2F2F2;
}

.am-nc-trust::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 0;
    width: 100%;
    height: 24px;
    background: #F2F2F2;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

.am-nc-trust .am-stats-grid {
    margin-bottom: 28px;
}

.am-nc-trust .am-testimonials__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.am-nc-articles {
    position: relative;
}

.am-nc-articles::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 170px;
    background: url('../img/nc-leaves.svg') center/contain no-repeat;
    pointer-events: none;
}

.am-nc-faq {
    position: relative;
}

.am-nc-faq::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 105px;
    height: 130px;
    background: url('../img/nc-avocado.svg') left center/contain no-repeat;
    pointer-events: none;
}

.am-nc-faq .am-faq {
    max-width: 1000px;
    margin-inline: auto;
}

.am-nc-newsletter-section {
    padding-top: 18px;
    padding-bottom: 56px;
}

.am-nc-newsletter {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 44px 58px;
    background: #F2F2F2;
    box-shadow: 0 8px 28px rgba(62, 83, 56, .08);
    text-align: center;
}

.am-nc-newsletter__decor {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 130px;
    height: 130px;
    object-fit: contain;
}

.am-nc-newsletter h2 {
    max-width: 900px;
    margin: 0 0 14px;
    color: #282828;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.am-nc-newsletter > p {
    margin: 0 0 16px;
    color: #282828;
    font-size: 16px;
    line-height: 1.4;
}

.am-nc-newsletter ul {
    margin: 0 0 10px;
    padding-left: 20px;
    color: #282828;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.am-nc-newsletter__proof {
    margin-bottom: 22px;
    color: #282828;
    font-size: 14px;
    font-weight: 600;
}

.am-nc-newsletter .am-newsletter-form {
    width: 100%;
    max-width: 960px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.am-nc-newsletter .am-newsletter-form input,
.am-nc-newsletter .am-newsletter-form .am-button {
    width: 100%;
    min-width: 0;
    height: 52px;
}

.am-nc-slider__dots {
    display: none;
}

@media (max-width: 991px) {
    .am-nc-hero__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
        column-gap: 24px;
    }

    .am-nc-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .am-nc-products .am-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .am-nc-breadcrumbs {
        display: none;
    }

    .am-nc-section {
        padding: 24px 0;
    }

    .am-nc-section-title {
        margin-bottom: 16px;
        font-size: 24px;
        line-height: 1.2;
    }

    .am-nc-section-intro {
        margin: -7px 0 16px;
        font-size: 14px;
        line-height: 1.35;
    }

    .am-nc-hero {
        padding-top: 16px;
    }

    .am-nc-hero__grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "image"
            "content"
            "action";
        row-gap: 0;
    }

    .am-nc-hero__title {
        margin-bottom: 14px;
        font-size: 24px;
        line-height: 1.15;
    }

    .am-nc-hero__image {
        height: auto;
        margin-bottom: 18px;
        aspect-ratio: 1 / 1.25;
    }

    .am-nc-hero__content {
        font-size: 16px;
        line-height: 1.42;
    }

    .am-nc-hero__content p {
        margin-bottom: 18px;
    }

    .am-nc-hero__action {
        margin-top: 4px;
    }

    .am-nc-hero__action .am-button {
        width: 100%;
        min-height: 52px;
        font-size: 14px;
    }

    .am-nc-services .am-container,
    .am-nc-products .am-container,
    .am-nc-trust .am-container {
        width: 100%;
    }

    .am-nc-services .am-nc-section-title,
    .am-nc-products .am-nc-section-title,
    .am-nc-trust .am-nc-section-title,
    .am-nc-articles .am-nc-section-intro,
    .am-nc-section-link,
    .am-nc-trust .am-stats-grid,
    .am-nc-trust .am-testimonials__footer {
        margin-left: 20px;
        margin-right: 20px;
    }

    .am-nc-slider {
        overflow: hidden;
    }

    .am-nc-services__grid,
    .am-nc-products .am-product-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        padding: 0 20px 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .am-nc-services__grid::-webkit-scrollbar,
    .am-nc-products .am-product-grid::-webkit-scrollbar {
        display: none;
    }

    .am-nc-services__grid > *,
    .am-nc-products .am-product-grid > * {
        scroll-snap-align: center;
    }

    .am-nc-service-card {
        min-height: 220px;
        padding: 20px 16px;
    }

    .am-nc-service-card h3 {
        font-size: 18px;
    }

    .am-nc-service-card p,
    .am-nc-service-card a {
        font-size: 14px;
    }

    .am-nc-products .am-product-card__media {
        min-height: 190px;
    }

    .am-nc-products .am-product-card__media a {
        height: 160px;
    }

    .am-nc-slider__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .am-nc-slider__dots button {
        width: 12px;
        height: 12px;
        border: 1px solid #282828;
        border-radius: 50%;
        padding: 2px;
        background: transparent;
    }

    .am-nc-slider__dots button::before {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: transparent;
    }

    .am-nc-slider__dots button.is-active::before {
        background: #282828;
    }

    .am-nc-section-link {
        margin-top: 10px;
        text-align: right;
    }

    .am-nc-section-link a {
        font-size: 12px;
    }

    .am-nc-trust {
        margin-top: 18px;
        padding-top: 34px;
        padding-bottom: 24px;
    }

    .am-nc-trust::before {
        top: -14px;
        height: 16px;
    }

    .am-nc-trust .am-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 18px;
    }

    .am-nc-trust .am-stat strong {
        font-size: 22px;
    }

    .am-nc-trust .am-stat span {
        font-size: 12px;
        line-height: 1.25;
    }

    .am-nc-trust .am-testimonials__grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        padding: 0 20px 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .am-nc-trust .am-testimonials__grid::-webkit-scrollbar {
        display: none;
    }

    .am-nc-trust .am-testimonial-card {
        scroll-snap-align: center;
    }

    .am-nc-trust .am-testimonials__footer {
        margin-top: 12px;
    }

    .am-nc-trust .am-testimonial-pagination {
        display: none;
    }

    .am-nc-articles::after,
    .am-nc-faq::before {
        display: none;
    }

    .am-nc-faq .am-faq {
        margin-inline: 0;
    }

    .am-nc-faq .am-faq-item > button span {
        font-size: 15px;
    }

    .am-nc-newsletter-section {
        padding-bottom: 30px;
    }

    .am-nc-newsletter {
        min-height: 0;
        padding: 30px 16px 18px;
    }

    .am-nc-newsletter__decor {
        top: -6px;
        right: -10px;
        width: 82px;
        height: 82px;
    }

    .am-nc-newsletter h2 {
        max-width: 270px;
        font-size: 22px;
    }

    .am-nc-newsletter > p {
        font-size: 13px;
    }

    .am-nc-newsletter ul,
    .am-nc-newsletter__proof {
        font-size: 12px;
    }

    .am-nc-newsletter .am-newsletter-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .am-nc-newsletter .am-newsletter-form input,
    .am-nc-newsletter .am-newsletter-form .am-button {
        height: 48px;
    }
}

@media (max-width: 420px) {
    .am-nc-services__grid,
    .am-nc-products .am-product-grid,
    .am-nc-trust .am-testimonials__grid {
        grid-auto-columns: 74%;
    }
}

/* Service headings: uploaded icon sits to the left of the title. */
.am-nc-service-card__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.am-nc-service-card__heading .am-nc-service-card__icon {
    margin: 0;
}

.am-nc-service-card__heading h3 {
    margin: 0;
}

@media (max-width: 767px) {
    .am-nc-service-card__heading {
        justify-content: flex-start;
        width: 100%;
        text-align: left;
    }
}
