/* Global variables and resets are defined in global.css */

main {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: var(--header-height) 24px 64px;
}

.area {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    /* Make each section a snap point aligned below header */
    scroll-snap-align: start;
    /* Ensure content never hides under sticky header */
    scroll-margin-top: var(--header-height);
}

/* Allow reaching the footer without being pulled back */
#contact { scroll-snap-align: start; }

header {
    backdrop-filter: blur(14px);
    background: rgba(10, 10, 10, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    left: 0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Ensure content layers above decorative background image */
main, footer { position: relative; z-index: 1; }
/* Keep header on top of everything */
header { z-index: 200; }

.header-inner {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--max-width);
}

#logo {
    height: 48px;
    width: auto;
}

nav {
    align-items: center;
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition);
    white-space: nowrap;
}

nav a:hover,
nav a:focus {
    background: var(--accent-08);
    color: var(--text-primary);
}

nav a.active {
    background: var(--accent-16);
    color: var(--text-primary);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent), var(--accent));
    border: none;
    border-radius: 999px;
    color: #050505;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 120px;
    padding: 32px 24px 48px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0 auto;
    max-width: var(--max-width);
}

.footer-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
}

footer nav {
    gap: 12px;
}

footer nav a {
    font-size: 0.85rem;
    padding: 8px 12px;
}

small {
    color: rgba(245, 245, 245, 0.64);
}

@media (max-width: 768px) {
    main {
        gap: 64px;
        padding: 72px 20px 56px;
    }

    header {
        padding: 14px 18px;
    }

    .header-inner {
        gap: 20px;
    }

    nav { display: none; }

    .cta-button {
        padding: 10px 18px;
    }

    footer nav {
        flex-wrap: wrap;
    }
}

/* Hide full nav earlier to avoid wrapping; keep CTA visible */
@media (max-width: 875px) {
    nav { display: none; }
    .header-inner { gap: 16px; }
}
