/* ==========================================================================
   SBF-Community, theme stylesheet
   Brand palette taken from the logo (charcoal / orange / green / blue)
   ========================================================================== */

:root {
    --sbf-dark:        #2b2b2b;
    --sbf-orange:      #f08a24;
    --sbf-orange-dark: #d9761a;
    --sbf-green:       #16a45f;
    --sbf-green-dark:  #11814b;
    --sbf-blue:        #18a8e8;
    --sbf-blue-dark:   #1188bd;

    --sbf-ink:         #1f2933;
    --sbf-muted:       #5b6770;
    --sbf-line:        #e7ebee;
    --sbf-bg-soft:     #f6f8fa;

    --sbf-radius:      .9rem;
    --sbf-shadow:      0 .75rem 2rem rgba(31, 41, 51, .08);
    --sbf-shadow-lg:   0 1.5rem 3rem rgba(31, 41, 51, .12);

    /* Bootstrap variable overrides */
    --bs-primary:      var(--sbf-blue);
    --bs-body-color:   var(--sbf-ink);
    --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
body {
    font-family: var(--bs-body-font-family);
    color: var(--sbf-ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--sbf-dark);
}

.lead { color: var(--sbf-muted); }
.text-muted-2 { color: var(--sbf-muted) !important; }

a { text-decoration: none; }

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.bg-soft { background-color: var(--sbf-bg-soft); }

/* Coloured eyebrow label above headings */
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sbf-orange);
    margin-bottom: .75rem;
}

/* Brand accent bar under section titles */
.title-accent::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sbf-orange), var(--sbf-green), var(--sbf-blue));
}
.title-accent.text-center::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.5rem; }
.btn-lg { padding: .8rem 2rem; }

.btn-sbf {
    background: var(--sbf-orange);
    border-color: var(--sbf-orange);
    color: #fff;
}
.btn-sbf:hover, .btn-sbf:focus {
    background: var(--sbf-orange-dark);
    border-color: var(--sbf-orange-dark);
    color: #fff;
}

.btn-sbf-blue {
    background: var(--sbf-blue);
    border-color: var(--sbf-blue);
    color: #fff;
}
.btn-sbf-blue:hover, .btn-sbf-blue:focus {
    background: var(--sbf-blue-dark);
    border-color: var(--sbf-blue-dark);
    color: #fff;
}

