/* ========================================
   HOME PAGE STYLES - Tides Health
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    /* Height auto on mobile to let content flow */
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Wrapper for ordering sections */
.content-reorder-wrapper {
    display: contents;
    /* Default for mobile - let children flow normally */
}

/* New Wrapper for Video + Mute Button */
.hero-media-wrapper {
    position: relative;
    width: 100%;
    height: 35vh;
    /* Adjust height as needed for mobile */
    min-height: 250px;
    order: 2;
    /* Video block comes second */
    z-index: 0;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Video Mute Toggle Button */
.video-mute-btn {
    position: absolute;
    /* Position relative to the .hero-media-wrapper */
    bottom: 16px;
    right: 16px;
    top: auto;
    z-index: 8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
}

/* Show button on hover over hero section */
.hero-section:hover .video-mute-btn {
    opacity: 1;
}

/* Keep button visible when hovering over button itself */
.video-mute-btn:hover {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.video-mute-btn svg {
    color: var(--color-white);
    width: 20px;
    height: 20px;
}

.video-mute-btn.muted .mute-icon {
    display: none;
}

.video-mute-btn.muted .unmute-icon {
    display: block !important;
}

@media (min-width: 768px) {
    .video-mute-btn {
        width: 48px;
        height: 48px;
    }

    .video-mute-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 1440px) {
    .hero-section {
        height: 100dvh;
        display: block;
        /* Reset back to standard block for desktop */
    }

    .hero-media-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        order: unset;
    }

    .video-mute-btn {
        top: 200px;
        /* Desktop: Below topbar + larger navbar (~113px) + more spacing */
        bottom: auto;
        right: 64px;
        width: 56px;
        height: 56px;
    }

    .video-mute-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Restore Desktop Hero Content Layout */
    .hero-content {
        display: block;
        /* Switch to block to fix Navbar dropdown positioning context issues */
        height: 100%;
        position: relative;
        z-index: 5;
        pointer-events: none;
        /* Allow clicks to pass through empty space to video/button */
    }

    /* Specifically re-enable clicks on interactive children */

    /* Top Bar & Navbar wrappers */
    /* Targets direct children based on component root classes */
    .hero-content>.top-bar,
    .hero-content>.navbar,
    .hero-content>nav {
        pointer-events: auto;
    }

    /* For .hero-header-content, strict handling */
    .hero-header-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Fill space */
        order: unset;
        background-color: transparent;
        /* Transparent on desktop */
        pointer-events: none;
        /* Crucial: This container fills the screen, so it must not block clicks */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* Ensure content is at bottom */
    }

    /* Ensure intermediate wrappers don't block clicks */
    .hero-header-content .home-header,
    .hero-header-content .home-header-desktop {
        pointer-events: none;
    }

    /* Only the actual text and buttons themselves should catch clicks */
    .hero-header-content .home-header-desktop-text,
    .hero-header-content .home-header-desktop-buttons,
    .hero-header-content a,
    .hero-header-content button {
        pointer-events: auto;
    }
}

/* Mobile-only layout for video reordering */
/* Mobile-only layout for video reordering */
@media (max-width: 1439px) {
    .hero-section {
        min-height: 100dvh;
    }

    .hero-content {
        position: relative;
        z-index: 5;
        display: contents;
        /* Allows children to be ordered relative to video */
    }

    .hero-header-content {
        order: 3;
        /* Content comes after video */
        background-color: var(--color-white);
        /* Ensure background is white */
        flex: 1;
        /* Stretch to fill remaining height */
        display: flex;
        flex-direction: column;
    }

    .home-header {
        flex: 1;
    }

    .home-header-mobile {
        flex: 1;
        justify-content: flex-end;
        /* Align content to bottom if desired, or center. User said "stretch to bottom". */
        /* Actually user said "white container ... should stretch to the bottom". */
        /* If I just make the wrapper white and flex: 1, that covers it. */
        /* Keeping existing padding/layout inside. */
        justify-content: center;
        /* Center vertically usually looks better if lots of space */
    }
}

/* ========================================
   TOP BAR
   ======================================== */

/* Top Bar styles moved to components/top_bar.html */


/* ========================================
   HOME HEADER
   ======================================== */

.home-header {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home-header-mobile {
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

.home-header-text {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: -0.4px;
    color: var(--color-charcoal);
    padding-bottom: 32px;
}

.home-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-header-btn {
    width: 100%;
    border-radius: 8px;
    padding: 22px 32px;
    text-align: center;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: -3%;
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;

    /* Fancy Hover Setup */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.home-header-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-charcoal);
    transition: height 300ms ease;
    z-index: -1;
}

.home-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1;
    color: var(--color-fluoro) !important;
    border-color: var(--color-charcoal);
    background-color: transparent !important;
    /* Ensure background clears for fill effect */
}

