/* SMV frontpage hero: clinic van photo as background, text in the sky above the van */

.smv-hero {
    --smv-hero-sky: #19355f;
    position: relative;
}

/* Keep the sky and the van in view: anchor the photo to the top */
.smv-hero .areoi-background__image {
    background-position: center 30%;
}

/* Darken the sky behind the text, fade out before the van */
.smv-hero .areoi-background__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(6, 14, 32, .80) 0%,
        rgba(6, 14, 32, .55) 25%,
        rgba(6, 14, 32, 0) 45%);
}

.smv-hero-text h1,
.smv-hero-text h6,
.smv-hero-text p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

.smv-hero-text h1 {
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
}

.smv-hero-text h6 {
    color: #7fe3c9 !important;
    font-weight: 600;
    letter-spacing: .02em;
}

.smv-hero-text p {
    max-width: 46rem;
    margin: 1rem auto 0 !important;
    line-height: 1.6 !important;
}

.smv-hero-text .btn {
    margin-top: 1.25rem !important;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .35);
}

/* Large screens: hero is 100vh, keep the text block compact at the top */
/* Space between the fixed header and the title */
.smv-hero > .wp-block-spacer {
    height: 110px !important;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .smv-hero > .wp-block-spacer {
        height: 140px !important;
    }
}

@media (min-width: 992px) {
    .smv-hero > .wp-block-spacer {
        height: 120px !important;
    }
}

/* Small screens: text on sky colour, full photo below it */
@media (max-width: 991.98px) {
    .smv-hero {
        background: var(--smv-hero-sky);
        padding-bottom: 60vw;
    }
    .smv-hero .areoi-background__image {
        background-size: 100% auto;
        background-position: center bottom;
    }
    .smv-hero .areoi-background__image::after {
        background: linear-gradient(to bottom,
            var(--smv-hero-sky) 0,
            var(--smv-hero-sky) calc(100% - 66.7vw),
            rgba(25, 53, 95, 0) calc(100% - 50vw));
    }
}

/* Short wide screens (e.g. 1280x720 laptops): van roof sits higher, keep text compact */
@media (min-width: 992px) and (max-height: 820px) {
    .smv-hero > .wp-block-spacer {
        height: 100px !important;
    }
    .smv-hero .areoi-background__image {
        background-position: center top;
    }
    .smv-hero-text h1 {
        font-size: 2.75rem;
        margin-bottom: .25rem !important;
    }
    .smv-hero-text h6 {
        margin-bottom: 0;
    }
    .smv-hero-text p {
        margin-top: .6rem !important;
    }
    .smv-hero-text .btn {
        margin-top: .75rem !important;
    }
}

/* Large screens: more sky above the van, so a bigger title fits */
@media (min-width: 1600px) and (min-height: 950px) {
    .smv-hero-text h1 {
        font-size: 4.75rem;
        margin-bottom: .5rem !important;
    }
    .smv-hero-text h6 {
        font-size: 1.15rem;
    }
    .smv-hero-text p {
        font-size: 1.25rem !important;
        max-width: 52rem;
    }
}

/* Very large screens (e.g. 2560x1440) */
@media (min-width: 2200px) and (min-height: 1300px) {
    .smv-hero > .wp-block-spacer {
        height: 170px !important;
    }
    .smv-hero-text h1 {
        font-size: 6rem;
    }
    .smv-hero-text h6 {
        font-size: 1.4rem;
    }
    .smv-hero-text p {
        font-size: 1.5rem !important;
        max-width: 62rem;
    }
    .smv-hero-text .btn {
        font-size: 1.4rem;
        padding: .75rem 2rem;
        margin-top: 1.75rem !important;
    }
}

/* Rhythm: title + places as one group, clear gap before the description.
   Extra gap is taken back from the space under the header so the button
   stays clear of the van roof. */
.smv-hero-text h6 {
    margin-bottom: 0 !important;
}

@media (min-width: 992px) {
    .smv-hero > .wp-block-spacer {
        height: 104px !important;
    }
    .smv-hero-text p {
        margin-top: 1.75rem !important;
    }
}

@media (min-width: 992px) and (max-height: 820px) {
    .smv-hero > .wp-block-spacer {
        height: 90px !important;
    }
    .smv-hero-text p {
        margin-top: 1.1rem !important;
    }
}

@media (min-width: 1600px) and (min-height: 950px) {
    .smv-hero > .wp-block-spacer {
        height: 120px !important;
    }
    .smv-hero-text p {
        margin-top: 2rem !important;
    }
}

@media (min-width: 2200px) and (min-height: 1300px) {
    .smv-hero > .wp-block-spacer {
        height: 160px !important;
    }
    .smv-hero-text p {
        margin-top: 2.5rem !important;
    }
}

/* Frontpage booking section: info boxes above the calendar */
.smv-booking-notes {
    max-width: 62rem;
    margin-left: auto;
    margin-right: auto;
}

.smv-booking-note {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .9rem;
    align-items: center;
    align-content: start; /* equal-height boxes: keep titles in line */
    padding: 1.1rem 1.25rem;
    border-radius: .75rem;
    background: #eef6f3;
    border-left: 4px solid var(--bs-primary);
    color: #3c4a46;
    font-size: .95rem;
    text-align: left;
}

.smv-booking-note .areoi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb, 69, 185, 152), .15);
}

.smv-booking-note .areoi-icon i {
    font-size: 1.15rem !important;
    line-height: 1;
}

.smv-booking-note-title {
    margin: 0;
    color: #0c1c18;
    font-size: 1.05rem;
    font-weight: 600;
}

.smv-booking-note > p {
    grid-column: 1 / -1;
    margin-top: .6rem !important;
}

/* Booking page: info row spans the content width */
.smv-booking-notes-wide {
    max-width: none;
}

.smv-booking-note a {
    color: #1f7f66;
    font-weight: 600;
    white-space: nowrap;
}
