/* ==============================================
   Life Horoscope - Homepage sections + hero banner
   ============================================== */

/* ---- Flush hero under header: no side gaps, one continuous band ---- */
body.home #main.site-main,
body.home .page_content,
body.home .page_content > .container,
body.home .page_content > main,
body.home .page_content main,
body.home .wpb-content-wrapper,
body.home .wpb-content-wrapper > .cws-content:first-child,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child > .wpb_column,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child .vc_column-inner,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child .cws_vc_column-inner,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child .wpb_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child {
    margin-bottom: 0 !important;
}

body.home .page_content > .container,
body.home .page_content > main,
body.home .page_content main,
body.home .wpb-content-wrapper,
body.home .wpb-content-wrapper > .cws-content:first-child,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child > .wpb_column,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child .vc_column-inner,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child .cws_vc_column-inner,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child .wpb_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.home .page_content > .container .page_grid:first-child,
body.home .page_content > .container .grid_row:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .header_wrapper_container + #main,
body.home .header_wrapper_container + .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ---- Home hero banner (fits header band, no overflow below) ---- */
body.home .lh-home-hero {
    --lh-hero-gold: #f0d35a;
    --lh-hero-ink: #fff8e7;
    --lh-hero-muted: rgba(255, 248, 231, 0.82);
    --lh-hero-max: 1320px;
    --lh-hero-gutter: 24px;
    --lh-header-h: 72px;

    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    /* Fill viewport below header — no navy section peek at the bottom */
    height: clamp(420px, calc(100vh - var(--lh-header-h)), 900px);
    height: clamp(420px, calc(100dvh - var(--lh-header-h)), 900px);
    min-height: clamp(420px, calc(100svh - var(--lh-header-h)), 900px);
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #0a0610;
    box-sizing: border-box;
    border-radius: 0;
}

body.home .lh-home-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

body.home .lh-home-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

body.home .lh-home-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 78% 22%;
    transform: scale(1.06);
    transform-origin: 78% 28%;
}

body.home .lh-home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(6, 3, 12, 0.78) 0%,
            rgba(6, 3, 12, 0.52) 38%,
            rgba(6, 3, 12, 0.12) 62%,
            rgba(6, 3, 12, 0.05) 100%
        ),
        linear-gradient(
            180deg,
            rgba(6, 3, 12, 0.18) 0%,
            transparent 24%,
            transparent 88%,
            rgba(6, 3, 12, 0.08) 100%
        );
}

body.home .lh-home-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--lh-hero-max);
    height: 100%;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) var(--lh-hero-gutter);
    box-sizing: border-box;
}

/* Subtle scroll cue (replaces peeking navy section below) */
body.home .lh-home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    border-right: 2px solid rgba(255, 248, 231, 0.55);
    border-bottom: 2px solid rgba(255, 248, 231, 0.55);
    transform: rotate(45deg);
    opacity: 0.7;
    pointer-events: none;
}

