/* CSS Stylesheet - Revised with Contact Panel Alignment Fixes */

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

html {
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
    background-color: #000000;
    color: #ffffff;
}

body {
    background-color: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation Bar */
.main-header {
    background-color: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-mini-logo {
    width: 24px;
    height: 24px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #aaaaaa;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-nav a {
    font-family: 'Oswald', sans-serif;
    text-decoration: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    padding-bottom: 4px;
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, 
.main-nav a.active {
    color: #ffffff;
    border-color: #ffffff;
}

/* Hero / Banner Area */
.hero-section {
    position: relative;
    height: 480px;
    margin-top: 50px; 
    background-color: #1a1a1a;
    background-image: radial-gradient(circle at center, rgba(0,0,0,0.1) 100%, rgba(0,0,0,0.8) 100%), url('images/PondBackground.webp');
    background-size: cover;
    background-position: center 65%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.crest-container {
    width: 100%;
    text-align: center;
}

.crest-image-fallback {
    max-width: 100%;
    height: auto;
    max-height: 380px;
}

.crest-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 4px 12px rgba(0,0,0,0.6));
}

/* Tagline Bar Section */
.tagline-section {
    background-color: #000000;
    padding: 35px 24px 30px 24px;
    text-align: center;
    border-bottom: 1px solid #1c1c1c;
}

.tagline-container {
    max-width: 900px;
    margin: 0 auto;
}

.main-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 4px;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 12px;
}

.tagline-divider {
    position: relative;
    width: 120px;
    height: 1px;
    background-color: #555555;
    margin: 16px auto;
}

.tagline-divider .diamond {
    position: absolute;
    top: -3px;
    left: 57px;
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    transform: rotate(45deg);
}

.sub-tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.8px;
    color: #cccccc;
    max-width: 760px;
    margin: 0 auto;
}

/* Content Grid Section (4 columns matching original) */
.grid-section {
    background-color: #edebe6; 
    color: #111111;
    padding: 40px 0;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch; /* Set to stretch to ensure columns take up full programmatic height */
}

.grid-column {
    padding: 0 25px;
    display: flex;
    flex-direction: column; /* Encourages content alignment inside each segment */
}

.grid-column:not(:last-child) {
    border-right: 1px solid rgba(17, 17, 17, 0.15);
}

.grid-column h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #111111;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.column-content p {
    font-size: 11px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 16px;
    font-weight: 400;
}

/* Lists with Icons layout (Col 2 & Col 4) */
.list-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.icon-text-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.item-icon-container {
    background-color: #111111;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.item-svg {
    width: 18px;
    height: 18px;
}

.item-body {
    display: flex;
    flex-direction: column;
}

.item-body h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #111111;
    margin-bottom: 3px;
}

.item-body p {
    font-size: 10.5px;
    line-height: 1.4;
    color: #444444;
    margin-bottom: 0;
}

/* FIXED: Weapon Systems Structural Layout alignment */
.weapons-col {
    display: flex;
    flex-direction: column;
}

.spec-layout {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Instructs inner div wrapper to stretch fully */
    justify-content: space-between; /* Securely pins list to top and contact module to bottom */
}

.weapons-list {
    list-style: none;
    margin-bottom: 25px;
}

.weapons-list li {
    font-size: 11px;
    line-height: 1.5;
    color: #222222;
    padding: 4px 0 4px 12px;
    position: relative;
    font-weight: 400;
}

.weapons-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #111111;
    font-size: 12px;
}

/* Contact Widget Layout */
.contact-box-widget {
    margin-top: auto; /* Solidifies bottom alignment anchorage */
    width: 100%;
    border: 1px solid #c2c0ba;
}

.contact-widget-header {
    background-color: #111111;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    padding: 6px 0;
}

.contact-widget-body {
    background-color: #ffffff;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111111;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400;
}

.contact-email-link:hover {
    text-decoration: underline;
}

.email-icon {
    width: 14px;
    height: 14px;
}

/* Principles / Matrix Ribbon Bar (Bottom) */
.principles-bar {
    background-color: #0b0b0b;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    padding: 24px 0;
}

.principles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.principles-left {
    display: flex;
    align-items: center;
}

.stacked-heading {
    display: flex;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.3;
    color: #ffffff;
    width: 120px;
}

.heading-separator-line {
    width: 1px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

.principles-quote {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #aaaaaa;
    letter-spacing: 0.5px;
}

.principles-right {
    display: flex;
    gap: 28px;
}

.principle-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 70px;
}

.node-svg {
    width: 18px;
    height: 18px;
    opacity: 0.85;
}

.node-label {
    font-family: 'Oswald', sans-serif;
    font-size: 8.5px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #888888;
    text-align: center;
}

/* Site Footer */
.site-footer {
    background-color: #000000;
    padding: 16px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-mini-logo {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #666666;
}

.footer-pipe {
    color: #444444;
    margin: 0 2px;
}

.footer-right {
    font-family: 'Oswald', sans-serif;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #666666;
}

/* Responsive Grid Fluid Media Queries */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        align-items: start;
    }
    .grid-column:not(:last-child) {
        border-right: none;
    }
    .grid-column {
        border-bottom: 1px solid rgba(17, 17, 17, 0.1);
        padding-bottom: 25px;
    }
    .principles-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .principles-left {
        flex-direction: column;
        gap: 10px;
    }
    .heading-separator-line {
        display: none;
    }
    .principles-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none; 
    }
    .main-tagline {
        font-size: 18px;
    }
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}