/* ─────────────────────────────────────────────────────
   PLATINUM FOUNDATION — main.css
   Global: reset, vars, nav, footer, buttons, reveal
───────────────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; }
ul   { list-style: none; }

/* ── Project-specific vars (not in WJM system) ── */
:root {
    --teal:      #145f74;
    --platinum:  #b8c4cc;
    --light:     #ece8e0;
    --text-mid:  #3d5060;
    --white:     #ffffff;

    --f-display: 'Baskervville', Georgia, serif;
    --f-body:    'Raleway', system-ui, sans-serif;
}

body {
    font-family: var(--f-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────── */

#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 32px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding .4s ease, background .4s ease, border-color .4s ease;
    border-bottom: 1px solid transparent;
}

#site-nav.nav-solid,
#site-nav.scrolled {
    padding: 16px 64px;
    background: rgba(9,21,32,.96);
    border-color: rgba(184,196,204,.12);
}

/* backdrop-filter on pseudo-element avoids creating a new containing block
   which would break position:fixed on child .nav-links */
#site-nav.nav-solid::before,
#site-nav.scrolled::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: -1;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo { height: auto; width: auto; max-height: 48px; display: block; }
.footer-logo { height: auto; width: auto; max-height: 60px; display: block; margin-bottom: 16px; }
.nav-logo--mobile { display: none; }
@media (max-width: 768px) {
    .nav-logo--desktop { display: none; }
    .nav-logo--mobile  { display: block; }
}

.nav-brand-name {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: .28em;
    color: var(--white);
    text-transform: uppercase;
}

.nav-brand-sub {
    font-weight: 400;
    font-size: 9px;
    letter-spacing: .38em;
    color: var(--platinum);
    text-transform: uppercase;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    position: relative;
    transition: color .25s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--purple);
    transition: width .3s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--white); }

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--white);
    transition: transform .3s ease, opacity .3s ease;
}

#site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────── */

.btn-primary {
    display: inline-block;
    padding: 16px 42px;
    background: var(--purple);
    color: var(--white);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    transition: background .25s, transform .25s, box-shadow .25s;
}

.btn-primary:hover {
    background: var(--purple-lt);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(196,144,58,.38);
}

.btn-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--purple);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s;
    white-space: nowrap;
}

.btn-bar::after {
    content: '\2192';
    font-size: 14px;
    transition: transform .25s;
}

.btn-bar:hover { color: var(--purple-lt); }
.btn-bar:hover::after { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────
   SECTION LABEL
───────────────────────────────────────────────────── */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 20px;
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 24px; height: 1px;
    background: var(--purple);
}

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */

.site-footer {
    background: var(--dark);
    padding: 72px 64px 40px;
}

.footer-top {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(184,196,204,.1);
    margin-bottom: 40px;
}

.footer-brand-name {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: .28em;
    color: var(--white);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.footer-brand-sub {
    font-weight: 400;
    font-size: 9px;
    letter-spacing: .38em;
    color: var(--platinum);
    text-transform: uppercase;
    display: block;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 260px;
}

.footer-col-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--platinum);
    margin-bottom: 20px;
}

.footer-links li + li { margin-top: 12px; }

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    transition: color .2s;
}

.footer-links a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 11px;
    color: rgba(255,255,255,.25);
    letter-spacing: .05em;
}

.footer-sig {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 13px;
    color: rgba(184,196,204,.3);
    letter-spacing: .1em;
}

/* ─────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─────────────────────────────────────────────────────
   KEYFRAMES
───────────────────────────────────────────────────── */

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes trackPulse {
    0%   { top: -100%; }
    100% { top: 100%; }
}

@keyframes pulsering {
    0%   { transform: scale(.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE — NAV + FOOTER
───────────────────────────────────────────────────── */

@media (max-width: 900px) {
    #site-nav,
    #site-nav.nav-solid { padding: 20px 32px; }
    #site-nav.scrolled  { padding: 14px 32px; }
    .footer-top { gap: 40px; }
}

@media (max-width: 768px) {
    #site-nav,
    #site-nav.nav-solid { padding: 18px 24px; }
    #site-nav.scrolled  { padding: 14px 24px; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(9,21,32,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 96px 32px 48px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .4s ease;
        z-index: 250;
    }

    #site-nav.nav-open .nav-links { transform: translateX(0); }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .nav-links a {
        display: block;
        padding: 18px 0;
        font-size: 13px;
        letter-spacing: .2em;
    }

    .nav-links a::after { display: none; }

    .site-footer { padding: 48px 24px 32px; }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
        margin-bottom: 28px;
    }

    .footer-tagline { max-width: 100%; }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .reveal-left,
    .reveal-right { transform: translateY(24px); }
}
