/* ====== Hero ====== */
.makani-hero {
    --accent: #0f3d3a;
    --ink: #c8a45a;
    --overlay: rgba(13, 18, 23, .55);
    position: relative;
    margin-top: calc(-1 * var(--makani-header-offset));
    padding-top: var(--makani-header-offset);
    height: 100vh;
    display: grid;
    place-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;

}

.makani-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 61, 58, .78), rgba(13, 18, 23, .52) 48%, rgba(13, 18, 23, .42)),
        linear-gradient(180deg, rgba(13, 18, 23, .34), rgba(13, 18, 23, .68));
    z-index: 0;
}

.makani-hero__content {
    position: relative;
    z-index: 2;
}

.makani-hero__brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

.makani-hero__brand-text {
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;

}

.makani-hero__brand-ink {
    width: 147px;
    height: 11px;
    display: block;
}

.makani-hero__brand-ink path {
    fill: var(--ink);
}

.makani-hero__title {
    margin: .25rem 0 0;
    color: #fff;
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;


}

.makani-hero__subtext {
    max-width: 1037px;
    color: rgba(255, 255, 255, .90);
    margin-top: 20px;
    font-weight: 400;
    font-size: 28px;
    line-height: 135%;
    text-align: center;


}

.makani-hero__cta-shell {
    width: 760px;
    height: 128px;
    padding: 16px 20px;
    background: rgba(154, 161, 168, 0.6);
    backdrop-filter: blur(0px);

    /*border: 1px solid rgba(255,255,255,.35);*/
    border-radius: 12px;
    -webkit-backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 14px;
}

.makani-hero__cta-row {
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}



.makani-hero__btn {
    height: 54px;
    min-width: 239px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;

}

.makani-hero__btn--primary {
    background: var(--ink);
    color: #fff;
    border: 1px solid transparent;
}

.makani-hero__btn--primary:hover {
    filter: brightness(.95);
    color: #fff;
}

.makani-hero__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .85);
}

.makani-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}


@media (min-width: 761px) and (max-width: 1024px) {
    .makani-hero {
        height: 90vh;
        padding-inline: 20px;
    }

    .makani-hero__content {
        max-width: 92%;
    }

    .makani-hero__brand-text {
        font-size: 42px;
        line-height: 110%;
    }

    .makani-hero__brand-ink {
        width: 120px;
        height: 9px;
    }

    .makani-hero__title {
        font-size: 44px;
        line-height: 120%;
        text-wrap: balance;
        margin-top: .25rem;
    }

    .makani-hero__subtext {
        max-width: 820px;
        font-size: 22px;
        line-height: 150%;
        margin-top: 14px;
    }

    .makani-hero__cta-shell {
        width: 100%;
        max-width: 820px;
        height: auto;
        padding: 16px 18px;
        border-radius: 12px;
        background: rgba(154, 161, 168, 0.5);
    }

    .makani-hero__cta-row {
        gap: 28px;
        justify-content: center;
    }

    .makani-hero__btn {
        min-width: 210px;
        height: 50px;
        font-size: 16px;
    }
}


@media (max-width: 760px) and (min-width: 569px) {
    .makani-hero {
        height: 90vh;
        padding-inline: 16px;
    }

    .makani-hero__content {
        max-width: 92%;
    }

    .makani-hero__brand {
        gap: .3rem;
    }

    .makani-hero__brand-text {
        font-size: 40px;
        line-height: 110%;
        letter-spacing: 0;
    }

    .makani-hero__brand-ink {
        width: 120px;
        height: 9px;
    }

    .makani-hero__title {
        font-size: 42px;
        line-height: 115%;
        margin-top: .25rem;
        text-wrap: balance;
    }

    .makani-hero__subtext {
        max-width: 720px;
        font-size: 20px;
        line-height: 140%;
        margin-top: 14px;
    }

    .makani-hero__cta-shell {
        width: 100%;
        max-width: 720px;
        height: auto;
        padding: 14px 16px;
        border-radius: 12px;
        background: rgba(154, 161, 168, 0.5);
    }

    .makani-hero__cta-row {
        width: 100%;
        max-width: 700px;
        gap: 24px;
        justify-content: center;
    }

    .makani-hero__btn {
        min-width: 200px;
        height: 48px;
        font-size: 16px;
    }
}


