/* ==========================================================================
   MyStride Support - brand stylesheet (loaded after Bootstrap 5.3)
   Brand colours from the client's visual guide:
     Navy #0D3D73 | Teal #08A4B6 | Green #78BE20 | Pink #D91872 | Sky #1596D2
   "-text" variants are slightly deeper shades used wherever colour carries
   text or white text sits on it, so contrast meets WCAG AA (4.5:1).
   ========================================================================== */

:root {
    --ms-navy: #0D3D73;
    --ms-navy-dark: #0A2F59;
    --ms-teal: #08A4B6;
    --ms-teal-text: #067C89;      /* teal for text & button backgrounds (AA) */
    --ms-teal-dark: #05646F;
    --ms-teal-soft: #E6F6F8;
    --ms-green: #78BE20;
    --ms-green-text: #4A7A12;
    --ms-green-soft: #F0F8E6;
    --ms-pink: #D91872;
    --ms-pink-text: #B8135F;
    --ms-pink-soft: #FCE8F1;
    --ms-sky: #1596D2;
    --ms-sky-soft: #E7F4FB;
    --ms-white: #FFFFFF;
    --ms-charcoal: #2B3440;
    --ms-muted: #56606B;
    --ms-border: #DCE4EC;
    --ms-bg-alt: #F6F9FC;
    --ms-radius: 1rem;
    --ms-shadow: 0 6px 24px rgba(13, 61, 115, 0.08);

    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-color: var(--ms-charcoal);
    --bs-body-bg: var(--ms-white);
    --bs-link-color: var(--ms-teal-text);
    --bs-link-color-rgb: 6, 124, 137;
    --bs-link-hover-color: var(--ms-navy);
    --bs-link-hover-color-rgb: 13, 61, 115;
    --bs-border-color: var(--ms-border);
}

html { scroll-padding-top: 90px; }

body {
    font-size: 1.0625rem;
    line-height: 1.7;
    background: var(--ms-white);
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    color: var(--ms-navy);
    font-weight: 700;
    line-height: 1.25;
}

h1, .h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: 1.3rem; }

.lead { color: var(--ms-muted); font-size: 1.15rem; }

.text-navy { color: var(--ms-navy) !important; }
.text-teal { color: var(--ms-teal-text) !important; }

a { text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid var(--ms-sky);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--ms-navy);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: .5rem;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: 999px;
    padding: .8rem 1.6rem;
    font-size: 1rem;
    border-width: 2px;
}
.btn-lg { padding: .95rem 2rem; font-size: 1.075rem; }
.btn-sm-nav { padding: .5rem 1.15rem; font-size: .95rem; }

.btn-teal {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ms-teal-text);
    --bs-btn-border-color: var(--ms-teal-text);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ms-teal-dark);
    --bs-btn-hover-border-color: var(--ms-teal-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ms-teal-dark);
    --bs-btn-active-border-color: var(--ms-teal-dark);
}

.btn-navy {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ms-navy);
    --bs-btn-border-color: var(--ms-navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ms-navy-dark);
    --bs-btn-hover-border-color: var(--ms-navy-dark);
    --bs-btn-active-bg: var(--ms-navy-dark);
    --bs-btn-active-color: #fff;
}

.btn-outline-navy {
    --bs-btn-color: var(--ms-navy);
    --bs-btn-border-color: var(--ms-navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ms-navy);
    --bs-btn-hover-border-color: var(--ms-navy);
    --bs-btn-active-bg: var(--ms-navy);
    --bs-btn-active-color: #fff;
}

.btn-white {
    --bs-btn-color: var(--ms-navy);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--ms-navy);
    --bs-btn-hover-bg: var(--ms-teal-soft);
    --bs-btn-hover-border-color: var(--ms-teal-soft);
}

.btn-outline-white {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--ms-navy);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
}

.link-arrow {
    font-weight: 600;
    text-decoration: none;
    color: var(--ms-teal-text);
}
.link-arrow:hover { text-decoration: underline; color: var(--ms-navy); }
.link-arrow .bi { transition: transform .2s; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---------- Top bar & header ---------- */
.topbar {
    background: var(--ms-navy);
    color: #fff;
    font-size: .875rem;
    padding: .45rem 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--ms-border);
    backdrop-filter: saturate(180%) blur(6px);
}
.navbar { padding: .65rem 0; }

