
/* HERO */

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    background: 
        radial-gradient(circle at 85% 15%, rgba(155, 127, 216, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 15% 85%, rgba(123, 63, 192, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1d003b 0%, #3d0075 45%, #180030 100%);
}


.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        /* Vertical architectural panels */
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 18%,
            rgba(255,255,255,0.025) 18.2%,
            transparent 18.4%,
            transparent 38%,
            rgba(255,255,255,0.035) 38.2%,
            transparent 38.4%,
            transparent 67%,
            rgba(255,255,255,0.025) 67.2%,
            transparent 67.4%
        ),

        /* Horizontal structural lines */
        linear-gradient(
            0deg,
            transparent 0%,
            transparent 24%,
            rgba(255,255,255,0.025) 24.2%,
            transparent 24.4%,
            transparent 58%,
            rgba(255,255,255,0.025) 58.2%,
            transparent 58.4%
        ),
        /* Very subtle grid */
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.012) 0,
            rgba(255,255,255,0.012) 1px,
            transparent 1px,
            transparent 70px
        );
    opacity: .9;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.55'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    pointer-events: none;
}


/* =========================================================
   DECORATIVE LARGE CIRCLE
========================================================= */

.hero-image {
    /* position: absolute;

    width: 520px;
    height: 520px;

    right: -80px;
    top: 60px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(47,194,189,.22),
            rgba(47,194,189,.04) 45%,
            transparent 70%
        );

    border:
        1px solid rgba(255,255,255,.04);

    opacity: .9; */

    position: absolute;
    inset: 0;
    z-index: 0;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.hero-overlay {

    position: absolute;
    inset: 0;
    z-index: 0;
    /* position: absolute;
    inset: 0;

    background: */

        /* Darken text area */
        /* linear-gradient(
            90deg,
            rgba(9,24,26,.55) 0%,
            rgba(9,24,26,.30) 42%,
            rgba(9,24,26,.05) 75%
        ), */

        /* Bottom fade */
        /* linear-gradient(
            0deg,
            rgba(8,20,22,.40) 0%,
            transparent 45%
        );

    pointer-events: none; */
}


/* Keep hero content above texture */
.hero-content {
    position: relative;
    z-index: 1;
    min-height: 568px;
    padding: 75px 58px 50px;
    display: flex;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 3;
}

.hero-small {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: var(--font-14);
    font-weight: var(--weight-500);
    text-transform: uppercase;
    letter-spacing: 1px;

}

.hero-title {
    max-width: 650px;
    font-family: "Poppins", sans-serif;
    font-size: var(--font-48);
    font-weight: var(--weight-600);
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-title em {
    color: #5a199b;
    font-style: italic;
    font-weight: var(--weight-500);
}

.hero-description {
    max-width: 570px;
    margin-top: 25px;
    color: rgba(255,255,255,.72);
    font-size: var(--font-14);
    line-height: 1.8;
    font-weight: var(--weight-400);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 35px;
}

.hero-visual {
    position: relative;
    height: 520px;
}

.hero-image {
    position: absolute;
    top: 35px;
    right: 0;
    width: 78%;
    height: 450px;
    overflow: hidden;
    border-radius: 35px 35px 35px 70px;

    /* Replace with your actual community photograph */
    background:linear-gradient(135deg, rgba(5,53,53,.10), rgba(5,53,53,.25)), url("../images/community.jpg") center / cover no-repeat;
    box-shadow: 0 35px 80px rgba(0,0,0,.35);
}

.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5,53,53,.45));
}

.hero-image::after {
    content: "OUR COMMUNITY";
    position: absolute;
    left: 25px;
    bottom: 25px;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,.92);
    color: var(--dark);
    font-size: var(--font-12);
    font-weight: var(--weight-700);
    letter-spacing: 1.2px;
}

/* Homepage family image anchored to the bottom of the banner. */
#home.hero {
    min-height: 650px;
    align-items: stretch;
}

#home .hero-content {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: 28px;
    min-height: 650px;
    padding: 75px 0 0;
    align-items: stretch;
}

#home .hero-text {
    align-self: center;
    min-width: 0;
    padding-bottom: 50px;
}

#home .hero-visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    height: auto;
}

#home .hero-family-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 575px;
    object-fit: contain;
    object-position: right bottom;
}

#home .hero-buttons {
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    #home.hero {
        min-height: 0;
    }

    #home .hero-content {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 24px;
        padding-top: 110px;
    }

    #home .hero-text {
        padding-bottom: 0;
    }

    #home .hero-visual {
        width: 100%;
        max-width: 520px;
        justify-self: end;
    }

    #home .hero-family-image {
        max-height: 420px;
    }

    #home .hero-title {
        font-size: clamp(var(--font-28), 6vw, var(--font-48));
    }
}
