/*
Theme Name: Everly Child
Theme URI: https://serenityhcpa.vavr.online
Author: Serenity HCPA
Description: Child theme for Everly
Template: everly
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: everly-child
*/

/* Contact page — jump-link target for the "Request a Free Assessment" form,
   offset so the sticky header doesn't cover the heading when scrolled to. */
#request-assessment {
    scroll-margin-top: 110px;
}

/* About section — stretch photos to match text height */
.img-about-1,
.img-about-2 {
    margin-top: 0 !important;
    width: 100%;
    height: 100% !important;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.bg-accent .page-size {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

/* Services section — replace broken placeholder with solid bg */
.bg-service {
    background-image: none !important;
    background-color: var(--color-darker) !important;
}

/* Service cards grid — all 6 cells equal height */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}
.card-service {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-service p {
    flex-grow: 1;
}

/* Rounded corners on all photos */
.img-about-1, .img-about-2, .img-about-3, .img-blog-post, .img-faqs {
    border-radius: 10px;
}

/* Hero buttons — bigger, equal size, uppercase */
.btn-hero-1, .btn-hero-2, .btn-hero-3, .btn-hero-4 {
    font-size: 15px;
    padding: 18px 36px;
    min-width: 220px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero button row — fixed 2x2 grid so all 4 buttons always line up neatly,
   regardless of viewport width (flex-wrap alone can land on an uneven 3+1). */
.hero-btn-row {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 14px 16px;
    justify-content: center;
}
@media (min-width: 576px) {
    .hero-btn-row {
        justify-content: start;
    }
}

/* Mobile hero: photo first (full width, fixed height, cover), text below, 3 buttons in one row centered */
@media (max-width: 575px) {
    .hero-mobile-photo {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center 20%;
        display: block;
    }
    .slideshow {
        height: auto !important;
        background-image: none !important;
        background-color: #1c3040;
        overflow: hidden;
    }
    .slideshow::before {
        display: none !important;
    }
    .slideshow .page-size {
        padding-top: 20px !important;
        padding-bottom: 28px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .w-hero {
        width: 100%;
        overflow: hidden;
    }
    .w-hero h1 {
        font-size: 1.6rem !important;
        text-align: center;
        margin-top: 0 !important;
    }
    .w-hero p {
        text-align: center;
        font-size: 0.88rem;
    }
    .w-hero .hero-btn-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 100%;
    }
    .btn-hero-1, .btn-hero-2, .btn-hero-3, .btn-hero-4 {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 25% !important;
        padding: 10px 3px !important;
        font-size: 9px !important;
        letter-spacing: 0.01em !important;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
