/* WhatsApp Marketing Page Styles */

:root {
    --gradient-background: linear-gradient(90deg, #25d366, #007f5f);
    --brand-color: #25d366;
    --text-primary-color: #303030;
    --text-secondary-color: #ffffff;
    --background-primary-color: #ffffff;
    --action-border-color: #0b8f54;
}

.wa-text--highlight {
    color: var(--brand-color);
}

.wa-primary--title {
    font-weight: 900;
    font-size: 3rem;
    line-height: 100%;
}

.wa-section--container {
    display: flex;
    justify-content: center;
    padding: 6.25rem 16px 0;
}

/* Action Button */
.action--btn {
    width: fit-content;
    border-radius: 5.625rem;
    cursor: pointer;
}

.action--btn button {
    background-color: transparent;
    border: none;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.action--btn .action-btn--icon {
    background-color: transparent;
    width: 24px;
    height: 24px;
    display: block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.action--btn:hover {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    outline: 1px solid var(--action-border-color);
    outline-offset: 0px;
}

/* =========================================
   BANNER SECTION
   ========================================= */
.wa-banner {
    width: 100%;
    background: url("../images/whatsapp-marketing/dark-grid-bg.png") center / cover no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 200px;
    border-radius: 0px 0px 16px 16px;
}

.wa-banner--wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.625rem;
    padding: 0 1rem;
}

.wa-banner--content {
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: center;
    max-width: 61.25rem;
}

.wa-banner--logo {
    height: 54px;
    width: auto;
}

.wa-banner--content__text {
    color: var(--text-secondary-color);
    font-size: 46px;
    line-height: 64px;
    text-align: center;
}

.wa-banner--content__subtext {
    line-height: 1.6;
    text-align: center;
    color: var(--text-secondary-color);
    max-width: 58.75rem;
    font-size: 18px;
}

.wa-banner--buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 17px;
}

.wa-banner--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 30px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wa-banner--btn__primary {
    background-color: var(--brand-color);
    color: white;
    border: 2px solid var(--brand-color);
}

.wa-banner--btn__primary:hover {
    background-color: white;
    color: var(--brand-color);
    border-color: white;
}

.wa-banner--btn__outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.wa-banner--btn__outline:hover {
    background-color: white;
    color: var(--text-primary-color);
    border-color: white;
}

.wa-banner--wrap .wa-banner--img img {
    width: 100%;
    height: auto;
    max-width: 1280px;
    vertical-align: bottom;
}

/* =========================================
   BENEFIT SECTION
   ========================================= */
.wa-benefit .wa-benefit--wrap {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.wa-benefit--content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    max-width: 38.9375rem;
}

.wa-benefit-infinite-title__container {
    height: 6.875rem;
    overflow: clip;
}

.wa-benefit-infinite-title__wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all linear 0.3s;
}

.wa-benefit--content span {
    display: block;
}

.wa-benefit--content .wa-benefit--content__subtitle {
    font-size: 1.125rem;
}

.wa-benefit--action {
    background-color: var(--brand-color);
    border-radius: 16px;
    padding: 1px;
    overflow: hidden;
}

.wa-benefit--action .action--btn__label {
    color: var(--text-secondary-color);
}

.wa-benefit--action .action-btn--icon {
    background-image: url("../images/whatsapp-marketing/shopify-logo-empty.svg");
}

.wa-benefit--action:hover .action-btn--icon {
    background-image: url("../images/whatsapp-marketing/shopify-logo-fill.svg");
}

.wa-benefit--list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 25.5rem;
}

.wa-benefit--list .wa-benefit--item {
    overflow: hidden;
    width: 12.25rem;
    height: 12.25rem;
}

.wa-benefit--item .wa-benefit--item__wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--background-primary-color);
    border-radius: 16px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--brand-color);
    padding: 1.125rem 0.625rem;
}

