/* Compact spacing for About, Services, Portfolio, Blog and Contact pages */
.page-hero {
    padding-top: 44px;
    padding-bottom: 40px;
}

.page-hero .container {
    max-width: 980px;
}

.page-hero .eyebrow {
    margin-bottom: 8px;
}

.page-hero h1 {
    margin-top: 10px;
    margin-bottom: 12px;
    line-height: 1.08;
}

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
}

/* Keep all inner-page sections compact without changing the homepage */
.page-hero ~ .section {
    padding-top: 62px;
    padding-bottom: 62px;
}

/* Reduce the first gap directly below the page hero */
.page-hero + .section,
.page-hero + .section.alt {
    padding-top: 46px;
}

/* Reduce section-to-section gaps on longer inner pages */
.page-hero ~ .section + .section,
.page-hero ~ .section + .section.alt,
.page-hero ~ .section.alt + .section,
.page-hero ~ .section.alt + .section.alt {
    padding-top: 54px;
}

.page-hero ~ .section .section-head {
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .page-hero {
        padding-top: 36px;
        padding-bottom: 34px;
    }

    .page-hero ~ .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .page-hero + .section,
    .page-hero + .section.alt {
        padding-top: 38px;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .page-hero h1 {
        margin-top: 8px;
        margin-bottom: 10px;
        line-height: 1.1;
    }

    .page-hero ~ .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-hero + .section,
    .page-hero + .section.alt {
        padding-top: 32px;
    }

    .page-hero ~ .section .section-head {
        margin-bottom: 22px;
    }
}
