/* ============================================================
   ipm/wp-home-hero block
   Uses CSS background-image on the root element instead of
   an <img> tag.
   ============================================================ */

:root {
    --wp--preset--spacing--20: 10px;
    --wp--preset--spacing--30: 20px;
    --wp--preset--spacing--40: 30px;
    --wp--preset--spacing--50: clamp(30px, 5vw, 50px);
    --wp--preset--spacing--60: clamp(30px, 7vw, 70px);
    --wp--preset--spacing--70: clamp(50px, 7vw, 90px);
    --wp--preset--spacing--80: clamp(70px, 10vw, 140px);
}

.ipm-home-container {
    margin: 0;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.ipm-home-container {
        margin: 1rem 0 0 0;
	}
}


@media (min-width: 1200px) {
	.ipm-home-container {
        margin: 1rem 0 0 0;
		padding: 0;
	}
}
/*
 * home-page.php renders the_content() directly instead of through the
 * wp:post-content block, so the per-instance flex gap WordPress generates
 * for this columns block (hero + subhero) never gets output — it silently
 * falls back to the site-wide 1.2rem default instead of the value set on
 * the block. Reinstate the intended core/columns default from theme.json
 * (var:preset|spacing|50) here.
 */
.ipm-home-container .wp-block-columns.is-layout-flex {
	gap: 1rem;
}



.ipm-home-hero {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a; /* shown while image loads or when none is set */
}

/* Semi-transparent text panel, anchored to the bottom-left */
.ipm-home-hero__overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 75%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #6d6d6d;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ipm-home-hero__title {
    font-family: 'The Seasons', the-seasons, serif;
    font-size: clamp(2.5rem, 3vw, 3rem);
    font-weight: normal;
    font-style: normal;
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.ipm-home-hero__tagline {
    font-family: 'Source Sans 3', source-sans-3, sans-serif;
    font-weight: 500;
    font-size: clamp(1.333rem, 1.5vw, 2rem);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.06em;
}

/* Dots between tagline items — CSS only, no visible character in markup */
.ipm-home-hero__tagline span + span::before {
    content: " \00B7 "; /* middle dot (·) with surrounding spaces */
    font-weight: bold;
    padding: 0 1rem 0 0.5rem;
}

.ipm-home-hero__description {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 100;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    margin: 0 auto;
    line-height: 1.75;
    max-width: 40rem;
}

.ipm-home-hero__cta {
    display: inline-block;
    align-self: center;
    margin-top: 0.25rem;
    padding: 0.75rem 2rem;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 0.5rem;
    color: #fff;
    font-family: 'Source Sans 3', source-sans-3, sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ipm-home-hero__cta:hover,
.ipm-home-hero__cta:focus {
    background-color: #fff;
    color: #000;
}

@media (max-width: 1023px) {
    .ipm-home-hero__title {
        margin: 0 auto;
        max-width: 30rem;
    }
}

@media (max-width: 768px) {
    .ipm-home-hero {
        border-radius: 1rem;
        height: 40rem;
        margin: 1rem 0 0 0;
    }

    .ipm-home-hero__overlay {
        left: 0.75rem;
        bottom: 1rem;
        width: calc(100% - 1.5rem);
        padding: 0.75rem;
    }

    .ipm-home-hero__title {
        margin: 0 auto;
        max-width: 26rem;
    }

    .ipm-home-hero__tagline {
        font-size: 1.5rem;
    }

    .ipm-home-hero__tagline span + span::before {
        font-size: 1.25rem;
        padding: 0 0.15rem 0 0;
    }

    .ipm-home-hero__description {
        font-size: 1.33333rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .ipm-home-hero {
        height: 40rem;
    }
}
