﻿:root {
    /* Agency colors */
    --navy: #153d6b;
    --navy-dark: #102f54;
    --red: #b82936;
    /* Neutrals */
    --text: #182532;
    --muted: #53606c;
    --white: #fff;
    --light: #f6f7f7;
    --light-blue: #eef3f7;
    --border: #d7dde2;
    /* Service cards */
    --portal-orange: #f3a15f;
    --portal-blue: #8ca9bc;
    --portal-red: #e78c8e;
    --portal-green: #a9cabf;
    --portal-yellow: #efc76f;
    --bs-border-radius: .65rem;
    --bs-border-radius-sm: .45rem;
    --bs-border-radius-lg: .85rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: #fff;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--navy-dark);
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 .1rem .45rem rgba(0,0,0,.12);
}

.brand-column {
    align-items: center;
    justify-content: center;
    padding: .75rem 1rem;
}

.brand-logo {
    display: block;
    width: 104px;
    flex-shrink: 0;
}

    .brand-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

.navbar-brand img {
    display: block;
    width: 72px;
    height: auto;
}

.utility-bar {
    min-height: 36px;
    padding-top: .4rem;
    padding-bottom: .2rem;
    color: rgba(255,255,255,.85);
    font-size: .85rem;
    font-weight: 500;
}

    .utility-bar a {
        color: inherit;
        text-decoration: none;
    }

        .utility-bar a:hover,
        .utility-bar a:focus {
            color: #fff;
        }

header .nav-link {
    padding-right: 0;
    padding-left: 0;
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    font-weight: 600;
}

header .nav-link:hover {
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: #fff;
}

    .site-footer a {
        color: inherit;
    }

.footer-logo {
    display: inline-block;
    width: 140px;
    max-width: 100%;
}

    .footer-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

.footer-heading {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links li + li {
    margin-top: .55rem;
}

.footer-links a, .footer-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.28);
    transition: border-color .18s ease, color .18s ease;
    padding-bottom: .05rem;
}

    .footer-links a:hover, .footer-links a:focus, .footer-link:hover {
        color: #fff;
        border-bottom-color: rgba(255,255,255,.9);
    }

.site-footer address {
    font-style: normal;
}

.footer-divider {
    margin: 2.5rem 0 1.25rem;
    border-color: rgba(255,255,255,.25);
    opacity: 1;
}

.footer-bottom-text {
    font-size: .85rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: .65rem;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: .75rem;
    color: #fff;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

    .footer-badge i {
        font-size: 1.75rem;
    }

    .footer-badge img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

    .footer-badge:hover,
    .footer-badge:focus {
        color: #fff;
        border-color: rgba(255,255,255,.6);
        background: rgba(255,255,255,.06);
    }

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: var(--navy-dark);
}

    .hero-carousel .carousel-item {
        position: relative;
        min-height: 440px;
    }

        .hero-carousel .carousel-item img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .hero-carousel .carousel-item::after {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(13,45,85,.42);
        }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-title {
    max-width: 800px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 9vw, 4.5rem);
    line-height: .96;
    font-weight: 700;
    letter-spacing: -.045em;
    text-shadow: 0 2px 4px rgba(0,0,0,.6), 0 5px 14px rgba(0,0,0,.45);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next,
.hero-carousel .carousel-indicators {
    z-index: 3;
}

.quick-links-section {
    background: #f7f7f6;
}

.page-section {
    padding: 3.5rem 0;
}

.section-eyebrow {
    margin-bottom: .35rem;
    color: var(--red);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;
    color: var(--navy-dark);
    font-size: clamp(2.15rem, 4vw, 3rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.035em;
}

.section-copy {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1rem;
}

.quick-links-section {
    background: var(--light);
}

.quick-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border-radius: var(--bs-border-radius-xl);
    color: #171717;
    text-decoration: none;
    box-shadow: 0 .4rem 1rem rgba(25, 42, 58, .08);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .quick-card:hover,
    .quick-card:focus-visible {
         color: #171717;
    transform: translateY(-2px);
    box-shadow: 0 .65rem 1.4rem rgba(25, 42, 58, .12);
    }

.quick-card--tenant {
    background: #f4a15e;
}

.quick-card--landlord {
    background: #86a4b8;
}

.quick-card--application {
    background: #e88989;
}

.quick-card--waiting {
    background: #a9cbbf;
}

.quick-card--applicant {
    background: #f0c66f;
}

.quick-icon {
    margin-bottom: 1rem;
    font-size: 1.55rem;
    line-height: 1;
}

.quick-card h3 {
    margin-bottom: .55rem;
    color: #171717;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.02em;
}

.quick-card p {
    margin-bottom: 1.25rem;
    color: #202020;
    font-size: .98rem;
    line-height: 1.5;
}

.quick-card-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    font-weight: 600;
}