.btn-outline-sbf {
    border: 2px solid var(--sbf-dark);
    color: var(--sbf-dark);
    background: transparent;
}
.btn-outline-sbf:hover { background: var(--sbf-dark); color: #fff; }

.btn-outline-light-2 {
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
}
.btn-outline-light-2:hover { background: #fff; color: var(--sbf-dark); }

/* ---------- Navbar ---------- */
.navbar-sbf {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--sbf-line);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.navbar-brand { display: inline-flex; align-items: center; gap: .6rem; }
.navbar-brand img { height: 72px; width: auto; }
.navbar-brand .brand-text { font-weight: 600; color: var(--sbf-dark); line-height: 1.2; }
.navbar-sbf .navbar-nav { gap: .2rem; }
.navbar-sbf .nav-link {
    position: relative;
    font-weight: 600;
    font-size: .95rem;
    color: var(--sbf-ink);
    padding: .5rem .95rem;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}
.navbar-sbf .nav-link:hover,
.navbar-sbf .nav-link:focus {
    color: var(--sbf-blue-dark);
    background: rgba(24, 168, 232, .10);
}
.navbar-sbf .nav-link.active {
    color: var(--sbf-blue-dark);
    background: rgba(24, 168, 232, .14);
}
/* Brand: subtle lift on hover */
.navbar-brand { transition: transform .2s ease; }
.navbar-brand:hover { transform: translateY(-1px); }

/* ---------- Hero / banner ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(24,168,232,.12), transparent 60%),
        radial-gradient(900px 500px at 0% 110%, rgba(240,138,36,.12), transparent 55%),
        var(--sbf-bg-soft);
    padding: 5.5rem 0 6rem;
}
.hero h1,
.fs-hero { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.hero .ring-art {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(var(--sbf-shadow));
}
.hero-gradient-word {
    background: linear-gradient(90deg, var(--sbf-orange), var(--sbf-green), var(--sbf-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Thin brand stripe */
.brand-stripe { height: 6px; background: linear-gradient(90deg, var(--sbf-dark) 0 25%, var(--sbf-orange) 25% 50%, var(--sbf-green) 50% 75%, var(--sbf-blue) 75% 100%); }

/* ---------- Cards ---------- */
.card-sbf {
    border: 1px solid var(--sbf-line);
    border-radius: var(--sbf-radius);
    background: #fff;
    box-shadow: var(--sbf-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.card-sbf:hover { transform: translateY(-4px); box-shadow: var(--sbf-shadow-lg); }

.icon-badge {
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}
.bg-c-orange { background: var(--sbf-orange); }
.bg-c-green  { background: var(--sbf-green); }
.bg-c-blue   { background: var(--sbf-blue); }
.bg-c-dark   { background: var(--sbf-dark); }

.text-c-orange { color: var(--sbf-orange) !important; }
.text-c-green  { color: var(--sbf-green) !important; }
.text-c-blue   { color: var(--sbf-blue) !important; }

/* Top-accent program / flyer cards */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: var(--sbf-orange);
}
.feature-card.accent-green::before { background: var(--sbf-green); }
.feature-card.accent-blue::before  { background: var(--sbf-blue); }

/* ---------- Partnerships band ---------- */
.partner-band {
    background: var(--sbf-bg-soft);
    border: 1px solid var(--sbf-line);
    border-left: 4px solid var(--sbf-green);
    border-radius: var(--sbf-radius);
    padding: 2rem 2.25rem;
}
.partner-chip {
    display: inline-flex; align-items: center;
    font-size: .85rem; font-weight: 600;
    color: var(--sbf-ink);
    background: #fff;
    border: 1px solid var(--sbf-line);
    border-radius: 999px;
    padding: .5rem 1rem;
    box-shadow: var(--sbf-shadow);
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.partner-chip:hover {
    transform: translateY(-2px);
    border-color: var(--sbf-green);
    color: var(--sbf-green);
}

/* ---------- Program detail page ---------- */
.program-hero-title {
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* ARISE HER impact stats */
.ah-stat { text-align: center; padding: .5rem 0; }
.ah-stat-num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1; }
.ah-stat-label { font-size: .85rem; font-weight: 600; color: var(--sbf-muted); margin-top: .35rem; }
.ah-deadline-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(240,138,36,.12); color: var(--sbf-orange-dark);
    font-weight: 600; border-radius: 999px; padding: .45rem 1rem; font-size: .9rem;
}

/* ARISE HER hero cut-out on a brand blob */
.ah-hero-visual { position: relative; display: inline-block; }
.ah-hero-visual::before {
    content: ""; position: absolute; left: 50%; top: 52%;
    width: 118%; height: 112%; transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(240,138,36,.20), rgba(24,168,232,.18) 55%, rgba(22,164,95,.18));
    border-radius: 46% 54% 52% 48% / 56% 46% 54% 44%;
    z-index: 0;
}
.ah-hero-visual img { position: relative; z-index: 1; max-height: 480px; width: auto; max-width: 100%; }

/* ARISE HER stats band (on gradient) */
.ah-statsband { background: linear-gradient(120deg, var(--sbf-green), var(--sbf-blue)); color: #fff; }
.ah-statsband .ah-stat-num { color: #fff; }
.ah-statsband .ah-stat-label { color: rgba(255,255,255,.85); }
.ah-statsband .ah-stat + .ah-stat,
.ah-statsband [class*="col-"]:not(:first-child) .ah-stat { border-left: 1px solid rgba(255,255,255,.25); }

/* ARISE HER impact bento grid */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 178px;
    gap: 1rem;
}
.bento-tile {
    border-radius: 1.15rem;
    padding: 1.6rem 1.6rem;
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
    box-shadow: var(--sbf-shadow);
}
.bento-tile .num { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; }
.bento-tile .lbl { font-weight: 600; margin-top: .4rem; }
.bento-dark   { background: var(--sbf-dark);   color: #fff; }
.bento-orange { background: var(--sbf-orange); color: #fff; }
.bento-green  { background: var(--sbf-green);  color: #fff; }
.bento-blue   { background: var(--sbf-blue);   color: #fff; }
.bento-grad   { background: linear-gradient(135deg, var(--sbf-orange), var(--sbf-blue)); color: #fff; text-align: center; align-items: center; }
.bento-img { padding: 0; }
.bento-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-portrait {
    padding: 0; align-items: flex-end; justify-content: center;
    background: linear-gradient(160deg, rgba(24,168,232,.16), rgba(240,138,36,.14));
}
.bento-portrait img { max-height: 100%; width: auto; object-fit: contain; display: block; }

/* Desktop placement (asymmetric mosaic) */
@media (min-width: 992px) {
    .bento .a { grid-column: 1 / 3; grid-row: 1 / 3; }
    .bento .b { grid-column: 3 / 4; grid-row: 1 / 2; }
    .bento .c { grid-column: 4 / 5; grid-row: 1 / 2; }
    .bento .d { grid-column: 3 / 5; grid-row: 2 / 4; }
    .bento .e { grid-column: 1 / 2; grid-row: 3 / 4; }
    .bento .f { grid-column: 2 / 3; grid-row: 3 / 4; }
}
@media (max-width: 991.98px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .a { grid-column: 1 / 3; }
    .bento .d { grid-column: 1 / 3; grid-row: span 2; }
}
@media (max-width: 479.98px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-tile { min-height: 150px; }
    .bento .d { min-height: 340px; }
}

/* Soft bento tile */
.bento-soft { background: var(--sbf-bg-soft); color: var(--sbf-ink); text-align: center; align-items: center; }
.bento-soft .lbl { color: var(--sbf-ink); }

/* ARISE HER About: illustration + stacked blocks */
.about-figure { position: relative; text-align: center; }
.about-figure::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 86%; height: 86%; transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 50%, rgba(24,168,232,.16), rgba(240,138,36,.10) 60%, transparent 72%);
    z-index: 0;
}
.about-figure img { position: relative; z-index: 1; max-width: 100%; max-height: 520px; }
.about-block + .about-block { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--sbf-line); }

/* "read more" orange circular-arrow disclosure */
.readmore-cta { margin-top: 1rem; }
.readmore-cta > summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .65rem;
    font-weight: 700; color: var(--sbf-dark);
}
.readmore-cta > summary::-webkit-details-marker { display: none; }
.readmore-cta .rc-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 50%; background: var(--sbf-orange); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .2s ease, background-color .2s ease;
}
.readmore-cta:hover .rc-icon { background: var(--sbf-orange-dark); }
.readmore-cta[open] .rc-icon { transform: rotate(90deg); }
.readmore-cta .rc-text-less { display: none; }
.readmore-cta[open] .rc-text-more { display: none; }
.readmore-cta[open] .rc-text-less { display: inline; }
.readmore-cta .reveal-body { margin-top: 1.1rem; }

/* About-card native read-more */
.ah-readmore { margin-top: .85rem; }
.ah-readmore > summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 600; color: var(--sbf-blue-dark);
}
.ah-readmore > summary::-webkit-details-marker { display: none; }
.ah-readmore > summary .bi { transition: transform .2s ease; }
.ah-readmore[open] > summary .bi { transform: rotate(180deg); }
.ah-readmore .less-label { display: none; }
.ah-readmore[open] .more-label { display: none; }
.ah-readmore[open] .less-label { display: inline; }
.ah-readmore .reveal-body { margin-top: 1rem; }

/* Framed programme photo */
.program-figure {
    position: relative;
    border-radius: var(--sbf-radius);
    overflow: hidden;
    box-shadow: var(--sbf-shadow-lg);
}
.program-figure img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    transition: transform .6s ease;
}
.program-figure:hover img { transform: scale(1.04); }
/* Flyers / posters: show the whole artwork (no cropping) */
.program-figure-flyer img {
    height: auto;
    max-height: 620px;
    object-fit: contain;
    background: var(--sbf-bg-soft);
}
.program-figure::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
    background: linear-gradient(90deg, var(--sbf-orange), var(--sbf-green), var(--sbf-blue));
}
/* Framed tiles for the on-site photo-story grid (2 per row) */
.story-figure img { height: 360px; max-height: none; }
@media (max-width: 575.98px) {
    .story-figure img { height: 260px; }
}

