/* Home page overrides and layout tweaks */

/* Scope using body.home to avoid leaking styles */
/* Remove custom header height overrides to match other pages */
body.home .header.has-subnav {
    height: 150px;
    /* Match default header height */
}

body.home .header.has-subnav .header-container {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

body.home .header-top {
    height: 96px;
}

body.home .header-nav {
    height: 96px;
    gap: 36px;
}

@media (max-width: 768px) {
    body.home .header.has-subnav {
        height: 120px;
    }

    body.home .header-nav {
        height: 80px;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    body.home .header.has-subnav {
        height: 100px;
    }

    body.home .header-nav {
        height: 72px;
        gap: 14px;
    }

    body.home .header-top {
        height: 0px;
    }
}

.home-support {
    padding: 0 0 0;
    background: var(--text-white);
    text-align: center;
}

.home-support-container {
    max-width: 908px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.home-support-title {
    font-size: calc(var(--font-size-4xl) * var(--base-font-scale, 1));
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-bottom: 30px;
    position: relative;
}

.home-support-intro {
    font-size: calc(var(--font-size-lg) * var(--base-font-scale, 1));
    font-weight: var(--font-weight-normal);
}

.home-support-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 538px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(92, 6, 140, 0) 100%);
}

.home-support-description {
    font-size: calc(23.6px * var(--base-font-scale, 1));
    line-height: 36px;
    color: #63666A;
    font-weight: 500;
    max-width: 908px;
    margin: 0 auto;
}

body.home .myfembree-conditions {
    padding: 56px 0;
}

body.home .myfembree-conditions .section-header {
    text-align: center;
    margin: 0 auto 28px auto;
    max-width: 920px;
}

body.home .myfembree-conditions .section-title {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

body.home .myfembree-conditions .section-title::after {
    content: "";
    display: block;
    width: 96px;
    height: 4px;
    background: var(--color-primary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

body.home .myfembree-conditions .section-intro {
    margin-top: 10px;
}

body.home .myfembree-conditions .content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 66px;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    padding: 0 var(--spacing-lg) 0 0;
}

body.home .myfembree-conditions .image-column img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: cover;
}

body.home .myfembree-conditions .info-column {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

body.home .myfembree-conditions .condition-box {
    padding: 30px 60px;
    border-radius: 21px;
}

body.home .myfembree-conditions .fibroids-box {
    background: var(--bg-light-pink);
    font-size: var(--font-size-2xl);
    text-align: center;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    width: 75%;
}

html[lang="fr"] body.home .myfembree-conditions .condition-box {
    padding: 30px 36px;
}

body.home .myfembree-conditions .endometriosis-box {
    background: var(--bg-light-green);
    font-size: var(--font-size-2xl);
    text-align: center;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 35px;
    width: 75%;
}

body.home .myfembree-conditions .home-cta {
    font-size: 20px;
}

/* CTA button styles are now in base.css */

/* Specific breakpoint for 1124px-1147px issue */
@media (min-width: 1124px) and (max-width: 1200px) {
    body.home .myfembree-conditions .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 0 var(--spacing-lg) 0 0px;
    }

    .home-support-container {
        max-width: 100%;
        padding: 0 40px;
    }

    body.home .how-it-works-container {
        max-width: 100%;
        padding: 0 20px;
        width: 100%;
    }

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

    body.home .myfembree-conditions {
        width: 100%;
        max-width: 100%;
    }
}

/* Specific breakpoint for 1201px-1242px range */
@media (min-width: 1201px) and (max-width: 1242px) {
    body.home .myfembree-conditions .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 70px;
        align-items: center;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 0 var(--spacing-lg) 0 0px
    }

    .home-support-container {
        max-width: 100%;
        padding: 0 50px;
    }

    body.home .how-it-works-container {
        max-width: 100%;
        padding: 0 50px;
        width: 100%;
    }

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

    body.home .myfembree-conditions {
        width: 100%;
        max-width: 100%;
    }
}

/* Specific breakpoint for larger screens */
@media (min-width: 1243px) and (max-width: 1399px) {
    body.home .myfembree-conditions .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 0 var(--spacing-lg) 0 0px;
    }

    .home-support-container {
        max-width: 100%;
        padding: 0 60px;
    }

    body.home .how-it-works-container {
        max-width: 100%;
        padding: 0 60px;
        width: 100%;
    }

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

    body.home .myfembree-conditions {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive stack */
@media (max-width: 900px) {
    body.home .myfembree-conditions .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 var(--spacing-sm) 0 0px;
        display: flex;
        flex-direction: column;
    }

    body.home .myfembree-conditions .info-column {
        order: 1;
        text-align: center;
        width: 100%;
    }

    body.home .myfembree-conditions .image-column {
        order: 2;
        width: 100%;
    }

    body.home .myfembree-conditions .home-cta {
        font-size: 18px;
    }
}


body.home .myfembree-usage {
    background: #F3E6F7;
    /* light purple background */
    padding: 48px 20px 56px 20px;
}

body.home .myfembree-usage .section-title {
    text-align: center;
    color: #5C068C;
    font-weight: 800;
    margin: 0 0 24px 0;
}

body.home .myfembree-usage .usage-points-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto 24px auto;
}

