/* ===================================
   Waldbestattung Page Styles
   Gold colors + green forest particles
   =================================== */

/* ===================================
   Hero Section with Forest Particles
   =================================== */

/* Forest particles container (falling green leaves) */
#forestParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Dappled forest sunlight filtering through trees */
#forestParticles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(125deg, transparent 0%, rgba(139, 195, 74, 0.10) 20%, transparent 40%),
        linear-gradient(55deg, transparent 30%, rgba(76, 175, 80, 0.08) 50%, transparent 70%),
        linear-gradient(145deg, transparent 60%, rgba(104, 159, 56, 0.06) 80%, transparent 100%);
    animation: dappledLight 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Forest floor glow at bottom */
#forestParticles::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(76, 175, 80, 0.15) 0%, transparent 100%);
    animation: forestGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes dappledLight {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(8px) scale(1.01);
    }
}

@keyframes forestGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0) scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-8px) scaleY(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===================================
   Phoenix Logo Particles - Emanating from Logo
   =================================== */

/* Phoenix particles container */
.phoenix-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Individual phoenix particle - small leaf for forest theme */
.phoenix-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: oozeOut var(--ooze-duration) ease-out forwards;
    will-change: transform, opacity;
}

/* Phoenix particle appearance - small green leaf */
.phoenix-particle::before {
    content: '';
    position: absolute;
    width: var(--particle-size, 8px);
    height: var(--particle-size, 8px);
    background: radial-gradient(
        circle at 35% 35%,
        rgba(139, 195, 74, 0.95) 0%,
        rgba(104, 159, 56, 0.9) 40%,
        rgba(76, 175, 80, 0.7) 70%,
        rgba(56, 142, 60, 0.5) 100%
    );
    border-radius: 50%;
    border: 1px solid rgba(139, 195, 74, 0.6);
    box-shadow:
        0 0 10px rgba(76, 175, 80, 0.6),
        0 0 16px rgba(56, 142, 60, 0.4),
        inset 1px 1px 2px rgba(200, 230, 201, 0.5);
    filter: blur(0.5px);
}

/* Oozing outward animation */
@keyframes oozeOut {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.3);
        opacity: 0;
    }
    20% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%)
                   translate(var(--ooze-x), var(--ooze-y))
                   scale(0.8);
        opacity: 0;
    }
}

/* ===================================
   Introduction Section
   =================================== */

.intro-section {
    background: var(--color-bg-secondary);
    padding: 4rem 0;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-12);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.intro-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.intro-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* ===================================
   Benefits Grid
   =================================== */

.benefits-section {
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Service icons - GOLD colors (not green!) */
.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

/* ===================================
   Process Timeline
   =================================== */

.process-section {
    background: linear-gradient(135deg,
        var(--color-bg-secondary) 0%,
        var(--color-bg-primary) 100%
    );
    padding: var(--spacing-20) 0;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.process-step {
    display: flex;
    gap: var(--spacing-6);
    align-items: flex-start;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 80px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg,
        var(--color-accent-gold) 0%,
        rgba(212, 175, 55, 0.3) 100%
    );
}

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

/* Step numbers - GOLD gradient (not green!) */
.step-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--color-accent-gold),
        var(--color-accent-gold-light)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-bg-primary);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.step-content h3 {
    font-size: var(--font-size-xl);
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-3);
}

.step-content p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ===================================
   Burial Options Grid
   =================================== */

.burial-options-section {
    background: var(--color-bg-secondary);
    padding: 4rem 0;
}

.burial-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Icons - GOLD colors (not green!) */
.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

.why-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-gold);
    stroke-width: 2;
}

.burial-note {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-accent-gold);
    border-radius: 8px;
}

.burial-note strong {
    color: var(--color-accent-gold);
}

/* ===================================
   Forest Leaf Particles - Green Falling Animation
   =================================== */

.forest-particle {
    position: absolute;
    pointer-events: none;
    animation: forestFall var(--duration) ease-out forwards;
    will-change: transform, opacity;
}

/* Realistic forest leaf shapes with stem and veins */
.forest-particle::before {
    content: '';
    position: absolute;
    width: var(--leaf-width, 16px);
    height: var(--leaf-height, 20px);
    background:
        /* Main leaf gradient - GREEN */
        linear-gradient(135deg, var(--leaf-color-light) 0%, var(--leaf-color) 50%, var(--leaf-color-dark) 100%),
        /* Subtle vein pattern */
        linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.15) 49%, rgba(0, 0, 0, 0.15) 51%, transparent 52%),
        /* Central vein */
        radial-gradient(ellipse 2px 100% at 50% 0%, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    background-blend-mode: multiply, normal, normal;
    border-radius: 0% 50% 50% 50%;
    transform-origin: bottom center;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3),
                inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Leaf stem - green/brown */
