/* ============================================
   SOLUTIONS PAGE — solutions-style.css
   Upload to: wp-content/themes/hello-elementor-child/
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ── Fade-in animation (matches insights-style.css / about-style.css) ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);     }
}

/* Hero background stays instant */
.spage-hero { animation: none !important; opacity: 1 !important; }

/* Hero text fades in with a stagger */
.spage-label   { animation: fadeIn 0.6s ease-out 0.05s forwards; opacity: 0; }
.spage-title   { animation: fadeIn 0.6s ease-out 0.15s forwards; opacity: 0; }
.spage-tagline { animation: fadeIn 0.6s ease-out 0.25s forwards; opacity: 0; }

/* Everything below the hero fades in */
.spage-body { animation: fadeIn 0.6s ease-out forwards; }


/* ══════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════ */
.spage-wrap {
    background: #f5f5f5;
    color: #0a1f44;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
}

.spage-wrap * {
    box-sizing: border-box;
}

.spage-wrap p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #555555;
    margin: 0 0 14px;
}


/* ══════════════════════════════════════════════
   HERO  (mirrors other pages exactly)
══════════════════════════════════════════════ */
.spage-hero {
    background-image: url(https://perluxi.com/wp-content/uploads/2025/04/herobg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e0e0e0;
    padding: 128px 60px 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 400px;
}

.spage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.spage-label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
    display: block;
    position: relative;
    z-index: 1;
}

.spage-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(48px, 7vw, 88px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: none !important;
    position: relative;
    z-index: 1;
}

.spage-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #dddddd;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}


/* ══════════════════════════════════════════════
   BODY
══════════════════════════════════════════════ */
.spage-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px 80px;
}


/* ══════════════════════════════════════════════
   INTRO BLOCK
══════════════════════════════════════════════ */
.spage-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.spage-intro-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0F67CF;
    margin-bottom: 14px;
    display: block;
}

.spage-intro-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0a1f44 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: none !important;
}

.spage-intro-text {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #666666 !important;
    margin: 0 !important;
}


/* ══════════════════════════════════════════════
   SOLUTION INDEX (clickable cards jumping to each solution)
══════════════════════════════════════════════ */
.spage-index {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 72px;
}

.spage-index-item {
    background: #ffffff;
    border: 1.5px solid #c8d8f8;
    border-radius: 10px;
    padding: 44px 32px;
    text-decoration: none;
    color: #0a1f44;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(15, 103, 207, 0.07);
}

.spage-index-item:hover {
    box-shadow: 0 10px 40px rgba(15, 103, 207, 0.15);
    transform: translateY(-4px);
    border-color: #0F67CF;
    background: #f0f5fc;
    text-decoration: none;
    color: #0a1f44;
}

.spage-index-num {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0F67CF;
}

.spage-index-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0a1f44;
    line-height: 1.35;
}


/* ══════════════════════════════════════════════
   SOLUTION BLOCK
══════════════════════════════════════════════ */
.spage-solution {
    margin-bottom: 96px;
    scroll-margin-top: calc(var(--spage-nav-h, 100px) + 20px);
}

.spage-solution:last-of-type {
    margin-bottom: 64px;
}

/* ─────────────────────────────────────────────
   Sticky-positioning guard.
   `position: sticky` silently fails if ANY ancestor has
   `overflow: hidden/auto/clip` or `transform: ...`. Many
   WordPress themes (and Elementor) apply these globally.
   Force the containers above each sticky header to allow it.
   ───────────────────────────────────────────── */
body:has(.spage-wrap),
body:has(.spage-wrap) main,
body:has(.spage-wrap) .site-main,
body:has(.spage-wrap) .entry-content,
body:has(.spage-wrap) .elementor,
body:has(.spage-wrap) .elementor-section,
body:has(.spage-wrap) .elementor-container,
body:has(.spage-wrap) .elementor-widget-wrap,
.spage-wrap,
.spage-body,
.spage-solution {
    overflow: visible !important;
    transform: none !important;
}