@media (max-width: 568px) {
    .makani-hero {
        height: 85vh;
        padding-inline: 14px;
        background-position: center top;
    }

    .makani-hero__content {
        max-width: 100%;
    }

    .makani-hero__brand-text {
        font-size: 32px;
        line-height: 110%;
    }

    .makani-hero__brand-ink {
        width: 100px;
        height: 8px;
    }

    .makani-hero__title {
        font-size: 30px;
        line-height: 125%;
        margin-top: .35rem;
        text-wrap: balance;
    }

    .makani-hero__subtext {
        max-width: 100%;
        font-size: 18px;
        line-height: 150%;
        margin-top: 12px;
        padding-inline: 4px;
    }

    .makani-hero__cta-shell {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 12px;
        border-radius: 10px;
        background: rgba(154, 161, 168, 0.45);
        gap: 10px;
    }

    .makani-hero__cta-row {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .makani-hero__btn {
        width: 100%;
        min-width: 0;
        height: 44px;
        font-size: 15px;
    }
}

.makani-hero__photo-stack {
    position: absolute;
    inset-inline-start: clamp(28px, 5vw, 88px);
    bottom: clamp(28px, 7vh, 76px);
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 96px);
    gap: 12px;
    pointer-events: none;
}

[dir='ltr'] .makani-hero__photo-stack {
    inset-inline-start: auto;
    inset-inline-end: clamp(28px, 5vw, 88px);
}

.makani-hero__photo-card {
    width: 96px;
    height: 126px;
    display: block;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
    background: #fff;
}

.makani-hero__photo-card:nth-child(2) {
    transform: translateY(-22px);
}

.makani-hero__photo-card:nth-child(3) {
    transform: translateY(10px);
}

.makani-hero__photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (min-width: 761px) and (max-width: 1024px) {
    .makani-hero__photo-stack {
        grid-template-columns: repeat(3, 78px);
        opacity: .75;
    }

    .makani-hero__photo-card {
        width: 78px;
        height: 104px;
    }
}

@media (max-width: 760px) {
    .makani-hero__photo-stack {
        display: none;
    }
}

/* Gov.om-inspired cinematic hero refresh */
.makani-hero {
    --makani-official-green: #0a3f3a;
    --makani-official-deep: #062b28;
    --makani-official-gold: #c6a15b;
    --makani-official-mint: #dbeee9;
    min-height: 760px;
    height: min(920px, 100vh);
    isolation: isolate;
    background-position: center;
}

.makani-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.makani-hero__overlay {
    background:
        linear-gradient(90deg, rgba(6, 43, 40, .95) 0%, rgba(10, 63, 58, .86) 38%, rgba(10, 63, 58, .54) 64%, rgba(6, 43, 40, .34) 100%),
        linear-gradient(180deg, rgba(6, 43, 40, .48), rgba(6, 43, 40, .74));
    z-index: 0;
}

.makani-hero__glow {
    position: absolute;
    inset: auto -18% -28% 18%;
    height: 52%;
    background: radial-gradient(circle, rgba(219, 238, 233, .28), rgba(198, 161, 91, .18) 34%, transparent 66%);
    filter: blur(22px);
    opacity: .78;
    animation: makaniHeroGlow 9s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

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

.makani-hero__content {
    max-width: 860px;
    padding-block: clamp(36px, 8vh, 86px);
    text-align: start;
    animation: makaniHeroEnter .9s ease both;
}

.makani-hero__brand {
    align-items: flex-start;
    gap: .45rem;
}

.makani-hero .gov-chip {
    border: 1px solid rgba(219, 238, 233, .42);
    background: rgba(219, 238, 233, .14);
    color: #f8fffd;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .16);
}

.makani-hero__brand-text {
    color: #fff;
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 18px 46px rgba(0, 0, 0, .26);
}

.makani-hero__brand-ink {
    width: 154px;
    height: 6px;
    margin-top: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--makani-official-gold), #ead59e 48%, var(--makani-official-gold));
    box-shadow: 0 8px 24px rgba(198, 161, 91, .34);
}

