/**
 * Forever Workspace — hero (premium editorial layout, plum/gold)
 */

/* ——— Reveal lock ——— */
body.is-site-opening #footer,
body.is-hero-reveal #footer {
    visibility: hidden;
    pointer-events: none;
}

body.is-site-opening .btn-whatsapp-pulse,
body.is-site-opening .btn-call,
body.is-hero-reveal .btn-whatsapp-pulse,
body.is-hero-reveal .btn-call {
    opacity: 0;
    pointer-events: none;
}

/* ——— Section shell ——— */
#hero.fw-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    min-height: 100dvh;
    min-height: 620px;
    overflow: hidden;
}

@media (min-width: 768px) {
    #hero.fw-hero {
        min-height: 700px;
        height: 100vh;
        height: 100dvh;
    }
}

.hero-bg-stack {
    transform-origin: center center;
    background-color: #2e1a31;
    background-image: linear-gradient(155deg, #3b1d4a 0%, #4a2a52 38%, #2e1a31 72%, #1a0f22 100%);
}

.hero-overlay {
    background:
        linear-gradient(to top, rgba(30, 16, 36, 0.92) 0%, rgba(30, 16, 36, 0.4) 32%, transparent 58%),
        linear-gradient(to right, rgba(46, 26, 49, 0.94) 0%, rgba(46, 26, 49, 0.52) 42%, rgba(74, 42, 82, 0.22) 100%),
        radial-gradient(ellipse 90% 65% at 78% 8%, rgba(201, 162, 75, 0.16), transparent 55%);
}

.hero-vignette {
    background:
        radial-gradient(ellipse 95% 75% at 72% 8%, rgba(201, 162, 75, 0.12), transparent 50%),
        radial-gradient(ellipse 80% 55% at 10% 90%, rgba(46, 26, 49, 0.42), transparent 55%);
}

/* ——— Aurora + particles (GSAP-driven) ——— */
#hero-aurora {
    position: absolute;
    inset: -12%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(40px);
    opacity: 0.8;
    will-change: transform;
    transform: translateZ(0);
}

.hero-aurora__blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-aurora__blob--gold {
    width: 46vw;
    height: 46vw;
    top: -10%;
    right: 0%;
    background: radial-gradient(circle at 50% 50%, rgba(201, 162, 75, 0.55), rgba(201, 162, 75, 0.06) 58%, transparent 70%);
}

.hero-aurora__blob--plum {
    width: 54vw;
    height: 54vw;
    bottom: -18%;
    left: -8%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 46, 110, 0.6), rgba(63, 29, 70, 0.08) 58%, transparent 70%);
}

.hero-aurora__blob--rose {
    width: 32vw;
    height: 32vw;
    top: 32%;
    left: 42%;
    background: radial-gradient(circle at 50% 50%, rgba(160, 95, 125, 0.42), transparent 66%);
}

#hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(201, 162, 75, 0.9);
    box-shadow: 0 0 6px rgba(201, 162, 75, 0.85);
    opacity: 0;
    will-change: transform, opacity;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    mix-blend-mode: overlay;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

#hero #hero-parallax-root,
#hero #hero-bg {
    overflow: hidden;
    max-width: 100%;
}

/* ——— Content layout ——— */
#hero .hero-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    position: relative;
    z-index: 10;
    color: #fff;
    padding:
        calc(var(--header-height, 4.5rem) + 1.25rem)
        max(1.5rem, env(safe-area-inset-right, 0px) + 1.25rem)
        max(5.5rem, env(safe-area-inset-bottom, 0px) + 4.5rem)
        max(1.5rem, env(safe-area-inset-left, 0px) + 1.25rem);
}

@media (min-width: 768px) {
    #hero .hero-inner {
        padding:
            calc(var(--header-height, 5rem) + 2rem)
            3rem
            7.5rem
            3rem;
    }
}

