/* ================================================== */
/* SimLeaguesPro - Home Page Styles                   */
/* All rules scoped under .slp-home to prevent        */
/* conflicts with the Hostco base theme (style.css).  */
/* Additive only — zero overrides to style.css.       */
/* ================================================== */

/* ---- Custom Properties ------------------------------------------ */
.slp-home {
    --slp-accent:        #2563eb;
    --slp-accent-dark:   #1d4ed8;
    --slp-accent-2:      #f59e0b;
    --slp-accent-light:  rgba(37, 99, 235, 0.08);
    --slp-dark-bg:       #0f172a;
    --slp-dark-bg-2:     #1e293b;
    --slp-card-radius:   12px;
    --slp-text-light:    rgba(255,255,255,0.80);
    --slp-text-dim:      rgba(255,255,255,0.55);
}

/* ---- Shared Section Typography ----------------------------------- */
.slp-section-heading {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.slp-section-sub,
.slp-section-body {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 0;
}

.slp-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slp-accent-2);
    margin-bottom: 0.75rem;
    display: block;
}

/* ---- Screenshot Treatment ---------------------------------------- */
/* Apply to any real product screenshot for consistent presentation  */
.slp-shot {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 8px 40px rgba(0,0,0,0.16);
}

.slp-shot--tilt-left {
    transform: perspective(1400px) rotateY(5deg) rotateX(1.5deg);
    transition: transform 0.5s ease;
}
.slp-shot--tilt-left:hover {
    transform: perspective(1400px) rotateY(1deg) rotateX(0);
}

.slp-shot--tilt-right {
    transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
    transition: transform 0.5s ease;
}
.slp-shot--tilt-right:hover {
    transform: perspective(1400px) rotateY(-1deg) rotateX(0);
}

/* ---- Asset Placeholders ------------------------------------------ */
/* Temporary stand-ins; removed once real screenshots are placed     */
.slp-shot-placeholder,
.slp-discovery-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    width: 100%;
}
.slp-discovery-placeholder {
    min-height: 200px;
}

/* ---- Ghost / Outline Button (on dark backgrounds) ---------------- */
.btn-slp-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid rgba(255,255,255,0.75);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-slp-outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

/* ---- Card-level CTA Link ----------------------------------------- */
.slp-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slp-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}
.slp-card-cta:hover {
    color: var(--slp-accent-dark);
    text-decoration: none;
    gap: 10px;
}

/* ================================================================== */
/* SECTION 1 — HERO                                                   */
/* ================================================================== */
.slp-home #section_home {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.slp-hero-headline {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.slp-hero-body {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.slp-hero-supporting {
    font-size: 1.01rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color:#1eff00;
}

.slp-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 1.25rem;
}

.slp-trust-line {
    font-size: 0.5;
    opacity: 1.0;
    margin-bottom: 0;
}
.slp-trust-line .fa {
    color: var(--slp-accent-2);
    margin-right: 4px;
}

.slp-hero-img {
    transform: perspective(1500px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.6s ease;
}
.slp-hero-img:hover {
    transform: perspective(1500px) rotateY(-2deg) rotateX(0);
}

/* ================================================================== */
/* SECTION 2 — PROBLEM / SOLUTION (FUNNEL) STRIP                     */
/* ================================================================== */
.slp-funnel-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.slp-funnel-step {
    text-align: center;
    flex: 0 0 auto;
}

.slp-funnel-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    font-size: 1.6rem;
    color: var(--slp-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}
.slp-funnel-step:hover .slp-funnel-icon {
    transform: translateY(-4px);
}

.slp-funnel-icon--accent {
    background: #2563eb !important;
    border-color: #2563eb!important;
    color: #fff;
    transform: scale(1.12);
}
.slp-funnel-step:hover .slp-funnel-icon--accent {
    transform: scale(1.12) translateY(-4px);
}

.slp-funnel-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    display: block;
}
.slp-funnel-label--accent {
    color: #2563eb !important;
    font-size: 1.15rem;
}

.slp-funnel-arrow {
    color: #94a3b8;
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.slp-funnel-sep {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 700;
    flex: 0 0 auto;
    line-height: 1;
    margin-bottom: 1.4rem; /* visually aligns with icon centres */
}

.slp-funnel-sublabel {
    display: block;
    font-size: 0.72rem;
    font-style: italic;
    color: #2563eb;
    margin-top: 0.2rem;
    letter-spacing: 0.01em;
}

.slp-funnel-outcome {
    margin-top: 0.75rem;
    color: #374151;
}
.slp-funnel-outcome .fa-arrow-down {
    font-size: 1.5rem;
    color: #2563eb;
    display: block;
    margin-bottom: 0.4rem;
}
.slp-funnel-outcome p {
    font-size: 0.95rem;
    margin: 0;
}

/* ================================================================== */
/* SECTION 3 — CORE VALUE / PILLAR CARDS (4-up)                      */
/* ================================================================== */
.slp-pillar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--slp-card-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slp-pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.11);
}

