/* ========================================
   HEALTH GOAL PAGE STYLES
   ======================================== */

.health-goal-page-wrapper {
    background-color: #ffffff;
}

/* ========================================
   NAVBAR OVERRIDES
   ======================================== */

/* Force navbar to be white/opaque on this page */
/* We target it with higher specificity by including the wrapper class */
.health-goal-page-wrapper .navbar.transparent {
    background-color: #ffffff;
    /* Optional: add bottom border if needed for separation on white bg */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

/* Force logo to be black */
.health-goal-page-wrapper .navbar.transparent .navbar-logo.white {
    opacity: 0 !important;
}

.health-goal-page-wrapper .navbar.transparent .navbar-logo.black {
    opacity: 1 !important;
}

/* Force links to be black */
.health-goal-page-wrapper .navbar.transparent .navbar-link {
    color: var(--color-black) !important;
}

/* Force menu icon to be black (inverted) */
.health-goal-page-wrapper .navbar.transparent .navbar-menu-icon {
    filter: invert(1);
}

/* Fix for Scroll Flicker:
   The navbar.js adds 'fixed' class which sets position:fixed, removing the navbar from flow.
   This causes content to jump up, creating a flicker loop.
   We force it to stay 'sticky' (which preserves space) within this wrapper.
*/
.health-goal-page-wrapper .navbar.fixed {
    position: sticky !important;
    top: 0;
}


/* ========================================
   HEADER SECTION
   ======================================== */

.health-goal-header {
    padding: 0 16px 64px;
}

.health-goal-header-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.health-goal-header-text {
    display: flex;
    flex-direction: column;
}

.breadcrumbs {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    margin-top: 32px;
    margin-bottom: 24px;
    color: var(--color-charcoal);
    text-transform: uppercase;
}

.breadcrumbs a {
    text-decoration: none;
    color: inherit;
}

.health-goal-header h1 {
    font-family: 'loew-variable', sans-serif;
    font-stretch: 10%;
    font-weight: 700;
    font-size: 48px;
    line-height: 90%;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: var(--color-charcoal);
    letter-spacing: 0;
}

.subheading {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--color-charcoal);
}

.description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-charcoal);
    margin-bottom: 64px;
}

.header-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.header-links a {
    color: var(--color-charcoal);
    font-size: 16px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif
}

.health-goal-header-image {
    width: 100%;
    border-radius: 8px;
    /* Assuming rounded corners based on general style */
    overflow: hidden;
}

.health-goal-header-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Square on mobile per screenshot? Or distinct aspect ratio */
}

/* ------------------------------------------------------- */
/* UNDER HEADER LABELS */
/* ------------------------------------------------------- */

.health-goal-under-header-labels {
    padding: 32px 32px;
    box-sizing: border-box;
    background-color: var(--color-fluoro);
    color: var(--color-charcoal);
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
}

.health-goal-under-header-labels p {
    font-family: "loew-variable", sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-stretch: 10%;
    letter-spacing: 0;
    line-height: 100%;
    text-transform: uppercase;
}


/* ------------------------------------------------------- */
/* SERVICE DESCRIPTION */
/* ------------------------------------------------------- */

.health-goal-service-description {
    padding: 64px 16px;
    box-sizing: border-box;
}

.service-description-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.health-goal-service-description p {
    font-size: 28px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.56px;
    color: var(--color-charcoal);
    margin: 0;
}

/* Button styles for ALL screen sizes */
.health-goal-service-description .cta-button {
    /* Override specific CTA button styles for this context if needed, e.g. width */
    max-width: 100%;
    /* Or fixed width if design requires */
    width: 100%;

    /* Fluoro Style */
    background-color: var(--color-fluoro);
    border-color: var(--color-fluoro);
    color: var(--color-charcoal);
}

.health-goal-service-description .cta-button:hover {
    color: var(--color-fluoro);
    border-color: var(--color-charcoal);
    /* Do NOT change background-color here, let ::after pseudo-element slide up */
}

/* ------------------------------------------------------- */
/* WHAT'S THE SCIENCE */
/* ------------------------------------------------------- */

.science-section {
    padding: 64px 16px 0;
    padding-top: 0;
    background-color: #ffffff;
}

