/********** BluAkademy site CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg?v=2);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
/********** BluAkademy layout **********/
:root {
    --primary-ink: #0A8F9C;   /* accessible teal for text on white */
    --cta: #077580;           /* white text passes 4.5:1 */
    --hair: #e7eaee;
    --radius: 16px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
    color: var(--primary-ink);
    font-family: 'Nunito', sans-serif;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--primary); }

/*** Top strip + navbar ***/
.topstrip { background: var(--dark); color: #cfd3e6; padding: .45rem 0; font-size: .85rem; }
.topstrip a { color: #fff; font-weight: 600; }
.topstrip a:hover { color: var(--primary); }

.site-nav { box-shadow: 0 1px 0 var(--hair), 0 8px 24px rgba(24, 29, 56, .06); }
.site-nav .navbar-brand { height: auto; padding: .9rem 0; }
.site-nav .navbar-nav .nav-link {
    position: relative;
    margin: 0 14px;
    padding: 26px 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
}
.site-nav .navbar-nav .nav-link.active { color: var(--primary-ink); }
@media (min-width: 992px) {
    .site-nav .navbar-nav .nav-link::after {
        content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px;
        background: var(--primary); transform: scaleX(0); transition: transform .3s;
    }
    .site-nav .navbar-nav .nav-link:hover::after,
    .site-nav .navbar-nav .nav-link.active::after { transform: scaleX(1); }
}
@media (max-width: 991.98px) {
    .site-nav .navbar-nav .nav-link { margin: 0; padding: 10px 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-nav .navbar-nav .nav-link { margin: 0 9px; font-size: 14px; }
}
.site-nav a.btn { height: auto; white-space: nowrap; }

.brand-mark {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; margin-right: .6rem;
    border-radius: 12px; background: var(--primary); color: #fff; font-size: 1.05rem;
}
.brand-word { font-family: 'Nunito', sans-serif; font-size: 1.55rem; font-weight: 700; color: var(--dark); letter-spacing: -.01em; }
.brand-word b { font-weight: 800; color: var(--primary-ink); }
.site-footer .brand-word b { color: var(--primary); }

/*** Rounded components ***/
.btn.rounded-pill { border-radius: 50rem; }

/*** Inner page header: left-aligned, breadcrumb first ***/
.page-header { padding: 4.5rem 0; border-bottom: 4px solid var(--primary); }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/*** Home: hero ***/
.hero { background: var(--light); padding: 4rem 0 6rem; }
.hero h1 { color: var(--dark); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; }
.hero-card {
    position: absolute; left: -24px; bottom: 28px;
    display: flex; align-items: center; gap: .85rem;
    background: #fff; border-radius: var(--radius); padding: .9rem 1.2rem;
    box-shadow: 0 16px 40px rgba(24, 29, 56, .15);
}
.hero-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--light); color: var(--primary-ink); }
@media (max-width: 991.98px) { .hero-card { left: 16px; } .hero { padding-top: 2rem; } }

/*** Home: stats band (overlaps the hero) ***/
.stats-band { position: relative; margin-top: -3rem; background: var(--dark); border-radius: 20px; overflow: hidden; }
.stats-band > div { padding: 1.75rem 1rem; color: #cfd3e6; }
.stats-band > div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.stats-band h2 { color: var(--primary); font-size: 2.4rem; font-weight: 800; }
@media (max-width: 991.98px) { .stats-band > div:nth-child(3) { border-left: 0; } }

/*** Home: feature cards ***/
.feature-card {
    position: relative; height: 100%; padding: 1.75rem;
    background: #fff; border: 1px solid var(--hair); border-radius: var(--radius);
    transition: border-color .3s, transform .3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.feature-num { position: absolute; top: 1.1rem; right: 1.4rem; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--light); -webkit-text-stroke: 1px #c6eef2; }

/*** Home: level cards ***/
.level-card { display: block; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--dark); border: 1px solid var(--hair); }
.level-img { display: block; overflow: hidden; }
.level-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.level-card:hover .level-img img { transform: scale(1.08); }
.level-body { display: block; padding: 1rem 1.2rem 1.2rem; }
.level-body strong { display: block; font-family: 'Nunito', sans-serif; font-size: 1.1rem; }
.level-body small { color: var(--primary-ink); }

/*** Framed images with offset block ***/
.framed-img { position: relative; padding: 0 0 18px 18px; }
.framed-img::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; background: var(--primary); border-radius: 24px; opacity: .2; }
.framed-img img { position: relative; width: 100%; border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.framed-img-right { padding: 0 18px 18px 0; }
.framed-img-right::before { left: auto; right: 0; }

/*** Course + audience cards (rounded, bordered) ***/
.course-item, .team-item { background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; height: 100%; position: relative; transition: box-shadow .3s; }
.course-item:hover, .team-item:hover { box-shadow: 0 16px 40px rgba(24, 29, 56, .08); }
.course-item a.stretched-link { color: var(--primary-ink); }
.course-tier { position: absolute; top: 14px; left: 14px; padding: .25rem .7rem; border-radius: 50rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tier-free { background: #eef2f6; color: #374151; }
.tier-premium { background: #fef3c7; color: #92400e; }

/*** Footer with CTA card ***/
.site-footer { background: var(--dark); margin-top: 8rem !important; }
.footer-cta { position: relative; top: -64px; margin-bottom: -64px; padding: 2.5rem; border-radius: 24px; background: var(--cta); color: #e6fbfd; }
.site-footer .copyright { font-size: 14px; }

/*** Inner pages ***/
.section-title, .section-title.text-start { display: inline-flex; align-items: center; gap: .6rem; padding: 0 !important; background: transparent !important; color: var(--primary-ink) !important; font-family: 'Nunito', sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.section-title::before, .section-title.text-start::before { position: static; width: 28px; height: 2px; top: auto; left: auto; z-index: auto; }
.section-title::after, .section-title.text-start::after { display: none; }
.service-item { border-radius: var(--radius); }
.service-item:hover { margin-top: 0; transform: translateY(-6px); }
.btn:not(.btn-square):not(.btn-sm-square):not(.btn-lg-square):not(.btn-link):not(.btn-social) { border-radius: 50rem; }
.container-xxl .row > [class*="col-"] > img.img-fluid,
.container-xxl .position-relative.h-100 > img { border-radius: 24px; }
.container-xxl .bg-light.p-4, .container-xxl .bg-light.p-5, .team-item, .contact-form-card { border-radius: var(--radius); }

/*** Layering: the navbar always stays above page content ***/
:root { --nav-h: 96px; }
.site-nav { z-index: 1030; }
@media (min-width: 992px) {
    .sticky-col { position: sticky; top: calc(var(--nav-h) + 1.5rem); z-index: 1; }
}

/********** Home page (light, photo-led; one section per screen) **********/
/* Sections are exactly one screen tall. The hero fills what the top strip and the menu leave of
   the first screen. Hover layer: linked cards lift 2px, photographs zoom 1.03, buttons step 1px. */
/* --teal-text: the brand teal darkened to 4.8:1 on white, for small teal text on the home page */
body.home { --strip-h: 0px; --menu-h: 85px; --padt: 133px; --padb: 64px; --ink: #1f2937; --muted-ink: #5b6472; --teal-text: #087E8A; }
@media (min-width: 992px) { body.home { --strip-h: 35px; --menu-h: 90px; --padt: 138px; } }
@media (max-width: 639px) { body.home { --padt: 117px; --padb: 40px; } }
body.home #spinner, body.home .back-to-top { display: none !important; }
/* One screen per section. Once scrolled, the stuck menu sits over the section's top padding. */
html:has(body.home) { scroll-padding-top: 0; }
.home-main > section { height: calc(var(--h, 1) * 100svh); padding: var(--padt) 0 var(--padb); overflow: hidden; background: #fff; }
.home-main > section > .container { position: relative; z-index: 1; height: 100%; }

/* Type */
.h-h1 { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; color: var(--dark); margin: 0; max-width: 13ch; }
.h-h2 { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 3rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; color: var(--dark); margin: 0 0 1rem; max-width: 20ch; }
.h-intro, .home-main .hero__lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink); margin: 0; max-width: 46ch; }
.h-head { margin-bottom: 3rem; }
.h-link { display: inline-flex; align-items: center; margin-top: 2rem; font-weight: 600; color: var(--teal-text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .2s cubic-bezier(.2,.8,.2,1); }
.h-link:hover { color: var(--teal-text); background-size: 100% 1px; }
.h-link i { transition: transform .14s cubic-bezier(.2,.8,.2,1); }
.h-link:hover i { transform: translateX(3px); }

/* Buttons: one pill pair. Step up 1px on hover, sink on press. */
.h-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.h-btn { height: 48px; display: inline-flex; align-items: center; padding: 0 1.5rem; font-size: 1rem; transition: transform .14s cubic-bezier(.2,.8,.2,1), background-color .14s, border-color .14s, color .14s; }
@media (hover: hover) { .h-btn:hover { transform: translateY(-1px); } }
.h-btn:active { transform: translateY(1px) scale(.985); transition-duration: .09s; }

/* Hero */
.h-hero { height: calc(100svh - var(--strip-h) - var(--menu-h)) !important; padding: 2.5rem 0 1.5rem !important; background: linear-gradient(180deg, #fff 0%, var(--light) 100%) !important; }
.h-hero > .container { display: flex; flex-direction: column; }
.h-hero-head { display: grid; gap: 1.25rem 1.5rem; align-items: end; }
@media (min-width: 1024px) { .h-hero-head { grid-template-columns: repeat(12, 1fr); gap: 1.25rem 24px; } .h-hero-head .h-h1 { grid-column: 1 / 8; } .h-hero-side { grid-column: 9 / 13; } }
@media (min-width: 1024px) and (max-width: 1279px) { .h-hero-head .h-h1 { grid-column: 1 / 7; } .h-hero-side { grid-column: 7 / 13; padding-left: 0; } .h-hero .hero__lead { font-size: 1rem; } }

/* Grids on the 12 columns, 24px gutter (no negative-margin rows) */
.h-grid { display: grid; gap: 24px; }
.h-grid-4 { grid-template-columns: repeat(4, 1fr); }
.h-grid-3 { grid-template-columns: repeat(3, 1fr); }
.h-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.h-split-text { grid-column: 1 / 6; }
.h-split-vis { grid-column: 7 / 13; height: 100%; }
@media (max-width: 991px) {
    .h-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .h-split { grid-template-columns: 1fr; gap: 2rem; }
    .h-split-text, .h-split-vis { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .h-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .h-grid { gap: 12px; } }
.h-stage { flex: 1; min-height: 0; margin-top: 2rem; display: flex; }
.h-window { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; }
.h-window-top { display: flex; align-items: center; gap: 1.5rem; background: var(--dark); color: #fff; padding: .7rem 1.25rem; font-size: .95rem; }
.h-window-title { font-weight: 600; white-space: nowrap; }
.h-tabs { display: flex; gap: .25rem; flex: 1; overflow: hidden; }
.h-tabs b { font-weight: 500; padding: .3rem .8rem; border-radius: 999px; color: #c9cee0; white-space: nowrap; }
.h-tabs b.on { background: rgba(255,255,255,.14); color: #fff; }
.h-timer { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 1.15rem; background: rgba(255,255,255,.12); border-radius: 6px; padding: .1rem .6rem; }
.h-window-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; padding: 1.5rem; background: #f6f8fa; overflow: hidden; }
.h-q { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; min-height: 0; }
.h-q-num { font-size: .875rem; color: var(--muted-ink); margin: 0 0 .35rem; }
.h-q-stem { font-size: 1.15rem; color: var(--dark); margin: 0 0 1rem; }
.h-opts { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.h-opt { display: flex; align-items: center; gap: .8rem; border: 2px solid var(--hair); border-radius: 8px; padding: .55rem .9rem; font-size: 1.05rem; color: var(--dark); }
.h-opt b { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #eef2f6; display: grid; place-items: center; font-size: .85rem; }
.h-opt.sel { border-color: var(--teal-text); background: var(--light); }
.h-opt.sel b { background: var(--teal-text); color: #fff; }
.h-q-foot { display: flex; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.h-q-foot span { border-radius: 8px; padding: .4rem 1rem; font-size: .9rem; border: 1px solid var(--hair); color: var(--ink); }
.h-q-foot .h-next { margin-left: auto; background: var(--primary-ink); border-color: var(--primary-ink); color: #fff; font-weight: 600; }
.h-side { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 1.25rem; overflow: hidden; }
.h-side-label { font-size: .875rem; color: var(--muted-ink); margin: 0 0 .75rem; }
.h-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.h-palette i { font-style: normal; height: 30px; border: 1px solid #cbd5e1; border-radius: 6px; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: var(--ink); position: relative; }
.h-palette i.a { background: var(--primary-ink); border-color: var(--primary-ink); color: #fff; }
.h-palette i.c { outline: 2px solid var(--dark); outline-offset: 1px; }
.h-palette i.f::after { content: ""; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.h-side-keys { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; font-size: .8rem; color: var(--muted-ink); }
.h-side-keys .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid #cbd5e1; margin-right: .35rem; vertical-align: -1px; }
.h-side-keys .k.a { background: var(--primary-ink); border-color: var(--primary-ink); }
.h-side-keys .k.f { background: #f59e0b; border-color: #f59e0b; }

/* Cards with a photograph: one style for levels and steps */
.h-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; color: var(--dark); }
a.h-card { transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .14s; }
@media (hover: hover) { a.h-card:hover { transform: translateY(-2px); border-color: #c9d1da; color: var(--dark); } }
.h-photo { display: block; overflow: hidden; }
.h-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { a.h-card:hover .h-photo img, a.h-photo:hover img { transform: scale(1.03); } }
.h-level .h-photo { aspect-ratio: 4 / 3; }
.h-step .h-photo { aspect-ratio: 3 / 2; }
.h-card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.5rem 1.5rem; }
.h-card-body strong { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
.h-card-body > span:not(.h-num) { font-size: 1rem; line-height: 1.55; color: var(--ink); }
.h-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--light); color: var(--teal-text); font-weight: 800; display: grid; place-items: center; margin-bottom: .35rem; }

/* Smart Matcher panel */
.h-panel { background: var(--light); border-radius: 16px; padding: 2.5rem; }
.h-match { background: #fff; border: 1px solid var(--hair); border-radius: 10px; }
.h-match-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-bottom: 1px solid var(--hair); font-size: .95rem; }
.h-match-top strong { color: var(--dark); }
.h-match-top span { color: var(--muted-ink); }
.h-match-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--hair); }
.h-match-row:last-child { border-bottom: 0; }
.h-match-row strong { display: block; color: var(--dark); font-weight: 600; }
.h-match-row span { font-size: .875rem; color: var(--muted-ink); }
.h-match-row em { font-style: normal; font-size: .85rem; font-weight: 600; border-radius: 999px; padding: .25rem .75rem; white-space: nowrap; }
.h-match-row em.ok { background: #e6f4ea; color: var(--good, #1a7f37); }
.h-match-row em.no { background: #fdecea; color: var(--bad, #c62828); }

/* Rows (families) and the tall photograph */
.h-rows { list-style: none; padding: 0; margin: 2rem 0 0; }
.h-rows li { padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.h-rows li:first-child { border-top: 1px solid var(--hair); }
.h-rows strong { display: block; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--dark); margin-bottom: .2rem; }
.h-rows span { color: var(--ink); }
.h-photo-grad { width: 260px; aspect-ratio: 1; border-radius: 16px; margin-top: 2rem; }
@media (max-width: 991px) { .h-photo-grad { display: none; } }
.h-photo-tall { border-radius: 16px; height: 100%; max-height: 640px; }

/* Plans */
/* plan cards: list then the button at the foot */
.h-plan { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--hair); border-radius: 16px; padding: 2rem; background: #fff; }
.h-plan-main { border: 2px solid var(--teal-text); }
.h-plan-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--dark); }
.h-price { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--dark); margin: .5rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.h-price span { font-family: 'Heebo', sans-serif; font-weight: 400; font-size: 1rem; color: var(--muted-ink); }
.h-plan-btn { margin-top: auto; justify-content: center; }
.h-plan ul { list-style: none; padding: 1.25rem 0 0; margin: 0 0 1.5rem; border-top: 1px solid var(--hair); }
.h-plan li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.h-plan li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: .45rem; font-size: .8rem; color: var(--primary-ink); }

/* Tablet and phone: stack, let the content set the height where a screen cannot hold it */
@media (max-width: 1023px) {
    .h-window-body { grid-template-columns: 1fr; }
    .h-side { display: none; }
    .h-tabs { display: none; }
    .h-hero-side { max-width: 40rem; }
}
@media (max-width: 991px) {
    .h-photo-tall { height: 340px; }
    .h-panel { padding: 1.5rem; }
}
@media (max-width: 639px) {
    .h-hero { padding-top: 1.5rem !important; }
    .h-hero .h-stage { margin-top: 1.5rem; position: relative; }
    .h-hero .h-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(rgba(240,251,252,0), var(--light)); pointer-events: none; }
    .h-window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .h-q-foot { display: none; }
    .h-head { margin-bottom: 1.5rem; }
    .h-level .h-card-body > span { display: none; }
    .h-card-body { padding: .9rem 1rem 1rem; }
    .h-card-body strong { font-size: 1.05rem; }
    .h-step { flex-direction: row; }
    .h-step .h-photo { flex: 0 0 120px; aspect-ratio: auto; }
    .h-step .h-num { display: none; }
    .h-step .h-card-body > span:not(.h-num) { font-size: .95rem; }
    .h-panel { padding: .75rem; }
    .h-match-row:nth-child(n+5) { display: none; }
    .h-match-row, .h-match-top { padding: .75rem 1rem; }
    .h-photo-tall { height: 200px; }
    .h-rows { margin-top: 1rem; }
    .h-rows li { padding: .75rem 0; }
    .h-link { margin-top: 1rem; }
    #prices { --h: 2; }
    .h-plan { padding: 1.5rem; }
    .h-btns .h-btn { width: 100%; justify-content: center; }
    .h-opts { grid-template-columns: 1fr; }
    .h-window-body { padding: 1rem; }
    .h-match-row { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .h-card, .h-photo img, .h-btn, .h-link, .h-link i { transition: none !important; }
}

/* Home page accessibility pass (UI/UX checklist): contrast, focus, touch targets, text size */
body.home .btn-primary, body.home .btn-primary:hover, body.home .btn-primary:focus { color: var(--dark); }   /* dark label on brand teal: 7.6:1 (white was 2.4:1) */
body.home .site-nav .navbar-nav .nav-link.active { color: var(--teal-text); }
.home-main a:focus-visible, body.home .site-nav a:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; border-radius: 6px; box-shadow: none; }
.home-main a.h-card:focus-visible, .home-main a.h-photo:focus-visible { border-radius: 16px; }
.h-link { min-height: 44px; }
@media (max-width: 639px) { .h-step .h-card-body > span:not(.h-num) { font-size: 1rem; } }

/********** Site chrome v2: the home page's look on every inner page (menu, paper header, cream footer) **********/
:root { --paper: #F6F1E6; --paper-2: #EDE5D4; --rule: #D6E1E8; --margin: #E2A49B; --red-pen: #C8352B; --ink-2: #4A4E63; --teal-text: #087E8A; --gut: clamp(20px, 5.5vw, 80px); }
body.v2 { font-family: 'Heebo', system-ui, sans-serif; color: #1f2937; background: #fff; }
body.v2 .wow { visibility: visible !important; animation: none !important; }
/* menu */
.ba-nav { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid rgb(24 29 56 / .1); }
.ba-nav .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.ba-logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 'Nunito', sans-serif; color: var(--dark); letter-spacing: -.02em; white-space: nowrap; }
.ba-logo img { width: 30px; height: 30px; border-radius: 8px; }
.ba-logo b { color: var(--teal-text); font-weight: inherit; }
.ba-logo:hover { color: var(--dark); }
.ba-links { display: flex; gap: 28px; margin: 0 auto; }
.ba-links a { position: relative; font: 500 15px/1 'Heebo', sans-serif; color: var(--dark); padding: 8px 0; }
.ba-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dark); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.ba-links a:hover::after, .ba-links a[aria-current="page"]::after { transform: scaleX(1); }
.ba-links a:hover { color: var(--dark); }
.ba-actions { display: flex; align-items: center; gap: 18px; }
.ba-signin { font: 500 15px/1 'Heebo', sans-serif; color: var(--dark); }
.ba-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--primary); color: var(--dark); font: 500 15px/1 'Heebo', sans-serif; white-space: nowrap; transition: transform .14s, background-color .14s; }
.ba-btn:hover { color: var(--dark); background: #05aab9; transform: translateY(-1px); }
.ba-btn:active { transform: translateY(1px) scale(.985); }
.ba-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(24 29 56 / .2); background: #fff; align-items: center; justify-content: center; }
.ba-links a:focus-visible, .ba-btn:focus-visible, .ba-signin:focus-visible, .ba-toggle:focus-visible, .ba-logo:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 991.98px) {
  .ba-toggle { display: inline-flex; }
  .ba-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid rgb(24 29 56 / .1); padding: 8px var(--gut) 20px; flex-direction: column; align-items: stretch; gap: 0; }
  .ba-menu.open { display: flex; }
  .ba-links { flex-direction: column; gap: 0; margin: 0; }
  .ba-links a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgb(24 29 56 / .08); }
  .ba-links a::after { display: none; }
  .ba-actions { flex-direction: column; align-items: stretch; margin-top: 16px; gap: 12px; }
  .ba-btn { justify-content: center; height: 48px; }
  .ba-signin { text-align: center; padding: 10px; }
}
@media (min-width: 992px) { .ba-menu { display: flex; align-items: center; flex: 1; gap: 24px; } }
@media (max-width: 400px) { .ba-logo { font-size: 19px; } .ba-logo img { width: 24px; height: 24px; } }
/* paper page header */
.ba-header { background:
    linear-gradient(90deg, transparent calc(var(--gut) - 18px), var(--margin) calc(var(--gut) - 18px), var(--margin) calc(var(--gut) - 16px), transparent calc(var(--gut) - 16px)),
    repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px), var(--paper);
  padding: 64px 0 56px; margin-bottom: 56px; }
.ba-crumbs { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 18px; font: 500 13px/1.4 'IBM Plex Mono', ui-monospace, monospace; color: var(--ink-2); }
.ba-crumbs li + li::before { content: "·"; margin-right: 10px; color: var(--margin); }
.ba-crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ba-header h1 { font: 800 clamp(40px, 5vw, 72px)/.98 'Bricolage Grotesque', 'Nunito', sans-serif; letter-spacing: -.035em; color: var(--dark); margin: 0; max-width: 18ch; }
.ba-header h1 em { font-style: normal; color: var(--teal-text); position: relative; white-space: nowrap; }
.ba-header h1 em svg { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .3em; overflow: visible; }
.ba-header p { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; }
/* cream footer with the slim close */
.ba-footer { background: var(--paper); padding: 64px 0 40px; margin-top: 72px; color: var(--dark); }
.ba-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 36px 44px; border-radius: 16px; background: var(--paper-2); }
.ba-close h2 { font: 800 clamp(26px, 2.4vw, 34px)/1.12 'Nunito', sans-serif; margin: 0; color: var(--dark); }
.ba-close p { margin: 6px 0 0; font-size: 17px; color: #1f2937; }
.ba-cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.ba-cols h3 { font: 500 14px/1.3 'Heebo', sans-serif; color: var(--ink-2); margin: 0 0 14px; }
.ba-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ba-cols a { color: var(--dark); font-size: 15px; }
.ba-cols a:hover { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.ba-lede { font: 700 22px/1.3 'Nunito', sans-serif; margin: 16px 0 0; max-width: 18ch; }
.ba-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(24 29 56 / .12); font-size: 14px; color: var(--ink-2); }
.ba-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991.98px) { .ba-cols { grid-template-columns: repeat(2, 1fr); } .ba-cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .ba-close { padding: 28px 22px; } .ba-close .ba-btn { width: 100%; justify-content: center; } .ba-header { padding: 44px 0 40px; } }
/* contrast on the restyled pages: teal text uses the darker teal; teal buttons carry the dark label */
body.v2 .text-primary { color: var(--teal-text) !important; }
body.v2 .btn-primary, body.v2 .btn-primary:hover, body.v2 .btn-primary:focus { color: var(--dark) !important; }
body.v2 h1, body.v2 h2, body.v2 h3, body.v2 h4, body.v2 h5 { color: var(--dark); }
body.v2 .bg-primary .text-white, body.v2 .bg-primary.text-white { color: var(--dark) !important; }
@media (max-width: 575.98px) { .ba-header { --gut: 22px; } }
