/* =========================================================
   ECOMMERCE WHY US SECTION
   ========================================================= */
@font-face {
    font-family: 'Aleo';
    src: url('aleo/Aleo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* E-commerce SEO benefits cards */
.ecommerce-benefits {
    position: relative;
    overflow: hidden;
    padding: 28px 0 80px;
    background: #ffffff;
    font-family: 'poppins', sans-serif;
}

.ecommerce-benefits::after {
    position: absolute;
    top: 85px;
    right: -35px;
    width: 180px;
    height: 620px;
    background-image: radial-gradient(circle, #e7edf8 2px, transparent 2.5px);
    background-size: 20px 20px;
    content: '';
    opacity: .7;
    pointer-events: none;
}

.ecommerce-benefits .container { position: relative; z-index: 1; }
.ecommerce-benefits-header { max-width: 880px; margin: 0 auto 46px; text-align: center; }

.ecommerce-benefits-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #edf3ff;
    color: #1769d8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.ecommerce-benefits-header h2 { margin: 24px 0 20px; color: #172033; font-size: 40px; font-weight: 700; line-height: 1.2; }
.ecommerce-benefits-header p { margin: 0; color: #60708a; font-size: 15px; line-height: 1.7; }

.ecommerce-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }

.ecommerce-benefit-card {
    min-height: 275px;
    padding: 40px;
    border-radius: 6px;
    background: #f3f5ff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ecommerce-benefit-card:nth-child(2) { background: #effaf8; }
.ecommerce-benefit-card:nth-child(3) { background: #fff4f5; }
.ecommerce-benefit-card:nth-child(4) { background: #fff8f0; }
.ecommerce-benefit-card:nth-child(5) { background: #f6f0ff; }
.ecommerce-benefit-card:nth-child(6) { background: #edf8ff; }
.ecommerce-benefit-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(15, 43, 92, .1); }

.ecommerce-benefit-icon {
    display: grid;
    width: 83px;
    height: 70px;
    margin-bottom: 23px;
    place-items: center;
    background: #e7e5ff;
    color: #1d5389;
    font-size: 30px;
}

.ecommerce-benefit-icon svg,
.ecommerce-benefits-kicker svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ecommerce-benefits-kicker svg {
    width: 13px;
    height: 13px;
}

.ecommerce-benefit-card:nth-child(2) .ecommerce-benefit-icon { background: #fde4dc; }
.ecommerce-benefit-card:nth-child(3) .ecommerce-benefit-icon { background: #dff7f1; }
.ecommerce-benefit-card:nth-child(4) .ecommerce-benefit-icon { background: #fff1d7; }
.ecommerce-benefit-card:nth-child(5) .ecommerce-benefit-icon { background: #d8f7f2; }
.ecommerce-benefit-card:nth-child(6) .ecommerce-benefit-icon { background: #ddffc9; }

.ecommerce-benefit-card h4 { margin: 0 0 8px; color: #172033; font-size: 18px; font-weight: 600; line-height: 1.4; }
.ecommerce-benefit-card p { margin: 0; color: #66758d; font-size: 14px; line-height: 1.8; }

@media (max-width: 992px) {
    .ecommerce-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ecommerce-benefit-card { min-height: 250px; }
}

@media (max-width: 768px) {
    .ecommerce-benefits { padding: 50px 0; }
    .ecommerce-benefits::after { display: none; }
    .ecommerce-benefits-header { margin-bottom: 30px; }
    .ecommerce-benefits-header h2 { margin: 18px 0 14px; font-size: 30px; }
    .ecommerce-benefits-header p { font-size: 14px; }
    .ecommerce-benefits-grid { grid-template-columns: 1fr; gap: 16px; }
    .ecommerce-benefit-card { min-height: 0; padding: 30px; }
}

/* E-commerce client review marquee */
.ecommerce-testimonials { overflow: hidden; padding: 94px 0; background: #f8faff; font-family: 'poppins', sans-serif; }
.ecommerce-testimonials-header { margin-bottom: 42px; text-align: center; }
.ecommerce-testimonials-kicker { display: inline-block; margin-bottom: 14px; color: #1769d8; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ecommerce-testimonials h2 { max-width: 720px; margin: 0 auto; color: #172033; font-size: 40px; font-weight: 700; line-height: 1.2; }
.ecommerce-testimonials-marquee { width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.ecommerce-testimonials-track { display: flex; width: max-content; animation: ecommerce-testimonials-scroll 55s linear infinite; }
.ecommerce-testimonials-group { display: flex; flex: 0 0 auto; gap: 24px; padding-right: 24px; }
.ecommerce-testimonial-card { display: flex; width: min(390px, calc(100vw - 40px)); min-height: 258px; flex-direction: column; padding: 30px; border: 1px solid #dce7f7; border-radius: 14px; background: #ffffff; box-shadow: 0 12px 30px rgba(15, 43, 92, .07); }
.ecommerce-testimonial-stars { margin-bottom: 18px; color: #f5a524; font-size: 18px; letter-spacing: 2px; line-height: 1; }
.ecommerce-testimonial-card blockquote { margin: 0; color: #44536a; font-size: 14px; font-style: normal; line-height: 1.75; }
.ecommerce-testimonial-card p { margin: auto 0 0; padding-top: 22px; color: #172033; font-size: 14px; font-weight: 700; }
.ecommerce-testimonial-card p span { display: block; margin-top: 3px; color: #71809a; font-size: 12px; font-weight: 500; }
.ecommerce-testimonials-marquee:hover .ecommerce-testimonials-track { animation-play-state: paused; }
@keyframes ecommerce-testimonials-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ecommerce-testimonials-track { animation: none; } .ecommerce-testimonials-marquee { overflow-x: auto; } }
@media (max-width: 768px) { .ecommerce-testimonials { padding: 60px 0; } .ecommerce-testimonials-header { margin-bottom: 30px; } .ecommerce-testimonials h2 { font-size: 30px; } .ecommerce-testimonial-card { min-height: 275px; padding: 25px; } }

/* E-commerce industries */
.ecommerce-industries {
    padding: 90px 0;
    background: #f8faff;
    font-family: 'poppins', sans-serif;
}

.ecommerce-industries-header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.ecommerce-industries-header span {
    display: block;
    margin-bottom: 14px;
    color: #1769d8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ecommerce-industries-header h2 { margin: 0; color: #172033; font-size: 40px; font-weight: 700; line-height: 1.2; }
.ecommerce-industries-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.ecommerce-industries-grid div {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 14px 18px 14px 45px;
    border: 1px solid #dce7f7;
    border-radius: 7px;
    background: #ffffff;
    color: #2b3d59;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ecommerce-industries-grid div::before {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 13px;
    height: 13px;
    border: 2px solid #1769d8;
    border-radius: 50%;
    content: '';
    transform: translateY(-50%);
}

.ecommerce-industries-grid div::after {
    position: absolute;
    top: 50%;
    left: 22px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1769d8;
    content: '';
    transform: translateY(-50%);
}

.ecommerce-industries-grid div:hover { border-color: #a9c9f4; box-shadow: 0 10px 22px rgba(15, 43, 92, .08); transform: translateY(-2px); }

@media (max-width: 992px) {
    .ecommerce-industries-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .ecommerce-industries { padding: 60px 0; }
    .ecommerce-industries-header h2 { font-size: 30px; }
    .ecommerce-industries-grid { grid-template-columns: 1fr; }
}

/* Full-width SEO tools marquee */
.ecommerce-tools-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    padding: 22px 0;
    background: linear-gradient(90deg, #0f2b5c, #1769d8, #0f2b5c);
}

.ecommerce-tools-marquee-track {
    display: flex;
    width: max-content;
    animation: ecommerce-tools-scroll 28s linear infinite;
}

.ecommerce-tools-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.ecommerce-tools-marquee span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-family: 'poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.ecommerce-tools-marquee .tool-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
}

.ecommerce-tools-marquee span::after {
    width: 7px;
    height: 7px;
    margin: 0 34px;
    border-radius: 50%;
    background: #9fc8ff;
    content: '';
}

@keyframes ecommerce-tools-scroll {
    to { transform: translateX(-50%); }
}

.ecommerce-tools-marquee:hover .ecommerce-tools-marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
    .ecommerce-tools-marquee-track { animation: none; }
}

@media (max-width: 768px) {
    .ecommerce-tools-marquee { padding: 18px 0; }
    .ecommerce-tools-marquee span { font-size: 15px; }
    .ecommerce-tools-marquee span::after { margin: 0 24px; }
}

/* E-commerce platforms flip cards */
.ecommerce-platforms {
    padding: 90px 0;
    background: #ffffff;
    font-family: 'poppins', sans-serif;
}

.ecommerce-platforms-header {
    max-width: 780px;
    margin: 0 auto 45px;
    text-align: center;
}

.ecommerce-platforms-kicker {
    display: block;
    margin-bottom: 15px;
    color: #1769d8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ecommerce-platforms h2 { margin: 0 0 16px; color: #172033; font-size: 40px; font-weight: 700; line-height: 1.2; }
.ecommerce-platforms-header p { margin: 0; color: #60708a; font-size: 16px; line-height: 1.7; }
.ecommerce-platforms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.platform-flip-card { height: 295px; perspective: 1100px; outline: none; }
.platform-flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform .65s ease; transform-style: preserve-3d; }
.platform-flip-card:hover .platform-flip-card-inner, .platform-flip-card:focus .platform-flip-card-inner { transform: rotateY(180deg); }

.platform-flip-card-front,
.platform-flip-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px;
    border: 1px solid #e1e9f7;
    border-radius: 12px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.platform-flip-card-front { background: #f8faff; text-align: center; }
.platform-flip-card-front svg,
.platform-brand-logo { width: 68px; height: 68px; margin-bottom: 22px; }
.platform-flip-card-front svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.platform-brand-logo { display: block; object-fit: contain; }
.platform-magento-logo { color: #ee672f; }
.platform-flip-card-front h3 { margin: 0 0 8px; color: #172033; font-size: 19px; font-weight: 700; line-height: 1.35; }
.platform-flip-card-front span { color: #718099; font-size: 12px; }
.platform-shopify { color: #4c9c55; }
.platform-woocommerce { color: #8054a4; }
.platform-magento { color: #e06a2c; }
.platform-custom { color: #1769d8; }

.platform-flip-card-back { align-items: flex-start; background: linear-gradient(135deg, #0f2b5c, #2167a9); color: #ffffff; transform: rotateY(180deg); text-align: left; }
.platform-flip-card-back h3 { margin: 0 0 15px; color: #ffffff; font-size: 19px; font-weight: 700; line-height: 1.35; }
.platform-flip-card-back p { margin: 0; color: #e8f1ff; font-size: 14px; line-height: 1.75; }

@media (max-width: 992px) {
    .ecommerce-platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .ecommerce-platforms { padding: 60px 0; }
    .ecommerce-platforms h2 { font-size: 30px; }
    .ecommerce-platforms-grid { grid-template-columns: 1fr; }
}

/* Product page SEO */
.ecommerce-product-seo {
    padding: 90px 0;
    background: #f8faff;
    font-family: 'poppins', sans-serif;
}

.ecommerce-product-seo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    align-items: center;
    gap: 70px;
}

.ecommerce-product-seo-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: #1769d8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ecommerce-product-seo h2 {
    max-width: 680px;
    margin: 0 0 20px;
    color: #172033;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.ecommerce-product-seo-content > p {
    max-width: 690px;
    margin: 0 0 10px;
    color: #60708a;
    font-size: 16px;
    line-height: 1.7;
}

.ecommerce-product-seo h3 {
    margin: 28px 0 17px;
    color: #172033;
    font-size: 21px;
    font-weight: 700;
}

.ecommerce-product-seo-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.ecommerce-product-seo-list li {
    position: relative;
    padding-left: 26px;
    color: #43536c;
    font-size: 14px;
    line-height: 1.45;
}

.ecommerce-product-seo-list li::before {
    position: absolute;
    top: 2px;
    left: 0;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: #e6f0ff;
    color: #1769d8;
    content: '✓';
    font-size: 11px;
    font-weight: 700;
}

.ecommerce-product-seo-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 6px;
    background: #1769d8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.ecommerce-product-seo-cta:hover { background: #0f55b1; color: #ffffff; transform: translateY(-2px); }
.ecommerce-product-seo-cta span { font-size: 20px; line-height: 1; }

.ecommerce-product-seo-image-wrap {
    align-self: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 55px rgba(15, 43, 92, .16);
}

.ecommerce-product-seo-image { display: block; width: 100%; height: auto; }

@media (max-width: 992px) {
    .ecommerce-product-seo-grid { grid-template-columns: 1fr; gap: 40px; }
    .ecommerce-product-seo-image-wrap { max-width: 650px; }
}

@media (max-width: 768px) {
    .ecommerce-product-seo { padding: 60px 0; }
    .ecommerce-product-seo h2 { font-size: 30px; }
    .ecommerce-product-seo-list { grid-template-columns: 1fr; }
}

.ecommerce-why-us {
    background-color: #f8f9fc;
    padding: 32px 0 0;
    font-family: 'Poppins', sans-serif;
}

.why-us-header {
    max-width: none;
    margin-bottom: 66px;
}

.why-us-kicker {
    display: inline-block;
    color: #0f2b5c;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.why-us-header h2 {
    font-family: 'Aleo', Georgia, serif;
    font-size: 50px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 26px;
}

.why-us-header p {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 34px;
}

.why-us-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Grid Layout */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.why-us-item {
    display: grid;
    grid-template-columns: 63px minmax(0, 1fr);
    column-gap: 21px;
    row-gap: 8px;
    align-items: center;
    min-height: 192px;
    padding: 40px 30px;
    border-bottom: 1px solid #dbe4f5;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.why-us-item:not(:nth-child(3n)) {
    border-right: 1px solid #dbe4f5;
}

.why-us-item:nth-child(3n) {
    border-right: 0;
}

.why-us-item:nth-child(n + 4) {
    border-bottom: 0;
}

.why-us-item:hover {
    background-color: #f0f4f8;
}

.why-us-number {
    grid-row: 1 / span 2;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 63px;
    height: 63px;
    background: linear-gradient(135deg, #0f2b5c 0%, #2167a9 100%);
    color: #ffffff;
    font-family: 'Aleo', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 7px;
    margin: 0;
    flex-shrink: 0;
    box-shadow: none;
}

.why-us-item h4 {
    grid-column: 2;
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    color: #111827;
    line-height: 1.18;
}

.why-us-item p {
    grid-column: 2;
    margin: 0;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .why-us-header h2 {
        font-size: 42px;
    }

    .why-us-item h4 {
        font-size: 26px;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-item,
    .why-us-item:nth-child(-n + 3) {
        border-right: 0;
        border-bottom: 1px solid #dbe4f5;
    }

    .why-us-item:nth-child(odd) {
        border-right: 1px solid #dbe4f5;
    }

    .why-us-item:nth-child(n + 5) {
        border-bottom: 0;
    }
}

@media (max-width: 768px) {
    .ecommerce-why-us {
        padding: 48px 0 0;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-item {
        min-height: 0;
        padding: 28px 0;
        border-right: 0 !important;
        border-bottom: 1px solid #dbe4f5 !important;
        margin: 0;
        border-radius: 0;
    }

    .why-us-item:last-child {
        border-bottom: 0 !important;
    }

    .why-us-number {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }

    .why-us-item {
        grid-template-columns: 54px minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 8px;
    }

    .why-us-item h4,
    .why-us-item p {
        grid-column: 2;
    }

    .why-us-item h4 {
        font-size: 22px;
    }

    .why-us-item p {
        font-size: 1rem;
    }
}