/* Full logo (including the tagline) in the header, sized as large as the bar allows. */
.site-logo-nav { height: 84px; width: auto; }
.site-logo-hero { max-width: 100%; height: auto; display: block; margin: 0 auto 1.75rem; }
@media (max-width: 575.98px) { .site-logo-nav { height: 64px; } }

.logo-text { font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-text-nav { font-size: 1.6rem; }
.logo-text-hero { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.logo-my, .logo-stride { color: var(--ms-navy); }
.logo-support { color: var(--ms-teal); font-weight: 500; }

.navbar-toggler {
    border: 2px solid var(--ms-navy);
    color: var(--ms-navy);
    font-size: 1.6rem;
    padding: .2rem .55rem;
}

.navbar .nav-link {
    color: var(--ms-navy);
    font-weight: 500;
    padding: .5rem .5rem !important;
    font-size: .98rem;
    border-radius: .5rem;
    white-space: nowrap;
}
.navbar .btn { white-space: nowrap; }

/* Small teal dot between menu links on desktop (not before the buttons, not in the mobile menu). */
@media (min-width: 1200px) {
    .nav-sep { display: flex; align-items: center; }
    .nav-sep + .nav-sep::before {
        content: "";
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--ms-teal);
        margin: 0 .2rem;
        flex-shrink: 0;
    }
}
.navbar .nav-link:hover { color: var(--ms-teal-text); }
.navbar .nav-link.active {
    color: var(--ms-teal-text);
    font-weight: 600;
}
@media (min-width: 1200px) {
    .navbar .nav-link.active { box-shadow: inset 0 -3px 0 var(--ms-teal); border-radius: 0; }
}
@media (max-width: 1199.98px) {
    .navbar-collapse { padding: 1rem 0 .5rem; }
    .navbar .nav-link { padding: .7rem .5rem !important; border-bottom: 1px solid var(--ms-border); border-radius: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--ms-bg-alt); }
.section-soft { background: var(--ms-teal-soft); }

@media (max-width: 767.98px) {
    .section { padding: 3.5rem 0; }
    .section-sm { padding: 2.5rem 0; }
}

.eyebrow {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ms-teal-text);
    margin-bottom: .75rem;
}

.eyebrow-nursing { color: var(--ms-pink-text); }
.eyebrow-household { color: var(--ms-green-text); }

.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }

/* ---------- Home hero ---------- */
.hero {
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(circle at 90% 10%, var(--ms-teal-soft) 0, transparent 45%),
        radial-gradient(circle at 5% 95%, var(--ms-sky-soft) 0, transparent 40%),
        #fff;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 560px; }

.hero-logo-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: var(--ms-shadow);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--ms-border);
}
.hero-tagline {
    font-size: .9rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ms-navy);
    font-weight: 500;
    margin: 1rem 0 1.75rem;
}
.hero-service-icons { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.hero-service-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--ms-navy);
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.25;
    width: 120px;
}
.hero-service-icons a:hover { color: var(--ms-teal-text); }
.hero-service-icons .icon-circle { margin-bottom: .6rem; }
@media (max-width: 400px) {
    .hero-service-icons { gap: .75rem; }
    .hero-service-icons a { width: 90px; font-size: .85rem; }
}

.values-strip {
    display: flex;
    align-items: center;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.75rem;
    color: var(--ms-navy);
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
}
.values-strip .sep { color: var(--ms-teal); }
.values-strip::before, .values-strip::after {
    content: '';
    flex: 1;
    max-width: 50px;
    height: 1px;
    background: var(--ms-navy);
    opacity: .4;
}