.spage-solution-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    /* Sticky: pins the header below the WP nav while you
       scroll through that solution's content. Override
       --spage-nav-h on .spage-wrap if your nav is taller. */
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--spage-nav-h, 100px) !important;
    z-index: 50 !important;
    background: #f5f5f5 !important;
}

.spage-solution-number {
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 80px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2.5px #0F67CF;
    line-height: 1;
    letter-spacing: -3px;
    padding-top: 2px;
    opacity: 0.85;
}

.spage-solution-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), transparent);
    pointer-events: none;
}

.spage-solution-titles {
    flex: 1;
    min-width: 0;
}

.spage-solution-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0F67CF;
    margin-bottom: 8px;
    display: block;
}

.spage-solution-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(22px, 2.6vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #0a1f44 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}


/* ══════════════════════════════════════════════
   DIAGRAM PANEL
   ─────────────────────────────────────────────
   Light theme that matches the rest of the site:
   white card on the f5 page background, navy text,
   blue accents, Poppins typography. CSS variables
   feed the inline SVG so the markup stays simple.
══════════════════════════════════════════════ */
.spage-diagram {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 48px 40px;
    margin-bottom: 40px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.spage-diagram:hover {
    box-shadow: 0 8px 32px rgba(15, 103, 207, 0.08);
    border-color: #c8d8f8;
}

.spage-diagram-svg {
    width: 100%;
    height: auto;
    display: block;
    font-family: 'Poppins', sans-serif;
}

/* Reusable SVG element styles — applied via class on the SVG nodes */
.d-node {
    fill: #f8fafd;
    stroke: #e0e0e0;
    stroke-width: 1;
}

.d-node-accent {
    fill: #f0f5fc;
    stroke: #c8d8f8;
    stroke-width: 1;
}

.d-rule {
    stroke: #c8d8f8;
    stroke-width: 2;
    stroke-linecap: round;
}

.d-rule-accent {
    stroke: #0F67CF;
    stroke-width: 2;
    stroke-linecap: round;
}

.d-title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: #0a1f44;
    letter-spacing: 0.02em;
}

.d-title-accent {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: #0F67CF;
    letter-spacing: 0.02em;
}

.d-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    fill: #777777;
}

.d-header {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    fill: #777777;
    letter-spacing: 0.18em;
}

.d-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    fill: #0F67CF;
    letter-spacing: 0.18em;
}

.d-pill {
    fill: rgba(15, 103, 207, 0.06);
    stroke: #c8d8f8;
    stroke-width: 1;
}

.d-pill-text {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    fill: #0F67CF;
    letter-spacing: 0.02em;
}

.d-arrow {
    fill: none;
    stroke: #0F67CF;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.d-arrow-dashed {
    fill: none;
    stroke: #0F67CF;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 4 4;
}

/* ── Diagram flow animations ── */
@keyframes flowDash {
    to { stroke-dashoffset: -16; }
}

.d-arrowhead {
    fill: #0F67CF;
}

.d-side-label {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    fill: #0F67CF;
    letter-spacing: 0.2em;
}


/* ══════════════════════════════════════════════
   OVERVIEW + USE CASES / BENEFITS
══════════════════════════════════════════════ */
.spage-overview {
    margin-bottom: 32px;
}

.spage-overview p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #555555 !important;
    margin-bottom: 14px !important;
}

.spage-overview p:last-child {
    margin-bottom: 0 !important;
}


.spage-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.spage-list-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 28px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.spage-list-card:hover {
    box-shadow: 0 8px 32px rgba(15, 103, 207, 0.08);
    border-color: #c8d8f8;
}

.spage-list-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0F67CF;
    margin-bottom: 10px;
    display: block;
}

.spage-list-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a1f44 !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.spage-list-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spage-list-ul li {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #555555;
    padding: 10px 0 10px 22px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.spage-list-ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spage-list-ul li:first-child {
    padding-top: 0;
}

.spage-list-ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 10px;
    height: 1px;
    background: #0F67CF;
}

.spage-list-ul li:first-child::before {
    top: 8px;
}


