﻿:root {
    --alabaster: #FAFAFA;
    --navy-950: #0B1A2E;
    --navy-900: #0E2038;
    --navy-800: #173355;
    --navy-700: #204572;
    --gold-500: #C9A13B;
    --gold-400: #DEBE6B;
    --gold-100: #F6ECD2;
    --cream-50: #FAF6EC;
    --ink-900: #1C2430;
    --ink-600: #4A5568;
    --teal-600: #2F6F62;
    --line-dark: rgba(255,255,255,0.12);
    --line-light: rgba(14,32,56,0.10);
    --shadow-1: 0 10px 30px -12px rgba(14,32,56,0.25);
    --radius-card: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream-50);
    color: var(--ink-900);
    font-family: 'Inter',system-ui,sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: 'Fraunces',serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.eyebrow {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-dark);
}

.navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-50);
    flex-shrink: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(155deg,var(--gold-400),var(--gold-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-950);
    font-family: 'Fraunces',serif;
    font-weight: 900;
    font-size: 17px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

    .brand-text strong {
        font-family: 'Fraunces',serif;
        font-size: 22px;
        font-weight: 700;
    }

    .brand-text span {
        font-family: 'IBM Plex Mono',monospace;
        font-size: 13px;
        letter-spacing: 0.14em;
        color: var(--gold-400);
        text-transform: uppercase;
    }

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

    .nav-links a {
        color: rgba(250,246,236,0.78);
        font-size: 14.5px;
        font-weight: 500;
        padding: 9px 14px;
        border-radius: 8px;
        transition: background .15s ease, color .15s ease;
    }

        .nav-links a:hover {
            background: rgba(255,255,255,0.06);
            color: var(--cream-50);
        }

        .nav-links a.active {
            color: var(--gold-400);
        }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.social-row {
    display: flex;
    gap: 8px;
}

    .social-row a {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.06);
        color: rgba(250,246,236,0.75);
        transition: background .15s ease,color .15s ease,transform .15s ease;
    }

        .social-row a:hover {
            background: var(--gold-500);
            color: var(--navy-950);
            transform: translateY(-1px);
        }

    .social-row svg {
        width: 15px;
        height: 15px;
    }

.avatar-menu {
    position: relative;
}

.avatar-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line-dark);
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    color: var(--cream-50);
}

    .avatar-trigger:hover {
        background: rgba(255,255,255,0.1);
    }

.avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(155deg,var(--gold-400),var(--gold-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces',serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy-950);
    flex-shrink: 0;
}

.avatar-trigger span {
    font-size: 13px;
    font-weight: 600;
}

.avatar-trigger svg {
    width: 14px;
    height: 14px;
    color: rgba(250,246,236,0.6);
}

.avatar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    padding: 6px;
    display: none;
    z-index: 50;
}

    .avatar-dropdown.open {
        display: block;
    }

    .avatar-dropdown a, .avatar-dropdown button {
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100%;
        text-align: left;
        padding: 9px 10px;
        border-radius: 7px;
        font-size: 13.5px;
        color: var(--ink-900);
        background: none;
        border: none;
    }

        .avatar-dropdown a:hover, .avatar-dropdown button:hover {
            background: var(--cream-50);
        }

    .avatar-dropdown svg {
        width: 15px;
        height: 15px;
        color: var(--ink-600);
    }

    .avatar-dropdown .danger {
        color: var(--red-600);
    }

        .avatar-dropdown .danger svg {
            color: var(--red-600);
        }

.dropdown-sep {
    height: 1px;
    background: var(--line-light);
    margin: 5px 4px;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid rgba(222,190,107,0.5);
    color: var(--gold-400);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .15s ease,color .15s ease;
    white-space: nowrap;
}

    .btn-login:hover {
        background: var(--gold-500);
        color: var(--navy-950);
    }

    .btn-login svg {
        width: 14px;
        height: 14px;
    }

.visitor-board {
    display: flex;
    background: var(--navy-900);
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    overflow: hidden;
}

.vb-cell {
    padding: 6px 14px;
    text-align: center;
    border-right: 1px solid var(--line-dark);
}

    .vb-cell:last-child {
        border-right: none;
    }

.vb-label {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--alabaster);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.vb-value {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-400);
    letter-spacing: 0.03em;
    text-shadow: 0 0 12px rgba(222,190,107,0.35);
}

.vb-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    margin-right: 5px;
    box-shadow: 0 0 6px #4ADE80;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.nav-toggle {
    display: none;
}


/* ================= FOOTER ================= */
footer {
    background: var(--navy-950);
    color: rgba(250,246,236,0.7);
}

.footer-top {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 28px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.7;
    margin: 14px 0 18px;
    max-width: 280px;
}

.footer-brand .social-row a {
    background: rgba(255,255,255,0.06);
}

footer h4 {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

    .footer-links a {
        font-size: 13.5px;
        transition: color .15s ease;
    }

        .footer-links a:hover {
            color: var(--cream-50);
        }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
}

    .footer-contact div {
        display: flex;
        gap: 9px;
        align-items: flex-start;
    }

    .footer-contact svg {
        width: 15px;
        height: 15px;
        color: var(--gold-400);
        flex-shrink: 0;
        margin-top: 2px;
    }

.newsletter {
    display: flex;
    margin-top: 6px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    overflow: hidden;
}

    .newsletter input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 10px 12px;
        color: var(--cream-50);
        font-size: 13px;
        outline: none;
        font-family: inherit;
    }

        .newsletter input::placeholder {
            color: rgba(250,246,236,0.4);
        }

    .newsletter button {
        border: none;
        background: var(--gold-500);
        color: var(--navy-950);
        padding: 0 16px;
        font-weight: 700;
        font-size: 13px;
    }

.footer-bottom {
    border-top: 1px solid var(--line-dark);
    padding: 20px 28px;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(250,246,236,0.45);
}

    .footer-bottom a {
        color: rgba(250,246,236,0.55);
    }

        .footer-bottom a:hover {
            color: var(--gold-400);
        }

.legal-links {
    display: flex;
    gap: 18px;
}

@media (max-width:960px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:840px) {
    .nav-links {
        display: none;
    }

    .visitor-board {
        display: none;
    }

    .navbar-inner {
        min-height: 60px;
    }

    .page-hero h1 {
        font-size: 28px;
    }
}

@media (max-width:640px) {
    .wrap {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        padding: 44px 18px;
    }

    .navbar-inner {
        padding: 0 16px;
    }

    .footer-bottom {
        padding: 18px 16px;
    }

    .btn-login span {
        display: none;
    }
}