.forest-particle::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom,
        var(--leaf-color-dark) 0%,
        rgba(85, 107, 47, 0.8) 50%,
        transparent 100%);
    border-radius: 1px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 1px 0 1px rgba(0, 0, 0, 0.3);
}

/* Oak leaf - deep green */
.forest-particle.leaf-1::before {
    clip-path: polygon(
        50% 0%,
        58% 8%, 65% 5%, 72% 12%, 68% 22%, 75% 25%, 78% 35%, 72% 42%, 78% 48%, 75% 58%, 70% 65%, 65% 72%, 58% 78%, 52% 88%, 50% 100%,
        48% 88%, 42% 78%, 35% 72%, 30% 65%, 25% 58%, 22% 48%, 28% 42%, 22% 35%, 25% 25%, 32% 22%, 28% 12%, 35% 5%, 42% 8%
    );
    --leaf-color: rgba(34, 139, 34, 0.88);
    --leaf-color-light: rgba(60, 179, 113, 0.92);
    --leaf-color-dark: rgba(25, 100, 25, 0.88);
}

/* Maple leaf - fresh green */
.forest-particle.leaf-2::before {
    clip-path: polygon(
        50% 0%,
        53% 15%, 58% 18%, 70% 12%, 75% 18%, 68% 28%, 72% 32%, 85% 35%, 88% 45%, 78% 50%, 82% 58%, 90% 70%, 85% 75%, 72% 70%, 65% 75%, 58% 85%, 52% 92%, 50% 100%,
        48% 92%, 42% 85%, 35% 75%, 28% 70%, 15% 75%, 10% 70%, 18% 58%, 22% 50%, 12% 45%, 15% 35%, 28% 32%, 32% 28%, 25% 18%, 30% 12%, 42% 18%, 47% 15%
    );
    --leaf-color: rgba(50, 205, 50, 0.88);
    --leaf-color-light: rgba(124, 252, 0, 0.92);
    --leaf-color-dark: rgba(34, 139, 34, 0.88);
}

/* Birch leaf - light green */
.forest-particle.leaf-3::before {
    clip-path: polygon(
        50% 0%,
        58% 3%, 64% 8%, 68% 12%, 65% 18%, 68% 22%, 70% 28%, 68% 35%, 70% 40%, 68% 48%, 70% 55%, 68% 62%, 66% 70%, 62% 78%, 58% 85%, 52% 92%, 50% 100%,
        48% 92%, 42% 85%, 38% 78%, 34% 70%, 32% 62%, 30% 55%, 32% 48%, 30% 40%, 32% 35%, 30% 28%, 32% 22%, 35% 18%, 32% 12%, 36% 8%, 42% 3%
    );
    --leaf-color: rgba(60, 179, 113, 0.88);
    --leaf-color-light: rgba(144, 238, 144, 0.92);
    --leaf-color-dark: rgba(46, 139, 87, 0.88);
}

/* Beech leaf - medium green */
.forest-particle.leaf-4::before {
    clip-path: polygon(
        50% 0%,
        57% 5%, 62% 10%, 65% 12%, 62% 18%, 68% 22%, 70% 28%, 68% 35%, 72% 40%, 70% 48%, 72% 55%, 68% 62%, 70% 68%, 65% 75%, 62% 82%, 58% 88%, 52% 95%, 50% 100%,
        48% 95%, 42% 88%, 38% 82%, 35% 75%, 30% 68%, 32% 62%, 28% 55%, 30% 48%, 28% 40%, 32% 35%, 30% 28%, 32% 22%, 38% 18%, 35% 12%, 38% 10%, 43% 5%
    );
    --leaf-color: rgba(107, 142, 35, 0.88);
    --leaf-color-light: rgba(154, 205, 50, 0.92);
    --leaf-color-dark: rgba(85, 107, 47, 0.88);
}

