/* =========================================================
   Harbor Vista
   Main Site Styles
   ========================================================= */


/* ---------------------------------------------------------
   Design System
   --------------------------------------------------------- */

:root {
    --color-navy: #17324d;
    --color-blue: #3f6f8f;
    --color-light-blue: #dce8ef;
    --color-sand: #e8dfcf;
    --color-cream: #f7f5f0;
    --color-white: #ffffff;

    --color-text: #263238;
    --color-muted: #66727a;

    --max-width: 1200px;
}


/* ---------------------------------------------------------
   Base Styles
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background-color: var(--color-cream);

    line-height: 1.6;
}


/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-sand);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 100px;
}

header h1 {
    margin: 0;

    color: var(--color-navy);
    font-size: 2rem;
}

header p {
    margin: 0;

    color: var(--color-muted);
}


/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--color-navy);

    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: var(--color-blue);
}


/* ---------------------------------------------------------
   Main Content
   --------------------------------------------------------- */

main {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--color-navy);
}


/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
    min-height: 520px;
    padding: 5rem 4rem;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(23, 50, 77, 0.58) 0%,
            rgba(23, 50, 77, 0.32) 45%,
            rgba(23, 50, 77, 0.05) 100%
        ),
        url("/static/images/harbor-vista-hero.png");

    background-size: cover;
    background-position: center;

    border-radius: 8px;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
}

.eyebrow {
    margin-bottom: 0.5rem;

    color: var(--color-blue);

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--color-sand);
}

.hero h2 {
    margin-top: 0;
    margin-bottom: 1rem;

    color: var(--color-white);

    font-size: 3rem;
    line-height: 1.1;
}

.hero-text {
    max-width: 600px;

    color: var(--color-white);

    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;

    margin-top: 2rem;
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.button {
    display: inline-block;

    padding: 0.75rem 1.25rem;

    border-radius: 4px;

    text-decoration: none;
    font-weight: 700;
}

.button-primary {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.button-primary:hover {
    background-color: var(--color-blue);
}

.button-secondary {
    border: 2px solid var(--color-navy);

    color: var(--color-navy);
    background-color: transparent;
}

.button-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

/*
   Secondary buttons inside the photographic hero need
   white borders/text so they remain visible over the image.
*/

.hero .button-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero .button-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}


/* ---------------------------------------------------------
   Community Updates
   --------------------------------------------------------- */

.community-updates {
    margin-top: 4rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin-top: 0;

    font-size: 2rem;
}

.update-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.update-column h3 {
    margin-top: 0;
    margin-bottom: 1rem;

    color: var(--color-navy);
}


/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.card {
    padding: 2rem;

    background-color: var(--color-white);

    border: 1px solid var(--color-sand);
    border-radius: 8px;
}

.card-label {
    margin-top: 0;
    margin-bottom: 0.5rem;

    color: var(--color-blue);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;

    color: var(--color-navy);

    font-size: 1.25rem;
}

.card a {
    color: var(--color-blue);

    font-weight: 700;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

footer {
    padding: 2rem 0;

    background-color: var(--color-navy);
    color: var(--color-white);
}

footer p {
    margin: 0.25rem 0;
}

.update-column .card + .card {
    margin-top: 1rem;
}

/* ---------------------------------------------------------
   Page Headers
   --------------------------------------------------------- */

.page-header {
    max-width: 750px;
    margin-bottom: 3rem;
}

.page-header h2 {
    margin-top: 0;
    margin-bottom: 1rem;

    font-size: 2.5rem;
}

/* ---------------------------------------------------------
   News
   --------------------------------------------------------- */

.news-list {
    max-width: 850px;
}

.news-card + .news-card {
    margin-top: 1.5rem;
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;

    color: var(--color-navy);
    font-size: 1.4rem;
}

/* ---------------------------------------------------------
   Announcement Detail
   --------------------------------------------------------- */

.announcement-detail {
    max-width: 850px;
}

.announcement-detail h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;

    font-size: 2.5rem;
}

.announcement-date {
    margin-top: 0;
    margin-bottom: 2rem;

    color: var(--color-muted);
}

.announcement-content {
    font-size: 1.1rem;
}

.back-link {
    margin-top: 3rem;
}

.back-link a {
    color: var(--color-blue);
    font-weight: 700;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* =========================================================
   Responsive Styles
   These rules ONLY apply to screens 768px wide or smaller.
   Keep this section at the bottom of the file.
   ========================================================= */

@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        align-items: flex-start;

        padding: 1.5rem 0;
    }

    nav {
        flex-wrap: wrap;
        gap: 0.75rem 1rem;

        margin-top: 1rem;
    }

    .hero {
        min-height: 420px;
        padding: 3rem 2rem;

        /*
           On smaller screens the image is still used,
           but the stronger overlay keeps text readable.
        */

        background-image:
            linear-gradient(
                rgba(23, 50, 77, 0.78),
                rgba(23, 50, 77, 0.78)
            ),
            url("/static/images/harbor-vista-hero.png");
    }

    .hero h2 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-grid {
        grid-template-columns: 1fr;
    }
}