/* ========================================
   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);
}


/* ========================================
   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: clamp(34px, 10vw, 44px);
    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: 32px;
}

.mobile-cta-button {
    margin-bottom: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .cta-button.mobile-cta-button {
        display: none;
    }

    .description {
        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: 4 / 3;
}

/* ------------------------------------------------------- */
/* 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 */
    }
}

.banner-info-list ul:not(:first-child) {
    margin-top: 8px;
}
.banner-info-list ul{
    padding-left: 30px;
}

.science-benefits ul:has(img){
    padding: 0;
}
.science-benefits ul:has(img) li{
    list-style: none;
    display: grid;
    grid-template-columns: 120px auto;
    gap: 20px;
    align-items: center;
    font-size: 20px; 
    font-family: "loew-variable", sans-serif;
    font-weight: 600;
}
.science-benefits ul:has(img) li + li{
    margin-top: 20px;
}
.science-benefits ul:has(img) img{
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}


/* Our Approach */

.home-page-our-approach p {
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    font-size: 48px;
    line-height: 90%;
    letter-spacing: 0;
    color: var(--color-black);
    padding: 64px 16px;
    text-transform: uppercase;
}

@media (min-width: 1440px) {
    /* Delivery default order 0, but implicit source order would put it before Approach (if no order set).
       Since Approach is Source #1, Delivery Source #2, Works Source #3.
       If Approach is order 3.
       Delivery stays order 0 -> Position 1.
       Works stays order 0 -> Position 2.
       Approach is order 3 -> Position 3.
       Result: Delivery -> Works -> Approach. Correct.
    */

    .home-page-our-approach p {
        font-size: 96px;
        text-align: left;
        padding: 80px 64px;
    }
}
/* Delivery Method */
.home-page-delivery-method {
    position: relative;
    padding: 48px 24px;
    border-radius: 8px;
    margin: 32px 16px;
    background-image: url('/media/rapid-bio/rapid-bio-clinical.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 650px;
}

.home-page-delivery-method::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.76) 52%, rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
}

.delivery-method-content {
    max-width: 240px;
    width: 100%;
    text-align: left;
    padding-top: 140px;
    padding-left: 30px;
    margin-right: 0;
    padding-bottom: 200px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

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

.delivery-method-text {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0%;
    color: var(--color-black);
    margin: 0;
}

.delivery-method-video-link {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: -3%;
    color: var(--color-charcoal);
    text-decoration: none;
    display: inline-block;
    transition: opacity 200ms ease;
}

.delivery-method-video-link:hover {
    color: var(--color-black);
}

@media (min-width: 1440px) {
    .home-page-delivery-method {
        min-height: 600px;
        padding: 120px 64px;
        padding-left: 200px;
        margin: 0 64px;
        justify-content: center;
        align-items: center;
        background-position: center;
        background-image: url('/media/rapid-bio/rapid-bio-clinical.jpg');
        background-size: cover;
    }

    .delivery-method-content {
        max-width: 647px;
        padding: 0;
        text-align: left;
        /* margin-right: 100px; */
    }

    .delivery-method-title {
        font-size: 64px;
        line-height: 90%;
        margin: 0 0 24px 0;
    }

    .delivery-method-text {
        margin: 0 0 64px 0;
        font-size: 18px;
    }
}

/* Intermediate Breakpoint for Delivery Method */
@media (min-width: 500px) and (max-width: 1439px) {
    .home-page-delivery-method {
        background-image: url('/media/rapid-bio/rapid-bio-clinical.jpg');
        background-position: right center;
        background-size: cover;
        padding: 80px 32px;
        min-height: 400px;
        justify-content: flex-end;
        align-items: center;
    }

    .delivery-method-content {
        max-width: 450px;
        /* Optional: add background to readable text if image overlaps */
        /* background: rgba(255, 255, 255, 0.8); */
        /* padding: 24px; */
        /* border-radius: 8px; */
    }
}



/* ========================================
   HEALTH GOALS SECTION
   Figma: desktop 5362-3760, mobile 5251-9517. Breakpoint 1440px.
   ======================================== */

.health-goals-section {
    padding: 64px 16px;
    background-color: var(--color-white);
}

.health-goals-header {
    margin-bottom: 32px;
}

.health-goals-title {
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    font-size: 38px;
    line-height: 90%;
    letter-spacing: 0;
    color: var(--color-black);
    margin-bottom: 16px;
}

.health-goals-intro {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0;
    color: var(--color-charcoal);
    margin: 0;
    max-width: 100%;
}

.health-goals-slider {
    position: relative;
    overflow: hidden;
}

.health-goals-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-out;
    will-change: transform;
    width: max-content;
}