/* ---------- Inner page hero ---------- */
.page-hero {
    padding: 4rem 0 3.5rem;
    background: var(--ms-teal-soft);
    border-bottom: 4px solid var(--ms-teal);
}
.page-hero.page-hero-nursing { background: var(--ms-pink-soft); border-color: var(--ms-pink); }
.page-hero.page-hero-household { background: var(--ms-green-soft); border-color: var(--ms-green); }
.page-hero.page-hero-plan { background: var(--ms-teal-soft); border-color: var(--ms-teal); }
.page-hero.page-hero-navy { background: var(--ms-bg-alt); border-color: var(--ms-navy); }
.page-hero .lead { max-width: 720px; color: var(--ms-charcoal); }
.page-hero-nursing .eyebrow { color: var(--ms-pink-text); }
.page-hero-household .eyebrow { color: var(--ms-green-text); }

.breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--ms-navy); }

/* ---------- Icons ---------- */
.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: var(--ms-teal);
    flex-shrink: 0;
}
.icon-circle.sm { width: 52px; height: 52px; font-size: 1.4rem; }
.icon-nursing { background: var(--ms-pink); }
.icon-plan { background: var(--ms-teal); }
.icon-household { background: var(--ms-green); }
.icon-sky { background: var(--ms-sky); }
.icon-navy { background: var(--ms-navy); }

.icon-soft {
    width: 52px;
    height: 52px;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: var(--ms-teal-soft);
    color: var(--ms-teal-text);
    flex-shrink: 0;
}
.service-nursing .icon-soft, .icon-soft.nursing { background: var(--ms-pink-soft); color: var(--ms-pink-text); }
.service-household .icon-soft, .icon-soft.household { background: var(--ms-green-soft); color: var(--ms-green-text); }

/* ---------- Service cards ---------- */
.service-card {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-top: 6px solid var(--ms-teal);
    border-radius: var(--ms-radius);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--ms-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13, 61, 115, .12); }
.service-card h3 { margin: 1.25rem 0 .75rem; }
.service-card p { color: var(--ms-muted); flex-grow: 1; }
.service-card.service-nursing { border-top-color: var(--ms-pink); }
.service-card.service-household { border-top-color: var(--ms-green); }
.service-nursing .link-arrow { color: var(--ms-pink-text); }
.service-household .link-arrow { color: var(--ms-green-text); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .service-card:hover { transform: none; }
}

/* ---------- Feature / info cards ---------- */
.info-card {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 1.75rem;
    height: 100%;
}
.info-card h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.info-card p { color: var(--ms-muted); margin-bottom: 0; }

.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature-item p { color: var(--ms-muted); margin-bottom: 0; }

/* ---------- Check lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    position: relative;
    padding-left: 2.1rem;
    margin-bottom: .85rem;
}
.check-list li::before {
    content: "\F26B"; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: .05rem;
    color: var(--ms-teal);
    font-size: 1.2rem;
}
.check-list.nursing li::before { color: var(--ms-pink); }
.check-list.household li::before { color: var(--ms-green-text); }

/* ---------- Values (Support | Choice | Independence) ---------- */
.value-card {
    text-align: center;
    padding: 2.25rem 1.5rem;
    border-radius: var(--ms-radius);
    background: #fff;
    border: 1px solid var(--ms-border);
    height: 100%;
}
.value-card h3 { margin: 1rem 0 .5rem; }
.value-card p { color: var(--ms-muted); margin: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.pill-list li {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-weight: 500;
    color: var(--ms-navy);
    font-size: .95rem;
}
.pill-list li .bi { color: var(--ms-teal-text); margin-right: .35rem; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step {
    position: relative;
    text-align: center;
    padding: 0 .75rem;
}
.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ms-navy);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    border: 5px solid #fff;
    box-shadow: 0 0 0 2px var(--ms-teal);
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--ms-muted); font-size: .97rem; margin: 0; }
@media (min-width: 992px) {
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 32px;
        left: calc(50% + 40px);
        width: calc(100% - 80px);
        border-top: 2px dashed var(--ms-teal);
    }
}

