/* =========================================================
   Yeosunet AI Estimate - Home
========================================================= */

body.home .wp-site-blocks {
    overflow-x: hidden;
}

/* -------------------------
   HERO
------------------------- */

.ysae-home-hero {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;

    max-width: 1280px !important;
    margin: 24px auto 0 !important;
    padding: 100px 70px !important;

    border-radius: 32px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(59, 130, 246, 0.30),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #071426 0%,
            #0d2342 55%,
            #123764 100%
        );

    color: #ffffff;
}

.ysae-home-hero::after {
    content: "";
    position: absolute;

    width: 360px;
    height: 360px;

    right: -80px;
    bottom: -180px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);

    pointer-events: none;
}

.ysae-home-hero > * {
    position: relative;
    z-index: 1;
}

.ysae-home-hero h1 {
    max-width: 760px;
    margin: 0 0 24px !important;

    color: #ffffff;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.ysae-home-hero p {
    max-width: 690px;

    margin: 0 0 36px !important;

    color: rgba(255, 255, 255, 0.82);

    font-size: 19px;
    line-height: 1.8;
}

.ysae-home-hero .wp-block-buttons {
    gap: 12px;
}

.ysae-home-hero .wp-block-button__link {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 28px;

    border-radius: 12px;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.ysae-home-hero
.wp-block-button:not(.is-style-outline)
.wp-block-button__link {

    background: #ffffff;
    color: #10233f;
}

.ysae-home-hero
.wp-block-button.is-style-outline
.wp-block-button__link {

    border: 1px solid rgba(255, 255, 255, 0.55);

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ysae-home-hero .wp-block-button__link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.18);
}


/* =========================================================
   HOME CONTENT
========================================================= */

body.home main {
    --ysae-content-width: 1200px;
}

body.home main > .wp-block-post-content {
    margin-top: 0;
}

body.home .wp-block-post-content > h2 {
    margin-top: 0;

    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.25;

    letter-spacing: -0.035em;
}

body.home .wp-block-post-content > p.has-text-align-center {
    color: #667085;
}


/* =========================================================
   SERVICE CARDS
========================================================= */