@media (min-width: 1024px) {
    #hero .hero-inner {
        padding-left: max(3rem, calc((100vw - 80rem) / 2 + 3rem));
        padding-right: max(3rem, calc((100vw - 80rem) / 2 + 3rem));
    }
}

#hero .hero-content-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    justify-content: center;
}

#hero .fw-hero-heading,
#hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: min(56rem, 100%);
    text-align: left;
}

/* ——— Kicker / badge ——— */
#hero [data-hero-badge],
#hero .hero-kicker {
    display: block;
    margin: 0 0 1.25rem;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(0.62rem, 0.55rem + 0.22vw, 0.72rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C9A24B;
    line-height: 1.4;
}

/* ——— Title ——— */
#hero .fw-hero-title {
    margin: 0;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0.06em;
}

#hero .fw-hero-title .hero-title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.14em;
}

#hero.hero-js.hero-lit .fw-hero-title .hero-title-line {
    overflow: visible;
    padding-bottom: 0;
}

#hero .fw-hero-title .hero-title-line__inner {
    display: block;
    will-change: transform;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 11vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: #f8f9fc;
    text-shadow: 0 6px 32px rgba(5, 15, 26, 0.45);
    transform-origin: 50% 100%;
}

#hero .fw-hero-title .hero-title-line:first-child .hero-title-line__inner {
    font-style: italic;
    font-weight: 400;
}

#hero .fw-hero-title .hero-title-line--accent .hero-title-line__inner {
    color: #C9A24B;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    #hero .fw-hero-title .hero-title-line__inner {
        font-size: clamp(4.25rem, 7vw, 7.25rem);
    }
}

@media (min-width: 1280px) {
    #hero .fw-hero-title .hero-title-line__inner {
        font-size: clamp(5rem, 6.5vw, 8.25rem);
    }
}

#hero .hero-title-accent {
    display: block;
    width: clamp(3.5rem, 10vw, 5.5rem);
    height: 2px;
    margin: 1.15rem 0 1.35rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #C9A24B 0%, rgba(201, 162, 75, 0.35) 100%);
    transform-origin: left center;
    will-change: transform;
}

/* ——— Copy block ——— */
#hero .hero-copy {
    max-width: min(36rem, 100%);
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
}

#hero .hero-copy-line {
    margin: 0;
}

#hero .hero-copy-line + .hero-copy-line {
    margin-top: 0.15rem;
}

#hero .hero-copy-line--desc {
    margin-top: 0.65rem;
    font-family: Montserrat, Inter, sans-serif;
    font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.92rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

#hero .hero-cta-row {
    width: 100%;
}

@media (min-width: 768px) {
    .hero-stat {
        font-size: 0.9375rem;
        gap: 0.65rem;
    }

    .hero-stat__icon {
        width: 1.15rem;
        height: 1.15rem;
    }
}

/* ——— Display tagline — Coming Soon at Kudasan ——— */
#hero .hero-tagline--display {
    position: absolute;
    z-index: 12;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    pointer-events: none;
    text-align: left;
    left: max(1.5rem, env(safe-area-inset-left, 0px) + 1.25rem);
    right: auto;
    bottom: max(5.75rem, env(safe-area-inset-bottom, 0px) + 5rem);
    max-width: min(17.5rem, calc(100vw - 5.75rem));
}

#hero .hero-tagline__eyebrow {
    display: block;
    font-family: Montserrat, Inter, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

#hero .hero-tagline__eyebrow::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 1px;
    margin-top: 0.45rem;
    background: linear-gradient(90deg, rgba(201, 162, 75, 0.9), rgba(201, 162, 75, 0.15));
}

#hero .hero-tagline__name {
    display: block;
    margin-top: 0.15rem;
    font-family: "Playfair Display", Marcellus, Georgia, serif;
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 4px 24px rgba(10, 8, 14, 0.45);
}

#hero .hero-tagline__name-inner {
    font-style: italic;
    font-weight: 300;
    color: #C9A24B;
    position: relative;
    display: inline-block;
}