body.home .myfembree-usage .usage-point {
    background: #FFFFFF;
    border-radius: 14px;
    text-align: center;
    padding: 22px 16px;
}

body.home .myfembree-usage .usage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px auto;
    display: block;
}

body.home .myfembree-usage .bold-text {
    font-weight: 700;
}

body.home .home-how-it-works .how-it-works-container .cta-button {
    display: block;
    margin: 100px auto 0;
}

.home-how-it-works {
    background: linear-gradient(180deg, var(--bg-gradient-purple) 0%, rgba(226, 220, 238, 0) 100%);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.home-step-description {
    font-size: calc(19px * var(--base-font-scale, 1));
    line-height: 30px;
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-align: center;
    transition: var(--transition-normal);
    max-width: 600px;
}

html[lang="fr"] .home-step-description {
    font-size: calc(20px * var(--base-font-scale, 1));
    width: 95%;
}

@media (max-width: 900px) {
    body.home .myfembree-usage .usage-points-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    body.home .myfembree-conditions {
        padding: 40px 0;
    }

    body.home .myfembree-conditions .content-wrapper {
        padding: 0;
        gap: 30px;
    }

    body.home .myfembree-conditions .condition-box {
        padding: 20px 15px;
        font-size: 20px;
    }

    body.home .myfembree-conditions .cta-button {
        width: 100%;
        max-width: 250px;
    }

    .home-support-title::after {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-support-title {
        font-size: calc(26px * var(--base-font-scale, 1));
        line-height: 39px;
        margin-bottom: 20px;
    }

    .home-support-intro {
        padding: 10px 15px;
        font-size: calc(18px * var(--base-font-scale, 1));
        line-height: 27px;
        font-weight: var(--font-weight-medium);
    }

    html[lang="fr"] .home-support-intro {
        padding: 10px 5px;
    }


    body.home .myfembree-conditions {
        padding: 30px 0 45px 0;
    }

    body.home .myfembree-conditions .content-wrapper {
        padding: 0 0 0 0px;
        gap: 50px;
    }

    body.home .myfembree-conditions .image-column {
        padding: 0 var(--spacing-sm) 0 0px;
    }

    body.home .myfembree-conditions .condition-box {
        padding: 25px 5%;
        font-size: 21px;
        line-height: 31px;
        font-weight: var(--font-weight-medium);
        width: 90%;
        margin-bottom: 0px;
        border-radius: 36px;

    }

    html[lang="fr"] body.home .myfembree-conditions .condition-box {
        padding: 25px 5%;
        width: 95%;
    }

    body.home .myfembree-conditions .cta-button {
        width: 100%;
    }

    .home-support-title::after {
        width: 100%;
    }

    body.home .home-how-it-works .how-it-works-container .cta-button {
        display: block;
        margin: 70px auto 0;
        width: 65%;
        font-size: 17px;
    }

    body.home .myfembree-conditions .home-cta {
        font-size: 17px;
    }

    body.home .myfembree-conditions .info-column {
        padding-right: 0px;
    }

    .home-how-it-works {
        padding: var(--spacing-lg) 0 var(--spacing-lg);
    }

    .home-step-description {
        font-size: calc(16px * var(--base-font-scale, 1));
        font-weight: var(--font-weight-medium);
        line-height: 24px;
        padding: 0 5%;
    }

    html[lang="fr"] .home-step-description {
        font-size: calc(16px * var(--base-font-scale, 1));
        width: 100%;
        line-height: 24px;
        padding: 0 5%;
    }

    html[lang="fr"] body.home .home-how-it-works .how-it-works-container .cta-button {
        width: 80%;
    }

}