/* Ash leaf - vibrant green */
.forest-particle.leaf-5::before {
    clip-path: polygon(
        50% 0%,
        56% 8%, 58% 18%, 60% 28%, 58% 38%, 60% 48%, 58% 58%, 60% 68%, 58% 78%, 55% 88%, 50% 100%,
        45% 88%, 42% 78%, 40% 68%, 42% 58%, 40% 48%, 42% 38%, 40% 28%, 42% 18%, 44% 8%
    );
    width: calc(var(--leaf-width) * 0.7);
    height: calc(var(--leaf-height) * 1.3);
    --leaf-color: rgba(34, 139, 34, 0.88);
    --leaf-color-light: rgba(50, 205, 50, 0.92);
    --leaf-color-dark: rgba(0, 100, 0, 0.88);
}

/* Falling and swaying animation - gentle forest breeze */
@keyframes forestFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(calc(var(--fall-distance) * 0.5))
                   translateX(calc(var(--drift) * 0.5))
                   rotate(180deg);
        opacity: 0.9;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(var(--fall-distance))
                   translateX(var(--drift))
                   rotate(360deg);
        opacity: 0;
    }
}

/* ===================================
   Golden CTA Section
   =================================== */

.golden-cta-section h2,
.golden-cta-section p {
    color: var(--color-bg-primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.golden-cta-features .golden-feature {
    color: var(--color-bg-primary);
}

/* ===================================
   WhatsApp Button
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: var(--spacing-8);
    right: var(--spacing-8);
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .benefits-grid,
    .burial-options-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-layout {
        grid-template-columns: 1fr;
    }

    .intro-lead {
        font-size: 1.1rem;
    }

    .burial-note {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .process-section {
        padding: var(--spacing-16) 0;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
    }

    .process-step::before {
        display: none;
    }

    .step-number {
        margin: 0 auto var(--spacing-4);
    }

    .whatsapp-float {
        bottom: var(--spacing-4);
        right: var(--spacing-4);
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    /* Reduce forest particles on tablet */
    .forest-particle:nth-child(3n) {
        display: none;
    }
}

@media (max-width: 640px) {
    .intro-section {
        padding: 3rem 0;
    }

    .benefits-section,
    .burial-options-section {
        padding: 3rem 0;
    }

    .intro-lead {
        font-size: 1rem;
    }

    /* Minimal forest particles on mobile */
    .forest-particle:nth-child(2n) {
        display: none;
    }

    .burial-note {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

/* ===================================
   Light Theme Support
   =================================== */

[data-theme="light"] .intro-section,
[data-theme="light"] .burial-options-section {
    background: #f8f9fa;
}

[data-theme="light"] .burial-note {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--color-accent-gold);
}

[data-theme="light"] .burial-note strong {
    color: var(--color-accent-gold);
}

[data-theme="light"] .golden-cta-section h2,
[data-theme="light"] .golden-cta-section p {
    color: var(--color-bg-primary) !important;
}

/* Light theme green leaves - slightly more vibrant */
[data-theme="light"] .forest-particle.leaf-1::before {
    --leaf-color: rgba(34, 139, 34, 0.92);
    --leaf-color-light: rgba(60, 179, 113, 0.96);
    --leaf-color-dark: rgba(25, 100, 25, 0.92);
}

[data-theme="light"] .forest-particle.leaf-2::before {
    --leaf-color: rgba(50, 205, 50, 0.92);
    --leaf-color-light: rgba(124, 252, 0, 0.96);
    --leaf-color-dark: rgba(34, 139, 34, 0.92);
}

[data-theme="light"] .forest-particle.leaf-3::before {
    --leaf-color: rgba(60, 179, 113, 0.92);
    --leaf-color-light: rgba(144, 238, 144, 0.96);
    --leaf-color-dark: rgba(46, 139, 87, 0.92);
}

[data-theme="light"] .forest-particle.leaf-4::before {
    --leaf-color: rgba(107, 142, 35, 0.92);
    --leaf-color-light: rgba(154, 205, 50, 0.96);
    --leaf-color-dark: rgba(85, 107, 47, 0.92);
}

[data-theme="light"] .forest-particle.leaf-5::before {
    --leaf-color: rgba(34, 139, 34, 0.92);
    --leaf-color-light: rgba(50, 205, 50, 0.96);
    --leaf-color-dark: rgba(0, 100, 0, 0.92);
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .forest-particle {
        display: none;
    }

    .hero-section {
        background: white;
        color: black;
    }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .forest-particle {
        animation: none;
        opacity: 0.2;
    }

    .whatsapp-float {
        animation: none;
    }
}
