/* ---------------------------------------------------------
   1. GLOBAL VARIABLES & RESET
--------------------------------------------------------- */
:root {
    --color-primary: #3AA7FF;
    --color-navy: #0A1A2F;
    --color-text-main: #0A1A2F;
    --color-text-muted: #6B7480;
    --color-bg-soft: #F5F7FA;
    --color-border: #E1E6EB;
    --nua-container-max: 1120px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
}

/* ---------------------------------------------------------
   2. SHARED LAYOUT COMPONENTS
--------------------------------------------------------- */
.nua-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .nua-container {
        max-width: var(--nua-container-max);
        padding: 0 2rem;
    }
}

main {
    min-height: 60vh; /* Prevents footer jumping on short pages */
}

/* ---------------------------------------------------------
   3. MASTER NAVIGATION (Gap-Proof)
--------------------------------------------------------- */
#nua-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

#nua-header .nav-item-services {
    position: relative;
    padding: 1.5rem 0; /* Vertical bridge for hover state */
    cursor: pointer;
}

#nua-header .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: white;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(10, 26, 47, 0.08);
    z-index: 110;
    padding: 2.5rem 0 3.5rem 0;
}

#nua-header .nav-item-services:hover .mega-menu {
    display: block;
}

#nua-header a {
    transition: color 0.2s ease-in-out;
}

/* ---------------------------------------------------------
   4. MASTER FOOTER
--------------------------------------------------------- */
#nua-footer {
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 3rem 0;
}

#nua-footer a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

#nua-footer a:hover {
    color: var(--color-primary);
}

.form-input {
    @apply w-full px-5 py-4 rounded-xl border border-gray-300 bg-gray-50/50 text-[--color-navy] placeholder-gray-400 focus:outline-none focus:border-[--color-primary] focus:bg-white focus:ring-4 focus:ring-blue-50 transition-all text-sm;
}

/* ---------------------------------------------------------
   5. UNIVERSAL UI ELEMENTS
--------------------------------------------------------- */
.btn-primary {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 0.85rem 2.2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background-color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(58, 167, 255, 0.2);
}

/* Back Link for Articles/Projects */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-decoration: none;
}

/* ---------------------------------------------------------
   6. ARTICLE & PROJECT TYPOGRAPHY
--------------------------------------------------------- */
.editorial-body {
    max-width: 800px;
    margin: 0 auto;
}

.editorial-body h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--color-navy);
}

.editorial-body p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #4B5563;
    line-height: 1.8;
}