/* ============================================
   SIKERES SULIRAJT CSALI — Page-Specific Overrides
   Extends v2-landing.css + v2-csali.css
   Theme: Warm Storybook Editorial — Suitcase Metaphor
   ============================================ */

/* --- Page Accent Colors --- */
:root {
    --v2-hero-gradient: linear-gradient(160deg, #fef6ee 0%, var(--cream) 35%, #eef8f5 65%, #fdf5ee 100%);
    --v2-cta-gradient: linear-gradient(135deg, var(--teal-dark), #1a6b75);
    --v2-cta-hover: linear-gradient(135deg, #1a7f8a 0%, #1a6b75 50%, var(--teal-dark) 100%);
    --v2-hero-blob1: var(--peach-light);
    --v2-hero-blob2: var(--mint-light);
    --v2-text-gradient: linear-gradient(135deg, var(--teal) 0%, var(--orange) 100%);
    --v2-accent-gradient: linear-gradient(90deg, var(--orange) 0%, var(--teal) 100%);
    --v2-icon-gradient: linear-gradient(135deg, var(--peach-light) 0%, var(--mint-light) 100%);
    --v2-deep-dive-bg: linear-gradient(135deg, var(--peach-light) 0%, var(--cream) 100%);
    --v2-bridge-bg: linear-gradient(135deg, var(--peach-light) 0%, var(--cream) 50%, var(--mint-light) 100%);
    --v2-warning-bg: linear-gradient(135deg, var(--peach-light) 0%, var(--mint-light) 100%);
    --v2-warning-color: #7a3a15;
    --v2-warning-border: transparent;
    --v2-sticky-price-color: var(--teal);

    /* Pillar accent colors — richer, more saturated */
    --pillar-physical: #e07a8c;
    --pillar-physical-light: #fce4ea;
    --pillar-cognitive: #4db0a0;
    --pillar-cognitive-light: #ccede7;
    --pillar-emotional: #e08548;
    --pillar-emotional-light: #fde2cc;
    --pillar-social: #8d7ca6;
    --pillar-social-light: #e4deee;
}

/* ============================================
   GRAIN TEXTURE OVERLAY — Storybook feel
   ============================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

/* ============================================
   SCROLL-REVEAL ANIMATIONS — Staggered entrance
   ============================================ */
.suli-csali-reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.suli-csali-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.suli-csali-reveal-delay-1 { transition-delay: 0.1s; }
.suli-csali-reveal-delay-2 { transition-delay: 0.2s; }
.suli-csali-reveal-delay-3 { transition-delay: 0.3s; }
.suli-csali-reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   HERO ENHANCEMENTS — Floating shapes & depth
   ============================================ */
.v2-hero--centered {
    position: relative;
    overflow: hidden;
}

/* Decorative floating circles */
.v2-hero--centered::before {
    content: '';
    position: absolute;
    top: 8%;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 148, 90, 0.09) 0%, transparent 70%);
    animation: suli-float-gentle 14s ease-in-out infinite;
    pointer-events: none;
}

.v2-hero--centered::after {
    content: '';
    position: absolute;
    bottom: 12%;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 184, 168, 0.08) 0%, transparent 70%);
    animation: suli-float-gentle 18s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes suli-float-gentle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(12px, -18px) rotate(2deg); }
    66% { transform: translate(-8px, 10px) rotate(-1deg); }
}

/* Hero badge — refined pill */
.v2-hero-badge {
    position: relative;
    overflow: hidden;
}

.v2-hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: suli-shimmer 4s ease-in-out infinite 2s;
}

@keyframes suli-shimmer {
    0% { transform: translateX(-100%); }
    30% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* ============================================
   PILLAR INTRO — Bőrönd Metafora Callout
   ============================================ */
.csali-pillar-intro {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2.5rem 2.5rem 2rem;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.92) 0%, rgba(253,232,216,0.35) 50%, rgba(212,240,235,0.2) 100%);
    border-radius: 28px;
    border: 1px solid rgba(232, 148, 90, 0.12);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 12px 48px rgba(232, 148, 90, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Top accent bar — gradient ribbon */
.csali-pillar-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pillar-physical), var(--pillar-cognitive), var(--pillar-emotional), var(--pillar-social));
    border-radius: 28px 28px 0 0;
}

/* Decorative suitcase watermark */
.csali-pillar-intro::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 120px;
    height: 120px;
    background:
        radial-gradient(circle at 50% 35%, rgba(232,148,90,0.06) 20%, transparent 20%),
        linear-gradient(to bottom, transparent 25%, rgba(232,148,90,0.03) 25%, rgba(232,148,90,0.03) 45%, transparent 45%);
    border-radius: 16px 16px 12px 12px;
    border: 2px solid rgba(232,148,90,0.04);
    transform: rotate(-12deg);
    pointer-events: none;
}

