/* =============================================
   DARPA SOLUTIONS LLC Shared Foundation
   Header · Footer · Buttons · Reset · Nav
   ============================================= */

/* --- Variables --- */
:root {
    --primary:       #1e40af;
    --primary-light: #3b82f6;
    --primary-dark:  #1e3a8a;
    --accent:        #6482d5;
    --text:          #1e293b;
    --text-light:    #64748b;
    --bg:            #ffffff;
    --bg-light:      #f8fafc;
    --bg-blue:       #eff6ff;
    --border:        #e2e8f0;
    --radius:        8px;
    --radius-lg:     16px;
    --shadow-sm:     0 2px 8px rgba(30,64,175,0.06);
    --shadow:        0 4px 24px rgba(30,64,175,0.10);
    --shadow-lg:     0 12px 48px rgba(30,64,175,0.14);
    --transition:    all 0.3s ease;
}

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

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

input,
textarea,
select,
button,
[contenteditable="true"] {
    caret-color: auto;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
address { font-style: normal; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* --- Section helper --- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 14px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    line-height: 1;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,64,175,0.28);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    line-height: 1;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    line-height: 1;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.navbar {
    height: 96px;
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar .container {
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
    margin: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    cursor: pointer;
    margin-left: 110px;
}

/* Slightly lower only the header logo without affecting footer logo placement. */
.header .logo {
    transform: translateY(14px);
}

.logo img {
    height: 136px;
    width: auto;
    object-fit: contain;
    image-rendering: auto;
}
.logo span { display: none; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    color: var(--text);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--bg-blue);
}

.btn-nav {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 9px 22px !important;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
}
.btn-nav:hover {
    background: var(--primary-dark) !important;
    transform: none;
}
.btn-nav.active {
    background: var(--primary-dark) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #fff;
    border-top: none;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 52px;
}

.footer-brand .logo { margin-bottom: 16px; display: inline-block; margin-left: -10px; }
.footer-brand .logo img { height: 200px; width: auto; object-fit: contain; }

.footer-brand p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 270px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col address {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.75;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a { color: var(--text-light); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(30,64,175,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* =============================================
   ANIMATIONS
   ============================================= */
.animate-in {
    animation: fadeSlideUp 0.55s ease forwards;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SHARED PROMO BANNER
   ============================================= */
.site-promo-banner,
.eq-promo-banner {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 32px 0;
    overflow: hidden;
    position: relative;
}

.promo-ticker {
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 20px;
}

.promo-ticker-track {
    display: inline-flex;
    animation: ticker-scroll 25s linear infinite;
}

.ticker-item {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    padding-right: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.promo-cta-wrap {
    text-align: center;
}

/* =============================================
   RESPONSIVE NAV & FOOTER
   ============================================= */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 769px) {
    .header {
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }

    .navbar .container { padding: 0 16px; }

    .logo { margin-left: 0; }

    .header .logo {
        width: auto;
        height: auto;
        overflow: visible;
        display: flex;
        align-items: center;
        transform: none;
    }

    .header .logo img {
        width: auto;
        height: 100px;
        max-width: 100%;
        object-fit: contain;
        image-rendering: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 96px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 16px;
        gap: 2px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-menu.active { display: flex; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .header .logo img {
        height: 90px;
    }

    .site-promo-banner,
    .eq-promo-banner {
        padding: 32px 0;
    }

    .footer-grid { grid-template-columns: 1fr; }
}