.health-goals-card {
    flex: 0 0 300px;
    width: 300px;
    height: 444px;
    min-width: 0;
    box-sizing: border-box;
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #f0f0f0;
    /* Fallback color */
}

.health-goals-card picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    margin: 0;
}

.health-goals-card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    max-width: none;
}

.health-goals-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.health-goals-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 32px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.health-goals-card-text {
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    font-size: 19.73px;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-fluoro);
    flex: 1;
    min-width: 0;
    align-self: flex-end;
    text-transform: uppercase;
}
.health-goals-card-txt {
    align-self: flex-end;
}

.health-goals-card-description {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}
.health-goals-card-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
}

.health-goals-card-arrow img {
    width: 18px;
    height: 20px;
    object-fit: contain;
    /* Fluoro color on mobile */
    filter: brightness(0) saturate(100%) invert(95%) sepia(92%) saturate(2088%) hue-rotate(16deg) brightness(104%) contrast(91%);
}

.health-goals-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 0 4px;
}

.health-goals-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.health-goals-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background-color: var(--color-charcoal);
    opacity: 0.2;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.health-goals-dot:hover {
    background-color: #b0b0b0;
}

.health-goals-dot.active {
    background-color: var(--color-charcoal);
    opacity: 1;
}

.health-goals-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-goals-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    color: var(--color-black);
    transition: opacity 0.2s;
}

.health-goals-arrow:hover {
    opacity: 0.7;
}

.health-goals-arrow img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Desktop: 1440px â€“ 4 cards visible, white card labels */
@media (min-width: 1440px) {
    .health-goals-section {
        padding: 80px 64px;
    }

    .health-goals-header {
        margin-bottom: 48px;
    }

    .health-goals-title {
        font-size: 56px;
        line-height: 90%;
        margin-bottom: 48px;
    }

    .health-goals-intro {
        /* display: none; */
        font-size: 24px;
        line-height: 1.4;
        /* max-width: 720px; */
    }

    .health-goals-slider {
        margin-left: 0;
        margin-right: 0;
    }

    .health-goals-track {
        gap: 16px;
    }

    .health-goals-card {
        flex: 0 0 363px;
        width: 363px;
        height: 540px;
        transition: transform 0.3s ease, filter 0.3s ease;
    }

    .health-goals-card:hover {
        transform: translateY(-8px);
        filter: brightness(1.1);
    }



    .health-goals-card-content {
        padding: 24px;
    }

    .health-goals-card-text {
        font-size: 24px;
        color: #ffffff;
        transition: color 0.3s ease;
    }

    .health-goals-card-description {
        font-size: 14px;
    }
    .health-goals-card:hover .health-goals-card-text {
        color: var(--color-fluoro);
    }

    .health-goals-card-arrow img {
        width: 22px;
        height: 16px;
        filter: brightness(0) invert(1);
        transition: filter 0.3s ease;
    }

    .health-goals-card:hover .health-goals-card-arrow img {
        /* Change to fluoro on hover */
        filter: brightness(0) saturate(100%) invert(95%) sepia(92%) saturate(2088%) hue-rotate(16deg) brightness(104%) contrast(91%);
    }

    .health-goals-nav {
        margin-top: 70px;
        padding: 0;
    }

    .health-goals-dot {
        width: 10px;
        height: 10px;
    }

    .health-goals-arrow img {
        width: 28px;
        height: 28px;
    }
}