#hero.hero-js.hero-lit .hero-tagline__name-inner {
    animation: fw-hero-tagline-glow 2.8s ease 1.1s 1 forwards;
}

@keyframes fw-hero-tagline-glow {
    0% { filter: brightness(1); }
    35% { filter: brightness(1.35); }
    100% { filter: brightness(1); }
}

@media (min-width: 640px) {
    #hero .hero-tagline--display {
        left: max(1.75rem, env(safe-area-inset-left, 0px) + 1.5rem);
        max-width: min(20rem, calc(100vw - 6rem));
    }

    #hero .hero-tagline__eyebrow {
        font-size: 0.68rem;
    }

    #hero .hero-tagline__name {
        font-size: clamp(2rem, 6.5vw, 2.85rem);
    }
}

@media (min-width: 768px) {
    #hero .hero-tagline--display {
        left: auto;
        right: 3rem;
        bottom: clamp(5rem, 12vh, 6.25rem);
        align-items: flex-end;
        text-align: right;
        max-width: min(56rem, calc(100vw - 6rem));
        gap: 0.35rem;
    }

    #hero .hero-tagline__eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.32em;
        color: rgba(255, 255, 255, 0.78);
    }

    #hero .hero-tagline__eyebrow::after {
        margin-top: 0.55rem;
        margin-left: auto;
        width: 3.5rem;
        background: linear-gradient(270deg, rgba(201, 162, 75, 0.9), rgba(201, 162, 75, 0.12));
    }

    #hero .hero-tagline__name {
        margin-top: 0.25rem;
        font-size: clamp(2.75rem, 5.2vw, 4.75rem);
        line-height: 0.95;
        letter-spacing: -0.01em;
    }
}

@media (min-width: 1024px) {
    #hero .hero-tagline--display {
        right: max(3rem, calc((100vw - 80rem) / 2 + 3rem));
    }

    #hero .hero-tagline__name {
        font-size: clamp(3rem, 5.5vw, 5.5rem);
    }
}

/* ——— Scroll hint ——— */
#hero .hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
    z-index: 14;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.35rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
}

#hero .hero-scroll-hint:hover {
    color: #C9A24B;
}

#hero .hero-scroll-hint__label {
    font-family: Montserrat, Inter, sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

#hero .hero-scroll-hint__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(201, 162, 75, 0.9);
}

#hero .hero-scroll-hint__icon svg,
#hero .hero-scroll-hint__icon i {
    width: 1.75rem;
    height: 1.75rem;
}

@keyframes fw-hero-scroll-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

#hero .hero-scroll-hint__icon {
    animation: fw-hero-scroll-nudge 2.2s ease-in-out infinite;
}

@media (min-width: 768px) {
    #hero .hero-scroll-hint {
        left: 50%;
        right: auto;
        bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
        transform: translateX(-50%);
        align-items: center;
    }
}