.science-label {
    font-size: 12px;
    letter-spacing: 0;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.science-title {
    font-size: 38px;
    line-height: 90%;
    font-weight: 700;
    margin-bottom: 32px;
    text-transform: uppercase;
    color: var(--color-charcoal);
    letter-spacing: 0;
    font-family: "loew-variable", sans-serif;
    font-stretch: 10%;
}

.science-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.science-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.science-img-main {
    width: 100%;
    border-radius: 8px;
    height: auto;
    object-fit: cover;
}

.science-img-secondary-wrap {
    display: none;
    /* Hide on mobile by default */
}

.science-img-secondary {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.science-text p {
    font-size: 18px;
    line-height: 1.1;
    color: var(--color-charcoal);
    margin-bottom: 32px;
    font-size: Arial, Helvetica, sans-serif;
}

.science-benefits {
    margin-top: 48px;
}

.science-benefits h3 {
    font-size: 28px;
    line-height: 90%;
    margin-bottom: 32px;
    text-transform: uppercase;
    color: var(--color-charcoal);
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    font-stretch: 10%;
}

.science-benefits ul {
    list-style: disc;
    padding-left: 25px;
    margin-left: 9px;
}

.science-benefits li {
    font-size: 18px;
    color: var(--color-charcoal);
    margin-bottom: 16px;
    line-height: 1.1;
    font-family: Arial, Helvetica, sans-serif;
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) {
    .health-goal-header {
        padding: 48px 32px;
    }

    .health-goal-header h1 {
        font-size: 48px;
    }

    .health-goal-under-header-labels {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 48px;
    }

    .health-goal-under-header-labels p {
        flex: 0 1 auto;
    }

    .science-img-secondary-wrap {
        width: 250px;
        height: 250px;
        margin: 0 auto 48px auto;
    }
}

/* Small Desktop / Laptop (1024px - 1439px) */
@media (min-width: 1024px) {
    .health-goal-header {
        padding: 48px;
        max-width: 100%;
        /* Allow full width until 1440 constraint */
    }

    .health-goal-header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 48px;
        align-items: center;
    }

    .health-goal-header-text {
        flex: 1;
        padding-top: 0;
    }

    #health-goal-header-head-line-break {
        display: none;
    }

    .health-goal-header-image {
        flex: 1;
        max-width: 500px;
    }

    .health-goal-service-description {
        padding: 48px;
        display: flex;
        justify-content: center;
        /* Center align */
    }

    .service-description-content {
        max-width: 900px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

    .health-goal-service-description p {
        font-size: 28px;
        text-align: left;
        flex: 1;
        /* Allow paragraph to take available space */
        /* max-width removed here, moved to container */
    }

    .health-goal-service-description .cta-button {
        width: auto;
        padding: 0 32px;
        min-width: 250px;
        flex-shrink: 0;
        /* Prevent button from shrinking */

        /* Colors already defined in base styles above */
    }

    /* .health-goal-service-description .cta-button:hover already defined above */

    /* Science Section Grid Enable */
    .science-section {
        padding: 48px;
        padding-top: 0;
    }

    .science-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: start;
    }

    .science-images {
        flex-direction: column;
        align-items: flex-start;
    }

    .science-img-main {
        width: 100%;
    }

    /* Move secondary image to right column logic (similar to 1440) */
    .science-img-secondary-wrap {
        display: block;
        /* Show on desktop */
        margin: 0 0 48px 0;
        /* Reset margins to left/fill */
        width: 100%;
        /* Full width of grid column */
        height: auto;
        /* Auto height to maintain aspect or fill based on content */
        /* If specific height needed, can be set, but stretch usually means width in this context or height of container */
        align-self: stretch;
        /* Stretch in grid item */
        object-fit: cover;
    }

    .science-img-secondary {
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .science-text {
        display: flex;
        flex-direction: column;
    }
}


/* Desktop Styles (1440px - 1728px) */
@media (min-width: 1440px) {
    .health-goal-header {
        padding: 64px;
        max-width: 1440px;
        margin: 0 auto;
    }

    .health-goal-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 64px;
    }

    .health-goal-header-text {
        flex: 1;
        max-width: auto;
        padding-top: 0;
        /* Visual alignment */
    }

    .health-goal-header h1 {
        font-size: 64px;
        line-height: 90%;
        font-weight: 700;
        font-stretch: 10%;
        letter-spacing: 0;
        margin-bottom: 24px;
    }

    #health-goal-header-head-line-break {
        display: none;
    }

    .subheading {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .description {
        font-size: 18px;
        margin-bottom: 64px;
        max-width: 90%;
    }

    .header-links {
        gap: 32px;
        font-size: 16px;
    }

    .health-goal-header-image {
        flex: 1;
        max-width: 600px;
    }

    .breadcrumbs {
        margin-bottom: 16px;
    }


    /* under header label styles */

    .health-goal-under-header-labels {
        flex-direction: row;
        justify-content: space-between;
        justify-content: center;
        gap: 88px;
    }

    .health-goal-under-header-labels p {
        font-size: 24px;
    }

    /* service description styles */
    .health-goal-service-description {
        padding: 64px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        /* Center align */
    }

    .service-description-content {
        max-width: 920px;
    }

    .health-goal-service-description p {
        font-size: 24px;
        letter-spacing: -0.64px;
        /* max-width removed */
    }

    /* SCIENCE SECTION DESKTOP */
    .science-section {
        padding: 64px;
        margin: 0 auto;
        padding-top: 0;
    }

    .science-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }

    .science-title {
        font-size: 64px;
        margin-bottom: 32px;
    }

    .science-images {
        flex-direction: column;
        align-items: flex-start;
    }

    .science-img-main {
        width: 920px;
        height: 920px;
        /* Ensure it doesn't get too huge */
    }

    /* Secondary Image in Right Column */
    .science-img-secondary-wrap {
        margin: 0 0 80px 0;
        width: 100%;
        height: auto;
    }

    .science-text {
        max-width: 648px;
        /* Align centered in its grid cell? */
        justify-self: center;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .science-text p {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .science-benefits h3 {
        font-size: 26px;
    }

    .science-benefits li {
        font-size: 18px;
    }

    .science-benefits {
        margin-top: 16px;
    }
}

/* Large Screens (> 1728px) */
@media (min-width: 1729px) {

    .health-goal-header,
    .science-section {
        max-width: 1800px;
        padding-top: 0;
        /* Expand constraint */
    }

    .health-goal-header h1 {
        font-size: 64px;
        /* Larger title */
    }

    .subheading {
        font-size: 28px;
    }

    .description {
        font-size: 20px;
        max-width: 100%;
    }

    .science-title {
        font-size: 64px;
    }

    .science-text p,
    .science-benefits li {
        font-size: 20px;
    }

    .science-benefits h3 {
        font-size: 32px;
    }

    /* Scale images or layout */
    .science-img-main {
        width: 100%;
        /* Fill the larger grid cell */
    }

    .science-img-secondary-wrap {
        width: 100%;
        height: auto;
        margin-bottom: 96px;
    }

    .service-description-content {
        max-width: 1200px;
    }

    .health-goal-service-description p {
        font-size: 40px;
        /* max-width removed */
    }
}