﻿/* =========================================================
   ACCUTRAK-CACFP.NET
   GLOBAL / SHARED SITE STYLES
========================================================= */


/* ---------------------------------------------------------
   VARIABLES
--------------------------------------------------------- */

:root {
    --blue: #123b6d;
    --blue-dark: #0b2d55;
    --blue-medium: #18588e;
    --blue-light: #eaf4fb;
    --green: #169447;
    --green-dark: #0e7437;
    --green-light: #eaf7ee;
    --text: #263238;
    --text-light: #60717c;
    --white: #ffffff;
    --off-white: #f8fafb;
    --border: #dfe8ed;
    --shadow: 0 10px 30px rgba(18, 59, 109, 0.09);
    --shadow-large: 0 18px 45px rgba(18, 59, 109, 0.13);
    --radius: 16px;
    --radius-large: 24px;
    --container: 1180px;
    --font: "Source Sans 3", Arial, Helvetica, sans-serif;
}


/* ---------------------------------------------------------
   RESET
--------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
}

    a:hover {
        color: var(--green);
    }

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--blue);
    line-height: 1.15;
}

ul {
    margin-top: 0;
}


/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(22, 148, 71, 0.4);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   CONTAINER
--------------------------------------------------------- */

.container {
    width: min( calc(100% - 40px), var(--container) );
    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    background: var(--white);
}

.header-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    color: inherit;
}

    .brand:hover {
        color: inherit;
    }

.brand-logo {
    width: 115px;
    max-height: 88px;
    object-fit: contain;
}

.brand-copy {
    padding-left: 18px;
    border-left: 1px solid #d8e0e5;
}

.brand-name {
    color: var(--blue);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    margin-top: 5px;
    color: #65757e;
    font-size: 0.96rem;
}


/* Header tagline */

.header-tagline {
    color: var(--blue);
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.3;
    text-align: right;
}

    .header-tagline strong {
        color: var(--green);
        font-weight: 600;
    }


/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
    position: relative;
    z-index: 50;
    background: var(--blue);
}

.nav-list {
    min-height: 58px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .nav-list li {
        display: flex;
    }

    .nav-list a {
        position: relative;
        min-width: 112px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 22px;
        color: var(--white);
        font-size: 0.96rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        transition: background 0.2s ease, color 0.2s ease;
    }

        .nav-list a:hover {
            color: var(--white);
            background: rgba(255, 255, 255, 0.08);
        }

        .nav-list a.active::after {
            content: "";
            position: absolute;
            left: 22px;
            right: 22px;
            bottom: 0;
            height: 4px;
            background: #38b764;
            border-radius: 4px 4px 0 0;
        }


/* =========================================================
   SHARED BUTTONS
========================================================= */

.btn,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 24px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .btn:hover,
    .secondary-button:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    color: var(--white);
    background: var(--blue);
}

    .btn-primary:hover {
        color: var(--white);
        background: var(--blue-dark);
        box-shadow: var(--shadow);
    }

.secondary-button {
    color: var(--blue);
    background: #f0f6fa;
    border: 1px solid #d4e3ec;
}

    .secondary-button:hover {
        color: var(--white);
        background: var(--blue);
    }


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--blue-dark);
}

.footer-main {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
    padding-top: 45px;
    padding-bottom: 45px;
}


/* Footer brand */

.footer-brand-area {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-logo {
    width: 95px;
    object-fit: contain;
}

.footer-brand-name {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 7px;
    color: #9edbb1;
    font-size: 0.9rem;
    font-style: italic;
}


/* Footer navigation */

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 50px;
    padding-left: 60px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

    .footer-nav > div {
        display: grid;
        gap: 7px;
    }

    .footer-nav a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.93rem;
    }

        .footer-nav a:hover {
            color: #9fe1b4;
        }


/* Copyright */

.footer-bottom {
    padding-top: 17px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

    .footer-bottom p {
        margin: 0;
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.82rem;
    }


/* =========================================================
   SHARED RESPONSIVE STYLES
========================================================= */

@media (max-width: 1000px) {

    .header-inner {
        min-height: 95px;
    }

    .brand-logo {
        width: 95px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .nav-list a {
        min-width: auto;
        padding-inline: 16px;
    }
}


@media (max-width: 800px) {

    .header-inner {
        padding: 18px 0;
    }

    .header-tagline {
        display: none;
    }

    .nav-list {
        flex-wrap: wrap;
        padding: 5px 0;
    }

        .nav-list li {
            flex: 1 1 25%;
        }

        .nav-list a {
            min-height: 46px;
            padding: 8px 12px;
        }

    .footer-main {
        display: block;
    }

    .footer-nav {
        margin-top: 35px;
        padding-top: 30px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 0;
    }
}


@media (max-width: 560px) {

    .container {
        width: min( calc(100% - 30px), var(--container) );
    }

    body {
        font-size: 16px;
    }

    .brand-logo {
        width: 75px;
    }

    .brand-copy {
        padding-left: 12px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: 0.78rem;
    }

    .nav-list li {
        flex: 1 1 50%;
    }

    .footer-brand-area {
        align-items: flex-start;
    }

    .footer-logo {
        width: 75px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }
}