.slp-pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--slp-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: var(--slp-accent);
    /* TODO: swap with <img> once SVG icon set is commissioned */
}

.slp-pillar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.65rem;
}
.slp-pillar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--slp-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.slp-pillar-card:hover .slp-pillar-title::after {
    width: 36px;
}

.slp-pillar-body {
    font-size: 0.9rem;
    color: #4b5563;
    flex: 1;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* ================================================================== */
/* SECTION 4 — LEAGUE DISCOVERY                                       */
/* ================================================================== */
.slp-search-bar {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.slp-search-bar:focus-within {
    border-color: var(--slp-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.slp-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    color: #111;
}

.slp-search-btn {
    background: var(--slp-accent);
    border: none;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.slp-search-btn:hover {
    background: var(--slp-accent-dark);
}

.slp-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.slp-filter-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #fff;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.slp-filter-pill:hover {
    background: var(--slp-accent);
    border-color: var(--slp-accent);
    color: #fff;
    text-decoration: none;
}

/* ================================================================== */
/* SECTIONS 5, 6, 8 — FEATURE HIGHLIGHT ROWS (commish/owner/fantasy) */
/* ================================================================== */
.slp-feature-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.slp-feature-bullets li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.6rem;
    font-size: 0.95rem;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.5;
}
.slp-feature-bullets li:last-child {
    border-bottom: none;
}
.slp-feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--slp-accent);
    /* TODO: Replace with SVG: images/home/icons/check-bullet.svg */
}

/* Light variant — white text on dark background */
.slp-feature-bullets--light li {
    color: var(--slp-text-light);
    border-bottom-color: rgba(255,255,255,0.10);
}
.slp-feature-bullets--light li::before {
    background: var(--slp-accent-2);
}

