/* ============================================================
   BASE.CSS — shared across every page (variables, reset, header,
   navigation, hamburger menu, and footer). Edit once here, it
   updates on every page. Page-specific styles live in css/<page>.css
   ============================================================ */

:root {
    --bg-dark: #0e0c0d;
    --bg-mid: #1a1618;
    --bg-card: #1e1a1b;
    --orange: #eb6e2a;
    --orange-dim: rgba(235,110,42,0.12);
    --blue: #26b0e5;
    --blue-dim: rgba(38,176,229,0.12);
    --text-light: #ffffff;
    --text-grey: #8a8a8a;
    --text-muted: #555;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --border: rgba(255,255,255,0.07);
    --glow-o: 0 0 40px rgba(235,110,42,0.2);
    --glow-b: 0 0 40px rgba(38,176,229,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* subtle grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ── HEADER ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 50px;
    background: rgba(14,12,13,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

.logo-container { display: flex; align-items: center; gap: 14px; }
.logo-container img.icon { height: 44px; }
.logo-container img.text { height: 28px; }

nav { display: flex; gap: 8px; align-items: center; }

nav a {
    text-decoration: none;
    color: var(--text-grey);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 7px 16px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

nav a:hover { color: var(--text-light); }
nav a.pill { color: #000; background-color: var(--orange); }
nav a.pill:hover { background-color: #ff7f3f; color: #000; }
nav a.pill.active { background-color: var(--orange); color: #000; }
nav a.pill.blue { background-color: var(--blue); color: #fff; }
nav a.pill.blue:hover { background-color: #3fc3f7; }
/* Join Us pill stays blue even when it's the active page (higher specificity wins) */
nav a.pill.blue.active { background-color: var(--blue); color: #fff; }

/* ── HAMBURGER & MOBILE NAV ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; z-index: 200; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-light); border-radius: 2px; transition: all 0.3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(14,12,13,0.97); backdrop-filter: blur(20px); z-index: 150; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; color: var(--text-light); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: 3px; text-transform: uppercase; padding: 12px 30px; border-radius: 8px; transition: all 0.2s; }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav a.pill { background: var(--orange); color: #000; }
.mobile-nav a.pill.active { background: var(--orange); color: #000; }
.mobile-nav a.pill.blue { background: var(--blue); color: #fff; }
.mobile-nav a.pill.blue.active { background: var(--blue); color: #fff; }

@media (max-width: 768px) {
    header { padding: 14px 20px; }
    nav { display: none; }
    .hamburger { display: flex; }
}

/* ── FOOTER ── */
footer {
    background: #111;
    border-top: 1px solid var(--border);
    padding: 80px 10vw 30px;
}

.footer-title {
    text-align: center;
    color: var(--orange);
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.footer-logo img { max-width: 130px; }

.contact-info { display: flex; gap: 50px; }
.contact-col { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-grey);
    font-size: 0.92rem;
    font-weight: 300;
}

.contact-item .icon-label { font-size: 1.1rem; min-width: 22px; }
.contact-item .icon-label-email { font-size: 1.1rem; min-width: 18px; margin-left: 4px; }

.contact-item a { color: var(--text-grey); text-decoration: none; transition: color 0.25s; }
.contact-item a:hover { color: var(--orange); }

.social-icons { display: flex; gap: 16px; align-items: center; }

.social-icons a {
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social-icons a:hover {
    border-color: var(--orange);
    background: var(--orange-dim);
    box-shadow: var(--glow-o);
}

.social-icons svg { width: 20px; height: 20px; fill: var(--text-grey); transition: fill 0.25s; }
.social-icons a:hover svg { fill: var(--orange); }

.footer-divider { max-width: 1100px; margin: 0 auto; height: 1px; background: var(--border); }

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 24px;
    letter-spacing: 1.5px;
    font-family: var(--font-head);
}

@media (max-width: 768px) {
    footer { padding: 60px 6vw 24px; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 30px; }
    .contact-info { flex-direction: column; gap: 16px; }
    .footer-title { font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 40px; }
    .footer-logo { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .footer-content { align-items: center; text-align: center; }
    .contact-item { justify-content: center; }
    .footer-logo { justify-content: center; }
}

/* ── SHARED UTILITY: scroll-reveal-on-scroll animation ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