.home-header-btn:hover::after {
    height: 100%;
}

/* Specific overrides for secondary/primary if needed */
.home-header-btn.secondary:hover {
    background-color: transparent !important;
    color: var(--color-fluoro) !important;
    border-color: var(--color-charcoal);
}

/* Specific overrides for secondary/primary if needed, but the fill covers background so mainly text color matters */
.home-header-btn.secondary:hover {
    background-color: transparent;
    /* Ensure underlying white doesn't interfere? Wrapper fills it. */
}

.home-header-btn.primary {
    background-color: var(--color-fluoro);
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
}

.home-header-btn.secondary {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
}

.home-header-desktop {
    display: none;
}

@media (min-width: 1120px) {
    .home-header-mobile {
        display: none;
    }

    .home-header-desktop {
        display: flex;
        padding: 0 64px 64px;
        align-items: flex-end;
        justify-content: space-between;
    }

    .home-header-desktop-buttons {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .home-header-desktop .home-header-btn {
        width: auto;
    }

    .home-header-btn.primary {
        min-width: 240px;
    }

    .home-header-btn.secondary {
        min-width: 158px;
    }

    .home-header-desktop-text {
        max-width: 640px;
    }

    .home-header-desktop {
        text-align: right;
    }

    .home-header-text {
        font-size: 24px;
        text-align: left;
    }
}

/* ========================================
   CUSTOMER SUPPORT SECTION
   ======================================== */

.customer-section {
    padding: 32px 16px;
    background-color: var(--color-fluoro);
    display: flex;
    flex-direction: column;
}

.customer-text h3 {
    font-family: "loew-variable", sans-serif;
    font-size: 28px;
    line-height: 90%;
    letter-spacing: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 700;
    font-stretch: 10%;
}


.customer-text p {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: normal;
    color: var(--color-charcoal);
    font-size: 16px;
    line-height: 110%;
    letter-spacing: 0;
    font-weight: 400;
    margin-bottom: 32px;
}

.customer-button {
    width: 100%;
    height: 64px;
    border-radius: 8px;
    border: 1px solid var(--color-charcoal);
    background-color: #ffffff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 110%;
    letter-spacing: -3%;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: color 300ms ease, border-color 300ms ease, transform 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    /* Fancy Hover Setup */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.customer-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-charcoal);
    transition: height 300ms ease;
    z-index: -1;
}

.customer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: transparent;
    /* Let fill show through if needed, though fill is on top of bg usually because z-index -1 is behind content but on top of element background? No, pseudo -1 is behind element content but above element background if element has no z-index context? Actually standard stacking: -1 sends it behind the element's background unless we are careful. */
    /* wait. z-index: -1 on pseudo moves it BEHIND the parent's background-color if parent creates a stacking context (isolated). */
    /* If .customer-button has z-index: 1, it creates a stacking context. The ::after with z-index: -1 will be behind the TEXT (z: auto) but ABOVE the background of the parent? No. */
    /* If parent has z-index: 1 and position: relative, children with negative z-index stay within the parent's stacking context, BEHIND the parent's content (text) but normally ABOVE the parent's background color? Actually, spec says negative z-index children are rendered before the element's background... wait. */
    /* Correct behavior: 
       Stacking context root.
       Background and borders of root.
       Descendants with negative z-indexes.
       Block level descendants.
       Floats.
       Inline content (text).
       
       So ::after (-1) is BEHIND text (good) but ABOVE background (bad? no, wait). 
       Actually Background of root is painted FIRST. Then Negative Z items. So Pseudo covers Root Background. YES.
    */
    color: var(--color-fluoro) !important;
}

.customer-button:hover::after {
    height: 100%;
}


@media (min-width: 1440px) {
    .customer-section {
        padding: 32px 64px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .customer-text {
        max-width: 550px;
    }

    .customer-text h3 {
        font-size: 32px;
        line-height: 100%;

    }

    .customer-text p {
        margin-bottom: 0;
    }

    .customer-button {
        min-width: 228px;
        width: auto;
    }

}

/* ========================================
   WHAT WE DO SECTION
   Figma: desktop 5701-7750 (3x2 grid), mobile 5251-9484 (vertical stack)
   ======================================== */

.what-we-do-section {
    padding: 48px 16px;
    background-color: #ffffff;
    /* Viewport Fit */
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.what-we-do-title {
    font-family: "loew-variable", sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    font-size: 38px;
    line-height: 90%;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--color-black);
    margin: 0 0 16px;
    flex-shrink: 0;
}

/* Single grid: 1 col mobile, 3 cols desktop */
.what-we-do-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    /* Viewport Fit */
    flex: 1;
    grid-template-rows: repeat(6, 1fr);
    min-height: 0;
}

