/**
 * InvitKeun — hero & float nav: selalu center lurus (mobile + desktop)
 */

/* ——— Hero ——— */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-pattern__content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-inline: auto;
    box-sizing: border-box;
}

#hero .hero-eyebrow-label {
    display: table !important;
    width: auto !important;
    max-width: calc(100% - 0.5rem);
    margin-inline: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    letter-spacing: var(--hero-label-tracking, 0.32em) !important;
}

.inv-hero-couple-names {
    width: 100%;
    max-width: min(100%, 22rem);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.inv-hero-couple-names .hero-name-line {
    transform: none !important;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    text-align: center !important;
    font-size: clamp(2rem, 8.5vw, 3rem) !important;
    line-height: 1.12 !important;
}

.inv-hero-couple-names .hero-amp {
    display: block;
    width: 100%;
    margin-inline: auto;
    text-align: center !important;
    transform: none !important;
}

#hero .hero-pattern__content .w-16.h-px,
#hero .hero-pattern__content > p {
    margin-inline: auto;
    text-align: center;
}

#hero .hero-pattern__content .max-w-md {
    margin-inline: auto;
    width: 100%;
}

/* Editorial: hero tetap center (jangan left-align) */
.layout-editorial #hero .hero-pattern__content {
    text-align: center !important;
    align-items: center !important;
    max-width: 100% !important;
    padding-inline: clamp(1rem, 4vw, 1.5rem) !important;
}

.layout-editorial #hero .hero-name-line {
    text-align: center !important;
}

/* ——— Float navigation ——— */
#floatNavDock {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    transform: translateY(1rem) !important;
}

#floatNavDock.is-visible,
body:not(.has-cover-open) #floatNavDock {
    transform: translateY(0) !important;
}

#floatNav {
    display: inline-flex !important;
    flex-wrap: nowrap;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    width: max-content;
    max-width: 100%;
}

#floatNav .nav-item {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto;
}

#floatNav .nav-item span.absolute {
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    #floatNavDock {
        max-width: 100% !important;
    }

    #floatNav {
        gap: 0.2rem;
        padding: 0.45rem !important;
    }
}
