/* =========================================================
   GWM WOW Parallax, Numbered Cards and Scroll Stop Layer
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.gwm-homepage {
    scroll-snap-type: y proximity;
}

.gwm-scroll-stop,
.gwm-hero-motion,
.gwm-home-welcome,
.gwm-home-card-section,
.gwm-home-final-cta {
    scroll-snap-align: start;
    scroll-margin-top: 120px;
}

.gwm-parallax-section {
    position: relative;
    isolation: isolate;
}

.gwm-parallax-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 12% 18%, rgba(200, 162, 74, 0.14), transparent 30%),
        radial-gradient(circle at 88% 80%, rgba(15, 61, 46, 0.14), transparent 34%);
    pointer-events: none;
}

.gwm-section-number {
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 162, 74, 0.16);
    color: #a97812;
    border: 1px solid rgba(200, 162, 74, 0.28);
    font-size: 1.4rem;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.gwm-alt-section--green .gwm-section-number,
.gwm-alt-section--dark .gwm-section-number {
    background: rgba(255, 255, 255, 0.10);
    color: #d7b768;
    border-color: rgba(255, 255, 255, 0.18);
}

.gwm-alt-section__image-placeholder {
    flex-direction: column;
    gap: 10px;
}

.gwm-alt-section__image-placeholder span {
    color: #c8a24a;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.08em;
}

.gwm-alt-section__image-placeholder strong {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gwm-wow-card-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gwm-wow-card {
    min-height: 270px;
    padding: 28px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background:
        linear-gradient(145deg, rgba(6, 45, 29, 0.96), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at top left, rgba(200, 162, 74, 0.22), transparent 38%);
    color: #ffffff;
    border: 1px solid rgba(200, 162, 74, 0.18);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.gwm-wow-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(200, 162, 74, 0.18);
    filter: blur(10px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gwm-wow-card:hover,
.gwm-wow-card:focus {
    transform: translateY(-8px);
    border-color: rgba(200, 162, 74, 0.46);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
}

.gwm-wow-card:hover::before,
.gwm-wow-card:focus::before {
    transform: scale(1.2) translate(-10px, 10px);
    opacity: 0.9;
}

.gwm-wow-card--light {
    background:
        linear-gradient(145deg, #ffffff, #fffaf0),
        radial-gradient(circle at top left, rgba(200, 162, 74, 0.18), transparent 38%);
    color: #09271c;
    border-color: rgba(15, 23, 42, 0.08);
}

.gwm-wow-card__number {
    position: absolute;
    top: 24px;
    right: 24px;
    color: rgba(200, 162, 74, 0.55);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.08em;
}

.gwm-wow-card__title {
    max-width: 85%;
    color: inherit;
    font-size: 1.28rem;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.gwm-wow-card__text {
    margin-top: 14px;
    color: currentColor;
    opacity: 0.78;
    font-size: 0.96rem;
    line-height: 1.7;
}

.gwm-home-counter {
    transform: translateZ(0);
}

.gwm-hero-motion__particles {
    animation: gwmParticlesDrift 26s linear infinite;
}

@keyframes gwmParticlesDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 180px 120px;
    }
}

@media (max-width: 1023px) {
    .gwm-homepage {
        scroll-snap-type: none;
    }

    .gwm-wow-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gwm-wow-card-grid {
        grid-template-columns: 1fr;
    }

    .gwm-section-number {
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gwm-homepage {
        scroll-snap-type: none;
    }

    .gwm-hero-motion__particles {
        animation: none;
    }
}