.makani-hero__title {
    max-width: 820px;
    margin-top: 18px;
    color: #fff;
    font-size: clamp(42px, 6.4vw, 76px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 20px 56px rgba(0, 0, 0, .34);
}

.makani-hero__subtext {
    max-width: 760px;
    margin-top: 22px;
    padding: 0;
    color: rgba(248, 255, 253, .9);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.72;
    text-align: start;
}

.makani-hero__search-panel {
    max-width: 760px;
}

.makani-hero__search-link {
    min-height: 72px;
    padding: 10px 12px 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    color: #203432;
    text-decoration: none;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.makani-hero__search-link:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 161, 91, .72);
    box-shadow: 0 30px 72px rgba(0, 0, 0, .28);
    color: #0b332f;
}

.makani-hero__search-label {
    color: #5b6b68;
    font-size: 17px;
    font-weight: 600;
}

.makani-hero__search-action {
    min-width: 132px;
    height: 50px;
    padding-inline: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--makani-official-green);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.makani-hero__cta-shell {
    width: auto;
    max-width: 760px;
    height: auto;
    padding: 0;
    justify-content: flex-start;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.makani-hero__cta-row {
    max-width: none;
    justify-content: flex-start;
    gap: 14px;
}

.makani-hero__btn {
    min-width: 186px;
    height: 52px;
    border-radius: 6px;
    font-size: 16px;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.makani-hero__btn:hover {
    transform: translateY(-2px);
}

.makani-hero__btn--primary {
    background: var(--makani-official-gold);
    box-shadow: 0 18px 38px rgba(198, 161, 91, .28);
}

.makani-hero__btn--ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .46);
}

.makani-hero__trust-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.makani-hero__trust-row span {
    padding: 9px 14px;
    border: 1px solid rgba(219, 238, 233, .28);
    border-radius: 999px;
    background: rgba(219, 238, 233, .1);
    color: rgba(248, 255, 253, .9);
    font-size: 14px;
    font-weight: 700;
}

.makani-hero__photo-stack {
    inset-inline-start: auto;
    inset-inline-end: clamp(32px, 7vw, 118px);
    bottom: clamp(54px, 12vh, 126px);
    grid-template-columns: repeat(2, minmax(118px, 148px));
    gap: 16px;
    opacity: .96;
}

[dir='ltr'] .makani-hero__photo-stack {
    inset-inline-start: auto;
    inset-inline-end: clamp(32px, 7vw, 118px);
}

[dir='rtl'] .makani-hero__photo-stack {
    inset-inline-start: clamp(32px, 7vw, 118px);
    inset-inline-end: auto;
}

.makani-hero__photo-card {
    width: clamp(118px, 10vw, 148px);
    height: clamp(148px, 14vw, 198px);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32);
    animation: makaniHeroFloat 7s ease-in-out infinite;
}

.makani-hero__photo-card:nth-child(2) {
    transform: translateY(-34px);
    animation-delay: -1.8s;
}

.makani-hero__photo-card:nth-child(3) {
    grid-column: 1 / span 2;
    justify-self: center;
    width: clamp(150px, 13vw, 190px);
    transform: translateY(0);
    animation-delay: -3.2s;
}

@keyframes makaniHeroEnter {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes makaniHeroGlow {
    from {
        transform: translate3d(-4%, 0, 0) scale(1);
    }
    to {
        transform: translate3d(7%, -5%, 0) scale(1.08);
    }
}

@keyframes makaniHeroFloat {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -10px;
    }
}

@media (max-width: 1199px) {
    .makani-hero {
        min-height: 720px;
    }

    .makani-hero__content {
        max-width: 780px;
    }

    .makani-hero__photo-stack {
        opacity: .42;
    }
}

