/* =========================================================================
   OAAN 41st AGM - Site Styles
   Clean, corporate style. Navy and gold from the OAAN logo, used sparingly.
   ========================================================================= */

:root {
    --navy: #152a6b;
    --navy-dark: #0d1b4a;
    --navy-soft: #22348a;
    --gold: #f4b400;
    --gold-dark: #d99c00;
    --bg-alt: #f7f8fb;
    --ink: #1c2233;
    --muted: #6b7280;
    --border: #d5dae8;
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-headline: 'Bebas Neue', 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

/* ---------- Loading progress bar + busy buttons ---------- */
#pageProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    z-index: 3000;
    opacity: 0;
    box-shadow: 0 0 8px rgba(244,180,0,.6);
    pointer-events: none;
}
#pageProgressBar.pb-loading {
    opacity: 1;
    width: 88%;
    transition: width 12s cubic-bezier(.1,.7,.25,1), opacity .15s ease;
}
#pageProgressBar.pb-done {
    width: 100%;
    opacity: 0;
    transition: width .25s ease, opacity .35s ease .2s;
}
.btn-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btnSpin .6s linear infinite;
    vertical-align: -2px;
    margin-right: 7px;
    opacity: .85;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}
[data-busy="1"] { cursor: progress; }
@media (prefers-reduced-motion: reduce) {
    #pageProgressBar.pb-loading { transition: opacity .15s ease; width: 88%; }
    .btn-spinner { animation-duration: 1.2s; }
}

html, body { height: 100%; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    font-weight: 600;
}

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--navy-dark);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
}
.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--navy-dark);
}

.btn-outline-light-gold {
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    background: transparent;
}
.btn-outline-light-gold:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}

.btn-navy {
    background: var(--navy);
    border: 1px solid var(--navy);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
}
.btn-navy:hover {
    background: var(--navy-dark);
    color: #fff;
}

/* ---------- Navbar ---------- */
.site-navbar {
    background: var(--navy-dark);
    padding: .75rem 0;
    border-bottom: 3px solid var(--gold);
}
.navbar-logo {
    height: 40px;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}
.brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
}
.site-navbar .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    padding: .5rem 1rem !important;
}
.site-navbar .nav-link:hover {
    color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--navy-dark);
    color: #fff;
    padding: 7rem 0 8rem;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero-bg {
    position: absolute;
    inset: -20px;
    background-image: url('../Images/hero.png');
    background-size: cover;
    background-position: center 12%;
    filter: blur(3px) saturate(115%) contrast(105%);
    transform: scale(1.15);
    opacity: .55;
    z-index: -2;
    animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
    0%   { transform: scale(1.15) translate(0, 0); }
    100% { transform: scale(1.28) translate(-1.5%, -1%); }
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13,27,74,.96) 0%, rgba(13,27,74,.88) 40%, rgba(21,42,107,.6) 75%, rgba(244,180,0,.28) 130%);
    z-index: -1;
}
.hero-ghost-text {
    position: absolute;
    left: -2%;
    right: 0;
    top: 34%;
    transform: translateY(-50%);
    font-family: var(--font-headline);
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: .85;
    color: rgba(255,255,255,.06);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
.hero-ghost-text--2 {
    top: auto;
    bottom: 6%;
    color: rgba(244,180,0,.08);
}
.hero .container { position: relative; z-index: 1; }

.hero-kicker {
    display: block;
    color: var(--gold);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .5rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px rgba(244,180,0,.35);
}
.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--navy-dark);
    display: inline-block;
}
.hero-title {
    font-family: var(--font-headline);
    font-weight: 400;
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    line-height: .88;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    text-shadow: 0 4px 40px rgba(0,0,0,.3);
}
.hero-title .accent {
    color: var(--gold);
    position: relative;
    display: inline-block;
}
.hero-theme {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--gold);
}
.hero-lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    padding: .55rem 1rem;
    border-radius: 6px;
    font-size: .92rem;
    font-weight: 500;
}
.hero-meta-item .icon { color: var(--gold); }
.hero-visual {
    position: relative;
}
.hero-visual::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(calc(-50% + 24px));
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: var(--gold);
    border-radius: 14px;
    z-index: 0;
}
.hero-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
    transform: rotate(-2deg);
    border: 1px solid rgba(255,255,255,.1);
}
.hero-actions .btn {
    margin-right: .75rem;
    margin-bottom: .5rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: .8rem 1.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg { animation: none; }
}
@media (max-width: 991px) {
    .hero-ghost-text { display: none; }
    .hero { clip-path: none; padding: 4rem 0 3rem; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-kicker {
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: .8rem;
}
.section-title {
    color: var(--navy-dark);
    font-weight: 700;
    margin-bottom: .75rem;
}
.section-lead {
    color: var(--muted);
    max-width: 640px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--border);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cta-band {
    background: var(--navy-dark);
    color: #fff;
    border-radius: 8px;
    padding: 3rem;
}

.review-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    height: 100%;
}
.review-stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(21,42,107,.1);
}
.form-label { font-weight: 600; color: var(--navy-dark); }
.form-control, .form-select {
    border-radius: 6px;
    padding: .65rem .9rem;
    border: 1.5px solid #b9c0d4;
    background: #fbfcfe;
}
.form-control::placeholder { color: #97a0b8; }
.form-control:focus, .form-select:focus {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 .2rem rgba(21,42,107,.15);
}
.page-header-band {
    background: var(--navy-dark);
    color: #fff;
    padding: 3rem 0 4.5rem;
}

.rating-list label { margin-right: 1.25rem; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,.7);
    border-top: 3px solid var(--gold);
}
.footer-logo { height: 40px; background: #fff; padding: 4px; border-radius: 6px; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: .8rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); }
.footer-links a:hover { color: var(--gold); }
.footer-muted { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-divider { border-color: rgba(255,255,255,.12); }
.footer-admin-link { color: rgba(255,255,255,.35); font-size: .78rem; }
.footer-admin-link:hover { color: var(--gold); }

/* ---------- Admin ---------- */
.admin-shell { background: var(--bg-alt); min-height: 100vh; }
.admin-topbar {
    background: var(--navy-dark);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid var(--gold);
}
.admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}
.stat-card-link {
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.stat-card-link:hover {
    background: var(--navy-soft);
    color: #fff;
    transform: translateY(-2px);
}
.stat-value { font-size: 1.9rem; font-weight: 700; }
.table thead { background: var(--navy); color: #fff; }
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    padding: 2rem;
}
.login-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.25rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .cta-band { padding: 2rem 1.5rem; }
}
