@charset "utf-8";

/*
   ITSC Final Project
   Kentucky Guard Family Resource Hub

   Author: Pattie Smith
   Date:   02/26/2026
   Filename: styles.css
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --navy: #002868;
    --dark-navy: #001845;
    --red: #BF0A30;
    --dark-red: #8B0000;
    --gold: #c5a55a;
    --bright-gold: #d4af37;
    --white: #ffffff;
    --off-white: #f0f4f8;
    --warm-white: #f7f9fc;
    --light-blue: #dce6f0;
    --text-dark: #1a1a2e;
    --text-medium: #2c3e50;
    --text-light: #f0f0f5;
    --accent-blue: #3c5a99;
}

/* ============================================
   Reset and Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
    background-color: var(--dark-navy);
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1em;
    color: var(--text-dark);
    width: 95%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--warm-white);
    line-height: 1.6;
    border-left: 4px solid var(--red);
    border-right: 4px solid var(--red);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Header
   ============================================ */
header {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 60%, var(--dark-navy) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 20px 15px;
    border-bottom: 5px solid var(--red);
    position: relative;
}

header::after {
    content: "";
    display: block;
    height: 3px;
    background: var(--bright-gold);
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
}

header img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
}

header h1 {
    font-size: 1.8em;
    letter-spacing: 0.06em;
    text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.6);
    color: var(--white);
    margin-bottom: 3px;
}

header p.tagline {
    font-size: 1em;
    color: var(--bright-gold);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    background-color: var(--dark-navy);
    border-bottom: 3px solid var(--bright-gold);
    margin-top: 8px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    flex: 1 1 auto;
    min-width: 130px;
    text-align: center;
}

nav a {
    display: block;
    color: var(--off-white);
    text-decoration: none;
    line-height: 2.8em;
    font-size: 0.95em;
    font-weight: bold;
    letter-spacing: 0.04em;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: var(--red);
    color: var(--white);
}

nav a.active {
    background-color: var(--red);
    color: var(--white);
    border-bottom: 3px solid var(--bright-gold);
}

/* ============================================
   Main Content
   ============================================ */
main {
    padding: 25px 20px;
    min-height: 400px;
}

main h2 {
    font-size: 1.5em;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 6px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}

main h3 {
    font-size: 1.15em;
    color: var(--dark-navy);
    margin-top: 18px;
    margin-bottom: 8px;
}

main p {
    margin-bottom: 14px;
    color: var(--text-medium);
}

main a {
    color: var(--navy);
    text-decoration: underline;
}

main a:hover {
    color: var(--red);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-navy) 40%, var(--navy) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 35px 20px;
    border-bottom: 4px solid var(--red);
}

.hero::before {
    content: "\2605  \2605  \2605  \2605  \2605";
    display: block;
    font-size: 1.3em;
    color: var(--bright-gold);
    letter-spacing: 0.5em;
    margin-bottom: 12px;
}

.hero h2 {
    color: var(--white);
    border-bottom: none;
    font-size: 1.6em;
    margin-bottom: 10px;
    text-shadow: 2px 3px 5px rgba(0,0,0,0.5);
}

.hero p {
    color: var(--light-blue);
    font-size: 1.05em;
    max-width: 750px;
    margin: 0 auto 10px auto;
}

/* ============================================
   Program Cards - Three Column
   ============================================ */
.program-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.program-card {
    flex: 1 1 30%;
    min-width: 260px;
    background-color: var(--off-white);
    border: 1px solid var(--light-blue);
    border-top: 4px solid var(--red);
    padding: 18px;
    transition: box-shadow 0.3s;
}

.program-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.program-card h3 {
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.05em;
}

.program-card p {
    font-size: 0.92em;
    margin-bottom: 8px;
}

.program-card .reg {
    font-size: 0.82em;
    color: var(--accent-blue);
    font-style: italic;
    margin-bottom: 10px;
}

.program-card .contact {
    font-size: 0.88em;
    background-color: var(--white);
    padding: 8px 10px;
    border-left: 3px solid var(--gold);
    margin-top: 10px;
}

.program-card .contact strong {
    display: block;
    color: var(--navy);
    margin-bottom: 3px;
}

/* ============================================
   Two Column Layout
   ============================================ */
