/* ==========================================================================
   1. GLOBAL RESET & BASE STYLING
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111827;
    background-color: #FFFFFF;
    line-height: 1.6;
    padding-top: 80px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #0A1C3A; /* Corporate Deep Navy */
    margin-bottom: 15px;
    font-weight: 700;
}

/* ==========================================================================
   2. UTILITY LAYOUT CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #F3F4F6; /* Section backdrop tint */
}

.center {
    text-align: center;
}

/* ==========================================================================
   3. STICKY TOP NAVIGATION HEADERBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(10, 28, 58, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #111827;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover, 
            .active {
    color: #FF5722; /* Safety Orange Accent */
}

.nav-links .nav-cta {
    background-color: #0A1C3A;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.nav-links .nav-cta:hover {
    background-color: #FF5722;
}

/* ==========================================================================
   4. HERO BANNER BLOCKS (LANDING & SUBPAGES)
   ========================================================================== */
.hero {
    position: relative;
    background: url('img/hero-bg.jpg') no-repeat center center/cover;
    padding: 140px 0;
    text-align: center;
    color: #FFFFFF;
}



.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 28, 58, 0.75); /* Dark protective overlay matrix */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.subpage-hero {
    padding: 80px 0;
}

/* ==========================================================================
   5. FLEX / GRID CORE COLUMNS
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #0A1C3A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(10, 28, 58, 0.1);
}

.icon {
    font-size: 2.5rem;
    color: #FF5722;
    margin-bottom: 20px;
}

/* ==========================================================================
   6. INTERACTIVE DATA REQUEST FORMS
   ========================================================================== */
.form-layout {
    max-width: 600px;
    margin: 40px auto 0;
    background: #F3F4F6;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0A1C3A;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #0A1C3A;
}

/* ==========================================================================
   7. INTERACTIVE BUTTON METRICS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #FF5722;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #E64A19;
}

.full-width {
    width: 100%;
    display: block;
}

/* ==========================================================================
   8. DYNAMIC INTERFACE TELEMETRY ALERTS
   ========================================================================== */
.alert {
    padding: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #F3F4F6;
    color: #0A1C3A;
    border-left: 6px solid #0A1C3A;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border-left: 6px solid #DC2626;
}

/* ==========================================================================
   9. GLOBAL ENTERPRISE FOOTER ROWS
   ========================================================================== */
footer {
    background: #111827; /* Dark charcoal branding matrix */
    color: #FFFFFF;
    padding: 60px 0 0;
    margin-top: 60px;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #FF5722;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

footer h4 {
    color: #FF5722;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #374151;
    padding-bottom: 8px;
    display: inline-block;
}

.nmea-showcase-single {
    margin-top: 20px;
    max-width: 300px;
}

.nmea-merged-img {
    width: 100%;
    height: auto;
    background-color: #FFFFFF;
    padding: 6px;
    border-radius: 6px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 30px 0 50px;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
}