.wa-benefit--item .wa-benefit--item__wrap .wa-benefit--item__icon {
    width: 4.125rem;
    height: 4.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wa-benefit--item .wa-benefit--item__wrap .wa-benefit--item__content {
    text-align: center;
    display: inline-block;
    max-width: 8.25rem;
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.wa-features {
    padding-bottom: 6.25rem;
}

.wa-features .wa-features--wrap {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.wa-features--header {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.wa-features--wrap .wa-features--divider {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.wa-features--divider__line {
    width: 3.75rem;
    height: 1px;
    display: block;
    background: linear-gradient(
        90deg,
        var(--background-primary-color),
        #007f5f,
        #25d366 90%
    );
    position: relative;
}

.wa-features--divider__line::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0px 0px 5px 4px var(--brand-color);
}

.wa-features--divider__line.line-right {
    transform: rotate(180deg);
}

.wa-features--header .wa-features--title {
    text-align: center;
}

.wa-features--header .wa-features--subtitle {
    text-align: center;
    font-size: 1.25rem;
}

.wa-features--img {
    width: 100%;
}

.wa-features--img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.wa-features-content--container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.25rem;
    height: 28.75rem;
    overflow: hidden;
}

.wa-features-menu--container {
    width: 22.5rem;
    flex-shrink: 0;
    border-radius: 1rem;
    padding: 0.625rem;
    background-color: #f7f7f7;
}

.wa-features-menu--wrap {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: stretch;
}

.wa-features-menu--item {
    padding: 1.5rem;
    border-radius: 0.625rem;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    align-items: center;
    justify-content: flex-start;
}

.wa-features-menu--item.active,
.wa-features-menu--item:hover {
    cursor: pointer;
    background-color: var(--background-primary-color);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
}

.wa-features-menu--item.active .wa-features-menu--item__icon path,
.wa-features-menu--item:hover .wa-features-menu--item__icon path {
    fill: var(--brand-color);
}

.wa-features-menu--item.active .wa-features-menu--item__content,
.wa-features-menu--item:hover .wa-features-menu--item__content {
    color: var(--brand-color);
}

.wa-features-menu--item__icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
}

.wa-features-menu--item__content {
    flex: 1;
    font-size: 1.125rem;
}

.wa-features-demo--container {
    background-color: #f7f7f7;
    padding-top: 1.5rem;
    border-radius: 1rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.wa-features-demo--img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
}

.wa-features-demo--img.active {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.wa-features-demo--img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================
   FLOWS SECTION
   ========================================= */
.wa-flows {
    background: url("../images/whatsapp-marketing/dark-grid-bg.png") center / cover no-repeat;
}

.wa-flows--wrap {
    width: 100%;
    max-width: 1100px;
    display: grid;
    row-gap: 3.125rem;
    column-gap: 1rem;
}

.wa-flows--header {
    grid-column: 1 / 8;
    grid-row: 2 / 5;
}

.wa-flows--header .wa-flows--subtitle {
    margin-top: 0.75rem;
    max-width: 40rem;
    font-size: 1.125rem;
    color: white;
}

.wa-flows--steps {
    grid-column: 1 / 8;
    grid-row: 5 / 8;
}

.wa-flows--img {
    grid-column: 8;
    grid-row: 1 / 10;
}

.wa-flows--steps {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.wa-flows--steps .wa-flows--step__item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.25rem;
}

.wa-flows--step__item .wa-flows--step__content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.wa-flows--step__content p:first-child {
    font-weight: 600;
    color: white;
}

.wa-flows--step__content p:last-child {
    color: white;
}

.wa-flows--img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wa-flows--img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================
   PROMOTE / CTA SECTION
   ========================================= */
.wa-promote {
    background-color: #F1F1F1;
}

.wa-promote--wrap {
    width: 100%;
    max-width: 1100px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: 400px;
    background: var(--gradient-background);
    border-radius: 1rem;
}

.wa-promote--logo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.wa-promote--logo img {
    border-radius: 0.75rem;
    background-color: var(--brand-color);
}

.wa-promote--logo__text span {
    color: var(--text-secondary-color);
    font-size: 1.5rem;
    font-weight: 300;
}

.wa-promote--logo__text span:first-child {
    font-weight: 550;
}

.wa-promote--title {
    color: var(--text-secondary-color);
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    max-width: 32.25rem;
}

.wa-promote--subtitle {
    color: var(--text-secondary-color);
    font-size: 1.25rem;
    font-weight: 300;
    text-align: center;
}

.wa-promote--subtitle strong {
    color: var(--text-secondary-color);
}

.wa-promote--action .action-btn--icon {
    background-image: url("../images/whatsapp-marketing/shopify-logo-fill.svg");
}

.wa-promote--action:hover .action-btn--icon {
    background-image: url("../images/whatsapp-marketing/shopify-logo-empty.svg");
}

.wa-promote--action {
    background-color: var(--background-primary-color);
}

.wa-promote--action .action--btn__label {
    color: var(--brand-color);
}

.wa-promote--action:hover {
    background: var(--gradient-background);
}

.wa-promote--action:hover .action--btn__label {
    color: var(--text-secondary-color);
    -webkit-text-fill-color: var(--text-secondary-color);
    -webkit-background-clip: unset;
}

/* =========================================
   RESPONSIVE — Desktop visibility
   ========================================= */
@media (min-width: 490px) {
    .desktop--hidden {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }
}

/* =========================================
   LATEST UPDATES SECTION
   ========================================= */
.wa-updates {
    padding-bottom: 100px;
}

.wa-updates--wrap {
    width: 100%;
    max-width: 1120px;
}

.wa-updates--header {
    text-align: center;
    margin-bottom: 40px;
}

.wa-updates--title {
    font-weight: 900;
    font-size: 46px;
    line-height: 110%;
    color: #303030;
}

.wa-updates--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.wa-updates--action {
    text-align: center;
}

.wa-updates--btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 30px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--brand-color);
    color: #fff;
    border: 2px solid var(--brand-color);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.wa-updates--btn:hover {
    background-color: transparent;
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.wa-updates .blog-card {
    display: flex;
    flex-direction: column;
}

.wa-updates .blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wa-updates .blog-card__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 32px;
    color: #303030;
    min-height: 64px;
}

.wa-updates .blog-card__category {
    display: none;
}

.wa-updates .blog-card__excerpt {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #303030;
}

.wa-updates .blog-card__learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #303030;
    margin-top: auto;
}

.wa-updates .blog-card__learn-more svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wa-updates .blog-card:hover .blog-card__learn-more {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE — Tablet (992px)
   ========================================= */
@media (max-width: 992px) {
    .wa-benefit .wa-benefit--wrap {
        flex-direction: column;
    }

    .wa-benefit--content {
        max-width: unset;
    }

    .wa-flows--wrap {
        place-items: center;
    }

    .wa-flows--header {
        grid-column: 1;
        grid-row: 1;
        max-width: 90%;
    }

    .wa-flows--steps {
        grid-column: 1;
        grid-row: 3;
        align-items: center;
    }

    .wa-flows--steps .wa-flows--step__item {
        min-width: 27rem;
    }

    .wa-flows--header .wa-flows--subtitle {
        max-width: unset;
    }

    .wa-flows--img {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .wa-updates--title {
        font-size: 36px;
    }

    .wa-updates--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE — Mobile (768px)
   ========================================= */
@media (max-width: 768px) {
    .wa-section--container {
        padding: 80px 16px;
    }

    .wa-features-content--container {
        flex-direction: column;
        height: unset;
    }

    .wa-features-menu--container {
        width: 100%;
        max-width: unset;
    }

    .wa-updates {
        padding-bottom: 80px;
    }

    .wa-updates--title {
        font-size: 46px;
        line-height: 64px;
    }

    .wa-updates--grid {
        grid-template-columns: 1fr;
    }

    .wa-updates--header {
        margin-bottom: 30px;
    }

    .wa-updates .blog-card__title {
        min-height: auto;
    }
}

/* =========================================
   RESPONSIVE — Small Mobile (490px)
   ========================================= */
@media (max-width: 490px) {
    .action--btn,
    .action--btn button {
        width: 100%;
    }

    .wa-banner--content__text {
        font-size: 28px;
        line-height: 38px;
        letter-spacing: -0.5px;
    }

    .wa-banner--content__subtext {
        font-size: 15px;
    }

    .wa-banner--buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .wa-banner--btn {
        width: 100%;
        font-size: 16px;
        height: 48px;
        padding: 0 24px;
    }

    .wa-banner--logo {
        height: 40px;
    }

    .wa-benefit--content__title {
        text-align: center;
    }

    .wa-benefit--content__title span {
        font-size: 1.875rem;
    }

    .wa-benefit--content .wa-benefit--content__subtitle {
        text-align: center;
        font-size: 1.125rem;
    }

    .wa-benefit--list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: unset;
        width: 100%;
    }

    .wa-benefit--list .wa-benefit--item {
        width: 100%;
        aspect-ratio: 1/1;
    }

    .wa-benefit--item .wa-benefit--item__wrap .wa-benefit--item__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .wa-benefit--item__icon img {
        height: 100%;
        width: auto;
    }

    .wa-benefit--item .wa-benefit--item__wrap .wa-benefit--item__content {
        font-size: 0.8125rem;
    }

    .wa-features--header .wa-features--subtitle {
        font-size: 1.125rem;
    }

    .wa-features .wa-features--wrap {
        gap: 1.5rem;
    }

    .wa-flows--img img {
        width: 100%;
        height: auto;
    }


    .wa-primary--title {
        font-size: 1.875rem;
        text-align: center;
    }

    .wa-flows--header {
        max-width: unset;
    }

    .wa-flows--subtitle {
        text-align: center;
    }

    .wa-flows--steps {
        gap: 1.5rem;
    }

    .wa-flows--steps .wa-flows--step__item {
        flex-direction: column;
        align-items: center;
        min-width: unset;
    }

    .wa-flows--step__icon svg {
        width: 2.5rem;
        height: 2.5rem;
    }

    .wa-flows--step__content {
        text-align: center;
    }

    .wa-promote {
        height: auto;
        padding-bottom: 0;
    }


    .wa-promote--title {
        font-size: 1.875rem;
    }

    .wa-promote--subtitle {
        font-size: 1.125rem;
        text-align: center;
        font-weight: 400;
    }

    .wa-updates--title {
        font-size: 46px;
        line-height: 64px;
    }

    .mobile--hidden {
        display: none;
        visibility: hidden;
        pointer-events: none;
    }
}
