﻿/* ===================================================================
   Hero Banner · Heartbeat Pulse · Shockwave Rings
   =================================================================== */

.hero-banner {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 248, 240, 0.15) 0%,
        rgba(255, 248, 240, 0.40) 50%,
        rgba(255, 248, 240, 0.85) 100%
    );
    z-index: 1;
}


/* --- Heartbeat Pulse Container --- */
.hero-pulse {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.hero-banner__logo {
    position: relative;
    width: 180px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 6px 20px var(--color-shadow-lg));
    animation: heartbeat 2.8s ease-in-out infinite;
}

/* Shockwave rings – 3D refractive distortion */
.hero-pulse__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%) scale(0.7);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: pulse-ring 2.8s ease-out infinite;

    backdrop-filter: blur(20px) brightness(1.2) contrast(1.1) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) brightness(1.2) contrast(1.1) saturate(1.2);

    -webkit-mask-image: radial-gradient(
        circle,
        transparent 38%,
        rgba(0, 0, 0, 0.15) 44%,
        rgba(0, 0, 0, 0.5)  50%,
        rgba(0, 0, 0, 0.8)  55%,
        rgba(0, 0, 0, 0.8)  62%,
        rgba(0, 0, 0, 0.5)  68%,
        rgba(0, 0, 0, 0.15) 74%,
        transparent 80%
    );
    mask-image: radial-gradient(
        circle,
        transparent 38%,
        rgba(0, 0, 0, 0.15) 44%,
        rgba(0, 0, 0, 0.5)  50%,
        rgba(0, 0, 0, 0.8)  55%,
        rgba(0, 0, 0, 0.8)  62%,
        rgba(0, 0, 0, 0.5)  68%,
        rgba(0, 0, 0, 0.15) 74%,
        transparent 80%
    );

    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.12),
        inset 0 0 80px rgba(196, 154, 124, 0.06);
}

.hero-pulse__ring:nth-child(2) {
    animation-delay: 0.2s;
    backdrop-filter: blur(16px) brightness(1.18) contrast(1.08) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) brightness(1.18) contrast(1.08) saturate(1.18);
}

.hero-pulse__ring:nth-child(3) {
    animation-delay: 0.4s;
    backdrop-filter: blur(12px) brightness(1.15) contrast(1.06) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) brightness(1.15) contrast(1.06) saturate(1.15);
}

/* Heartbeat: organic double-pump */
@keyframes heartbeat {
    0%   { transform: scale(1); }
    7%   { transform: scale(1.07); }
    13%  { transform: scale(0.97); }
    19%  { transform: scale(1.05); }
    26%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Shockwave ring: synced to heartbeat pump */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    7% {
        transform: translate(-50%, -50%) scale(1.0);
        opacity: 1.0;
    }
    15% {
        transform: translate(-50%, -50%) scale(2.0);
        opacity: 1.0;
    }
    35% {
        transform: translate(-50%, -50%) scale(4.0);
        opacity: 0.6;
    }
    60% {
        transform: translate(-50%, -50%) scale(6.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(6.5);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-banner__logo {
        animation: none;
    }
    .hero-pulse__ring {
        animation: none;
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: 55vh;
    }

    .hero-banner__logo {
        width: 130px;
    }

    .hero-pulse__ring {
        backdrop-filter: blur(6px) brightness(1.08) contrast(1.03);
        -webkit-backdrop-filter: blur(6px) brightness(1.08) contrast(1.03);
    }

    .hero-banner__title {
        font-size: var(--font-size-2xl);
    }

    .hero-banner__subtitle {
        font-size: var(--font-size-base);
    }
}
