/* ─── Site Header ────────────────────────────────────────────────────────────
   Fixed. Transparent at top. Blurs in on scroll.
────────────────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: auto;
}

/* Frosted-glass state on scroll */
.site-header.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ─── Brand wordmark ─────────────────────────────────────────────────────── */
.header-brand {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-brand span {
    color: #ff0000;
    letter-spacing: 0.04em;
    /* slightly tighter on "CG" */
}

/* ─── Nav links ──────────────────────────────────────────────────────────── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.header-nav a:hover {
    color: #fff;
}

/* ─── Hamburger (mobile only) ────────────────────────────────────────────── */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9002;
}

.header-hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Open state */
.header-hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.header-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.header-hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile menu drawer ─────────────────────────────────────────────────── */
.header-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 68px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.header-mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.header-mobile-menu a {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.header-mobile-menu a:hover {
    color: #ff0000;
}

/* ─── Responsive breakpoint ──────────────────────────────────────────────── */
@media (max-width: 680px) {
    .header-nav {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }
}

/* ─── Prevent hero from sitting under the fixed header ───────────────────── */
.header-spacer {
    height: 68px;
    flex-shrink: 0;
    pointer-events: none;
}


/* ─── Site Footer ────────────────────────────────────────────────────────────
   Dark, clean, minimal layout securely pinned to bottom of page.
────────────────────────────────────────────────────────────────────────────── */

.site-footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem clamp(1.5rem, 5vw, 4.5rem) 1.5rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    /* Pushes footer down if page is short (needs body flex) */
    display: flex;
    flex-direction: column;
}

/* Soft top fade from transparent to #0a0a0a over 100px */
.site-footer::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
}

/* Very subtle grain texture */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
}

/* ─── Shared inner container — all content rows share the same boundary ---- */
.footer-top,
.footer-bottom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    padding-left: clamp(1.5rem, 5vw, 4.5rem);
    padding-right: clamp(1.5rem, 5vw, 4.5rem);
}

/* ─── Top Section ────────────────────────────────────────────────────────── */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: auto;
    /* Pushes bottom row down */
    padding-bottom: 2rem;
}

/* ─── Tagline row ────────────────────────────────────────────────────────── */
.footer-tagline {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    text-align: left;
}

/* ─── Main block (Identity + Links) ──────────────────────────────────────── */
.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-identity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.footer-brand span {
    color: #ff0000;
}

.footer-tagline-sub {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

/* ─── Links block ────────────────────────────────────────────────────────── */
.footer-links {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-link-group-label {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.2rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
}

.footer-socials a:hover svg {
    color: #ff0000;
    transform: scale(1.1);
}

.footer-link-group a {
    font-family: 'Satoshi', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.footer-link-group a:hover {
    color: #fff;
}

/* ─── Bottom row: copyright ──────────────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.8rem;
    text-align: left;
    font-family: 'Satoshi', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.04em;
    margin-top: auto;
}

/* ─── Mobile footer ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-bottom,
    .footer-tagline {
        text-align: left;
    }
}

/* ─── Desktop Two-Column Footer ──────────────────────────────────────────── */
@media (min-width: 860px) {
    .site-footer {
        padding-left: 0;
        padding-right: 0;
    }

    /* Side-by-side row without vertical stretching */
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        /* Re-apply max-width for flex container */
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
        padding-left: clamp(1.5rem, 5vw, 4.5rem);
        padding-right: clamp(1.5rem, 5vw, 4.5rem);
        margin-bottom: auto;
        padding-bottom: 2.5rem;
    }

    .footer-tagline {
        flex: 1;
        max-width: 480px;
        padding-top: 0.2rem;
        /* visually aligns line height with brand text */
        margin-bottom: 0;
        /* Remove margin-bottom from original .footer-top */
        padding-right: 4rem;
        /* Breathe space before right col */
    }

    /* Stack the Identity block and Links block into a right column */
    .footer-main {
        flex: 1;
        max-width: 420px;
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-bottom {
        margin-top: 0;
    }
}