/* ==========================================================
   HOMEPAGE HERO
   Full-bleed coastal photography · Brand-forward composition
   ========================================================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(100svh, 58rem);
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: 0;
    color: var(--color-inverse);
    overflow: hidden;
    isolation: isolate;
}

/* ---------- Media (full-bleed) ---------- */

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--surface-coastal);
}

.hero__media picture,
.hero__image {
    width: 100%;
    height: 100%;
}

.hero__image {
    object-fit: cover;
    object-position: center center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--overlay-hero);
}

/* ---------- Content ---------- */

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 46rem;
    margin-right: auto;
    padding-bottom: clamp(4.5rem, 12vw, 7.5rem);
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.12em;
    margin: 0 0 var(--space-5);
    max-width: none;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.05;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-inverse);
    text-wrap: balance;
}

.hero__title-line {
    display: block;
}

.hero__brand {
    margin: 0 0 var(--space-4);
    max-width: none;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-inverse-soft);
}

.hero__text {
    margin: 0 0 var(--space-7);
    max-width: 34ch;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height);
    color: var(--color-inverse-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.hero__actions .btn {
    min-width: min(100%, 12.5rem);
}

.hero__actions .btn--outline-inverse:focus-visible {
    outline-color: var(--color-inverse);
}

/* ---------- Entrance (subtle) ---------- */

.hero__brand,
.hero__title,
.hero__text,
.hero__actions {
    animation: hero-rise 0.85s var(--ease-out) both;
}

.hero__title  { animation-delay: 0.08s; }
.hero__text   { animation-delay: 0.16s; }
.hero__actions { animation-delay: 0.24s; }

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__brand,
    .hero__title,
    .hero__text,
    .hero__actions {
        animation: none;
    }
}

/* ---------- Wave divider ---------- */

.hero__wave {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin-top: auto;
    line-height: 0;
    color: var(--color-white);
}

.hero__wave-svg {
    display: block;
    width: 100%;
    height: clamp(3rem, 8vw, 5.5rem);
}

.hero__wave-shape {
    fill: currentColor;
}

/* ---------- Responsive ---------- */

@media (max-width: 479.98px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 768px) {
    .hero {
        justify-content: center;
        min-height: min(100svh, 62rem);
        padding-top: calc(var(--header-height) + var(--space-6));
    }

    .hero__content {
        padding-bottom: clamp(5rem, 10vw, 8rem);
    }

    .hero__text {
        font-size: var(--font-size-xl);
        max-width: 38ch;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: min(100svh, 68rem);
    }

    .hero__content {
        max-width: 50rem;
    }

    .hero__image {
        object-position: center 35%;
    }
}

/* High-contrast / forced colors */
@media (forced-colors: active) {
    .hero__overlay {
        background: Canvas;
        opacity: 0.75;
    }

    .hero__brand,
    .hero__title,
    .hero__text {
        color: CanvasText;
    }
}
