/* ================================================
   SERVICE PAGES CSS — InfiWits Theme
   Consolidated styles for ERP, Marketing, Ecommerce,
   and universal service page components
   ================================================ */


/* ------------------------------------------------
   Badge Color Variants
   ------------------------------------------------ */
.iw-badge--purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.iw-badge--cyan {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.iw-badge--pink {
    background: rgba(255, 51, 102, 0.12);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.2);
}
.iw-badge--orange {
    background: rgba(255, 107, 51, 0.12);
    color: #ff6b33;
    border: 1px solid rgba(255, 107, 51, 0.2);
}

/* ------------------------------------------------
   Button Glow Variants
   ------------------------------------------------ */
.iw-btn--glow-purple {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.iw-btn--glow-purple:hover {
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.6);
}
.iw-btn--glow-pink {
    background: linear-gradient(90deg, #ff3366, #ff6b33);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}
.iw-btn--glow-pink:hover {
    box-shadow: 0 0 35px rgba(255, 51, 102, 0.6);
}

/* ------------------------------------------------
   Shared Service Hero Variants
   ------------------------------------------------ */
.iw-erp-hero,
.iw-marketing-hero,
.iw-ecom-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.iw-erp-hero {
    background:
        radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.15), transparent 60%),
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.1), transparent 50%);
}

.iw-marketing-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 51, 102, 0.15), transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 240, 255, 0.1), transparent 50%);
    text-align: center;
}

.iw-ecom-hero {
    background:
        radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.15), transparent 70%);
}

/* Hero inner content */
.iw-erp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.iw-marketing-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}


/* ------------------------------------------------
   Floating / Orb Effects
   ------------------------------------------------ */
.iw-marketing-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    animation: drift 15s ease-in-out infinite alternate;
}

.iw-ecom-floating-element {
    position: absolute;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: floating 8s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.1); }
}

@keyframes floating {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(5deg); }
}


/* ------------------------------------------------
   ERP Timeline
   ------------------------------------------------ */
.iw-erp-timeline {
    position: relative;
    margin: 40px auto;
    max-width: 800px;
}

.iw-erp-step {
    position: relative;
    margin-bottom: 40px;
    padding-left: 50px;
}

.iw-erp-step:last-child {
    margin-bottom: 0;
}

/* Connecting line between steps */
.iw-erp-step::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 40px;
    width: 2px;
    height: calc(100% + 40px);
    background: rgba(168, 85, 247, 0.3);
}

.iw-erp-step:last-child::before {
    display: none;
}

/* Purple orb marker */
.iw-erp-step__orb {
    position: absolute;
    left: 0;
    top: 30px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    z-index: 2;
}


/* ------------------------------------------------
   ERP Integrations Marquee
   ------------------------------------------------ */
.iw-erp-marquee {
    display: flex;
    overflow: hidden;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.iw-erp-marquee__track {
    display: flex;
    gap: 40px;
    animation: scrollMarquee 25s linear infinite;
    min-width: 200%;
}

.iw-erp-marquee__item {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes scrollMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ------------------------------------------------
   Marketing Funnel
   ------------------------------------------------ */
.iw-funnel-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 80px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.iw-funnel-stage {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.iw-funnel-stage:hover {
    transform: translateY(-10px);
    border-color: #ff3366;
    background: rgba(255, 51, 102, 0.03);
}

/* Arrow connector between stages */
.iw-funnel-stage::after {
    content: '\2192'; /* → */
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.iw-funnel-stage:last-child::after {
    display: none;
}

.iw-funnel-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 102, 0.1);
    color: #ff3366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}


/* ------------------------------------------------
   Bento Box Grid (Marketing)
   Note: .iw-bento-grid is defined in components.css;
   only .iw-bento-card styles live here.
   ------------------------------------------------ */
.iw-bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.iw-bento-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

/* Asymmetric spans for visual interest */
.iw-bento-card:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.05), rgba(0, 0, 0, 0));
}

.iw-bento-card:nth-child(4) {
    grid-row: span 2;
}

.iw-bento-card:nth-child(6) {
    grid-column: span 2;
}


/* ------------------------------------------------
   Ecommerce Sticky Scroll
   ------------------------------------------------ */
.iw-sticky-wrapper {
    display: flex;
    gap: 80px;
    padding: 100px 0;
    align-items: flex-start;
}

.iw-sticky-left {
    flex: 1;
    position: sticky;
    top: 150px;
}

.iw-sticky-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iw-sticky-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.iw-sticky-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.iw-sticky-card:hover {
    background: rgba(168, 85, 247, 0.05);
    transform: translateX(-10px);
    border-color: #a855f7;
}


