/* ============================================================
   Recalibrate — The Overhaul Academy
   Ported from the design canvas (Recalibrate Academy.dc.html)
   ============================================================ */

html, body { margin: 0; padding: 0; background: #FFF8F3; scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #3A0F2A;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

a { color: #C2416A; text-decoration: none; }
a:hover { color: #A8386A; }
::selection { background: #F4B9C8; color: #3A0F2A; }
input::placeholder { color: rgba(58, 15, 42, .45); }

a:focus-visible,
button:focus-visible { outline: 2px solid #E3B778; outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif; }

@keyframes driftA { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vw, -3vh, 0) scale(1.12); } }
@keyframes driftB { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); } 50% { transform: translate3d(-5vw, 4vh, 0) scale(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- page shell -------------------------------------------------------- */

.ra-root { position: relative; background: #FFF8F3; color: #3A0F2A; overflow-x: clip; }

.ra-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ra-bg span { position: absolute; border-radius: 50%; display: block; }
.ra-bg span:nth-child(1) { top: -14%; left: -8%; width: 52vw; height: 52vw; background: radial-gradient(circle, rgba(226, 96, 127, .36), transparent 66%); filter: blur(52px); animation: driftA 22s ease-in-out infinite; }
.ra-bg span:nth-child(2) { bottom: -18%; right: -10%; width: 56vw; height: 56vw; background: radial-gradient(circle, rgba(227, 183, 120, .26), transparent 66%); filter: blur(58px); animation: driftB 27s ease-in-out infinite; }
.ra-bg span:nth-child(3) { top: 38%; left: 44%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(155, 107, 168, .34), transparent 68%); filter: blur(60px); animation: driftA 33s ease-in-out infinite; }

.ra-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: rgba(58, 15, 42, .1); }
.ra-progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, #E3B778, #E2607F, #F4B9C8); transition: width .12s linear; }

.ra-shell { position: relative; z-index: 2; }

/* ---- header ---------------------------------------------------------- */

.ra-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 5vw;
    background: rgba(255, 248, 243, .72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(58, 15, 42, .12);
}
.ra-header__logo { height: 54px; width: auto; display: block; }
.ra-nav { display: flex; align-items: center; gap: 26px; }
.ra-nav__link { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(58, 15, 42, .78); }
.ra-nav__link:hover { color: #C2416A; }

.ra-nav__apply {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 11px 22px;
    border-radius: 999px;
    background: #F4B9C8;
    color: #3A0F2A;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.ra-nav__apply:hover { background: #FBD7E0; color: #3A0F2A; }

.ra-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 13px;
    border: 1px solid rgba(58, 15, 42, .3);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.ra-burger:hover { border-color: #C2416A; }
.ra-burger span { display: block; width: 18px; height: 2px; background: #3A0F2A; }
.ra-burger span:nth-child(2) { width: 12px; background: #F4B9C8; }

/* programs dropdown — CSS hover */
.ra-drop { position: relative; display: flex; align-items: center; }
.ra-drop__trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(58, 15, 42, .78);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.ra-drop:hover .ra-drop__trigger,
.ra-drop:focus-within .ra-drop__trigger { color: #C2416A; }
.ra-drop__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .14s ease;
}
.ra-drop:hover .ra-drop__menu,
.ra-drop:focus-within .ra-drop__menu { opacity: 1; visibility: visible; }
.ra-drop__panel {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid rgba(226, 96, 127, .35);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(58, 15, 42, .18);
    overflow: hidden;
}
.ra-drop__item { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; color: #3A0F2A; }
.ra-drop__item + .ra-drop__item { border-top: 1px solid rgba(58, 15, 42, .1); }
.ra-drop__item:hover { background: rgba(244, 185, 200, .28); color: #C2416A; }
.ra-drop__item strong { font-size: 15px; font-weight: 700; }
.ra-drop__item span { font-size: 12px; color: rgba(58, 15, 42, .55); }

/* ---- dot-spine navigator -------------------------------------------- */

.ra-spine {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 92vw;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(244, 185, 200, .28);
    box-shadow: 0 16px 40px rgba(58, 15, 42, .16);
    backdrop-filter: blur(14px);
}
.ra-spine__label { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #A8386A; white-space: nowrap; }
.ra-spine__rule { width: 1px; height: 18px; background: rgba(58, 15, 42, .22); display: block; }
.ra-spine__dots { display: flex; align-items: center; gap: 9px; }
.ra-spine__dot {
    display: block;
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(58, 15, 42, .26);
    transition: width .25s ease, background .25s ease;
}
.ra-spine__dot.is-active { width: 26px; background: #E2607F; }

/* ---- site-map overlay --------------------------------------------- */

.ra-map { position: fixed; inset: 0; z-index: 150; background: rgba(255, 248, 243, .97); backdrop-filter: blur(10px); overflow-y: auto; }
.ra-map[hidden] { display: none; }
.ra-map__bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 5vw; border-bottom: 1px solid rgba(58, 15, 42, .12); }
.ra-map__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: #A8386A; }
.ra-map__close {
    width: 42px; height: 42px;
    border: 1px solid rgba(58, 15, 42, .3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    color: #3A0F2A;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    line-height: 1;
}
.ra-map__close:hover { border-color: #E2607F; color: #E2607F; }
.ra-map__grid { max-width: 1240px; margin: 0 auto; padding: 56px 5vw 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ra-map__item { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border: 1px solid rgba(58, 15, 42, .16); border-radius: 18px; color: #3A0F2A; background: rgba(58, 15, 42, .03); }
.ra-map__item:hover { border-color: #C2416A; background: rgba(244, 185, 200, .1); color: #3A0F2A; }
.ra-map__num { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: #E2607F; }
.ra-map__label { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 700; line-height: 1.1; }
.ra-map__note { font-size: 15px; line-height: 1.5; color: rgba(58, 15, 42, .6); }

/* ---- shared section bits ----------------------------------------- */

.ra-section { position: relative; padding: 96px 5vw; scroll-margin-top: 90px; }
.ra-wrap { max-width: 1280px; margin: 0 auto; }
.ra-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: #A8386A; }
.ra-eyebrow--light { color: #F4B9C8; }
.ra-h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(36px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.03; }
.ra-lead { margin: 0; font-size: 19px; line-height: 1.7; color: rgba(58, 15, 42, .68); }

.ra-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 17px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}
.ra-btn--pink { background: #F4B9C8; color: #3A0F2A; }
.ra-btn--pink:hover { background: #FBD7E0; color: #3A0F2A; }
.ra-btn--ghost { background: transparent; border: 1px solid rgba(58, 15, 42, .32); color: #3A0F2A; font-weight: 700; }
.ra-btn--ghost:hover { border-color: #C2416A; color: #C2416A; }
.ra-btn--gold { background: linear-gradient(90deg, #E2607F, #E3B778); color: #3A0F2A; }
.ra-btn--gold:hover { filter: brightness(1.06); color: #3A0F2A; }
.ra-btn--ghost-light { background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #FFFFFF; font-weight: 700; }
.ra-btn--ghost-light:hover { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

.ra-dark { background: #3A0F2A; color: #FFF3E6; }

/* ---- hero ---------------------------------------------------------- */

.ra-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: center; }
.ra-hero__badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid rgba(226, 96, 127, .45);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #C2416A;
}
.ra-hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: #E2607F; display: block; }
.ra-hero__h1 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(34px, 5.2vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; color: #3A0F2A; }
.ra-hero__h1 u { text-decoration: underline; text-decoration-color: #E3B778; text-decoration-thickness: 6px; text-underline-offset: 8px; }
.ra-hero__tagline { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(24px, 2.7vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: rgba(58, 15, 42, .9); }
.ra-hero__p { margin: 0; max-width: 600px; font-size: 19px; line-height: 1.7; color: rgba(58, 15, 42, .68); }
.ra-hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
.ra-hero__halo { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, #E2607F, #9B6BA8, #E3B778, #E2607F); filter: blur(48px); opacity: .5; }
.ra-hero__art img { position: relative; width: 100%; max-width: 420px; height: auto; display: block; }

/* ---- marquee ----------------------------------------------------- */

.ra-marquee { overflow: hidden; padding: 16px 0; border-top: 1px solid rgba(58, 15, 42, .12); border-bottom: 1px solid rgba(58, 15, 42, .12); background: rgba(58, 15, 42, .03); }
.ra-marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ra-marquee__group { display: flex; gap: 44px; padding-right: 44px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(58, 15, 42, .7); white-space: nowrap; }
.ra-marquee__group b { color: #A8386A; font-weight: 700; }

/* ---- pillars --------------------------------------------------- */

.ra-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ra-pillar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 26px;
    min-height: 270px;
    border-radius: 24px;
    background: #FFF8F3;
    color: #3A0F2A;
    border: 1px solid rgba(255, 243, 230, .45);
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ra-pillar__num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .2em; color: #C2416A; transition: color .3s ease; }
.ra-pillar__title { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.ra-pillar__text { margin: 0; font-size: 16px; line-height: 1.65; color: rgba(58, 15, 42, .7); transition: color .3s ease; }
.ra-pillar:hover { transform: translateY(-6px); background: var(--accent); color: var(--ink); border-color: var(--accent); box-shadow: 0 18px 40px rgba(58, 15, 42, .32); }
.ra-pillar:hover .ra-pillar__num,
.ra-pillar:hover .ra-pillar__text { color: var(--ink); }

/* ---- FAQ ------------------------------------------------------- */

.ra-faq__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; }
.ra-faq__tabs { display: flex; gap: 10px; padding: 6px; border: 1px solid rgba(58, 15, 42, .2); border-radius: 999px; }
.ra-faq__tab { padding: 11px 24px; border: none; border-radius: 999px; cursor: pointer; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; background: transparent; color: rgba(58, 15, 42, .75); }
.ra-faq__tab.is-active { background: linear-gradient(90deg, #E2607F, #E3B778); color: #3A0F2A; }
.ra-faq__panel { display: flex; flex-direction: column; border-top: 1px solid rgba(58, 15, 42, .16); }
.ra-faq__panel[hidden] { display: none; }
.ra-faq__item { border-bottom: 1px solid rgba(58, 15, 42, .16); }
.ra-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 26px; width: 100%; padding: 26px 4px; cursor: pointer; background: none; border: none; text-align: left; font-family: inherit; }
.ra-faq__q-text { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(19px, 2vw, 26px); font-weight: 700; letter-spacing: -.01em; color: #3A0F2A; }
.ra-faq__sign { flex: none; font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; color: #E2607F; }
.ra-faq__item.is-open .ra-faq__q-text,
.ra-faq__item.is-open .ra-faq__sign { color: #C2416A; }
.ra-faq__a { margin: 0; max-width: 70ch; padding: 0 80px 28px 4px; font-size: 17px; line-height: 1.75; color: rgba(58, 15, 42, .68); }
.ra-faq__item:not(.is-open) .ra-faq__a { display: none; }

/* ---- apply modals (native dialog) --------------------------- */

dialog.ra-modal {
    width: min(820px, 92vw);
    height: 94vh;
    max-width: none;
    max-height: none;
    padding: 0;
    border: none;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(58, 15, 42, .3);
    overflow: hidden;
    background: #FFFFFF;
}
dialog.ra-modal::backdrop { background: rgba(58, 15, 42, .55); backdrop-filter: blur(6px); }
.ra-modal__body { display: flex; flex-direction: column; height: 100%; }
.ra-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: linear-gradient(90deg, #A8386A, #7E4E96); }
.ra-modal__title { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 700; color: #FFFFFF; white-space: nowrap; }
.ra-modal__close {
    width: 38px; height: 38px; flex: none;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.ra-modal__close:hover { border-color: #E2607F; color: #E2607F; }
.ra-modal__frame { flex: 1; width: 100%; border: none; display: block; background: #FFFFFF; }

/* ---- blog -------------------------------------------------- */

.ra-blogcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(58, 15, 42, .16); border-color: rgba(194, 65, 106, .4) !important; }

/* ---- footer ------------------------------------------------- */

.ra-footer { padding: 36px 5vw 108px; border-top: 1px solid rgba(58, 15, 42, .14); }
.ra-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.ra-footer__logo { height: 74px; width: auto; display: block; }
.ra-footer__copy { margin: 0; font-size: 14px; color: rgba(58, 15, 42, .72); }

/* ---- responsive ------------------------------------------------- */

@media (max-width: 900px) {
    .ra-nav { gap: 16px; }
    .ra-nav__link, .ra-drop { display: none; }
    .ra-spine__label { display: none; }
}

@media (max-width: 720px) {
    h1 { letter-spacing: -.02em; }
    .ra-section { padding-left: 22px; padding-right: 22px; }
    .ra-header { padding-left: 20px; padding-right: 20px; }
    .ra-spine { gap: 10px; padding: 10px 14px; }
    .ra-spine__rule { display: none; }
}
