/*
 * Bloom Up Active: a hero with stats and a photo collage, and what we do
 * (.benefits, in components.css). The outings are on Bloom Up Active's
 * own site, which the buttons link to.
 */

.active {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    padding-bottom: clamp(90px, 9vw, 150px);
    background: var(--c-sand);
}

.active__inner {
    position: relative;
    z-index: 2;
    max-width: calc(1180px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- hero ---------- */

.active-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(36px, 5vw, 80px);
    padding-top: clamp(24px, 4vw, 56px);
}

.active-hero__title {
    margin: .28em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3.75rem, 7.4vw, 7.5rem);
    line-height: 1;
    color: var(--c-accent);
}

.active-hero__lead { max-width: 31em; margin: 1em 0 0; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); text-wrap: pretty; }

.active-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 40px); margin: clamp(24px, 2.6vw, 34px) 0 0; padding: 0; list-style: none; }
.active-stats li { display: flex; flex-direction: column; }
.active-stats b { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.25rem, 3.2vw, 3rem); line-height: 1; color: var(--c-accent); }
.active-stats span { margin-top: 4px; font-size: 0.8125rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-2); }

.active-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.6vw, 34px); }
.active-hero__note { max-width: 30em; margin: 14px 0 0; font-size: 0.9375rem; color: var(--c-ink-2); }
.active-hero__note a,
.active-elsewhere a:not(.btn) { color: var(--c-accent); text-underline-offset: 3px; }

/* a big photo, a smaller one overlapping its corner, and a badge */
.active-collage { position: relative; padding-bottom: clamp(40px, 5vw, 70px); }

.active-collage figure { margin: 0; overflow: hidden; border-radius: 22px; background: #E3D6C6; }
.active-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }

.active-collage__main { --frame-shadow: 0 24px 40px -26px rgba(80, 30, 25, .45); width: 88%; aspect-ratio: 1.08; margin: 0 14px 14px 0 !important; }

.active-collage__small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1.1;
    border: 6px solid var(--c-sand);
    box-shadow: 0 26px 40px -22px rgba(80, 30, 25, .6);
}

.active-badge {
    position: absolute;
    top: 22px;
    left: -14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    background: #fff;
    font-size: 0.9062rem;
    font-weight: 500;
    box-shadow: 0 16px 30px -16px rgba(60, 10, 20, .55), inset 0 0 0 1px rgba(110, 20, 35, .1);
}

.active-badge svg { width: 22px; height: 22px; color: #4E6B4F; }

/* ---------- what we do ---------- */

.active-section { margin-top: clamp(90px, 10vw, 140px); }

.active-section__title {
    margin: .35em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2.75rem, 4.4vw, 4.1875rem);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.active-section__sub { max-width: 36em; margin: .9em auto 0; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--c-ink-2); text-wrap: balance; }

/* where the outings are */
.active-elsewhere {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-top: clamp(28px, 3.4vw, 44px);
    padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px);
    border-radius: 18px;
    background: var(--c-ivory);
    box-shadow: inset 0 0 0 1px rgba(110, 20, 35, .14);
}

.active-elsewhere p { max-width: 40em; margin: 4px 0 0; font-size: 1rem; color: var(--c-ink-2); }
.active-elsewhere .active-elsewhere__title { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.15; color: var(--c-accent); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
    .active-hero { grid-template-columns: minmax(0, 1fr); }
    .active-collage { width: 100%; max-width: 600px; margin: 10px auto 0; }
}

@media (max-width: 640px) {
    .active-collage__main { --frame-x: 8px; --frame-y: 8px; margin: 0 8px 8px 0 !important; }
    .active-badge { left: 0; }
    .active-hero__cta .btn,
    .active-elsewhere .btn { width: 100%; }
}
