﻿:root {
    --primary: #002d62;
    --primary-dark: #001f45;
    --primary-soft: #526ba0;
    --accent: #2f5d50;
    --gray: #f2f2f2;
    --gray-soft: #fafafa;
    --med-gray: #616161;
    --border: #d7d7d7;
    --text: #222;
    --link: #0b4f8a;
    --radius: 1.5rem;
    --radius-sm: 1rem;
    --shadow: 0 .65rem 1.5rem rgba(0, 45, 98, .08);
    --shadow-hover: 0 1rem 2rem rgba(0, 45, 98, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    background-color: #FAFAFA;
    color: var(--text);
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Gelasio", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

main a {
    color: var(--link);
}

a,
.list-group-item,
.card,
.accordion-body {
    overflow-wrap: anywhere;
    word-break: break-word;
}

header {
    background: #fff;
    box-shadow: 0 4px 18px rgba(16, 47, 73, .12);
}

.navbar-brand img {
    width: 150px;
    max-width: 70vw;
    height: auto;
}

.nav-link {
    color: var(--med-gray);
    font-weight: 600;
    padding: .6rem .2rem !important;    
    margin-left: .45rem;
    margin-right: .45rem;
}

header .nav-link {
    border-bottom: 3px solid transparent;
}

    header .nav-link:hover,
    header .nav-link.active {
        color: var(--dark-blue);
        border-bottom-color: var(--dark-blue);
    }

footer {
    background: linear-gradient( 180deg, #00356f 0%, #002d62 100% );
    color: rgba(255,255,255,.9);
    padding: 3rem 0;
}

    footer .icon-wrapper {
        text-decoration: none;
        margin-left: .25rem;
        margin-right: .25rem;
    }

    footer .icon {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 9999px;
        /*font-size: 1rem;*/
        /*background-color: #5dc2e7;*/
        justify-content: center;
        align-items: center;
        text-align: center;
        text-decoration: none;
        color: #f8f9fa;
        border: 1px solid rgba(255,255,255,.2);
        transition: all .25s ease;
    }

        footer .icon:hover {
            background: #9a6c16;
            border-color: #9a6c16;
            color: #fff;
        }

.btn {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
}

.btn-custom-blue {
    background-color: var(--primary);
    color: #fff;
    border: 0;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    box-shadow: 0 10px 30px rgba(0, 45, 98, .22), 0 2px 8px rgba(0,0,0,.12);
}

    .btn-custom-blue:hover,
    .btn-custom-blue:focus-visible {
        background-color: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .btn-custom-blue:focus-visible,
    .btn-custom-outline:focus-visible,
    .link-list-item:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: 4px;
    }

.btn-custom-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-custom-outline:hover,
    .btn-custom-outline:focus-visible {
        background-color: var(--primary);
        color: #fff;
        transform: translateY(-2px);
    }

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);    
    color: var(--text);
}

.card-body {
    padding: 1.5rem;
}

.card-shadow {
    box-shadow: var(--shadow);
}

.section-padding {
    padding: 4rem 0;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 800;
}

.text-blue {
    color: var(--primary);
}

.hero {
    min-height: 70vh;
    max-height: 600px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.hero-left {
    width: 65%;
    background: linear-gradient(135deg, #004596 0%, #00397c 45%, #002d62 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 85% 0, 100% 100.5%, 0 100%);
}

.hero-right {
    position: absolute;
    inset: 0 0 0 55%;
    z-index: 1;
    overflow: hidden;
}

    .hero-right img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.hero-left h1 {
    /*font-size: 72px;*/
    line-height: 0.95;
    /*margin-bottom: 24px;*/
    max-width: 80%;
}

.hero-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 80%;
    margin-bottom: 32px;
}

.portal-link:hover .portal-card {
    transform: translateY(-6px);
}

.portal-link:hover .portal-icon {
    background-color: var(--med-blue);
    color: #fff;
}

.portal-card, .news-card {
    height: 100%;
    box-shadow: 0 .65rem 1.5rem rgba(28, 60, 34, .08);
    transition: transform 0.25s ease;
}

.news-card {
    border-left: 5px solid #12361a;
    max-width: 1000px;
    margin: auto;
}

.portal-icon, .icon-circle {
    background: rgba(82, 107, 160, .15);
    color: var(--primary);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: 0.5s ease-in-out;
}

.portal-link:hover .portal-icon {
    background-color: var(--primary);
    color: #fff;
}

.portal-text-bottom {
    text-decoration: none;
    font-weight: 700;
}

.portal-link:hover .portal-text-bottom i {
    padding-left: .5rem;
}

.portal-text-bottom i {
    transition: ease-in-out .25s;
    padding-left: .35rem;
}

.link-list {
    max-width: 720px;
}

.link-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

    .link-list-item i {
        color: #666;
        transition: transform .2s ease;
    }

    .link-list-item:hover {
        color: var(--dark-blue);
    }

        .link-list-item:hover i {
            transform: translateX(4px);
        }

    .link-list-item:focus-visible {
        outline: 3px solid #008265;
        outline-offset: 4px;
    }

ol li, ul li {
    margin-bottom: .5rem;
}

.accordion-item {
    border: none;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.accordion-button {
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0 !important;
    color: var(--primary);
}

    .accordion-button:not(.collapsed) {
        background: rgba(82, 107, 160, .18);
        color: var(--dark-blue);
        box-shadow: none;
    }

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 12px !important;
}

    .accordion-item:first-of-type .accordion-button,
    .accordion-item:last-of-type .accordion-button.collapsed {
        border-radius: 0 !important;
    }

#rivercrest-page .feature-img {
    height: 360px;
    object-fit: cover;
}

#rivercrest-page .stat-card {
    border-left: 5px solid var(--dark-blue) !important;
}

.stat-number {
    color: var(--accent);
}

.map-embed {
    min-height: 420px;
    width: 100%;
    border: 0;
    border-radius: .75rem;
    max-width: 100%;
}

.contact-card {
    height: 100%;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    border-left-width: 5px;
}

.alert-custom {
    --bs-alert-bg: rgba(82, 107, 160, .12);
    --bs-alert-border-color: rgba(82, 107, 160, .35);
    --bs-alert-color: var(--text);
    background-color: var(--bs-alert-bg);
    border: 1px solid var(--bs-alert-border-color);
    border-left: 5px solid var(--primary-soft);
    color: var(--bs-alert-color);
}

    .alert-custom a {
        color: var(--link);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        max-height: none;
        flex-direction: column;
    }

    .hero-left {
        width: 100%;
        min-height: auto;
        padding: 64px 32px;
        clip-path: none;
    }

    .hero-right {
        position: relative;
        inset: auto;
        width: 100%;
        height: 320px;
    }
}

@media (max-width: 600px) {
    .hero-left {
        padding: 48px 24px;
    }

        .hero-left h1 {
            /*font-size: 40px;*/
            max-width: 100%;
        }

        .hero-left p {
            /*font-size: 16px;*/
            max-width: 100%;
        }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .hero-right {
        height: 260px;
    }
}

