/* ══════════════════════════════════════════
   SHARED STYLES — Nav & Footer
   ══════════════════════════════════════════ */

/* ── NAV ─────────────────────────────── */
nav {
    position: fixed;
    top: 12px;
    left: 56px;
    right: 56px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: rgba(250,252,254,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(200,232,245,0.3);
    box-shadow: 0 12px 48px rgba(42,125,176,0.12);
    transition: transform 0.3s ease, top 0.3s ease;
}
nav.nav-hidden { transform: translateY(-140px); }

.nav-logo {
    display: flex;
    align-items: center;
    height: 64px;
    text-decoration: none;
}
.nav-logo img { height: 100%; object-fit: contain; }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

.nav-cta {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--blue);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.nav-cta:hover { background: var(--blue-dark); }

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A7DB0, #FF6B35);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white, #FAFCFE);
    border: 1px solid var(--border, rgba(42,125,176,0.15));
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 200;
}
.profile-menu.show { display: flex; }
.profile-menu a, .profile-menu button {
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    color: var(--ink, #0D2233);
    text-decoration: none;
    border-bottom: 1px solid var(--border, rgba(42,125,176,0.15));
}
.profile-menu a:last-child, .profile-menu button:last-child { border-bottom: none; }
.profile-menu a:hover, .profile-menu button:hover { background: var(--cream, #F2F7FA); }

/* ── FOOTER ──────────────────────────── */
footer {
    background: var(--ink, #0D2233);
    padding: 80px 56px 48px;
    color: var(--sky, #C8E8F5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 64px;
}

.footer-logo {
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(200,232,245,0.5);
    max-width: 240px;
}

.footer-heading {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--sky-deep, #6FB5D8);
    margin-bottom: 16px;
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a {
    font-size: 13px;
    font-weight: 300;
    color: rgba(200,232,245,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-list a:hover { color: var(--sky, #C8E8F5); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(200,232,245,0.1);
    font-size: 10px;
    font-weight: 300;
    color: rgba(200,232,245,0.3);
}

/* ── HAMBURGER BUTTON ────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 201;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink, #0D2233);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ───────────────────── */
.nav-drawer {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250,252,254,0.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.nav-drawer.open { display: flex; }
.nav-drawer ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.nav-drawer ul a {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink, #0D2233);
    text-decoration: none;
}
.nav-drawer ul a:hover,
.nav-drawer ul a.active { color: var(--blue, #2A7DB0); }
.nav-drawer .drawer-cta {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--blue, #2A7DB0);
    color: #fff;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 4px;
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
    nav { left: 28px; right: 28px; padding: 20px 24px; }
    .nav-links { display: none; }
    footer { padding: 60px 28px 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    nav {
        left: 12px;
        right: 12px;
        top: 8px;
        padding: 12px 16px;
    }
    .nav-logo { height: 44px; }
    .nav-links { display: none !important; }
    .nav-actions .nav-cta { display: none !important; }
    .nav-hamburger { display: flex !important; }

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