.csali-pillar-intro-icon {
    margin-bottom: 0.75rem;
}

.csali-pillar-intro-icon svg {
    filter: drop-shadow(0 2px 8px rgba(232, 148, 90, 0.2));
}

.csali-pillar-intro p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.csali-pillar-intro-highlight {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.65rem 1.6rem;
    background: linear-gradient(135deg, var(--peach-light) 0%, var(--mint-light) 100%);
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--teal-dark);
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px rgba(232, 148, 90, 0.1);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
}

.csali-pillar-intro-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 148, 90, 0.15);
}

/* ============================================
   PILLAR CARDS — Storybook-Themed with Depth
   ============================================ */
.csali-pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 920px;
    margin: 0 auto;
}

.csali-pillar-card {
    position: relative;
    border-radius: 24px;
    padding: 0 1.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 8px 32px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Top accent border — gradient per pillar, thicker */
.csali-pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 24px 24px 0 0;
}

.csali-pillar-card--physical::before { background: linear-gradient(90deg, var(--pillar-physical), var(--pillar-physical-light)); }
.csali-pillar-card--cognitive::before { background: linear-gradient(90deg, var(--pillar-cognitive), var(--pillar-cognitive-light)); }
.csali-pillar-card--emotional::before { background: linear-gradient(90deg, var(--pillar-emotional), var(--pillar-emotional-light)); }
.csali-pillar-card--social::before { background: linear-gradient(90deg, var(--pillar-social), var(--pillar-social-light)); }

/* Corner watermark — subtle pillar color patch */
.csali-pillar-card::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 0;
    width: 80px;
    height: 80px;
    opacity: 0.03;
    border-radius: 0 24px 0 80px;
    transition: opacity 0.4s ease;
}

.csali-pillar-card--physical::after { background: var(--pillar-physical); }
.csali-pillar-card--cognitive::after { background: var(--pillar-cognitive); }
.csali-pillar-card--emotional::after { background: var(--pillar-emotional); }
.csali-pillar-card--social::after { background: var(--pillar-social); }

.csali-pillar-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 24px 64px rgba(232, 148, 90, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.04);
}

.csali-pillar-card:hover::after {
    opacity: 0.06;
}

/* Card images — full-bleed top */
.csali-pillar-card img {
    margin-left: -1.75rem;
    margin-right: -1.75rem;
    width: calc(100% + 3.5rem);
    max-width: none;
    border-radius: 0;
    margin-bottom: var(--space-sm);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.csali-pillar-card:hover img {
    transform: scale(1.03);
}

/* Pillar number badge — refined with inner shadow */
.csali-pillar-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.csali-pillar-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 1px 0 rgba(255,255,255,0.2) inset;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.csali-pillar-card--physical .csali-pillar-number {
    background: linear-gradient(145deg, var(--pillar-physical), #c86a7e);
}
.csali-pillar-card--cognitive .csali-pillar-number {
    background: linear-gradient(145deg, var(--pillar-cognitive), #3d9486);
}
.csali-pillar-card--emotional .csali-pillar-number {
    background: linear-gradient(145deg, var(--pillar-emotional), #c86f32);
}
.csali-pillar-card--social .csali-pillar-number {
    background: linear-gradient(145deg, var(--pillar-social), #706090);
}

.csali-pillar-card:hover .csali-pillar-number {
    transform: scale(1.1) rotate(-4deg);
}

.csali-pillar-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal-dark);
    line-height: 1.3;
    margin: 0;
}

.csali-pillar-card-header h3 small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
    opacity: 0.5;
}

.csali-pillar-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.csali-pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.csali-pillar-list li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.csali-pillar-list li:hover {
    transform: translateX(3px);
}

.csali-pillar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.csali-pillar-card:hover .csali-pillar-list li::before {
    transform: rotate(45deg) scale(1.15);
}

.csali-pillar-card--physical .csali-pillar-list li::before { background: var(--pillar-physical); opacity: 0.65; }
.csali-pillar-card--cognitive .csali-pillar-list li::before { background: var(--pillar-cognitive); opacity: 0.65; }
.csali-pillar-card--emotional .csali-pillar-list li::before { background: var(--pillar-emotional); opacity: 0.65; }
.csali-pillar-card--social .csali-pillar-list li::before { background: var(--pillar-social); opacity: 0.65; }

/* ============================================
   SECTION: 4 PILLARS — Background Enhancement
   ============================================ */
.csali-content-section--alt {
    position: relative;
    padding: var(--v2-section-gap, 5rem) 0;
    background: linear-gradient(
        180deg,
        var(--cream) 0%,
        var(--cream-dark, #f5f2ed) 30%,
        #f0eee8 50%,
        var(--cream-dark, #f5f2ed) 70%,
        var(--cream) 100%
    );
}

/* Diagonal crosshatch pattern */
.csali-content-section--alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 48px,
            rgba(232, 148, 90, 0.012) 48px,
            rgba(232, 148, 90, 0.012) 49px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 48px,
            rgba(95, 184, 168, 0.008) 48px,
            rgba(95, 184, 168, 0.008) 49px
        );
    pointer-events: none;
}

/* ============================================
   VIDEO SECTION — Enhanced Frame with glow
   ============================================ */
.csali-video-section .v2-video-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(26, 95, 106, 0.06),
        0 24px 72px rgba(26, 95, 106, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.5s ease;
}

.csali-video-section .v2-video-card:hover {
    box-shadow:
        0 0 0 1px rgba(26, 95, 106, 0.08),
        0 32px 80px rgba(26, 95, 106, 0.14),
        0 12px 32px rgba(0, 0, 0, 0.06);
}

.csali-video-section .video-label {
    text-align: center;
    padding: 1.1rem 1.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(253,252,250,1) 30%);
    margin: 0;
    letter-spacing: 0.01em;
}

/* ============================================
   METRIC CARDS — Hover with accent shadows
   ============================================ */
.v2-metric-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-metric-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(232, 148, 90, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.04);
}