/* ——— Mobile (Forever Homes pattern) ——— */
@media (max-width: 767px) {
    #hero.fw-hero {
        min-height: 100svh;
        min-height: 100dvh;
        height: auto;
        max-height: none;
    }

    #hero .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(30, 16, 36, 0.35) 0%, rgba(30, 16, 36, 0.68) 48%, rgba(26, 15, 34, 0.94) 100%),
            linear-gradient(to right, rgba(46, 26, 49, 0.88) 0%, rgba(46, 26, 49, 0.5) 100%);
    }

    #hero .hero-inner {
        flex: 1 1 auto;
        min-height: 0;
        justify-content: center;
        align-items: stretch;
        overflow: visible;
        padding-top: calc(var(--header-height, 4.5rem) + 0.5rem);
        padding-left: max(1.5rem, env(safe-area-inset-left, 0px) + 1.25rem);
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px) + 1.25rem);
        padding-bottom: max(6rem, env(safe-area-inset-bottom, 0px) + 5.5rem);
    }

    #hero .hero-content-wrap {
        flex: 1 1 auto;
        min-height: 0;
        justify-content: center;
        width: 100%;
        overflow: visible;
    }

    #hero .fw-hero-heading,
    #hero .hero-content {
        max-width: 100%;
        justify-content: flex-start;
    }

    #hero [data-hero-badge],
    #hero .hero-kicker {
        margin-bottom: 1rem;
        letter-spacing: 0.3em;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    #hero .fw-hero-title .hero-title-line__inner {
        font-size: clamp(2.75rem, 14vw, 4.25rem);
        line-height: 0.92;
    }

    #hero .hero-title-accent {
        width: clamp(3rem, 18vw, 4rem);
        margin: 0.85rem 0 1rem;
    }

    #hero .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0.625rem;
        margin-bottom: 1.5rem !important;
    }

    #hero .hero-stat {
        font-size: 0.875rem;
        gap: 0.55rem;
    }

    #hero .hero-stat__icon {
        width: 1.05rem;
        height: 1.05rem;
    }

    #hero .hero-copy {
        padding-left: 1.5rem;
        margin-bottom: 2rem !important;
        font-size: 1rem;
        line-height: 1.45;
    }

    #hero .hero-copy-line + .hero-copy-line {
        margin-top: 0.15rem;
    }

    #hero .hero-copy-line--desc {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.9);
    }

    #hero .hero-cta-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    #hero .hero-cta-primary,
    #hero .hero-cta-ghost {
        justify-content: center;
        min-height: 44px;
        padding: 0.85rem 1.35rem;
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    #hero .hero-scroll-hint {
        bottom: max(1.5rem, env(safe-area-inset-bottom, 0px) + 1rem);
        z-index: 20;
    }

    #hero .hero-tagline--display {
        bottom: max(5.5rem, env(safe-area-inset-bottom, 0px) + 4.85rem);
        max-width: min(16rem, calc(100vw - 5.5rem));
    }

    #hero .hero-tagline__name {
        font-size: clamp(1.65rem, 8vw, 2.35rem);
    }
}

@media (max-width: 767px) and (min-width: 640px) {
    #hero .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.625rem 1.5rem;
    }
}

@media (max-width: 767px) and (max-height: 700px) {
    #hero .fw-hero-title .hero-title-line__inner {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    #hero .hero-inner {
        padding-top: calc(var(--header-height, 4.5rem) + 0.25rem);
        padding-bottom: max(5.25rem, env(safe-area-inset-bottom, 0px) + 4.75rem);
    }

    #hero .hero-tagline--display {
        bottom: max(5rem, env(safe-area-inset-bottom, 0px) + 4.5rem);
    }

    #hero .hero-tagline__name {
        font-size: clamp(1.5rem, 7.5vw, 2.1rem);
    }

    #hero .hero-stats {
        margin-bottom: 1rem !important;
    }

    #hero .hero-copy {
        margin-bottom: 1.25rem !important;
    }

    #hero .hero-cta-primary,
    #hero .hero-cta-ghost {
        padding: 0.75rem 1.15rem;
    }
}

@media (max-width: 400px) {
    #hero [data-hero-badge],
    #hero .hero-kicker {
        letter-spacing: 0.22em;
        font-size: 0.8125rem;
    }

    #hero .fw-hero-title .hero-title-line__inner {
        font-size: clamp(2.5rem, 13vw, 3.5rem);
    }

    #hero .hero-copy {
        font-size: 0.9375rem;
        padding-left: 1.25rem;
    }

    #hero .hero-copy-line--desc {
        font-size: 0.8125rem;
    }
}

@media (max-width: 359px) {
    #hero .hero-inner {
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px) + 1rem);
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px) + 1rem);
    }

    #hero .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    #hero .hero-cta-row {
        gap: 0.5rem;
    }

    #hero .hero-cta-primary,
    #hero .hero-cta-ghost {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero .hero-scroll-hint__icon {
        animation: none !important;
    }

    #hero.hero-js.hero-lit .hero-tagline__name-inner {
        animation: none !important;
    }

    .hero-grain {
        opacity: 0.03;
    }
}
