/* Jaspers Brush Airfield - Style Sheet */
/* Aviation-themed: Dark blues, whites, professional */

:root {
    --primary-dark: #1a2744;
    --primary-blue: #2c4a7c;
    --primary-light: #3d6bb5;
    --accent-blue: #4a90d9;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --border-color: #dce3ed;
    --warning-bg: #fff3cd;
    --warning-border: #ffc107;
    --warning-text: #856404;
    --table-header: #2c4a7c;
    --table-stripe: #f0f4f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 4px solid var(--accent-blue);
    position: relative;
}

.site-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.site-header .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
}

.site-header .ersa-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav-bar {
    background: var(--primary-dark);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-bar .nav-toggle {
    display: none;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    text-align: center;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-bar ul li a {
    color: #ccd6e6;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-bar ul li a:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Main Content */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Sections */
.section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue);
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Info Grid (for key-value pairs) */
.info-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.info-grid .label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-grid .value {
    color: var(--text-dark);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.data-table thead th {
    background: var(--table-header);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
    background: var(--table-stripe);
}

.data-table tbody tr:hover {
    background: #e8eef6;
}

/* Bullet lists */
.section ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Warning boxes */
.warning-box {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.9rem;
    color: var(--warning-text);
}

.warning-box strong {
    display: inline;
}

/* Schematic image */
.schematic-container {
    text-align: center;
    margin: 1.5rem 0;
}

.schematic-container img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.schematic-container .caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #99aabb;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    line-height: 1.8;
}

.site-footer strong {
    color: #ccd6e6;
}

/* Contact highlight */
.contact-box {
    background: #eef4fb;
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.contact-box p {
    margin-bottom: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .site-header .subtitle {
        font-size: 0.9rem;
    }

    .nav-bar .nav-toggle {
        display: block;
    }

    .nav-bar ul {
        display: none;
        flex-direction: column;
        margin-top: 0.5rem;
    }

    .nav-bar ul.active {
        display: flex;
    }

    .nav-bar ul li a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1rem;
    }

    .section {
        padding: 1.25rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .info-grid .label {
        margin-top: 0.5rem;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 0.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.3rem;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 0.4rem;
    }
}

/* PDF Download Button */
.pdf-download {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    color: #1a2744;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}
.pdf-download:hover {
    background: #e8edf5;
    transform: translateY(-1px);
}
