/* Explain: Styling for layout, hero section, and decorative orbs. */
.section-pad {
    padding-top: clamp(3rem, 8vw, 9rem);
    padding-bottom: clamp(3rem, 8vw, 9rem);
}

@media (max-width: 767px) {
    .section-pad {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }
}

.hero-split {
    background:
        linear-gradient(115deg, rgba(250, 249, 246, 0.96) 0%, rgba(250, 249, 246, 0.78) 52%, rgba(88, 129, 87, 0.12) 100%);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.52;
    pointer-events: none;
    z-index: -1;
}

.orb-sage {
    width: 24rem;
    height: 24rem;
    right: 8%;
    top: 10%;
    background: rgba(88, 129, 87, 0.2);
}

.orb-terracotta {
    width: 18rem;
    height: 18rem;
    left: 4%;
    bottom: 10%;
    background: rgba(163, 177, 138, 0.25);
}

.contact-section {
    background:
        radial-gradient(circle at 8% 16%, rgba(163, 177, 138, 0.2), transparent 24rem),
        linear-gradient(180deg, var(--background-color), var(--surface-color));
}

/* ===== Hero: image first on mobile with overlaid title ===== */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "media"
        "body";
    gap: 2rem;
}

.hero-media {
    grid-area: media;
}

.hero-media-frame {
    position: relative;
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
    height: min(46vh, 430px);
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    border-radius: 999px 999px 2rem 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.hero-media-img {
    transform: scale(1.16);
    transform-origin: center 58%;
}

.hero-copy {
    z-index: 2;
    grid-area: media;
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
    align-self: end;
    padding: 3.5rem 1.35rem 2.5rem;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0) 30%, rgba(31, 46, 35, 0.85) 100%);
}

.hero-copy h1 {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
    color: #ffffff;
}

.hero-kicker::before {
    background: #ffffff;
}

.hero-body {
    grid-area: body;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 0.95fr;
        grid-template-areas:
            "copy media"
            "body media";
        column-gap: 3.5rem;
        align-items: center;
    }

    .hero-media {
        align-self: center;
        justify-self: end;
        width: 100%;
        max-width: 560px;
    }

    .hero-media-frame {
        width: 100%;
        height: min(74vh, 720px);
        min-height: 500px;
        border-radius: 999px 999px 2.5rem 2.5rem;
    }

    .hero-media-img {
        transform: none;
    }

    .hero-copy {
        width: auto;
        margin: 0;
        grid-area: copy;
        align-self: end;
        padding: 0;
        background: none;
    }

    .hero-copy h1 {
        color: var(--text-color);
        text-shadow: none;
    }

    .hero-kicker {
        color: var(--sage-dark);
    }

    .hero-kicker::before {
        background: var(--accent-color);
    }

    .hero-body {
        grid-area: body;
        align-self: start;
    }
}