/* Objective callout band */
.objective-band {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--sbf-line);
    border-left: 5px solid var(--sbf-green);
    border-radius: var(--sbf-radius);
    box-shadow: var(--sbf-shadow);
    padding: 2.25rem 2.5rem;
}
.objective-band .objective-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 18px;
    font-size: 1.9rem; color: #fff;
    background: linear-gradient(135deg, var(--sbf-green), var(--sbf-green-dark));
    box-shadow: 0 .6rem 1.4rem rgba(22,164,95,.30);
}
.objective-band .lead { font-size: 1.1rem; line-height: 1.7; }

/* Initiatives checklist */
.initiatives-list li { align-items: flex-start; }
.initiatives-list .initiative-tick {
    flex-shrink: 0;
    width: 28px; height: 28px;
    margin-right: .85rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(22,164,95,.12);
    color: var(--sbf-green);
    font-size: 1rem;
}

@media (max-width: 575.98px) {
    .objective-band { flex-direction: column; gap: 1rem; padding: 1.75rem; }
}

/* Placeholder media block (flyer / handbook / team photo) */
.media-placeholder {
    border-radius: var(--sbf-radius);
    background:
        repeating-linear-gradient(135deg, rgba(43,43,43,.03) 0 12px, rgba(43,43,43,.06) 12px 24px),
        var(--sbf-bg-soft);
    border: 1px dashed var(--sbf-line);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    color: var(--sbf-muted);
    min-height: 260px;
    text-align: center;
    padding: 1.5rem;
}
.media-placeholder i { font-size: 2.5rem; margin-bottom: .5rem; }