/* ================================================================== */
/* SECTION 7 — WORKS WITH SETUP                                       */
/* Now uses bg-white (matching Section 5 pattern). All workflow node  */
/* styles updated for a light-background context.                     */
/* ================================================================== */
.slp-workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.slp-workflow-node {
    background: #dbeafe;
    border: 1.5px solid #93c5fd;
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    color: #1e40af;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 240px;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.slp-workflow-node:hover {
    background: #bfdbfe;
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.slp-workflow-node--game {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

/* SimLeaguesPro node — elevated within the same blue family */
.slp-workflow-node--slp {
    background: #bfdbfe;
    border: 2px solid var(--slp-accent);
    color: var(--slp-accent);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(37,99,235,0.18);
}
.slp-workflow-node--slp:hover {
    background: #93c5fd;
    border-color: var(--slp-accent);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.slp-workflow-output {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}
.slp-workflow-node--output {
    min-width: 0;
    flex: 1 1 110px;
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    text-align: center;
    flex-direction: column;
    gap: 4px;
}
.slp-workflow-node--output .fa {
    font-size: 1rem;
}

.slp-workflow-arrow {
    color: #60a5fa;
    font-size: 1rem;
}

/* ================================================================== */
/* SECTION 9 — NEWS / ACTIVITY TEASER                                 */
/* ================================================================== */
.slp-news-card {
    background: #fff;
    border-radius: var(--slp-card-radius);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.slp-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.slp-news-thumbnail {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.slp-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Branded gradient placeholders (removed once real thumbnails are set) */
.slp-news-thumbnail--placeholder {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    height: 180px;
}
.slp-news-thumbnail--placeholder-2 {
    background: linear-gradient(135deg, #1a3d2b 0%, #16a34a 100%);
}
.slp-news-thumbnail--placeholder-3 {
    background: linear-gradient(135deg, #3b1f5e 0%, #7c3aed 100%);
}

.slp-news-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.slp-news-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slp-accent);
    margin-bottom: 0.5rem;
    display: block;
}
.slp-news-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #111;
}
.slp-news-excerpt {
    font-size: 0.88rem;
    color: #6b7280;
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.55;
}

/* ================================================================== */
/* SECTION 10 — PRICING TEASER                                        */
/* ================================================================== */
.slp-pricing-mini {
    border: 1px solid #e2e8f0;
    border-radius: var(--slp-card-radius);
    padding: 2rem 1.5rem 1.75rem;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease;
}
.slp-pricing-mini:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.slp-pricing-mini--featured {
    border: 2px solid var(--slp-accent);
    transform: scale(1.04);
    box-shadow: 0 10px 40px rgba(37,99,235,0.16);
    z-index: 1;
}

.slp-pricing-mini-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--slp-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.slp-pricing-mini-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.slp-pricing-tier {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #111;
}
.slp-pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slp-accent);
    margin-bottom: 0;
}
.slp-pricing-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
}

.slp-pricing-copy {
    font-size: 0.9rem;
    color: #4b5563;
    flex: 1;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

/* Free tier highlight band */
.slp-pricing-free-band {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #6ee7b7;
    border-radius: var(--slp-card-radius);
    padding: 2.25rem 2rem;
}

.slp-pricing-free-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.5rem;
}

.slp-pricing-free-list li {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.45;
    padding-left: 1.5rem;
    position: relative;
}

.slp-pricing-free-list li::before {
    content: '\f00c';
    font-family: FontAwesome;
    font-size: 0.7rem;
    color: #059669;
    position: absolute;
    left: 0;
    top: 0.22rem;
}

.slp-pricing-tier--free {
    color: #065f46;
    font-size: 1.4rem;
}

.slp-pricing-price--free {
    color: #059669 !important;
}

/* Add-ons card variant — amber accent border */
.slp-pricing-mini--addons {
    border-color: var(--slp-accent-2);
    border-width: 1.5px;
}

/* ================================================================== */
/* SECTION 11 — FINAL CTA BAND                                        */
/* ================================================================== */
.slp-section--final-cta {
    background: linear-gradient(135deg, #0f2952 0%, var(--slp-accent, #2563eb) 55%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

/* Optional background pattern — activate once cta_pattern.svg exists */
/* .slp-section--final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/home/cta_pattern.svg') repeat;
    opacity: 0.05;
    pointer-events: none;
} */

.slp-final-cta-heading {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.slp-final-cta-body {
    font-size: 1.05rem;
    opacity: 0.88;
}

/* ================================================================== */
/* STICKY FLOATING CTA                                                */
/* ================================================================== */
.slp-sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--slp-accent);
    border-radius: 30px;
    padding: 10px 18px 10px 20px;
    box-shadow: 0 4px 24px rgba(37,99,235,0.40);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.slp-sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.slp-sticky-cta-btn {
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}
.slp-sticky-cta-btn:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.slp-sticky-cta-dismiss {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.slp-sticky-cta-dismiss:hover {
    color: #fff;
    background: rgba(255,255,255,0.18);
}

/* ================================================================== */
/* RESPONSIVE                                                         */
/* ================================================================== */
@media (max-width: 1199px) {
    .slp-hero-headline { font-size: 2.2rem; }
}

@media (max-width: 991px) {
    .slp-funnel-row { flex-wrap: wrap; gap: 1rem; }
    .slp-funnel-arrow { transform: rotate(90deg); }
    .slp-funnel-sep { margin-bottom: 0; }
    .slp-pricing-mini--featured { transform: none; }
    .slp-workflow-node { min-width: 200px; }
    .slp-pricing-free-list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    /*
     * Disable jarallax on mobile entirely.
     *
     * Jarallax calculates the background image height at init-time based on
     * the ratio of section height to window.innerHeight. On mobile that ratio
     * is unreliable (browser chrome, dynamic vh, section height < viewport),
     * producing wrong offsets that leave the bottom of the hero copy on white.
     *
     * Fix: hide the JS-injected background container so it has no effect, then
     * re-apply the background directly on the section via CSS. The CSS
     * background always covers 100 % of the section height regardless of
     * content length, and has no parallax movement to mis-align on load.
     *
     * background-image !important is required to override the inline
     * "background-image: none" that jarallax sets on the section element.
     */
    .slp-home #section_home > div[id^="jarallax-container"] {
        display: none !important;
    }
    .slp-home #section_home {
        background-image: url('../images/splash_bkgd.jpg') !important;
        background-size: cover !important;
        background-position: center top !important;
        min-height: auto;
        padding: 6rem 0 5rem;
    }
    .slp-hero-headline { font-size: 1.85rem; }
    .slp-hero-ctas { flex-direction: column; }
    .slp-hero-ctas .btn-main,
    .slp-hero-ctas .btn-slp-outline { width: 100%; text-align: center; }

    .slp-funnel-row { flex-direction: column; }
    .slp-funnel-arrow { transform: rotate(90deg); }
    .slp-funnel-sep { display: none; }

    .slp-workflow-output { flex-direction: column; align-items: center; }
    .slp-workflow-node--output { min-width: 200px; }

    .slp-final-cta-heading { font-size: 1.6rem; }

    .slp-sticky-cta {
        bottom: 16px;
        right: 16px;
        padding: 9px 14px 9px 16px;
    }
}