/* ------------------------------------------------
   Advantage Section (shared across all service pages)
   2-col layout: text left, 2x2 card grid right
   ------------------------------------------------ */
.iw-advantage-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
    align-items: center;
}

.iw-advantage-text .iw-badge {
    margin-bottom: 20px;
    display: inline-block;
}

.iw-advantage-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-on-surface);
}

.iw-advantage-text p {
    font-size: 1.25rem;
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.6;
}

.iw-advantage-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.iw-advantage-card {
    padding: 30px;
    text-align: center;
}

.iw-advantage-card--offset {
    transform: translateY(30px);
}

.iw-advantage-card__icon {
    margin-bottom: 10px;
}
.iw-advantage-card__icon--cyan { color: #00f0ff; filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4)); }
.iw-advantage-card__icon--purple { color: #a855f7; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4)); }
.iw-advantage-card__icon--pink { color: #ff3366; filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.4)); }
.iw-advantage-card__icon--blue { color: #0066ff; filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.4)); }
.iw-advantage-card__icon--orange { color: #ff6b33; filter: drop-shadow(0 0 10px rgba(255, 107, 51, 0.4)); }

.iw-advantage-card h4 {
    font-size: 1.2rem;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.iw-advantage-card p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}


/* ------------------------------------------------
   Industry Verticals Grid
   ------------------------------------------------ */
.iw-verticals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.iw-vertical-card {
    padding: 40px;
}

.iw-vertical-card__icon {
    margin-bottom: 20px;
}
.iw-vertical-card__icon--cyan { color: #00f0ff; filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4)); }
.iw-vertical-card__icon--purple { color: #a855f7; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4)); }
.iw-vertical-card__icon--pink { color: #ff3366; filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.4)); }
.iw-vertical-card__icon--blue { color: #0066ff; filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.4)); }
.iw-vertical-card__icon--orange { color: #ff6b33; filter: drop-shadow(0 0 10px rgba(255, 107, 51, 0.4)); }

.iw-vertical-card__list {
    color: #aaa;
    line-height: 1.8;
    list-style-type: none;
    padding: 0;
}

.iw-vertical-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.iw-vertical-card ul {
    color: #aaa;
    line-height: 1.8;
    list-style-type: none;
    padding: 0;
}


/* ------------------------------------------------
   Section Title / Subtitle Utilities
   ------------------------------------------------ */
.iw-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-on-surface);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.iw-section-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 15px;
    line-height: 1.6;
    max-width: 600px;
}

.iw-section-header--center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.iw-section-header--center .iw-section-subtitle {
    margin-inline: auto;
}


/* ------------------------------------------------
   Background Utilities
   ------------------------------------------------ */
.iw-bg-darker {
    background: rgba(0, 0, 0, 0.3);
}

.iw-bg-surface-variant {
    background: var(--color-surface-container-low);
}


/* ------------------------------------------------
   Prose Container
   ------------------------------------------------ */
.iw-prose {
    max-width: 800px;
    margin-inline: auto;
}

.iw-prose h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    color: var(--color-on-surface);
}

.iw-prose p {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}


/* ------------------------------------------------
   Grid-3 Utility (used in ecommerce template)
   ------------------------------------------------ */
.iw-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}


/* ------------------------------------------------
   Pulse Glow Effect
   ------------------------------------------------ */
.iw-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 102, 255, 0.3); }
    50%      { box-shadow: 0 0 40px rgba(0, 102, 255, 0.6); }
}


/* ------------------------------------------------
   Responsive — Tablet (max-width: 900px)
   ------------------------------------------------ */
@media (max-width: 900px) {
    .iw-funnel-wrapper {
        flex-direction: column;
    }

    .iw-funnel-stage::after {
        content: '\2193'; /* ↓ */
        right: auto;
        left: 50%;
        bottom: -35px;
        top: auto;
        transform: translateX(-50%);
    }

    .iw-bento-grid .iw-bento-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .iw-sticky-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .iw-sticky-left {
        position: static;
    }

    .iw-advantage-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .iw-advantage-cards {
        grid-template-columns: 1fr 1fr;
    }

    .iw-advantage-card--offset {
        transform: none;
    }

    .iw-erp-hero,
    .iw-marketing-hero,
    .iw-ecom-hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
}


/* ------------------------------------------------
   Responsive — Mobile (max-width: 640px)
   ------------------------------------------------ */
@media (max-width: 640px) {
    .iw-advantage-cards {
        grid-template-columns: 1fr;
    }

    .iw-verticals-grid {
        grid-template-columns: 1fr;
    }
}
