/* app-layout.css
   Shared chrome (header/nav/buttons/footer) for pages built on the
   redesigned SecureCare public site (V3 layout). Loaded alongside
   app-home.css when ViewBag.UseAppHome is true. */

:root {
    --sc-navy: #0c315d;
    --sc-navy-2: #153f70;
    --sc-orange: #f47721;
    --sc-orange-soft: #fff1e7;
    --sc-blue: #1677e8;
    --sc-green: #15965f;
    --sc-purple: #7654c8;
    --sc-ink: #17314f;
    --sc-muted: #65788d;
    --sc-line: #dce6ee;
    --sc-surface: #f7fbff;
    --sc-shadow: 0 18px 50px rgba(24,55,88,.12);
}

/* Base reset/typography scoped to this page (ported from
   SecureCare_Website_V3/styles.css). main.css/base.css are not loaded
   here, so these rules must supply the page's font and box-sizing. */
#top * {
    box-sizing: border-box;
}

#top {
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color: var(--sc-ink);
    line-height: 1.5;
}

    #top img {
        display: block;
        max-width: 100%;
    }

    #top a {
        color: inherit;
        text-decoration: none;
    }

    #top button,
    #top input {
        font: inherit;
    }

.app-container {
    width: min(1180px,calc(100% - 40px));
    margin-inline: auto;
}

.app-section {
    padding: 76px 0;
}

.app-eyebrow {
    margin: 0 0 10px;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .18em;
    color: var(--sc-navy);
}

.app-section h2 {
    font-size: clamp(2rem,3.5vw,3.1rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    color: var(--sc-navy);
    margin-bottom: 14px;
}

.app-section h3 {
    font-size: 1.55rem;
    line-height: 1.18;
    color: var(--sc-navy);
}

.app-lead, .app-section-intro {
    font-size: 1.08rem;
    color: var(--sc-muted);
    max-width: 720px;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: .2s ease;
}

    .app-btn:hover {
        transform: translateY(-1px);
    }

#top .app-btn-primary {
    background: var(--sc-orange);
    color: #fff;
    box-shadow: 0 8px 24px rgba(244,119,33,.22);
}

.app-btn-secondary {
    border-color: #9db0c4;
    color: var(--sc-navy);
    background: #fff;
}

.app-btn-light {
    border-color: rgba(255,255,255,.7);
    color: #fff;
    background: rgba(255,255,255,.08);
}

.app-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.app-check-list {
    padding: 0;
    margin: 20px 0;
    list-style: none;
}

    .app-check-list li {
        position: relative;
        padding-left: 25px;
        margin: 10px 0;
        color: var(--sc-ink);
    }

        .app-check-list li:before {
            content: "\2713";
            position: absolute;
            left: 0;
            color: var(--sc-green);
            font-weight: 900;
        }

.app-final-cta {
    padding: 56px 0;
    color: #fff;
    background: linear-gradient(120deg,rgba(9,44,83,.96),rgba(20,84,130,.92)),url("/public/images/v3/images/mission-hero.jpg") center/cover;
}

    .app-final-cta p {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .app-final-cta h2 {
        color: #fff;
        max-width: 700px;
        font-size: clamp(1.9rem,3.2vw,3rem);
        line-height: 1.15;
    }

@media(max-width:760px) {
    .app-section {
        padding: 52px 0;
    }
}

/* Minimal grid utility so partials (subscription generator, contact form)
   that use .row / .col-md-4 render correctly without legacy bootstrap CSS. */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }

.col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}

.col-md-8 {
    flex: 0 0 66.6667%;
    max-width: 66.6667%;
}

@media(max-width:900px) {
    .col-md-4, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================================
   Small utility classes needed by shared components used on
   this page (loading overlay, message/help modals, contact
   form success modal, env banner) since main.css/site.css/
   sc-bootstrap.css are not loaded here.
   ========================================================= */
.cursor-pointer {
    cursor: pointer !important;
}

.display-none {
    display: none !important;
}

.msg-info {
    padding: 10px 15px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin-top: 10px;
    font-size: .9em;
    text-align: center;
}

.txt-error {
    border: solid 1px #b12a2a !important;
    background-color: #fbd8dd !important;
}

.modalWrapper {
    position: fixed;
    left: 0px;
    top: 0px;
    text-align: center;
    overflow: auto;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999991;
}

    .modalWrapper.sc-modal-active {
        display: block;
    }

.modalMain {
    position: relative;
    top: 15%;
    max-width: 400px;
    max-height: 70vh;
    overflow: auto;
    margin: auto;
    background-color: #fff;
    padding: 40px;
}

.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 27pt;
    color: #333333;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14,49,92,.08);
}

.app-nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-brand img {
    width: 230px;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.app-nav nav {
    display: flex;
}

#app-main-nav-wrap {
    margin-left: auto;
}

.app-main-navigation {
    display: flex;
    align-items: center;
    gap: 21px;
    font-size: .9rem;
    font-weight: 650;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .app-main-navigation li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        white-space: nowrap;
        color: var(--sc-ink);
    }

        .app-main-navigation li a:not(.app-btn):hover {
            color: var(--sc-orange);
        }

        #top .app-main-navigation li a.app-btn {
            color: #fff;
        }

    .app-main-navigation li.highlight a {
        min-height: 42px;
        padding-inline: 16px;
    }

.app-menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 1.6rem;
    color: var(--sc-navy);
    margin-left: auto;
}

#appEnv {
    position: fixed;
    top: 66px;
    background-color: #fdd0b075;
    color: #333333;
    border: solid 1px #ffc264 !important;
    font-weight: bold;
    text-align: center;
    padding: 2px 20px;
    font-family: Verdana;
    font-size: small;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    border-radius: .25rem;
}

@media(max-width:980px) {
    .app-nav {
        align-items: center;
    }

    .app-brand img {
        width: 190px;
    }

    .app-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #app-main-nav-wrap {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        background: #fff;
        border-bottom: 1px solid var(--sc-line);
        margin-left: 0;
    }

        #app-main-nav-wrap.app-nav-open {
            display: block;
        }

    .app-main-navigation {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 14px;
    }
}

/* =========================================================
   Footer
   ========================================================= */
.app-footer {
    padding: 34px 0;
    border-top: 1px solid var(--sc-line);
    background: #fff;
    text-align: center;
}

.app-footer-grid {
    display: grid;
    gap: 10px;
    justify-items: center;
    color: var(--sc-muted);
    font-size: .86rem;
}

.app-footer img {
    width: 210px;
}

.app-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

    .app-footer-links a {
        color: var(--sc-navy);
    }