body.home .lh-home-hero__copy {
    max-width: min(520px, 92%);
    color: var(--lh-hero-ink);
    opacity: 0;
    transform: translateY(18px);
    animation: lhHomeHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

body.home .lh-home-hero__brand {
    margin: 0 0 12px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 2.7vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
    color: var(--lh-hero-gold);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

body.home .lh-home-hero__title {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5.2vw, 3.75rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: 0.01em;
    color: #fffaf0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

body.home .lh-home-hero__text {
    margin: 0 0 24px;
    max-width: 36ch;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: clamp(1.05rem, 1.9vw, 1.22rem);
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 248, 231, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.home .lh-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

body.home .lh-home-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

body.home .lh-home-hero__btn--primary {
    background: linear-gradient(135deg, #f0d35a 0%, #e0a825 100%);
    color: #1a1208 !important;
    border: 1px solid rgba(255, 220, 120, 0.85);
    box-shadow: 0 8px 22px rgba(224, 168, 37, 0.28);
}

body.home .lh-home-hero__btn--primary:hover,
body.home .lh-home-hero__btn--primary:focus {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffe27a 0%, #f0c040 100%);
    color: #1a1208 !important;
}

body.home .lh-home-hero__btn--primary:focus-visible {
    outline: 3px solid #fff8e7;
    outline-offset: 3px;
}

body.home .lh-home-hero__btn--whatsapp {
    background: rgba(255, 255, 255, 0.08);
    color: #fffaf0 !important;
    border: 1px solid rgba(255, 248, 231, 0.45);
    backdrop-filter: blur(6px);
}

body.home .lh-home-hero__btn--whatsapp:hover,
body.home .lh-home-hero__btn--whatsapp:focus {
    transform: translateY(-2px);
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.75);
    color: #ffffff !important;
}

body.home .lh-home-hero__btn--whatsapp:focus-visible {
    outline: 3px solid #f0d35a;
    outline-offset: 3px;
}

@keyframes lhHomeHeroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    body.home .lh-home-hero {
        --lh-hero-gutter: 16px;
        --lh-header-h: 64px;
        height: clamp(380px, calc(100vh - var(--lh-header-h)), 780px);
        height: clamp(380px, calc(100dvh - var(--lh-header-h)), 780px);
        min-height: clamp(380px, calc(100svh - var(--lh-header-h)), 780px);
        max-height: none;
    }

    body.home .lh-home-hero__img {
        object-position: 82% 18%;
        transform: scale(1.08);
        transform-origin: 82% 24%;
    }

    body.home .lh-home-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(6, 3, 12, 0.82) 0%,
                rgba(6, 3, 12, 0.58) 48%,
                rgba(6, 3, 12, 0.22) 100%
            ),
            linear-gradient(
                180deg,
                rgba(6, 3, 12, 0.2) 0%,
                transparent 28%,
                transparent 90%,
                rgba(6, 3, 12, 0.06) 100%
            );
    }
}

@media (max-width: 640px) {
    body.home .lh-home-hero {
        --lh-header-h: 58px;
        height: clamp(420px, calc(100vh - var(--lh-header-h)), 680px);
        height: clamp(420px, calc(100dvh - var(--lh-header-h)), 680px);
        min-height: clamp(420px, calc(100svh - var(--lh-header-h)), 680px);
        max-height: none;
    }

    body.home .lh-home-hero__img {
        object-position: 86% 14%;
        transform: scale(1.1);
        transform-origin: 86% 20%;
    }

    body.home .lh-home-hero__inner {
        align-items: flex-end;
        padding-bottom: 28px;
    }

    body.home .lh-home-hero__copy {
        max-width: 100%;
    }

    body.home .lh-home-hero__actions {
        width: 100%;
    }

    body.home .lh-home-hero__btn {
        flex: 1 1 auto;
        min-width: calc(50% - 6px);
    }
}

/* Hide leftover Smart Slider chrome if shortcode filter misses a clone */
body.home .wpb-content-wrapper > .cws-content:first-child .n2-ss-slider,
body.home .wpb-content-wrapper > .cws-content:first-child .n2-section-smartslider {
    display: none !important;
}

/* Our Services sits directly under hero in the first column */
body.home .wpb-content-wrapper > .cws-content:first-child .lh-home-services {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Tighten gap between banner and content below */
body.home .wpb-content-wrapper > .cws-content:first-child .vc_empty_space {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:first-child + .vc_row,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:nth-child(2) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column + .wpb_column {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column + .wpb_column .cws_vc_column-inner,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column + .wpb_column .vc_column-inner,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column + .wpb_column .wpb_wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Why Trust Us — starts below the full-height hero */
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row {
    padding-top: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:nth-child(2) .cws_textmodule,
body.home .wpb-content-wrapper > .cws-content:first-child > .vc_row:nth-child(2) .cws_textmodule .cws_textmodule_wrapper {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_wrapper,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_icon_wrapper,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_icon_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 14px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_service_icon,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_service_icon {
    font-size: 64px !important;
    line-height: 1 !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_separator_icon,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_separator_icon {
    width: 78px !important;
    border-top-width: 2px !important;
    border-top-color: #ffffff !important;
    top: 32px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_icon_wrapper.add_animation_icon.icon_init .cws_separator_icon.cws_separator_left,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_icon_wrapper.add_animation_icon.icon_init .cws_separator_icon.cws_separator_left {
    margin-right: 22px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_icon_wrapper.add_animation_icon.icon_init .cws_separator_icon.cws_separator_right,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_icon_wrapper.add_animation_icon.icon_init .cws_separator_icon.cws_separator_right {
    margin-left: 22px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_titles,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_titles {
    margin-bottom: 10px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_titles .widgettitle,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_titles .widgettitle {
    margin-bottom: 8px !important;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_content,
body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_content p,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_content,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_content p {
    font-size: clamp(0.95rem, 2.6vw, 1.05rem);
    line-height: 1.7;
    color: #e8ecf8 !important;
}

/* Read More button (rmwr plugin) */
body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_content p,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_content p {
    margin-bottom: 0;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .rmwr-wrapper,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .rmwr-wrapper {
    display: block;
    clear: both;
    width: 100%;
    margin-top: 16px;
    text-align: center;
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .read-link,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 10px 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .read-link:hover,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .read-link:focus {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    color: #ffffff !important;
    outline: none;
    transform: translateY(-1px);
}

body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .read_div,
body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .read_div {
    margin-top: 14px;
    text-align: left;
}

@media (max-width: 767px) {
    body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_service_icon,
    body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_service_icon {
        font-size: 52px !important;
    }

    body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_separator_icon,
    body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_separator_icon {
        width: 56px !important;
        top: 26px !important;
    }

    body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .cws_textmodule_icon_wrapper,
    body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .cws_textmodule .cws_textmodule_icon_wrapper {
        margin-bottom: 10px !important;
    }

    body.home .wpb-content-wrapper > .cws-content:first-child .cws_textmodule .read-link,
    body.home .wpb-content-wrapper > .cws-content:first-child .vc_row > .wpb_column:nth-child(2) .read-link {
        width: 100%;
        max-width: 220px;
    }
}
