/* ==========================================================================
   My BBOS Finds — Instagram contest landing page
   Ported from the web-team design (MyBBOSFinds landing page / index.html).
   Content is ACF-driven via:
     template-parts/heroes/hero-my-bbos-finds.php
     template-parts/sections/mbf-*.php
   Every class is prefixed mbf- and scoped under .mbf-page so nothing leaks
   into the site header or footer.
   ========================================================================== */

.mbf-page {
    --mbf-blue: #1C48AA;
    --mbf-yellow: #F8D648;
    --mbf-ink: #333;
    --mbf-soft: #F8F9FA;
    color: var(--mbf-ink);
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.mbf-page *,
.mbf-page *::before,
.mbf-page *::after { box-sizing: border-box; }
.mbf-page :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.mbf-page img { display: block; max-width: 100%; }
.mbf-page a { text-decoration: none; }
.mbf-page a:focus-visible { outline: 3px solid var(--mbf-blue); outline-offset: 3px; }
.mbf-hero a:focus-visible { outline-color: #fff; }

html:has(.mbf-page) { scroll-behavior: smooth; }
.mbf-page [id] { scroll-margin-top: 100px; } /* clears the sticky site header */

.mbf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mbf-section { padding: 70px 0; }

.mbf-heading {
    text-align: center;
    text-wrap: balance;
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.mbf-lede { max-width: 760px; margin: 14px auto 0; text-align: center; font-size: 19px; }

/* ---- Buttons ---- */
.mbf-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    padding: 13px 26px;
    border-radius: 4px;
    transition: transform .15s ease;
}
.mbf-btn:hover { transform: translateY(-2px); }
.mbf-btn--solid,
.mbf-btn--solid:hover,
.mbf-btn--solid:visited { background: var(--mbf-yellow); color: var(--mbf-blue); }
.mbf-btn--outline,
.mbf-btn--outline:hover,
.mbf-btn--outline:visited { border: 2px solid #fff; color: #fff; border-radius: 24px; padding: 11px 24px; }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.mbf-hero { position: relative; height: 660px; overflow: hidden; background: var(--mbf-blue); color: #fff; }

.mbf-collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
/* The cell box clips its photo; the photo is pinned to the box rather than
   relying on height:100% on a grid item, which iOS Safari resolves too tall. */
.mbf-tile { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.mbf-page .mbf-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.mbf-tint {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 62% 70% at 50% 50%,
        rgba(10, 36, 104, .93) 0%, rgba(14, 50, 138, .80) 62%, rgba(28, 72, 170, .60) 100%);
}

/* Seasonal corner art (holly, garland…). Decoration only. */
.mbf-deco {
    position: absolute;
    z-index: 2;
    width: clamp(130px, 23vw, 330px);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 6px 10px rgba(0, 15, 60, .45));
}
.mbf-deco--tl { top: -14px; left: -14px; }
.mbf-deco--tr { top: -14px; right: -14px; }
.mbf-deco--bl { bottom: -14px; left: -14px; }
.mbf-deco--br { bottom: -14px; right: -14px; }

.mbf-hero-in {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}
.mbf-label {
    background: #fff;
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: clamp(13px, 3.4vw, 22px);
    line-height: 1.5;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: .5em 1.4em .5em 1.62em;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 20, 70, .35);
}
.mbf-title {
    margin-top: 10px;
    color: #fff;
    font-weight: 900;
    font-size: clamp(34px, 10.2vw, 148px);
    line-height: .95;
    letter-spacing: -.03em;
    text-transform: uppercase;
    text-shadow: 0 6px 36px rgba(0, 20, 70, .55);
}
.mbf-title span { color: var(--mbf-yellow); }
.mbf-chip {
    margin-top: 24px;
    display: inline-block;
    max-width: 100%;
    text-wrap: balance;
    background: var(--mbf-yellow);
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: clamp(18px, 2.4vw, 30px);
    line-height: 1.3;
    letter-spacing: -.005em;
    text-transform: uppercase;
    padding: 10px 28px 12px;
    border-radius: 12px;
}
.mbf-hero-btns { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================================
   2. How it works
   ========================================================================== */
.mbf-steps { list-style: none; margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mbf-step {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(28, 72, 170, .14);
}
.mbf-step-pic { position: relative; height: 260px; background: var(--mbf-blue); overflow: hidden; }
.mbf-step-photo { width: 100%; height: 100%; object-fit: cover; }
.mbf-step-num {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 56px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--mbf-blue);
    color: #fff;
    font-weight: 900;
    font-size: 30px;
    line-height: 1;
}
.mbf-step-body { padding: 22px 24px 28px; }
.mbf-step-body h3 {
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.mbf-step-body p { margin-top: 8px; font-size: 17px; overflow-wrap: anywhere; }

/* "photo" visual: round sticker */
.mbf-sticker {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 98px;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mbf-yellow);
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: 24px;
    line-height: .95;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-9deg);
    box-shadow: 0 6px 16px rgba(0, 20, 70, .3);
}

/* "camera" visual: phone-camera frame over the photo */
.mbf-cam { position: absolute; inset: 0; }
.mbf-cam-mode {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    display: flex;
    padding: 4px;
    border-radius: 22px;
    background: rgba(0, 0, 0, .45);
}
.mbf-cam-mode span {
    padding: 5px 16px 6px;
    border-radius: 18px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mbf-cam-mode span.is-on { background: #fff; color: var(--mbf-blue); }
.mbf-cam-shutter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
}
.mbf-cam-shutter i { display: block; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.mbf-cam-corner { position: absolute; width: 36px; height: 36px; border: 0 solid #fff; }
.mbf-cam-corner--tl { left: 24px; top: 64px; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 12px; }
.mbf-cam-corner--tr { right: 24px; top: 64px; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 12px; }
.mbf-cam-corner--bl { left: 24px; bottom: 84px; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 12px; }
.mbf-cam-corner--br { right: 24px; bottom: 84px; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 12px; }

/* "tags" visual: handle + hashtag panel. The two boxes stretch to fill the
   panel; text sizes follow the card width (cqw). */
.mbf-step-pic--tags {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    padding: 74px 16px 16px; /* sides line up with the number badge */
}
.mbf-step-pic--tags .mbf-step-num { background: var(--mbf-yellow); color: var(--mbf-blue); }
.mbf-tags { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.mbf-tag-handle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--mbf-blue);
    font-weight: 900;
    /* Width left for the text = panel - 28px padding - 64px icon + gap.
       "@bboscanada" in Work Sans 900 is 6.75 font-sizes wide; /6.9 keeps
       it on one line with a little room to spare. */
    font-size: clamp(17px, calc((100cqw - 92px) / 6.9), 40px);
    line-height: 1.2;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}
.mbf-tag-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mbf-yellow);
}
.mbf-tag-icon img { width: 28px; height: auto; }
.mbf-tag-hash {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border-radius: 14px;
    background: var(--mbf-yellow);
    color: var(--mbf-blue);
    text-align: center;
    font-weight: 900;
    font-size: clamp(19px, 10cqw, 34px);
    line-height: 1.2;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   3. Prize band
   ========================================================================== */
.mbf-prize { background: var(--mbf-blue); color: #fff; overflow: hidden; }
.mbf-prize-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.mbf-prize-grid > * { min-width: 0; }
.mbf-prize-heading {
    text-wrap: balance;
    font-weight: 900;
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.015em;
    text-transform: uppercase;
}
.mbf-prize-heading span { color: var(--mbf-yellow); }
.mbf-prize-text { margin-top: 16px; max-width: 520px; font-size: 19px; }
.mbf-prize-points { margin-top: 16px; list-style: none; display: grid; gap: 8px; font-weight: 600; font-size: 17px; }
.mbf-prize-points li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--mbf-yellow);
}

/* Gift card: sized in container query units so it scales with its box. */
.mbf-gc-wrap { display: flex; justify-content: center; width: 100%; padding: 16px 8px; }
.mbf-gc-box { width: 100%; max-width: 520px; container-type: inline-size; }
.mbf-gc {
    position: relative;
    width: 100%;
    aspect-ratio: 520 / 353;
    overflow: hidden;
    border-radius: 6.5cqw;
    background: linear-gradient(135deg, #1A57C8 0%, #1C48AA 55%, #123A8C 100%);
    box-shadow: 0 0 0 1.2cqw rgba(255, 255, 255, .92), 0 5cqw 9.6cqw rgba(0, 10, 50, .45);
    color: #fff;
    transform: rotate(-4deg);
}
.mbf-gc .mbf-gc-ribbon { position: absolute; left: 0; top: 0; width: 39.6cqw; height: auto; }
.mbf-gc .mbf-gc-logo { position: absolute; right: 5.4cqw; top: 5cqw; width: 31.2cqw; height: auto; }
.mbf-gc-amount {
    position: absolute;
    right: 6.5cqw;
    top: 20cqw;
    font-weight: 900;
    font-size: 28cqw;
    line-height: 1;
    letter-spacing: -.03em;
}
.mbf-gc-amount sup {
    position: relative;
    top: 2.9cqw;
    margin-right: 1.2cqw;
    font-size: 11.9cqw;
    letter-spacing: 0;
    vertical-align: top;
}
.mbf-gc-label {
    position: absolute;
    right: 6.5cqw;
    bottom: 5.8cqw;
    font-weight: 800;
    font-size: 8.5cqw;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ==========================================================================
   4. Example posts
   ========================================================================== */
.mbf-examples { background: var(--mbf-soft); }
.mbf-posts {
    list-style: none;
    max-width: 1000px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.mbf-post {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    color: #17243A;
    box-shadow: 0 10px 30px rgba(28, 72, 170, .16);
}
.mbf-post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mbf-post-avatar {
    flex: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
}
.mbf-post-user { font-weight: 700; font-size: 17px; }
.mbf-post-shot { position: relative; aspect-ratio: 592 / 580; background: #ddd; }
.mbf-post-shot img { width: 100%; height: 100%; object-fit: cover; }
.mbf-post-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 11px 5px;
    border-radius: 8px;
    background: var(--mbf-yellow);
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mbf-post-actions { display: flex; align-items: center; gap: 14px; padding: 12px 16px 4px; }
.mbf-post-actions svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.mbf-post-spacer { flex: 1; }
.mbf-post-caption { padding: 4px 16px 18px; font-size: 16px; line-height: 1.38; }
.mbf-post-caption b { font-weight: 800; }
.mbf-post-hl { color: var(--mbf-blue); font-weight: 700; }
.mbf-examples-note { margin-top: 22px; text-align: center; font-size: 14px; color: #666; }

.mbf-counts {
    list-style: none;
    max-width: 1000px;
    margin: 44px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mbf-counts li {
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff;
    color: var(--mbf-blue);
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(28, 72, 170, .1);
}
.mbf-counts small { display: block; margin-top: 3px; color: var(--mbf-ink); font-weight: 500; font-size: 15px; }

/* ==========================================================================
   5. Official rules
   ========================================================================== */
.mbf-rules { padding-bottom: 80px; }
.mbf-rules-box { max-width: 860px; margin: 32px auto 0; padding: 30px 34px; border-radius: 16px; background: var(--mbf-soft); }
.mbf-rules-box h3 {
    color: var(--mbf-blue);
    font-weight: 900;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.mbf-rules-box p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
.mbf-rules-box p b { color: var(--mbf-blue); }
.mbf-rules-note { max-width: 860px; margin: 14px auto 0; text-align: center; font-size: 14px; color: #777; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .mbf-hero { height: 620px; }
    .mbf-collage { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); }
    .mbf-tile:nth-child(n+25) { display: none; }
    .mbf-steps,
    .mbf-posts,
    .mbf-counts { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .mbf-prize-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .mbf-section { padding: 54px 0; }
    .mbf-lede { font-size: 17px; }
    .mbf-step-body { padding: 20px 20px 24px; }
    .mbf-gc { transform: rotate(-3deg); }
    .mbf-rules-box { padding: 22px 16px; }
    .mbf-rules-box p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.mbf-page) { scroll-behavior: auto; }
    .mbf-btn { transition: none; }
    .mbf-btn:hover { transform: none; }
}