.v2-metric-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-metric-card:hover .v2-metric-icon {
    transform: scale(1.08) rotate(-3deg);
}

/* ============================================
   DEEP DIVE — Warm callout with accent
   ============================================ */
.v2-deep-dive .v2-warning {
    position: relative;
    border-left: 4px solid var(--orange);
    padding-left: 1.2rem;
    background: linear-gradient(90deg, rgba(253, 226, 204, 0.3) 0%, transparent 100%);
    padding: 1rem 1.5rem;
    border-radius: 0 12px 12px 0;
}

/* ============================================
   SOLUTION BRIDGE — Checkmark animation
   ============================================ */
.v2-bridge-list li::before {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-bridge-list li:hover::before {
    transform: scale(1.2);
}

.v2-bridge-list li {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-bridge-list li:hover {
    transform: translateX(4px);
}

/* ============================================
   GUARANTEE — Refined with glow ring
   ============================================ */
.v2-guarantee-card {
    position: relative;
}

.v2-guarantee-icon svg {
    filter: drop-shadow(0 3px 10px rgba(26, 95, 106, 0.2));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-guarantee-card:hover .v2-guarantee-icon svg {
    transform: scale(1.08);
}

/* ============================================
   FINAL CTA — Enhanced atmospheric section
   ============================================ */
.v2-final-cta {
    position: relative;
    overflow: hidden;
}

.v2-final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(232, 148, 90, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(95, 184, 168, 0.04) 0%, transparent 50%);
    pointer-events: none;
    animation: suli-float-gentle 20s ease-in-out infinite;
}

/* ============================================
   WAVE DIVIDER — Smoother transition
   ============================================ */
.v2-wave-hero svg {
    filter: drop-shadow(0 -1px 0 rgba(255,255,255,0.5));
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .suli-csali-reveal {
        transform: translateY(20px) scale(0.99);
    }

    .csali-pillar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .csali-pillar-card {
        padding: 0 1.5rem 1.5rem;
        border-radius: 20px;
    }

    .csali-pillar-card img {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }

    .csali-pillar-intro {
        padding: 1.75rem 1.5rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 20px;
    }

    .csali-pillar-intro::after {
        width: 80px;
        height: 80px;
        bottom: -8px;
        right: -8px;
    }

    .csali-pillar-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    .v2-hero--centered::before,
    .v2-hero--centered::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .csali-pillar-card-header h3 {
        font-size: 1.08rem;
    }

    .csali-pillar-desc {
        font-size: 0.9rem;
    }

    .csali-pillar-list li {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .suli-csali-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .csali-pillar-card,
    .v2-metric-card {
        transition: none;
    }

    .csali-pillar-card:hover .csali-pillar-number {
        transform: none;
    }

    .csali-pillar-card:hover img {
        transform: none;
    }

    .v2-hero--centered::before,
    .v2-hero--centered::after {
        animation: none;
    }

    .v2-hero-badge::before {
        animation: none;
    }

    body::after {
        display: none;
    }
}