@media (max-width: 760px) {
    .makani-hero {
        min-height: 700px;
        height: auto;
        padding-block: calc(var(--makani-header-offset) + 32px) 46px;
    }

    .makani-hero__content {
        padding-block: 0;
        text-align: center;
    }

    .makani-hero__brand {
        align-items: center;
    }

    .makani-hero__title {
        font-size: 38px;
        line-height: 1.12;
    }

    .makani-hero__subtext {
        text-align: center;
        font-size: 17px;
        line-height: 1.62;
    }

    .makani-hero__search-link {
        min-height: 64px;
        padding: 10px;
    }

    .makani-hero__search-label {
        font-size: 14px;
    }

    .makani-hero__search-action {
        min-width: 96px;
        height: 44px;
        font-size: 14px;
    }

    .makani-hero__cta-row,
    .makani-hero__trust-row {
        justify-content: center;
    }

    .makani-hero__btn {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .makani-hero__search-link,
    .makani-hero__cta-row {
        flex-direction: column;
    }

    .makani-hero__search-action,
    .makani-hero__btn {
        width: 100%;
    }
}

.makani-hero {
    background-size: cover;
    animation: makaniHeroBackgroundDrift 18s ease-in-out infinite alternate;
}

.makani-hero:has(.makani-hero__video) {
    animation: none;
}

@keyframes makaniHeroBackgroundDrift {
    from {
        background-position: center center;
    }
    to {
        background-position: 54% 46%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .makani-hero,
    .makani-hero__content,
    .makani-hero__glow,
    .makani-hero__photo-card {
        animation: none;
    }
}

/* Senior UI correction: stable hero composition */
.makani-hero {
    min-height: 720px;
    height: auto;
    padding-block: calc(var(--makani-header-offset) + 72px) 82px;
    place-items: stretch;
}

.makani-hero .row {
    min-height: 540px;
}

.makani-hero__content {
    max-width: 780px;
}

[dir='ltr'] .makani-hero__content {
    margin-right: auto;
    text-align: left;
}

[dir='rtl'] .makani-hero__content {
    margin-left: auto;
    text-align: right;
}

[dir='ltr'] .makani-hero__brand {
    align-items: flex-start;
}

[dir='rtl'] .makani-hero__brand {
    align-items: flex-end;
}

.makani-hero__title {
    max-width: 760px;
    font-size: clamp(40px, 5.4vw, 66px);
}

.makani-hero__subtext {
    max-width: 700px;
}

.makani-hero__photo-stack {
    display: none;
}

[dir='ltr'] .makani-hero__search-link {
    padding: 10px 12px 10px 24px;
}

[dir='rtl'] .makani-hero__search-link {
    padding: 10px 24px 10px 12px;
}

[dir='ltr'] .makani-hero__cta-row,
[dir='ltr'] .makani-hero__trust-row {
    justify-content: flex-start;
}

[dir='rtl'] .makani-hero__cta-row,
[dir='rtl'] .makani-hero__trust-row {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .makani-hero {
        min-height: 660px;
        padding-block: calc(var(--makani-header-offset) + 56px) 64px;
    }

    .makani-hero .row {
        min-height: 0;
    }

    .makani-hero__content,
    [dir='ltr'] .makani-hero__content,
    [dir='rtl'] .makani-hero__content {
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    .makani-hero__brand,
    [dir='ltr'] .makani-hero__brand,
    [dir='rtl'] .makani-hero__brand {
        align-items: center;
    }

    .makani-hero__subtext {
        margin-inline: auto;
        text-align: center;
    }

    .makani-hero__cta-row,
    .makani-hero__trust-row,
    [dir='ltr'] .makani-hero__cta-row,
    [dir='rtl'] .makani-hero__cta-row,
    [dir='ltr'] .makani-hero__trust-row,
    [dir='rtl'] .makani-hero__trust-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .makani-hero__title {
        font-size: 34px;
    }

    .makani-hero__search-link,
    [dir='rtl'] .makani-hero__search-link {
        flex-direction: column;
        padding: 12px;
    }
}