/* Card: link, gradient, rounded */
.what-we-do-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px;
    background-color: #F5F3EE;
    text-decoration: none;
    color: var(--color-black);
    transition: transform 200ms, box-shadow 200ms;
    /* Viewport Fit */
    height: auto;
    min-height: 0;
    padding: 0 24px;
    overflow: visible;
}

.what-we-do-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 2, 2, 0.08);
}

.what-we-do-card-title {
    font-family: "loew-variable", system-ui, sans-serif;
    font-weight: 700;
    font-stretch: 10%;
    letter-spacing: 0;
    font-size: 24px;
    line-height: 100%;
    text-transform: uppercase;
    flex-shrink: 0;
    max-width: 140px;
}

.what-we-do-card-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    /* Viewport Fit */
    max-height: 120px;
}

.what-we-do-card-image {
    height: 100%;
    width: 100%;
    max-width: 100%;
    /* Viewport Fit - Strict constraint */
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.what-we-do-card--no-image .what-we-do-card-image-wrap {
    min-height: 48px;
}

.what-we-do-card-arrow {
    flex-shrink: 0;
    width: 63px;
    height: 47px;
    border-radius: 20px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 200ms, border-color 200ms;
}

.what-we-do-card:hover .what-we-do-card-arrow {
    background-color: var(--color-black);
}

.what-we-do-card-arrow img {
    width: 20px;
    height: 14px;
    object-fit: contain;
}

.what-we-do-card-arrow .arrow-icon {
    display: none;
}

.what-we-do-card-arrow .arrow-text {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-black);
    line-height: 1;
    transition: color 200ms;
}

.what-we-do-card:hover .what-we-do-card-arrow .arrow-text {
    color: var(--color-fluoro);
}


/* Mobile Specific Tweaks for Image Sizing */
@media (max-width: 767px) {
    .what-we-do-card--weight-loss .what-we-do-card-image {
        transform: scale(1.4);
        transform-origin: center;
    }

    .what-we-do-card--erectile .what-we-do-card-image {
        transform: scale(1.3);
        transform-origin: center;
        margin-top: -15px;
        /* Visual adjustment to push up */
    }

    .what-we-do-card--testosterone .what-we-do-card-image {
        transform: scale(1.15);
        transform-origin: center;
    }
}

@media (min-width: 768px) and (max-width: 1439px) {
    .what-we-do-section {
        height: auto;
        display: block;
        padding: 64px 16px;
    }

    .what-we-do-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }

    .what-we-do-card {
        padding: 24px;
        min-height: 120px;
    }

    .what-we-do-card-image-wrap {
        max-height: none;
    }

    .what-we-do-card-image {
        max-height: 160px;
        /* Increase from base 80px for tablet */
        width: auto;
        max-width: 100%;
    }
}

