/* 02 Hero. Component key: home.hero. */

.hero {
    position: relative;
    background-color: var(--color-bg);
    overflow: clip;
    isolation: isolate;
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: clamp(30rem, 39vw, 42rem);
    padding-block: var(--space-7);
}

.hero__content {
    position: relative;
    z-index: 1;
    width: 47%;
    max-width: 34rem;
}

.hero__eyebrow {
    margin-bottom: var(--space-3);
}

.hero__heading {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.hero__heading-heart {
    flex: none;
    margin-top: 0.5rem;
    color: var(--color-brand-orange);
}

.hero__body {
    max-width: 30rem;
    margin-top: var(--space-3);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    border-radius: 0;
}

/* Client supplies a normal photo; the readable left fade is made in CSS. */
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
        #fff 0%,
        rgba(255,255,255,.98) 23%,
        rgba(255,255,255,.88) 38%,
        rgba(255,255,255,.38) 57%,
        rgba(255,255,255,0) 76%);
}

.hero__handwritten {
    z-index: 1; /* Keep handwriting visible above the image fade. */
    position: absolute;
    top: 15%;
    right: var(--page-gutter);
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    text-align: right;
}

@media (max-width: 63.99rem) {
    .hero__content {
        width: 53%;
    }

    .hero__heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 47.99rem) {
    .hero__inner {
        align-items: center;
        min-height: 27rem;
        padding-block: var(--space-6);
    }
    .hero__content { width: 100%; max-width: 34rem; }
    .hero__image {
        height: 100%;
        object-position: 72% center;
    }
    .hero__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.95) 45%, rgba(255,255,255,.72) 78%, rgba(255,255,255,.45));
    }
    .hero__heading { font-size: clamp(1.875rem, 6vw, 2.5rem); }
    .hero__handwritten { display: none; }
}


/* Homepage hero photo horizontal adjustment */
@media (min-width: 64rem) {
    .hero__image {
        width: 106%;
        max-width: none;
        transform: translateX(5%);
    }
}