/* ══════════════════════════════════════════════
   APPROACH ACCORDION ("Our Approach" 7 phases)
══════════════════════════════════════════════ */
.spage-approach {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.spage-approach-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.spage-approach-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0F67CF;
    margin-bottom: 6px;
    display: block;
}

.spage-approach-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0a1f44 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.spage-phase {
    border-bottom: 1px solid #f0f0f0;
}

.spage-phase:last-child {
    border-bottom: none;
}

/* ─────────────────────────────────────────────
   Hard reset for accordion toggle buttons.
   `all: unset` is NOT enough — WordPress/Elementor
   ship !important rules on <button> that override
   `unset`. So every property the theme might touch
   is explicitly nullified here with !important.
   ───────────────────────────────────────────── */
.spage-phase-toggle,
.spage-phase-toggle:focus,
.spage-phase-toggle:active,
.spage-phase-toggle:visited {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #0a1f44 !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-decoration: none !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 18px 28px;
    box-sizing: border-box;
    outline: none;
}

.spage-phase-toggle:focus-visible {
    outline: 2px solid #0F67CF !important;
    outline-offset: -2px;
}

.spage-phase-num {
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(15, 103, 207, 0.08) !important;
    color: #0F67CF !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s, color 0.15s;
}

.spage-phase[data-open="true"] .spage-phase-num {
    background: #0F67CF !important;
    color: #ffffff !important;
}

.spage-phase-name {
    flex: 1;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0a1f44 !important;
    text-align: left !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.spage-phase-icon {
    flex-shrink: 0;
    color: #aaaaaa;
    transition: transform 0.2s, color 0.15s;
}

.spage-phase[data-open="true"] .spage-phase-icon {
    transform: rotate(180deg);
    color: #0F67CF;
}

.spage-phase-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.spage-phase[data-open="true"] .spage-phase-body {
    max-height: 600px;
}

.spage-phase-body-inner {
    padding: 0 28px 24px 80px;
}

.spage-phase-body p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: #555555 !important;
    margin: 0 !important;
}


/* ══════════════════════════════════════════════
   COMMON THREAD (dark closing section)
══════════════════════════════════════════════ */
.spage-thread-section {
    background: #0a1f44;
    border-radius: 6px;
    padding: 64px 60px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.spage-thread-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(15, 103, 207, 0.3) 0%, transparent 65%);
    pointer-events: none;
}

.spage-thread-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(57, 211, 153, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.spage-thread-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.spage-thread-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    display: block;
}

.spage-thread-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(24px, 3.5vw, 40px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    background: none !important;
}

.spage-thread-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.spage-thread-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 0 12px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.spage-thread-list li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spage-thread-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 12px;
    color: #0F67CF;
    font-weight: 700;
}

.spage-thread-list li strong {
    color: #ffffff;
    font-weight: 600;
}

.spage-thread-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.7 !important;
    margin-bottom: 8px !important;
}

.spage-thread-final {
    font-family: 'Poppins', sans-serif;
    font-size: 15px !important;
    color: #ffffff !important;
    font-style: italic;
    margin-bottom: 32px !important;
}

.spage-cta-btn {
    display: inline-block;
    background: #0F67CF;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.spage-cta-btn:hover {
    background: #0a52a8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 103, 207, 0.45);
    text-decoration: none;
    color: #ffffff;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .spage-index {
        grid-template-columns: repeat(3, 1fr);
    }

    .spage-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .spage-hero {
        padding: 80px 24px 40px;
    }

    .spage-body {
        padding: 40px 24px 60px;
    }

    .spage-index {
        grid-template-columns: 1fr 1fr;
    }

    .spage-solution {
        margin-bottom: 64px;
    }

    .spage-solution-header {
        flex-direction: column;
        gap: 12px;
    }

    .spage-solution-number {
        font-size: 36px;
    }

    .spage-diagram {
        padding: 28px 18px;
    }

    .spage-phase-body-inner {
        padding: 0 24px 20px 24px;
    }

    .spage-thread-section {
        padding: 48px 28px;
    }
}

@media (max-width: 480px) {
    .spage-index {
        grid-template-columns: 1fr;
    }
}