.mission-section {
    position: relative;
    background: #fff;
}

.mission-copy {
    max-width: 780px;
}

    .mission-copy p {
        margin: 0;
        color: var(--text);
        font-size: 1.1rem;
        line-height: 1.8;
    }

.news-section {
    background: #fff;
}

.news-intro {
    max-width: 520px;
}

.news-list {
    border-top: 1px solid var(--border);
}

.news-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.news-date {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}

.news-content h3 {
    margin-bottom: .4rem;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.015em;
}

    .news-content h3 a {
        color: var(--navy-dark);
        text-decoration: none;
    }

        .news-content h3 a:hover,
        .news-content h3 a:focus-visible {
            color: var(--red);
            text-decoration: underline;
            text-underline-offset: .2rem;
        }

.news-content p {
    margin-bottom: 0;
    color: var(--text);
    line-height: 1.65;
}


/* Newsletters */
.newsletter-section {
    background: var(--light-blue);
}

.newsletter-heading {
    max-width: 650px;
}

.newsletter-list {
    max-width: 820px;
}

    .newsletter-list .list-group {
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--bs-border-radius-lg);
        background: #fff;
    }

    .newsletter-list .list-group-item {
        border-color: var(--border);
        background: #fff;
        color: var(--text);
        text-decoration: none;
        transition: background-color .15s ease;
    }

        .newsletter-list .list-group-item:last-child {
            border-bottom: 0;
        }

        .newsletter-list .list-group-item:hover,
        .newsletter-list .list-group-item:focus-visible {
            background: var(--light);
            color: var(--navy-dark);
        }

.newsletter-icon {
    width: 1.5rem;
    flex-shrink: 0;
    color: var(--red);
    font-size: 1.35rem;
    text-align: center;
}

.newsletter-title {
    color: var(--navy-dark);
    font-size: 1rem;
    font-weight: 700;
}

.newsletter-list .fa-arrow-up-right-from-square {
    flex-shrink: 0;
    color: var(--muted);
    font-size: .85rem;
}

.login-section {
    padding: 4rem 0;
    background: var(--light);
}

.login-card {
    border: 1px solid var(--border);
    border-radius: var(--bs-border-radius-xl);
    box-shadow: 0 .5rem 1.5rem rgba(16, 47, 84, .08);
}

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--bs-border-radius-lg);
    background: var(--navy);
    color: #fff;
    font-size: 1.5rem;
}

.login-card .form-label {
    color: var(--navy-dark);
    font-weight: 600;
}

.login-card .form-control {
    min-height: 48px;
    border-color: var(--border);
}

    .login-card .form-control:focus {
        border-color: var(--navy);
        box-shadow: 0 0 0 .2rem rgba(21, 61, 107, .15);
    }

.btn-custom {
    min-height: 48px;
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

    .btn-custom:hover,
    .btn-custom:focus {
        background: var(--navy-dark);
        border-color: var(--navy-dark);
        color: #fff;
    }

@media (min-width: 576px) {
    .news-item {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 1.5rem;
    }

    .news-date {
        padding-top: .15rem;
    }
}


@media (min-width: 992px) {
    .hero-carousel .carousel-item {
        min-height: 590px;
    }

    .brand-column {
        padding: .85rem 1rem;
    }

    .brand-logo {
        width: 94px;
    }

    .mission-copy {
        position: relative;
        padding-left: 2rem;
    }

        .mission-copy::before {
            content: "";
            position: absolute;
            top: .2rem;
            bottom: .2rem;
            left: 0;
            width: 3px;
            border-radius: 50rem;
            background: var(--red);
        }

    .news-section,
    .newsletter-section {
        padding: 5rem 0;
    }

    .page-section {
        padding: 4.5rem 0;
    }
}