/* Desktop: 3x2 grid, card layout = title top-left, image center, arrow bottom-right */
@media (min-width: 1440px) {
    .what-we-do-section {
        padding: 64px;
        height: auto;
        display: block;
    }

    .what-we-do-title {
        font-size: 56px;
        margin-bottom: 48px;
    }

    .what-we-do-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        grid-template-rows: auto;
    }

    .what-we-do-card {
        position: relative;
        /* Context for absolute positioning */
        height: 240px;
        min-height: 120px;
        box-sizing: border-box;
        box-sizing: border-box;
        border-radius: 12px;
        overflow: visible;
        /* Allow images to pop out if needed, though they shouldn't */
    }

    .what-we-do-card-title {
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
        width: 140px;
        font-size: 24px;
        line-height: 100%;
        margin-bottom: 0;
        z-index: 2;
        text-align: left;
    }

    .what-we-do-card-image-wrap {
        /* Wrapper is effectively bypassed by absolute image, but keeping it empty/hidden-ish is fine.
           Actually let's just make it static so it doesn't interfere. */
        position: static;
        width: 0;
        height: 0;
    }

    .what-we-do-card-image {
        /* Absolute centering */
        position: absolute;
        top: 50%;
        left: 55%;
        /* Slightly offset to the right to clear text */
        max-width: none;
        max-height: none;
        object-fit: contain;
        transition: all 100ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1;
    }

    /* 
       STRICT DESIGN SPECS (User Guide)
       Implementation: Absolute Centering + Rotation
       Transform Formula: translate(-50%, -50%) rotate(DEG)
    */

    /* Shared Reset for Specific Images */
    .what-we-do-card--peptide .what-we-do-card-image,
    .what-we-do-card--testosterone .what-we-do-card-image,
    .what-we-do-card--weight-loss .what-we-do-card-image,
    .what-we-do-card--plant-based .what-we-do-card-image,
    .what-we-do-card--erectile .what-we-do-card-image,
    .what-we-do-card--hair-loss .what-we-do-card-image {
        height: auto;
        margin: 0;
        pointer-events: none;
        /* Let clicks pass to card */
    }

    /* 1. Peptide */
    .what-we-do-card--peptide .what-we-do-card-image {
        width: 158.61px;
        transform: translate(-50%, -50%) rotate(-18.83deg);
    }

    .what-we-do-card--peptide:hover .what-we-do-card-image {
        width: 174.47px;
        transform: translate(-50%, -50%) rotate(2.74deg);
    }

    /* 2. Testosterone */
    .what-we-do-card--testosterone .what-we-do-card-image {
        width: 207.53px;
        transform: translate(-50%, -50%) rotate(-18.83deg);
    }

    .what-we-do-card--testosterone:hover .what-we-do-card-image {
        width: 228.29px;
        transform: translate(-50%, -50%) rotate(-33.14deg);
    }

    /* 3. Erectile Dysfunction */
    .what-we-do-card--erectile .what-we-do-card-image {
        width: 257.44px;
        transform: translate(-50%, -50%) rotate(-18.83deg);
        margin-top: -30px;
        /* Visual adjustment: push up to center */
    }

    .what-we-do-card--erectile:hover .what-we-do-card-image {
        width: 283.19px;
        transform: translate(-50%, -50%) rotate(-28.11deg);
        margin-top: -30px;
        /* Maintain visual adjustment */
    }

    /* 4. Plant-Based */
    .what-we-do-card--plant-based .what-we-do-card-image {
        width: 164.81px;
        transform: translate(-50%, -50%) rotate(-18.83deg);
    }

    .what-we-do-card--plant-based:hover .what-we-do-card-image {
        width: 181.08px;
        transform: translate(-50%, -50%) rotate(-4.12deg);
    }

    /* 5. Hair Loss */
    .what-we-do-card--hair-loss .what-we-do-card-image {
        width: 160.93px;
        left: 62%;
        /* Align with Weight Loss image */
        transform: translate(-50%, -50%) rotate(-4.19deg);
    }

    .what-we-do-card--hair-loss:hover .what-we-do-card-image {
        width: 177.03px;
        transform: translate(-50%, -50%) rotate(14.18deg);
    }

    /* 6. Weight Loss */
    .what-we-do-card--weight-loss .what-we-do-card-image {
        width: 230px;
        /* Further increased from 200px */
        left: 62%;
        /* Shift right to avoid text overlap but stay balanced */
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .what-we-do-card--weight-loss:hover .what-we-do-card-image {
        width: 253px;
        /* Further increased */
        transform: translate(-50%, -50%) rotate(6.81deg);
    }


    .what-we-do-card--no-image .what-we-do-card-image-wrap {
        min-height: 80px;
    }

    .what-we-do-card-arrow {
        align-self: flex-end;
        margin-top: auto;
        /* Optional: Remove background/border if the user wants just the arrow, 
           but for now keeping container as wrapper. 
           If the user wants just the arrow floating, we'd remove bg/border here. 
           Assuming simple replacement of content inside the pill.
        */
    }




    /* Last three cards (row 2): lower height, horizontal layout, pill-shaped arrow – Figma 5701-7796 */
    .what-we-do-card--compact {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 140px;
        padding: 24px 28px;
    }

    .what-we-do-card-title {
        max-width: 200px;
    }

    .what-we-do-card--compact .what-we-do-card-image-wrap {
        flex: 1;
        min-height: 0;
    }

    .what-we-do-card--compact .what-we-do-card-image {
        height: 64px;
        max-width: 90px;
    }

    .what-we-do-card--compact .what-we-do-card-arrow {
        align-self: center;
        margin-top: 0;
        width: 56px;
        height: 40px;
        border-radius: 9999px;
    }

    .what-we-do-card--compact .what-we-do-card-arrow img {
        width: 24px;
        height: 24px;
    }

    .what-we-do-card--compact.what-we-do-card--no-image .what-we-do-card-image-wrap {
        min-height: 0;
    }

    .what-we-do-card--compact>.what-we-do-card-image-wrap>.what-we-do-card-image {
        height: 100%;
        width: 100%;

    }
}

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


/* 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) {

    .content-reorder-wrapper {
        display: flex;
        flex-direction: column;
    }

    .home-page-our-approach {
        order: 3;
    }

    /* 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('/static/core/assets/homepage/delivery_method/delivery_method_mobile.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 650px;
}

.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;
}

.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('/static/core/assets/homepage/delivery_method/delivery_method_bg.svg');
        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('/static/core/assets/homepage/delivery_method/delivery_method_bg.svg');
        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; */
    }
}