body.home .wp-block-post-content > .wp-block-columns {
    width: min(1200px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;

    gap: 22px;
}

body.home
.wp-block-post-content
> .wp-block-columns
> .wp-block-column {

    box-sizing: border-box;

    padding: 32px;

    border: 1px solid #e7eaf0;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(15, 23, 42, 0.05);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

body.home
.wp-block-post-content
> .wp-block-columns
> .wp-block-column:hover {

    transform: translateY(-5px);

    border-color: #cdd9e9;

    box-shadow:
        0 18px 45px
        rgba(15, 23, 42, 0.10);
}

body.home
.wp-block-post-content
> .wp-block-columns
> .wp-block-column h3 {

    margin-top: 0;
    margin-bottom: 12px;

    color: #162033;

    font-size: 22px;
    letter-spacing: -0.025em;
}

body.home
.wp-block-post-content
> .wp-block-columns
> .wp-block-column p {

    margin-bottom: 0;

    color: #667085;

    line-height: 1.75;
}


/* =========================================================
   CTA
========================================================= */

.ysae-home-cta {
    box-sizing: border-box;

    width: min(1200px, calc(100% - 40px));
    max-width: 1200px !important;

    margin: 20px auto 80px !important;

    padding: 58px 40px !important;

    border-radius: 26px;

    background: #f1f6fc;
}

.ysae-home-cta h2 {
    margin-top: 0 !important;
    margin-bottom: 26px !important;

    color: #162033;

    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.035em;
}

.ysae-home-cta .wp-block-button__link {
    padding: 16px 28px;

    border-radius: 12px;

    background: #163c6d;
    color: #ffffff;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.ysae-home-cta .wp-block-button__link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(22, 60, 109, 0.20);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 782px) {

    .ysae-home-hero {
        width: calc(100% - 24px);

        margin: 12px auto 0 !important;

        padding: 64px 26px !important;

        border-radius: 22px;
    }

    .ysae-home-hero h1 {
        font-size: 39px;
        line-height: 1.18;
    }

    .ysae-home-hero p {
        font-size: 16px;
        line-height: 1.7;
    }

    .ysae-home-hero .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .ysae-home-hero .wp-block-button {
        width: 100%;
    }

    .ysae-home-hero .wp-block-button__link {
        width: 100%;
        box-sizing: border-box;
    }

    body.home
    .wp-block-post-content
    > .wp-block-columns {

        width: calc(100% - 28px);

        gap: 14px;
    }

    body.home
    .wp-block-post-content
    > .wp-block-columns
    > .wp-block-column {

        padding: 25px 22px;

        border-radius: 17px;
    }

    .ysae-home-cta {
        width: calc(100% - 24px);

        margin-bottom: 40px !important;

        padding: 42px 22px !important;

        border-radius: 20px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ysae-home-hero {
        padding: 50px 21px !important;
    }

    .ysae-home-hero h1 {
        font-size: 34px;
    }

    .ysae-home-hero p {
        font-size: 15px;
    }

}


/* YSAE HOME LAYOUT V2
========================================================= */

/*
 * Twenty Twenty-Five front-page layout override
 */

body.home main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 페이지 제목 '온라인 상담' 숨김 */
body.home main .wp-block-post-title {
    display: none !important;
}

/* 테마 constrained 폭 제한 해제 */
body.home main .entry-content.wp-block-post-content {
    max-width: none !important;
    width: 100% !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    margin-top: 0 !important;
}

/* 최상위 콘텐츠 폭 제한 해제 */
body.home
.entry-content.wp-block-post-content
> .wp-block-group.alignfull {

    max-width: none !important;
    width: 100% !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* =====================================================
   HERO - 1200px
===================================================== */

body.home .ysae-home-hero {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px !important;

    min-height: 460px;

    margin:
        34px auto
        90px !important;

    padding:
        90px
        72px !important;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 30px;
}

body.home .ysae-home-hero h1 {
    max-width: 720px;

    font-size: clamp(
        48px,
        4.4vw,
        68px
    );

    line-height: 1.12;
}

body.home .ysae-home-hero p {
    max-width: 680px;

    font-size: 18px;
    line-height: 1.75;
}

body.home
.ysae-home-hero
.wp-block-button__link {

    min-height: 56px;

    padding-left: 30px;
    padding-right: 30px;

    font-size: 16px;
}


/* =====================================================
   SECTION TITLES
===================================================== */

body.home
.entry-content.wp-block-post-content
> .wp-block-group.alignfull
> h2 {

    width: min(1200px, calc(100% - 48px));

    margin-left: auto !important;
    margin-right: auto !important;

    font-size: 38px;
    font-weight: 750;

    letter-spacing: -0.035em;
}

body.home
.entry-content.wp-block-post-content
> .wp-block-group.alignfull
> p.has-text-align-center {

    width: min(1200px, calc(100% - 48px));

    margin-left: auto !important;
    margin-right: auto !important;

    font-size: 17px;
}


/* =====================================================
   CARDS
===================================================== */

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns {

    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    gap: 24px;
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns
> .wp-block-column {

    min-height: 210px;

    padding: 36px 32px;

    border: 1px solid #e4e9f0;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 10px 32px
        rgba(15, 23, 42, 0.06);
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns
> .wp-block-column h3 {

    margin-top: 0;
    margin-bottom: 16px;

    font-size: 23px;
    font-weight: 750;

    color: #152238;
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns
> .wp-block-column p {

    font-size: 16px;
    line-height: 1.75;

    color: #667085;
}


/* =====================================================
   SECOND COLUMN SECTION - STEPS
===================================================== */

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:nth-of-type(2)
> .wp-block-column {

    position: relative;

    min-height: 180px;

    background: #f8fafc;

    box-shadow: none;
}


/* =====================================================
   CTA
===================================================== */

body.home .ysae-home-cta {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px !important;

    min-height: 250px;

    margin:
        80px auto
        100px !important;

    padding:
        64px
        40px !important;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #edf4fc,
            #f7faff
        );
}

body.home .ysae-home-cta h2 {
    font-size: 38px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    body.home .ysae-home-hero {
        min-height: 410px;

        padding:
            70px
            45px !important;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns {

        flex-wrap: wrap !important;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns
    > .wp-block-column {

        flex-basis:
            calc(50% - 12px) !important;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 782px) {

    body.home .ysae-home-hero {
        width:
            calc(100% - 24px)
            !important;

        min-height: auto;

        margin:
            12px auto
            55px !important;

        padding:
            55px
            25px !important;

        border-radius: 22px;
    }

    body.home .ysae-home-hero h1 {
        font-size: 38px;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > h2 {

        width:
            calc(100% - 32px);

        font-size: 30px;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > p.has-text-align-center {

        width:
            calc(100% - 32px);

        font-size: 15px;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns {

        width:
            calc(100% - 28px)
            !important;

        display: block !important;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns
    > .wp-block-column {

        min-height: auto;

        margin-bottom: 14px;

        padding: 26px 23px;
    }

    body.home .ysae-home-cta {
        width:
            calc(100% - 24px)
            !important;

        min-height: auto;

        margin:
            55px auto
            50px !important;

        padding:
            45px
            24px !important;
    }

    body.home .ysae-home-cta h2 {
        font-size: 29px;
    }
}


/* YSAE HOME DESIGN V3
========================================================= */


/* =====================================================
   HERO DETAIL
===================================================== */

body.home .ysae-home-hero {
    margin-bottom: 68px !important;

    box-shadow:
        0 24px 60px
        rgba(15, 39, 73, 0.10);
}

body.home .ysae-home-hero h1 {
    letter-spacing: -0.055em;
}

body.home .ysae-home-hero p {
    margin-top: 4px !important;
}


/* =====================================================
   SECTION SPACING
===================================================== */

body.home
.entry-content
> .wp-block-group.alignfull
> h2 {

    margin-bottom: 10px !important;
}

body.home
.entry-content
> .wp-block-group.alignfull
> p.has-text-align-center {

    margin-top: 0 !important;
    margin-bottom: 30px !important;
}


/* =====================================================
   SERVICE CARDS
===================================================== */

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:first-of-type
> .wp-block-column {

    min-height: 230px;

    position: relative;

    padding:
        36px
        32px
        32px;

    overflow: hidden;
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:first-of-type
> .wp-block-column::before {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 25px;

    border-radius: 15px;

    background: #edf4fc;

    color: #163c6d;

    font-size: 24px;
    line-height: 1;
}

/* 에어컨 */
body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(1)::before {

    content: "❄";
}

/* 배관 */
body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(2)::before {

    content: "↯";
}

/* 청소 */
body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:first-of-type
> .wp-block-column:nth-child(3)::before {

    content: "✓";
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:first-of-type
> .wp-block-column h3 {

    font-size: 24px;

    margin-bottom: 12px;
}


/* =====================================================
   PROCESS CARDS
===================================================== */

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:nth-of-type(2) {

    counter-reset: ysae-step;
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:nth-of-type(2)
> .wp-block-column {

    counter-increment: ysae-step;

    min-height: 210px;

    padding:
        30px
        28px;

    border: 0;

    background: #f7f9fc;

    box-shadow: none;
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:nth-of-type(2)
> .wp-block-column::before {

    content:
        "0"
        counter(ysae-step);

    display: block;

    margin-bottom: 32px;

    color: #315f96;

    font-size: 16px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .04em;
}

body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:nth-of-type(2)
> .wp-block-column h3 {

    margin-bottom: 12px;

    font-size: 20px;
}


/*
 * 기존 제목 안의 01 / 02 / 03 / 04는 그대로 두되
 * 중복 숫자가 너무 강하게 보이지 않도록 조정
 */
body.home
.entry-content
> .wp-block-group.alignfull
> .wp-block-columns:nth-of-type(2)
> .wp-block-column h3 {

    color: #162033;
}


/* =====================================================
   CTA DETAIL
===================================================== */

body.home .ysae-home-cta {
    border:
        1px solid
        #e2ebf5;

    box-shadow:
        0 16px 50px
        rgba(15, 39, 73, 0.06);
}

body.home
.ysae-home-cta
.wp-block-button__link {

    min-height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0
        32px;

    font-size: 16px;
}


/* =====================================================
   HEADER - DESKTOP
===================================================== */

@media (min-width: 783px) {

    body.home
    header.wp-block-template-part {

        border-bottom:
            1px solid
            #f0f2f5;
    }

    body.home
    header.wp-block-template-part
    > .wp-block-group {

        min-height: 72px;
    }

}


/* =====================================================
   MOBILE DETAIL
===================================================== */

@media (max-width: 782px) {

    body.home .ysae-home-hero {
        margin-bottom:
            45px !important;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns:first-of-type
    > .wp-block-column {

        min-height: auto;

        padding:
            27px
            23px;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns:first-of-type
    > .wp-block-column::before {

        width: 46px;
        height: 46px;

        margin-bottom: 20px;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns:nth-of-type(2)
    > .wp-block-column {

        min-height: auto;

        padding:
            25px
            23px;
    }

    body.home
    .entry-content
    > .wp-block-group.alignfull
    > .wp-block-columns:nth-of-type(2)
    > .wp-block-column::before {

        margin-bottom: 20px;
    }

}

/* =========================================================
   YSAE BLOCKSY HOME COMPAT V1
   ========================================================= */

/* Blocksy 홈페이지 페이지 제목 제거 */
body.home .hero-section,
body.home .page-title,
body.home .entry-header {
    display: none !important;
}

/* Blocksy 기본 콘텐츠 상하 여백 제거 */
body.home #main,
body.home .site-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Blocksy 기본 content area 간격 제거 */
body.home .content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 홈 페이지 콘텐츠를 테마 기본 폭에서 해제 */
body.home .site-main > article,
body.home article.page,
body.home .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Blocksy entry-content 기본 간격 제거 */
body.home .entry-content {
    padding: 0 !important;
}

/* YSAE 내부 콘텐츠 폭 */
body.home .ysae-home-hero > *,
body.home .ysae-home-section > *,
body.home .ysae-home-cta > * {
    box-sizing: border-box;
}

/* 모바일 */
@media (max-width: 767px) {
    body.home #main,
    body.home .site-main,
    body.home .entry-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* =========================================================
   YSAE MOBILE HOME V1
   ========================================================= */

@media (max-width: 767px) {

    /* Hero 상단 간격 */
    body.home .ysae-home-hero {
        margin-top: 32px !important;
        margin-bottom: 0 !important;
        padding: 48px 26px 52px !important;
        border-radius: 22px !important;
    }

    /* Hero 제목 */
    body.home .ysae-home-hero h1 {
        font-size: clamp(32px, 8.5vw, 40px) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.045em !important;
        margin-bottom: 24px !important;
    }

    /* Hero 설명 */
    body.home .ysae-home-hero p {
        font-size: 16px !important;
        line-height: 1.8 !important;
        margin-bottom: 32px !important;
    }

    /* Hero 버튼 */
    body.home .ysae-home-hero .wp-block-buttons {
        gap: 12px !important;
    }

    body.home .ysae-home-hero .wp-block-button {
        width: 100% !important;
    }

    body.home .ysae-home-hero .wp-block-button__link {
        width: 100% !important;
        min-height: 54px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* 일반 섹션 */
    body.home .ysae-home-section {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    body.home .ysae-home-section h2 {
        font-size: 29px !important;
        line-height: 1.25 !important;
        letter-spacing: -0.04em !important;
    }

    /* 카드 */
    body.home .ysae-home-section .wp-block-column {
        min-height: 0 !important;
        padding: 28px 24px !important;
    }

    body.home .ysae-home-section .wp-block-column h3 {
        font-size: 22px !important;
        line-height: 1.35 !important;
        margin-bottom: 16px !important;
    }

    body.home .ysae-home-section .wp-block-column p {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    /* CTA */
    body.home .ysae-home-cta {
        margin-top: 24px !important;
        margin-bottom: 64px !important;
        padding: 48px 24px !important;
        border-radius: 22px !important;
    }

    body.home .ysae-home-cta h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

}



/* =========================================================
   HOMEPAGE VISUAL REFRESH — NAVY + TEAL
   Existing content, destinations and block structure are preserved.
========================================================= */
body.home {
    background: #f6fafb;
}

body.home .ysae-home-hero {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 84% 18%, rgba(55, 205, 190, 0.26), transparent 34%),
        linear-gradient(128deg, #102238 0%, #15394f 58%, #17616a 100%);
    box-shadow: 0 24px 64px rgba(18, 55, 74, 0.17);
}

body.home .ysae-home-hero h1 {
    color: #f8ffff;
}

body.home .ysae-home-hero p {
    color: rgba(244, 251, 252, 0.84);
}

body.home .ysae-home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    border: 1px solid rgba(215, 250, 245, 0.95);
    background: #e9faf6;
    color: #16424a;
    box-shadow: 0 8px 22px rgba(4, 26, 41, 0.14);
}

body.home .ysae-home-hero .wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid rgba(229, 250, 249, 0.56);
    background: rgba(255, 255, 255, 0.07);
    color: #f7ffff;
}

body.home .ysae-home-hero .wp-block-button__link:hover {
    border-color: #ffffff;
    box-shadow: 0 12px 26px rgba(4, 26, 41, 0.2);
}

body.home .ysae-home-hero .wp-block-button__link:focus-visible,
body.home .ysae-home-cta .wp-block-button__link:focus-visible {
    outline: 3px solid #64d9ca;
    outline-offset: 4px;
}

body.home .ysae-home-section .wp-block-column {
    border-color: #e0e9eb;
    box-shadow: 0 10px 30px rgba(20, 48, 65, 0.045);
}

body.home .ysae-home-section .wp-block-column:hover {
    border-color: #a9d4d1;
    box-shadow: 0 18px 42px rgba(20, 72, 78, 0.10);
}

body.home .ysae-home-section .wp-block-column::before {
    background: #eaf7f5;
    color: #177b7e;
}

body.home .ysae-home-cta {
    border-color: #d5e9e7;
    background: linear-gradient(125deg, #edf8f7 0%, #f5fafc 100%);
    box-shadow: 0 18px 48px rgba(20, 72, 78, 0.065);
}

body.home .ysae-home-cta h2 {
    color: #183648;
}

body.home .ysae-home-cta .wp-block-button__link {
    background: linear-gradient(110deg, #147e86 0%, #176b83 100%);
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(19, 112, 126, 0.18);
}

body.home .ysae-home-cta .wp-block-button__link:hover {
    background: linear-gradient(110deg, #116f77 0%, #145d73 100%);
    box-shadow: 0 12px 26px rgba(19, 112, 126, 0.25);
}

@media (max-width: 782px) {
    body.home .ysae-home-hero {
        padding: 42px 24px 38px !important;
        border-radius: 23px;
    }

    body.home .ysae-home-hero h1 {
        font-size: clamp(32px, 8.4vw, 40px) !important;
        line-height: 1.18;
    }

    body.home .ysae-home-hero .wp-block-button__link {
        min-height: 56px;
        border-radius: 13px;
    }

    body.home .ysae-home-section .wp-block-column {
        border-radius: 18px;
    }

    body.home .ysae-home-cta {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .ysae-home-hero .wp-block-button__link,
    body.home .ysae-home-section .wp-block-column,
    body.home .ysae-home-cta .wp-block-button__link {
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   FULL-BLEED PHOTO HERO — INSPIRED BY THE PROVIDED REFERENCE
   The service copy and existing estimate/booking links are preserved.
========================================================= */
body.home .ysae-home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100vw !important;
    max-width: none !important;
    min-height: clamp(560px, calc(100svh - 72px), 820px);
    margin: 0 calc(50% - 50vw) !important;
    padding: clamp(64px, 9vw, 132px) clamp(24px, 9vw, 144px) !important;
    border: 0;
    border-radius: 0;
    background-image:
        linear-gradient(90deg, rgba(9, 24, 39, 0.82) 0%, rgba(11, 31, 46, 0.68) 38%, rgba(12, 34, 48, 0.24) 72%, rgba(12, 34, 48, 0.08) 100%),
        url('../images/home-hero-20261006.jpg');
    background-position: center, 62% center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: none;
}

body.home .ysae-home-hero::after {
    display: none;
}

body.home .ysae-home-hero > * {
    width: min(100%, 720px);
    max-width: 720px;
}

body.home .ysae-home-hero h1 {
    margin-bottom: 22px !important;
    color: #ffffff;
    font-size: clamp(38px, 5.4vw, 68px) !important;
    line-height: 1.16;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 24px rgba(4, 19, 30, 0.22);
}

body.home .ysae-home-hero p {
    max-width: 650px;
    margin-bottom: 30px !important;
    color: rgba(255, 255, 255, 0.91);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.75;
    text-shadow: 0 1px 12px rgba(4, 19, 30, 0.3);
}

body.home .ysae-home-hero .wp-block-buttons {
    gap: 12px;
}

body.home .ysae-home-hero .wp-block-button__link {
    min-height: 58px;
    padding: 0 28px;
    border-radius: 12px;
    font-weight: 750;
}

body.home .ysae-home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    border: 1px solid #e7fffa;
    background: #e7fffa;
    color: #153f49;
    box-shadow: 0 10px 28px rgba(5, 24, 36, 0.24);
}

body.home .ysae-home-hero .wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(11, 31, 46, 0.28);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

body.home .ysae-home-hero .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 24, 36, 0.3);
}

@media (max-width: 782px) {
    body.home .ysae-home-hero {
        min-height: clamp(590px, calc(100svh - 68px), 760px);
        margin: 0 calc(50% - 50vw) !important;
        padding: 76px 24px 64px !important;
        background-image:
            linear-gradient(90deg, rgba(9, 24, 39, 0.79) 0%, rgba(10, 29, 43, 0.66) 62%, rgba(10, 29, 43, 0.42) 100%),
            url('../images/home-hero-20261006.jpg');
        background-position: center, 72% center;
    }

    body.home .ysae-home-hero h1 {
        max-width: 560px;
        margin-bottom: 18px !important;
        font-size: clamp(34px, 8vw, 46px) !important;
        line-height: 1.18;
    }

    body.home .ysae-home-hero p {
        max-width: 560px;
        margin-bottom: 24px !important;
        font-size: 16px;
        line-height: 1.7;
    }

    body.home .ysae-home-hero .wp-block-buttons {
        gap: 10px;
    }

    body.home .ysae-home-hero .wp-block-button__link {
        min-height: 54px;
        padding: 0 20px;
        border-radius: 11px;
    }
}

@media (max-width: 420px) {
    body.home .ysae-home-hero {
        min-height: max(610px, calc(100svh - 68px));
        padding: 68px 21px 56px !important;
        background-position: center, 74% center;
    }

    body.home .ysae-home-hero h1 {
        font-size: clamp(32px, 8.3vw, 38px) !important;
    }
}

/* Close the theme's default block gap so the full-bleed hero starts below the header. */
body.home .ysae-home-hero {
    margin-top: -86px !important;
}

/* Photo headers for the three homepage service cards. */
body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 210px 28px 28px !important;
    border-color: #deeaec;
    background: #ffffff;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: 180px;
    background-repeat: no-repeat;
    background-size: cover;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(1)::after {
    background-image: linear-gradient(180deg, rgba(13, 38, 52, 0.02), rgba(13, 38, 52, 0.18)), url('../images/home-hero-20261006.jpg');
    background-position: center, 66% 42%;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(2)::after {
    background-image: linear-gradient(180deg, rgba(13, 38, 52, 0.02), rgba(13, 38, 52, 0.18)), url('../images/service-plumbing-20261006.jpg');
    background-position: center, 62% 46%;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(3)::after {
    background-image: linear-gradient(180deg, rgba(13, 38, 52, 0.02), rgba(13, 38, 52, 0.18)), url('../images/service-cleaning-20261006.jpg');
    background-position: center, 67% 43%;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column::before {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 18px;
    width: 46px;
    height: 46px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background: rgba(246, 253, 252, 0.9);
    color: #176f78;
    box-shadow: 0 5px 16px rgba(10, 37, 48, 0.12);
    backdrop-filter: blur(7px);
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column > * {
    position: relative;
    z-index: 1;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column h3 {
    margin-top: 0;
    color: #173849;
}

body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column p {
    color: #5e7180;
}

@media (max-width: 782px) {
    body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column {
        min-height: 0;
        padding: 188px 23px 25px !important;
    }

    body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column::after {
        height: 160px;
    }

    body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column::before {
        top: 13px;
        left: 15px;
        width: 42px;
        height: 42px;
    }
}


body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(1)::before { content: "❄"; }
body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(2)::before { content: "↯"; }
body.home .entry-content > .wp-block-group.alignfull > .wp-block-columns:nth-of-type(3) > .wp-block-column:nth-child(3)::before { content: "✓"; }

/* Accessible three-photo homepage hero carousel. */
body.home .ysae-home-hero .ysae-home-hero-slide {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center, 62% center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 850ms ease;
}

body.home .ysae-home-hero .ysae-home-hero-slide.is-active {
    opacity: 1;
}

body.home .ysae-home-hero .ysae-home-hero-controls {
    position: absolute !important;
    z-index: 3 !important;
    right: clamp(20px, 7vw, 100px);
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto !important;
    max-width: none !important;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(8, 25, 39, 0.38);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

body.home .ysae-home-hero .ysae-home-hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

body.home .ysae-home-hero .ysae-home-hero-control:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

body.home .ysae-home-hero .ysae-home-hero-control:focus-visible {
    outline: 3px solid #9cf3e3;
    outline-offset: 3px;
}

body.home .ysae-home-hero .ysae-home-hero-counter {
    min-width: 58px;
    color: #ffffff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
}

body.home .ysae-home-hero .ysae-home-hero-toggle {
    margin-left: 2px;
    font-size: 15px;
}

@media (max-width: 782px) {
    body.home .ysae-home-hero .ysae-home-hero-slide {
        background-position: center, 72% center;
    }

    body.home .ysae-home-hero .ysae-home-hero-controls {
        right: 18px;
        bottom: 18px;
        gap: 5px;
        padding: 5px;
    }

    body.home .ysae-home-hero .ysae-home-hero-control {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .ysae-home-hero .ysae-home-hero-slide {
        transition: none;
    }
}

/* Blocksy renders the navigation outside the WordPress template-part header. */
body.home #main-container {
    position: relative;
}

body.home #header.ct-header {
    position: absolute !important;
    z-index: 50 !important;
    inset: 0 0 auto 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 20, 32, 0.60) 0%, rgba(7, 20, 32, 0.28) 72%, rgba(7, 20, 32, 0.10) 100%) !important;
    border: 0 !important;
}

body.home #header.ct-header [data-row],
body.home #header.ct-header [data-column],
body.home #header.ct-header [data-items] {
    background: transparent !important;
}

body.home #header.ct-header .site-title a,
body.home #header.ct-header .ct-menu-link,
body.home #header.ct-header .ct-header-search,
body.home #header.ct-header .ct-header-trigger {
    color: #ffffff !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

body.home #header.ct-header .ct-header-search,
body.home #header.ct-header .ct-header-trigger {
    --theme-icon-color: #ffffff;
}

body.home #header.ct-header .ct-menu-link:hover {
    color: #a9f2e4 !important;
}

body.home .ysae-home-hero {
    margin-top: 0 !important;
}

/* Keep the hero and overlaid navigation flush with the top of the homepage. */
body.home #main-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home #main-container > #header.ct-header {
    top: 0 !important;
}

body.home .ysae-home-hero {
    margin-top: 0 !important;
}

/* Pull the hero upward beneath the overlaid navigation to remove the theme gap. */
body.home .ysae-home-hero {
    margin-top: -60px !important;
}