/* ---------- About: SBF ecosystem ---------- */
.gateway-link { text-decoration: none; transition: transform .2s ease; }
.gateway-link h6 { transition: color .2s ease; }
.gateway-link:hover { transform: translateX(4px); }
.gateway-link:hover h6 { color: var(--sbf-orange); }

.tag-current {
    display: inline-block;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sbf-green);
    background: rgba(22, 164, 95, .12);
    border-radius: 999px;
    padding: .15rem .55rem;
    margin-left: .35rem;
    vertical-align: middle;
}

/* ---------- Team ---------- */
.team-photo {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover;
    background: var(--sbf-bg-soft);
    border: 4px solid #fff;
    box-shadow: var(--sbf-shadow);
}
.team-initials {
    width: 120px; height: 120px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.25rem; font-weight: 700; color: #fff;
    box-shadow: var(--sbf-shadow);
}

/* ---------- Leadership cards ---------- */
.leader-card {
    padding: 2.25rem 1.25rem 1.75rem;
    background: #fff;
    border: 1px solid var(--sbf-line);
    border-radius: var(--sbf-radius);
    box-shadow: var(--sbf-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sbf-shadow-lg);
    border-color: transparent;
}

/* Single-colour, brand-blue avatar ring. Works for both initials and photos. */
.leader-avatar {
    position: relative;
    width: 230px; height: 230px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    padding: 5px;                      /* gap that reveals the gradient ring */
    background: linear-gradient(135deg, var(--sbf-blue), var(--sbf-blue-dark));
    box-shadow: 0 .75rem 1.75rem rgba(24, 168, 232, .28);
    transition: transform .3s ease, box-shadow .3s ease;
}
.leader-card:hover .leader-avatar {
    transform: scale(1.04);
    box-shadow: 0 1rem 2.25rem rgba(24, 168, 232, .38);
}
.leader-avatar::after {            /* crisp inner outline between ring and face */
    content: "";
    position: absolute; inset: 5px;
    border-radius: 50%;
    border: 4px solid #fff;
    pointer-events: none;
}
.leader-avatar img,
.leader-initials {
    width: 100%; height: 100%;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.leader-avatar img { object-fit: cover; }
.leader-initials {
    background: linear-gradient(135deg, var(--sbf-blue), var(--sbf-blue-dark));
    color: #fff;
    font-size: 2.6rem; font-weight: 700; letter-spacing: .02em;
    line-height: 1;
    user-select: none;
}
.leader-name {
    color: var(--sbf-dark);
    font-size: 1.075rem;
}
.leader-title {
    margin-top: .35rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--sbf-blue);
}

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--sbf-line);
    border-radius: var(--sbf-radius);
    box-shadow: var(--sbf-shadow);
    padding: 2rem;
}
.form-control, .form-select {
    border-radius: .65rem;
    padding: .7rem .9rem;
    border-color: var(--sbf-line);
}
.form-control:focus, .form-select:focus {
    border-color: var(--sbf-blue);
    box-shadow: 0 0 0 .2rem rgba(24,168,232,.18);
}
.form-label { font-weight: 600; color: var(--sbf-dark); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--sbf-dark);
    color: rgba(255,255,255,.75);
    padding: 3.5rem 0 1.5rem;
}
.site-footer h6 { color: #fff; letter-spacing: .04em; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.1); margin-right: .5rem;
}
.footer-social a:hover { background: var(--sbf-orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .875rem; }
.footer-credit { color: rgba(255,255,255,.45); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--sbf-green), var(--sbf-blue));
    color: #fff;
    border-radius: var(--sbf-radius);
    padding: 3rem;
}
.cta-band h2 { color: #fff; }

/* CTA buttons: consistent sizing + polish on the gradient */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; }
.cta-band .btn-light {
    color: var(--sbf-green-dark);
    box-shadow: 0 .5rem 1.1rem rgba(0, 0, 0, .14);
}
.cta-band .btn-light:hover { color: var(--sbf-green-dark); }
.cta-band .btn-outline-light-2 { background: rgba(255, 255, 255, .1); }

