
/* =========================================================
   LA FEMEIA — THE SKINCARE EXPERIENCE
   Ultra-Premium How to Order Section
   ========================================================= */

.bb-order-section {
    --od-ink: #1A1A1A;
    --od-muted: #746A60;
    --od-gold: #C9A46A;
    --od-gold-dark: #9A784A;
    --od-bg: #F8F4EE;
    --od-card: #FFFFFF;
    --od-beige: #E8D8C3;

    --od-line: rgba(154, 120, 74, .18);
    --od-ease: cubic-bezier(.22, .61, .36, 1);

    --od-serif: 'Cormorant Garamond', Georgia, serif;
    --od-sans: 'DM Sans', Arial, sans-serif;

    position: relative;
    overflow: hidden;

    width: 100%;

    padding: clamp(24px, 3vw, 40px) 28px;

    background:
        radial-gradient(
            ellipse at 50% 8%,
            rgba(232, 216, 195, .28) 0%,
            transparent 52%
        ),
        var(--od-bg);

    color: var(--od-ink);
    font-family: var(--od-sans);
}

.bb-order-section *,
.bb-order-section *::before,
.bb-order-section *::after {
    box-sizing: border-box;
}

.bb-order-container {
    position: relative;
    z-index: 1;

    max-width: 1380px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.bb-order-header {
    max-width: 760px;

    margin:
        0 auto
        clamp(55px, 6vw, 86px);

    text-align: center;
}

.bb-order-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    margin-bottom: 22px;

    font-family: var(--od-sans);
    font-size: 11px;
    font-weight: 500;

    letter-spacing: .18em;
    line-height: 1.5;

    color: var(--od-gold-dark);
}

.bb-order-eyebrow-line {
    width: 24px;
    height: 1px;
    background: var(--od-gold);
}

.bb-order-header h2 {
    margin: 0 0 23px;

    font-family: var(--od-serif);
    font-size: clamp(54px, 6.4vw, 94px);
    font-weight: 500;
    line-height: .95;

    letter-spacing: -.035em;
    color: var(--od-ink);
}

.bb-order-header h2 em {
    display: block;

    font-style: italic;
    font-weight: 500;

    color: var(--od-gold-dark);
}

.bb-order-header p {
    max-width: 560px;
    margin: 0 auto;

    font-family: var(--od-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;

    color: var(--od-muted);
}


/* =========================================================
   FOUR STEP GRID
   ========================================================= */

.bb-order-steps {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.bb-order-step {
    position: relative;

    display: flex;
    min-width: 0;
}


/* =========================================================
   PREMIUM STEP CARDS
   ========================================================= */

.bb-order-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 385px;

    padding: 27px 25px 23px;

    border: 1px solid var(--od-line);
    border-radius: 18px;

    background: var(--od-card);

    transition:
        transform .55s var(--od-ease),
        box-shadow .55s var(--od-ease),
        border-color .55s var(--od-ease),
        background .55s var(--od-ease);
}

/* Slightly different neutral tones */

.bb-order-step:nth-child(2) .bb-order-card {
    background: #F3EDE5;
}

.bb-order-step:nth-child(3) .bb-order-card {
    background: #FAF7F2;
}

.bb-order-step:nth-child(4) .bb-order-card {
    background: #EEE5D9;
}

/* Very subtle gold top accent */

.bb-order-card::before {
    content: '';

    position: absolute;
    top: 0;
    left: 50%;

    width: 52px;
    height: 2px;

    transform: translateX(-50%);

    background: var(--od-gold);

    opacity: .7;

    transition:
        width .55s var(--od-ease),
        opacity .55s var(--od-ease);
}

@media (hover: hover) and (pointer: fine) {
    .bb-order-card:hover {
        transform: translateY(-9px);

        background: #FFFFFF;
        border-color: rgba(201, 164, 106, .45);

        box-shadow:
            0 26px 55px -32px
            rgba(72, 48, 29, .24);
    }

    .bb-order-card:hover::before {
        width: 100%;
        opacity: 1;
    }
}


/* =========================================================
   CARD TOP
   ========================================================= */

.bb-order-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
    margin-bottom: 55px;
}

/* Large elegant step number */

.bb-order-num {
    display: block;

    font-family: var(--od-serif);
    font-size: 63px;
    font-weight: 500;
    line-height: .9;

    letter-spacing: -.04em;

    color: var(--od-gold-dark);
}