/* ---------- Locations ---------- */
.location-card {
    background: #fff;
    border-radius: var(--ms-radius);
    border: 1px solid var(--ms-border);
    padding: 2rem;
    height: 100%;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.location-card .state-badge {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 1rem;
    background: var(--ms-navy);
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.location-card .state-badge.sa { background: var(--ms-teal-text); }
.location-card h3 { margin-bottom: .4rem; }
.location-card p { color: var(--ms-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--ms-navy);
    color: #fff;
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--ms-teal);
    opacity: .18;
    top: -140px;
    right: -100px;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 auto 2rem; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Callouts ---------- */
.callout {
    border-left: 5px solid var(--ms-teal);
    background: var(--ms-teal-soft);
    border-radius: 0 var(--ms-radius) var(--ms-radius) 0;
    padding: 1.5rem 1.75rem;
}
.callout.nursing { border-color: var(--ms-pink); background: var(--ms-pink-soft); }
.callout.household { border-color: var(--ms-green); background: var(--ms-green-soft); }
.callout.navy { border-color: var(--ms-navy); background: var(--ms-bg-alt); }
.callout h2, .callout h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Content blocks ---------- */
.content-block h2 { margin-bottom: 1rem; }
.content-block p { max-width: 70ch; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: var(--ms-shadow);
}
@media (max-width: 575.98px) { .form-card { padding: 1.5rem 1.15rem; } }

.form-section-title {
    font-size: 1.1rem;
    color: var(--ms-navy);
    font-weight: 600;
    padding-bottom: .5rem;
    margin: 2rem 0 1.25rem;
    border-bottom: 2px solid var(--ms-teal-soft);
}
.form-section-title:first-of-type { margin-top: 0; }

.form-label { font-weight: 500; color: var(--ms-navy); margin-bottom: .35rem; }
.form-label .req { color: var(--ms-pink-text); }
.form-control, .form-select {
    border-radius: .65rem;
    border: 1.5px solid #B9C6D3;
    padding: .7rem .95rem;
    font-size: 1rem;
    min-height: 48px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ms-teal-text);
    box-shadow: 0 0 0 .25rem rgba(8, 164, 182, .2);
}
.form-check-input { width: 1.3em; height: 1.3em; margin-top: .2em; border: 1.5px solid #8A99A8; }
.form-check-input:checked { background-color: var(--ms-teal-text); border-color: var(--ms-teal-text); }
.form-check-label { padding-left: .35rem; }
.form-text { color: var(--ms-muted); }

.privacy-note {
    font-size: .92rem;
    background: var(--ms-sky-soft);
    border-radius: .75rem;
    padding: 1rem 1.15rem;
    color: var(--ms-charcoal);
}
.privacy-note .bi { color: var(--ms-sky); }

.req { color: var(--ms-pink-text); }

/* Without JS every service question stays visible; with JS only the relevant ones show. */
.js .conditional-fields { display: none; }
.js .conditional-fields.show { display: block; }

/* ---------- Contact details ---------- */
.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--ms-border);
}
.contact-detail:last-child { border-bottom: 0; }
.contact-detail h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-detail p, .contact-detail a { margin: 0; font-size: 1.05rem; }
.contact-detail a { color: var(--ms-navy); font-weight: 600; text-decoration: none; }
.contact-detail a:hover { color: var(--ms-teal-text); text-decoration: underline; }

.hours-table { width: 100%; }
.hours-table td { padding: .2rem 0; }
.hours-table td:last-child { text-align: right; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ms-navy);
    color: rgba(255, 255, 255, .88);
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-brand { font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-tagline { color: #7FDCE7; font-weight: 500; }
.footer-heading {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}
.footer-links li, .footer-contact li { margin-bottom: .55rem; }
.footer-contact .bi { color: #7FDCE7; margin-right: .4rem; }
.footer-social a { font-size: 1.35rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .18);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: .9rem;
}
.footer-values { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1030;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
}
.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: .95rem .5rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
}
.mobile-cta-call { background: var(--ms-navy); }
.mobile-cta-enquire { background: var(--ms-teal-text); }
@media (max-width: 767.98px) {
    body { padding-bottom: 56px; }
}

/* ---------- Alerts ---------- */
.alert { border-radius: .85rem; }
.alert-success { background: var(--ms-green-soft); border-color: #CDE6AE; color: #2F4F0B; }
.alert-danger { background: var(--ms-pink-soft); border-color: #F3B9D2; color: #7A0D3F; }

/* ---------- 404 ---------- */
.error-code { font-size: 5rem; font-weight: 700; color: var(--ms-teal); line-height: 1; }