/* ---------- Utilities ---------- */
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.list-check li i { position: absolute; left: 0; top: .2rem; color: var(--sbf-green); }

@media (max-width: 575.98px) {
    .section { padding: 3.25rem 0; }
    .cta-band { padding: 2rem; }
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* ---- Scroll-reveal (toggled by sbf.js via IntersectionObserver) ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
                transform .7s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(.92); }
.reveal-fade  { transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger helpers */
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }

/* Auto-stagger immediate children of a .stagger container */
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.stagger.is-visible > *           { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .13s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .21s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .29s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .37s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .45s; }

/* ---- Keyframes ---- */
@keyframes sbf-float   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes sbf-spin    { to { transform: rotate(360deg); } }
@keyframes sbf-gradient{ 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes sbf-shimmer { to { background-position: 200% 0; } }
@keyframes sbf-pulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes sbf-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---- Hero motion ---- */
.ring-art {
    animation: sbf-float 6s ease-in-out infinite;
    transition: transform .4s ease;
}
.ring-art:hover { animation-play-state: paused; transform: rotate(8deg) scale(1.03); }

.hero h1, .hero .lead, .hero p, .hero .d-flex {
    animation: sbf-fade-up .8s both;
}
.hero .lead     { animation-delay: .12s; }
.hero p         { animation-delay: .2s; }
.hero .d-flex   { animation-delay: .3s; }

/* Animated brand-gradient word */
.hero-gradient-word {
    background-size: 200% auto;
    animation: sbf-gradient 5s linear infinite alternate;
}

/* ---- Brand stripe shimmer ---- */
.brand-stripe {
    background-size: 200% 100%;
    position: relative;
}
.brand-stripe::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: sbf-shimmer 4s linear infinite;
}

/* ---- Buttons: lift on hover ---- */
.btn {
    transition: transform .18s ease, box-shadow .18s ease,
                background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 .6rem 1.2rem rgba(31,41,51,.16); }
.btn:active { transform: translateY(0); }

/* ---- Dropdown caret ---- */
.navbar-sbf .nav-link.dropdown-toggle { display: inline-flex; align-items: center; }
.navbar-sbf .nav-link.dropdown-toggle::after {
    margin-left: .4rem;
    border-top: .34em solid;
    border-right: .28em solid transparent;
    border-left: .28em solid transparent;
    transition: transform .2s ease;
}
.navbar-sbf .nav-link.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* ---- Programs dropdown menu ---- */
.dropdown-menu-sbf {
    border: 1px solid var(--sbf-line);
    border-radius: .85rem;
    box-shadow: 0 1rem 2.5rem rgba(31, 41, 51, .14);
    padding: .4rem;
    margin-top: .65rem;
    min-width: 16rem;
}
.dropdown-menu-sbf .dropdown-item {
    display: flex; align-items: center;
    font-weight: 600;
    font-size: .9rem;
    color: var(--sbf-ink);
    border-radius: .6rem;
    padding: .6rem .85rem;
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}
.dropdown-menu-sbf .dropdown-item:hover,
.dropdown-menu-sbf .dropdown-item:focus {
    background: rgba(24, 168, 232, .10);
    color: var(--sbf-blue-dark);
    padding-left: 1.05rem;
}
.dropdown-menu-sbf .dropdown-item.active {
    background: linear-gradient(120deg, var(--sbf-blue), var(--sbf-blue-dark));
    color: #fff;
}
.dropdown-menu-sbf .dropdown-divider { margin: .35rem .25rem; border-color: var(--sbf-line); }