/* Skincare experience icon */

.bb-order-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 54px;

    width: 54px;
    height: 54px;

    border: 1px solid rgba(201, 164, 106, .35);
    border-radius: 50%;

    background: rgba(255, 255, 255, .68);

    color: var(--od-gold-dark);

    transition:
        background .4s var(--od-ease),
        color .4s var(--od-ease),
        border-color .4s var(--od-ease),
        transform .5s var(--od-ease);
}

.bb-order-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

@media (hover: hover) and (pointer: fine) {
    .bb-order-card:hover .bb-order-icon {
        transform: rotate(-8deg) scale(1.06);

        background: var(--od-gold);
        border-color: var(--od-gold);

        color: #FFFFFF;
    }
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.bb-order-card-body {
    flex-grow: 1;
}

.bb-order-card-label {
    display: inline-block;

    margin-bottom: 13px;

    font-family: var(--od-sans);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;

    letter-spacing: .17em;

    color: var(--od-gold-dark);
}

.bb-order-card h3 {
    margin: 0 0 16px;

    font-family: var(--od-serif);
    font-size: clamp(26px, 2.2vw, 35px);
    font-weight: 600;
    line-height: 1.05;

    letter-spacing: -.02em;
    color: var(--od-ink);
}

.bb-order-card p {
    margin: 0;

    font-family: var(--od-sans);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.85;

    color: var(--od-muted);
}


/* =========================================================
   CARD BOTTOM DETAIL
   ========================================================= */

.bb-order-card-bottom {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 28px;
}

.bb-order-card-line {
    flex: 1;
    height: 1px;

    background: var(--od-line);
}

.bb-order-card-mark {
    font-family: var(--od-serif);
    font-size: 19px;
    font-weight: 600;

    letter-spacing: -.04em;

    color: rgba(154, 120, 74, .4);
}


/* =========================================================
   CONNECTING ARROWS
   ========================================================= */

.bb-order-connector {
    position: absolute;

    top: 46%;
    right: -20px;

    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 32px;

    transform: translateX(0);

    color: var(--od-gold-dark);

    pointer-events: none;

    transition:
        transform .4s var(--od-ease);
}

.bb-order-connector svg {
    display: block;
    width: 16px;
    height: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .bb-order-step:hover .bb-order-connector {
        transform: translateX(4px);
    }
}


/* =========================================================
   FINAL CTA AREA
   ========================================================= */

.bb-order-cta {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 860px;

    margin:
        clamp(65px, 8vw, 105px)
        auto 0;

    padding:
        clamp(36px, 5vw, 62px)
        30px
        0;

    border-top: 1px solid var(--od-line);

    text-align: center;
}

/* Decorative gold diamond */

.bb-order-cta::before {
    content: '';

    position: absolute;
    top: -5px;
    left: 50%;

    width: 9px;
    height: 9px;

    background: var(--od-gold);

    transform:
        translateX(-50%)
        rotate(45deg);
}

.bb-order-cta-eyebrow {
    display: inline-block;

    margin-bottom: 16px;

    font-family: var(--od-sans);
    font-size: 10px;
    font-weight: 500;

    letter-spacing: .18em;

    color: var(--od-gold-dark);
}

.bb-order-cta h3 {
    max-width: 650px;
    margin: 0 0 15px;

    font-family: var(--od-serif);
    font-size: clamp(38px, 4.3vw, 61px);
    font-weight: 500;
    line-height: 1.02;

    letter-spacing: -.025em;
    color: var(--od-ink);
}

.bb-order-cta h3 em {
    font-style: italic;
    color: var(--od-gold-dark);
}

.bb-order-cta > p {
    max-width: 490px;

    margin: 0 0 29px;

    font-family: var(--od-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;

    color: var(--od-muted);
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.bb-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 22px;

    min-height: 54px;

    padding: 16px 27px;

    border: 1px solid var(--od-ink);
    border-radius: 100px;

    background: var(--od-ink);
    color: #FFFFFF !important;

    font-family: var(--od-sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    letter-spacing: .025em;
    text-decoration: none !important;

    transition:
        background .35s var(--od-ease),
        border-color .35s var(--od-ease),
        color .35s var(--od-ease),
        transform .35s var(--od-ease),
        box-shadow .35s var(--od-ease);
}

.bb-order-btn svg {
    flex-shrink: 0;

    transition:
        transform .35s var(--od-ease);
}

.bb-order-btn:hover {
    transform: translateY(-3px);

    background: var(--od-gold-dark);
    border-color: var(--od-gold-dark);

    color: #FFFFFF !important;

    box-shadow:
        0 12px 25px
        rgba(154, 120, 74, .2);
}

.bb-order-btn:hover svg {
    transform: translate(3px, -3px);
}

.bb-order-btn:focus-visible {
    outline: 2px solid var(--od-gold-dark);
    outline-offset: 4px;
}

.bb-order-cta-note {
    display: block;

    margin-top: 18px;

    font-family: var(--od-sans);
    font-size: 11px;
    font-weight: 400;

    letter-spacing: .04em;

    color: var(--od-muted);
}


/* =========================================================
   SCROLL ENTRANCE ANIMATION
   ========================================================= */

.bb-order-ready .bb-order-header {
    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity .85s var(--od-ease),
        transform .85s var(--od-ease);
}

.bb-order-ready .bb-order-step {
    opacity: 0;
    transform: translateY(38px);

    transition:
        opacity .85s var(--od-ease),
        transform .85s var(--od-ease);

    transition-delay:
        calc(.12s + var(--i, 0) * .13s);
}

.bb-order-ready .bb-order-cta {
    opacity: 0;
    transform: translateY(26px);

    transition:
        opacity .9s var(--od-ease),
        transform .9s var(--od-ease);

    transition-delay: .5s;
}

.bb-order-ready.is-in .bb-order-header,
.bb-order-ready.is-in .bb-order-step,
.bb-order-ready.is-in .bb-order-cta {
    opacity: 1;
    transform: none;
}

/* Ensure card hover still works after reveal */

.bb-order-ready.is-in .bb-order-card:hover {
    transition-delay: 0s;
}


/* =========================================================
   SMALL DESKTOP / TABLET
   ========================================================= */

@media (max-width: 1180px) {

    .bb-order-steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .bb-order-card {
        min-height: 320px;
    }

    .bb-order-card-top {
        margin-bottom: 35px;
    }

    .bb-order-card h3 {
        font-size: 33px;
    }

    .bb-order-connector {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

   .bb-order-section {
        padding: 24px 16px;}

    .bb-order-header {
        margin-bottom: 39px;
    }

    .bb-order-eyebrow {
        font-size: 9px;
        gap: 8px;
    }

    .bb-order-eyebrow-line {
        width: 17px;
    }

    .bb-order-header h2 {
        font-size: clamp(51px, 11vw, 69px);
    }

    .bb-order-header p {
        max-width: 365px;
        font-size: 14px;
        line-height: 1.75;
    }

    .bb-order-steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bb-order-card {
        min-height: 0;
        padding: 24px 23px 20px;
        border-radius: 16px;
    }

    .bb-order-card-top {
        margin-bottom: 28px;
    }

    .bb-order-num {
        font-size: 57px;
    }

    .bb-order-icon {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
    }

    .bb-order-icon svg {
        width: 22px;
        height: 22px;
    }

    .bb-order-card h3 {
        font-size: 32px;
        margin-bottom: 11px;
    }

    .bb-order-card p {
        font-size: 13px;
        line-height: 1.75;
    }

    .bb-order-card-bottom {
        margin-top: 24px;
    }

    .bb-order-cta {
        margin-top: 57px;
        padding: 42px 8px 0;
    }

    .bb-order-cta h3 {
        font-size: clamp(39px, 9vw, 52px);
    }

    .bb-order-cta > p {
        font-size: 13px;
    }

    .bb-order-btn {
        width: 100%;
        max-width: 340px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .bb-order-header h2 {
        font-size: 47px;
    }

    .bb-order-card h3 {
        font-size: 29px;
    }

    .bb-order-cta h3 {
        font-size: 38px;
    }
}


/* =========================================================
   REDUCED MOTION / ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bb-order-section *,
    .bb-order-section *::before,
    .bb-order-section *::after {
        transition-duration: .01s !important;
        transition-delay: 0s !important;
        animation: none !important;
    }

    .bb-order-ready .bb-order-header,
    .bb-order-ready .bb-order-step,
    .bb-order-ready .bb-order-cta {
        opacity: 1;
        transform: none;
    }
}
