/* Main styles for Plutonium Post - global */

:root {
    /* Core palette */
    --charcoal: #1E1E28;
    --charcoal-light: #2A2A36;
    --charcoal-lighter: #35354A;
    --plutonium-yellow: #EFCD2A;
    --steam: #A7BEE5;
    --eggshell: #FCFFF3;

    /* Light theme tokens */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-dark: var(--charcoal);
    --text-primary: var(--charcoal);
    --text-secondary: rgba(30, 30, 40, 0.55);
    --text-on-dark: var(--eggshell);
    --text-muted-on-dark: rgba(252, 255, 243, 0.65);
    --border-light: rgba(30, 30, 40, 0.1);
    --border-dark: var(--charcoal-lighter);
}

/* Skip to content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--eggshell);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--plutonium-yellow);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.page-content {
    flex: 1;
}

body.nav-open {
    overflow: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text-primary);
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0;
    color: var(--text-primary);
}

p {
    max-width: 640px;
    margin-left: 0;
    color: var(--text-secondary);
}

/* Dark section overrides */
.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--text-on-dark);
}

.section-dark p {
    color: var(--text-muted-on-dark);
}

/* Gray section */
.section-gray {
    background-color: var(--bg-secondary);
}

/* Centered text utility */
.text-centered p {
    margin-left: auto;
    margin-right: auto;
}

/* CTA band */
.cta-band {
    text-align: center;
}

.cta-band p {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
}

/* Section spacing */
.section-padding {
    padding: 80px 0;
}

/* ─── Header ─── */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 1060;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.nav-open header {
    background-color: transparent;
    box-shadow: none;
}

body.nav-open header.scrolled .logo-name {
    color: var(--eggshell);
}

body.nav-open header.scrolled .logo-icon {
    filter: none;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-light);
}

/* Logo (icon + name) */
header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

header .logo-icon {
    height: 32px;
    width: auto;
    transition: filter 0.3s ease;
}

.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--eggshell);
    line-height: 32px;
    transition: color 0.3s ease;
}

/* Scrolled: invert icon, darken text */
header.scrolled .logo-icon {
    filter: brightness(0) saturate(100%);
}

header.scrolled .logo-name {
    color: var(--charcoal);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

/* ─── Navigation ─── */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--eggshell);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
}

/* Scrolled state: dark nav links */
header.scrolled .nav-link {
    color: var(--charcoal);
    opacity: 0.6;
}

header.scrolled .nav-link:hover {
    opacity: 1;
}

header.scrolled .nav-link.active {
    opacity: 1;
    color: var(--charcoal);
}

.nav-link.active {
    opacity: 1;
}

/* Creative: yellow hover + active */
.nav-link.nav-creative:hover {
    color: var(--plutonium-yellow);
}

.nav-link.creative-active {
    color: var(--plutonium-yellow);
}

header.scrolled .nav-link.nav-creative:hover,
header.scrolled .nav-link.creative-active {
    color: var(--plutonium-yellow);
}

/* Technical: blue hover + active */
.nav-link.nav-tech:hover {
    color: var(--steam);
}

.nav-link.technical-active {
    color: var(--steam);
}

header.scrolled .nav-link.nav-tech:hover,
header.scrolled .nav-link.technical-active {
    color: var(--steam);
}

/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--eggshell);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

header.scrolled .hamburger span {
    background: var(--charcoal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger.active span {
    background: var(--eggshell);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-overlay nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-overlay a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--eggshell);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-overlay a:hover {
    color: var(--plutonium-yellow);
}

/* ─── Buttons ─── */
.cta-button {
    display: inline-block;
    background-color: var(--plutonium-yellow);
    color: var(--charcoal);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 205, 42, 0.3);
}

.cta-button.outline {
    background: transparent;
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
}

.cta-button.outline:hover {
    background: var(--charcoal);
    color: var(--eggshell);
    transform: translateY(-1px);
}

/* Dark section buttons */
.section-dark .cta-button.outline {
    border-color: var(--plutonium-yellow);
    color: var(--plutonium-yellow);
}

.section-dark .cta-button.outline:hover {
    background: var(--plutonium-yellow);
    color: var(--charcoal);
}

/* ─── Breadcrumbs ─── */
.breadcrumb {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--plutonium-yellow);
}

.breadcrumb .separator {
    margin: 0 8px;
}

/* ─── Utility ─── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Yellow accent line */
.accent-line {
    width: 48px;
    height: 3px;
    background: var(--plutonium-yellow);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* ─── Footer ─── */
footer {
    background-color: var(--bg-dark);
    padding: 64px 0 16px;
    color: var(--text-muted-on-dark);
    font-size: 0.85rem;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: block;
}

.footer-logo img {
    height: auto;
    max-width: 180px;
    margin-bottom: 16px;
    display: block;
}

.footer-tagline {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted-on-dark);
    max-width: none;
}

.footer-heading,
.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--eggshell);
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--text-muted-on-dark);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: none;
}

.footer-links,
.footer-links li {
    list-style: none;
    padding: 0;
}

.footer-col a {
    display: block;
    color: var(--text-muted-on-dark);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--plutonium-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted-on-dark);
    font-size: 0.8rem;
}

.footer-bottom p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted-on-dark);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    header .container {
        padding: 14px 20px;
    }

    .section-padding {
        padding: 56px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

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