/* Entrance animation for the dropdown (desktop) */
@media (min-width: 992px) {
    .navbar-sbf .nav-item.dropdown { position: relative; }
    .dropdown-menu-sbf {
        display: block;
        top: 100%; left: 0;
        opacity: 0; visibility: hidden;
        transform: translateY(.5rem);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .dropdown-menu-sbf.show {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
}

/* ---- Mobile menu polish ---- */
@media (max-width: 991.98px) {
    .navbar-sbf .navbar-collapse {
        margin-top: .75rem;
        padding: .5rem;
        background: #fff;
        border: 1px solid var(--sbf-line);
        border-radius: var(--sbf-radius);
        box-shadow: var(--sbf-shadow);
    }
    .navbar-sbf .nav-link { padding: .65rem .9rem; }
    .dropdown-menu-sbf {
        border: none; box-shadow: none; padding-left: .75rem;
        margin: .15rem 0 .25rem;
    }
}

/* Navbar gains a shadow once scrolled (class added by sbf.js) */
.navbar-sbf { transition: box-shadow .3s ease, background-color .3s ease; }
.navbar-sbf.is-scrolled { box-shadow: 0 .4rem 1.5rem rgba(31,41,51,.08); }

/* ---- Card / icon micro-interactions ---- */
.icon-badge { transition: transform .25s ease; }
.card-sbf:hover .icon-badge { transform: scale(1.1) rotate(-4deg); }

.feature-card::before { transition: height .25s ease; }
.feature-card:hover::before { height: 8px; }

/* Footer social spin-in on hover */
.footer-social a { transition: background-color .2s ease, transform .2s ease; }
.footer-social a:hover { transform: translateY(-3px) rotate(8deg); }

/* Title accent bar grows when its section is revealed */
.reveal .title-accent::after,
.title-accent.is-visible::after { animation: sbf-grow-bar .6s .15s both; }
@keyframes sbf-grow-bar { from { width: 0; } to { width: 64px; } }

/* ---- Respect user motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
    .ring-art, .hero h1, .hero .lead, .hero p, .hero .d-flex,
    .hero-gradient-word, .brand-stripe::after { animation: none !important; }
    .btn:hover { transform: none; }
    * { scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

/* ==========================================================================
   Hero banner carousel
   ========================================================================== */
.hero-carousel { position: relative; background: var(--sbf-dark); }

/* Banners are designed graphics with baked-in text, so show the whole image
   at its natural aspect ratio (no cropping) and let it scale on every screen. */
.hero-carousel .carousel-item {
    height: auto;
}
.hero-carousel .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Subtle Ken Burns zoom-out: settles on the full, uncropped image so the
   baked-in banner text is never permanently cut off. */
.hero-carousel .carousel-item.active img {
    animation: sbf-kenburns 7s ease-out both;
}
@keyframes sbf-kenburns { from { transform: scale(1.15); } to { transform: scale(1); } }

/* Dark gradient so caption text stays legible over any image */
.hero-carousel .carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,24,28,.82) 0%, rgba(20,24,28,.55) 45%, rgba(20,24,28,.15) 100%);
}

/* Caption: visible on all breakpoints, left-aligned, constrained to container */
.hero-carousel .carousel-caption {
    inset: 0; right: 0; left: 0; bottom: 0;
    display: flex; align-items: center;
    text-align: left;
    padding: 0;
}
.hero-carousel .carousel-caption .container { width: 100%; }
.hero-carousel .caption-inner { max-width: 640px; }
.hero-carousel .carousel-caption .eyebrow { color: #fff; opacity: .9; }
.hero-carousel .carousel-caption h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.12;
    margin-bottom: 1rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-carousel .carousel-caption p {
    color: rgba(255,255,255,.92);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 1.5rem;
}

/* Branded indicators (pill bars) */
.hero-carousel .carousel-indicators {
    margin-bottom: 1.75rem;
    gap: .5rem;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 32px; height: 5px;
    border-radius: 5px;
    border: 0;
    background: rgba(255,255,255,.45);
    opacity: 1;
    transition: background-color .3s ease, width .3s ease;
}
.hero-carousel .carousel-indicators .active {
    width: 52px;
    background: linear-gradient(90deg, var(--sbf-orange), var(--sbf-blue));
}

/* Circular branded controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: auto;
    opacity: 1;
    align-items: center;
    padding: 0 1rem;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.18);
    background-size: 45% 45%;
    backdrop-filter: blur(4px);
    transition: background-color .25s ease, transform .25s ease;
}
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--sbf-orange);
    transform: scale(1.08);
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { display: none; }
    .hero-carousel .carousel-caption p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item.active img { animation: none; }
}