.two-col {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.two-col .col {
    flex: 1 1 45%;
    min-width: 280px;
}

/* ============================================
   Three Column Layout
   ============================================ */
.three-col {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.three-col .col {
    flex: 1 1 30%;
    min-width: 250px;
    background-color: var(--off-white);
    padding: 18px;
    border: 1px solid var(--light-blue);
    border-top: 3px solid var(--gold);
}

.three-col .col h3 {
    color: var(--navy);
    margin-top: 0;
}

/* ============================================
   Info Cards
   ============================================ */
.info-card {
    background-color: var(--off-white);
    border: 1px solid var(--light-blue);
    border-left: 5px solid var(--red);
    padding: 15px 20px;
    margin-bottom: 15px;
}

.info-card h3 {
    margin-top: 0;
    color: var(--navy);
}

/* ============================================
   Emergency Banner
   ============================================ */
.emergency-banner {
    background-color: var(--red);
    color: var(--white);
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 1.05em;
    font-weight: bold;
}

.emergency-banner a {
    color: var(--bright-gold);
}

.emergency-banner a:hover {
    color: var(--white);
}

/* ============================================
   Quick Links Grid
   ============================================ */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.quick-link {
    flex: 1 1 22%;
    min-width: 200px;
    display: block;
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 15px 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.92em;
    border: 2px solid var(--navy);
    transition: background-color 0.3s, color 0.3s;
}

.quick-link:hover {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ============================================
   Image Gallery
   ============================================ */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.gallery img {
    flex: 1 1 200px;
    max-width: 23%;
    height: auto;
    border: 2px solid var(--gold);
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ============================================
   Tables
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 0.93em;
}

table caption {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--navy);
    padding: 8px 0;
    text-align: left;
}

thead th {
    background-color: var(--navy);
    color: var(--white);
    padding: 10px 12px;
    text-align: left;
    font-weight: bold;
    border: 1px solid var(--dark-navy);
}

tbody td {
    padding: 9px 12px;
    border: 1px solid var(--light-blue);
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background-color: var(--off-white);
}

tbody tr:nth-child(odd) {
    background-color: var(--warm-white);
}

tbody tr:hover {
    background-color: var(--light-blue);
}

td.highlight-row {
    background-color: var(--red);
    color: var(--white);
    font-weight: bold;
    text-align: center;
}

/* ============================================
   Ordered and Unordered Lists
   ============================================ */
main ul, main ol {
    margin-left: 25px;
    margin-bottom: 14px;
}

main ul li, main ol li {
    margin-bottom: 5px;
    line-height: 1.5;
}

main ul {
    list-style-type: square;
}

/* ============================================
   Forms
   ============================================ */
form {
    max-width: 700px;
    margin: 0 auto;
}

fieldset {
    border: 1px solid var(--light-blue);
    padding: 20px;
    margin-bottom: 18px;
    background-color: var(--off-white);
}

legend {
    font-weight: bold;
    font-size: 1.05em;
    color: var(--navy);
    padding: 0 10px;
}

form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 3px;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.93em;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--light-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.93em;
    background-color: var(--warm-white);
    color: var(--text-dark);
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: 2px solid var(--gold);
    background-color: #fffef5;
}

form input:valid {
    border-color: var(--navy);
}

form input:invalid {
    border-color: var(--red);
}

form textarea {
    height: 100px;
    resize: vertical;
}

.radio-group {
    margin-top: 6px;
}

.radio-group label {
    display: inline;
    font-weight: normal;
    margin-right: 18px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 4px;
}

.form-buttons {
    text-align: center;
    margin-top: 18px;
}

form input[type="submit"],
form input[type="reset"] {
    padding: 10px 28px;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid var(--gold);
    cursor: pointer;
    margin: 5px 8px;
    font-family: Georgia, "Times New Roman", serif;
}

form input[type="submit"] {
    background-color: var(--red);
    color: var(--white);
}

form input[type="submit"]:hover {
    background-color: var(--navy);
    color: var(--white);
}

form input[type="reset"] {
    background-color: var(--off-white);
    color: var(--text-dark);
}

form input[type="reset"]:hover {
    background-color: var(--light-blue);
}

/* ============================================
   Video Section
   ============================================ */
.video-section {
    text-align: center;
    margin-bottom: 25px;
}

.video-section iframe {
    max-width: 100%;
    width: 640px;
    height: 360px;
    border: 2px solid var(--gold);
}

/* ============================================
   Horizontal Rule
   ============================================ */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, var(--red), var(--bright-gold), var(--navy));
    margin: 25px 0;
}

/* ============================================
   Footer
   ============================================ */
footer {
    clear: both;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 100%);
    color: var(--light-blue);
    text-align: center;
    padding: 18px 15px;
    border-top: 5px solid var(--red);
    font-size: 0.88em;
}

footer p {
    margin-bottom: 4px;
    color: var(--light-blue);
}

footer a {
    color: var(--bright-gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: var(--white);
}

/* ============================================
   MOBILE (max-width: 480px)
   ============================================ */
@media only screen and (max-width: 480px) {
    body {
        width: 100%;
        font-size: 0.9em;
    }

    header h1 { font-size: 1.2em; }

    nav ul { flex-direction: column; }
    nav li { width: 100%; border-bottom: 1px solid var(--gold); }
    nav a { line-height: 3em; font-size: 1em; }

    .hero h2 { font-size: 1.2em; }

    .program-card, .two-col .col, .three-col .col { flex: 1 1 100%; }
    .quick-link { flex: 1 1 100%; }
    .gallery img { max-width: 48%; }

    table { font-size: 0.8em; }
    thead th, tbody td { padding: 6px 8px; }

    form { width: 100%; }
    fieldset { padding: 10px; }
    form input[type="submit"], form input[type="reset"] {
        width: 90%; margin: 8px auto; display: block;
    }

    .video-section iframe { width: 100%; height: auto; }
}

/* ============================================
   TABLET (481px - 768px)
   ============================================ */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    body { width: 98%; }
    header h1 { font-size: 1.5em; }

    nav li { flex: 1 1 33%; }

    .program-card { flex: 1 1 45%; }
    .two-col .col { flex: 1 1 100%; }
    .three-col .col { flex: 1 1 45%; }
    .quick-link { flex: 1 1 45%; }
    .gallery img { max-width: 31%; }
}

/* ============================================
   DESKTOP (769px and up)
   ============================================ */
@media only screen and (min-width: 769px) {
    body { width: 95%; max-width: 1200px; }
    .gallery img { max-width: 23%; }
}
