/* =====================================
   PINT & PROTECT — Design System
   WWII British Propaganda Poster Aesthetic
   ===================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Wartime Palette */
    --navy: #1B2A4A;
    --navy-deep: #0F1B33;
    --navy-light: #2A3F66;
    --red: #8B1A1A;
    --red-bright: #B22234;
    --red-dark: #5C1010;
    --cream: #F5F0E1;
    --cream-dark: #E8DFC8;
    --cream-light: #FAF7EE;
    --gold: #C9A238;
    --gold-bright: #D4AF37;
    --gold-dark: #A07D1C;
    --olive: #4A5D3A;
    --olive-light: #5E7648;
    --brown: #3E2723;
    --charcoal: #2C2C2C;

    /* Typography */
    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    
    /* Spacing */
    --section-pad: 6rem;
    --container-max: 1200px;
    --gap: 2rem;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Paper grain texture overlay */
.paper-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 2rem;
    border: none;
}

.text-center { text-align: center; }
.text-cream { color: var(--cream); }
.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 2rem;
    border: 3px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.4s var(--ease-out);
}

.btn:hover::after {
    left: 100%;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold-dark);
}

.btn-gold:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 56, 0.4);
}

.btn-red {
    background: var(--red);
    color: var(--cream);
    border-color: var(--red-dark);
}

.btn-red:hover {
    background: var(--red-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream);
}

.btn-outline:hover {
    background: var(--cream);
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
    color: var(--cream);
    border-color: var(--navy-light);
}

.btn-navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 42, 74, 0.4);
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1.1rem 2.8rem;
}

/* ---------- Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 27, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--gold);
    transition: transform 0.3s var(--ease-out);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--cream);
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--cream);
}

.logo-text .amp {
    color: var(--gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cream);
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s var(--ease-out);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--gold);
}

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

.cta-nav {
    background: var(--red);
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--red-dark);
    margin-left: 0.5rem;
}

.cta-nav:hover {
    background: var(--red-bright);
}

.cta-nav::after { display: none; }

.cta-icon {
    font-size: 1.1rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-bar {
    width: 28px;
    height: 3px;
    background: var(--cream);
    transition: all 0.3s var(--ease-out);
    border-radius: 2px;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy-deep);
    color: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: sepia(0.3) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 27, 51, 0.7) 0%,
        rgba(15, 27, 51, 0.5) 40%,
        rgba(15, 27, 51, 0.85) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.4rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s var(--ease-out);
}

.hero h1 {
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s 0.2s var(--ease-out) both;
}

.hero h1 .highlight {
    color: var(--gold);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.4s var(--ease-out) both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.6s var(--ease-out) both;
}

/* Decorative corners */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--gold);
    opacity: 0.3;
    z-index: 2;
}

.hero::before {
    top: 30px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.hero::after {
    bottom: 30px;
    right: 30px;
    border-left: none;
    border-top: none;
}

/* ---------- THEMES SECTION ---------- */
.themes {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.theme-card {
    background: var(--cream-light);
    border: 3px solid var(--navy);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(27, 42, 74, 0.2);
}

.theme-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: sepia(0.15) contrast(1.05);
    transition: transform 0.4s var(--ease-out), filter 0.4s;
}

.theme-card:hover .theme-card-img {
    transform: scale(1.05);
    filter: sepia(0) contrast(1.1);
}

.theme-card-body {
    padding: 1.5rem;
}

.theme-card-label {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.theme-card-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--navy);
}

/* Gold ribbon on hover */
.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.theme-card:hover::before {
    transform: scaleX(1);
}

/* ---------- PROGRESS SECTION ---------- */
.progress-section {
    padding: var(--section-pad) 0;
    background: var(--navy-deep);
    color: var(--cream);
    position: relative;
}

.progress-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.progress-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.progress-status {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 2rem;
}

.thermometer {
    background: var(--navy-light);
    border: 3px solid var(--gold-dark);
    border-radius: 50px;
    height: 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.thermometer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-bright));
    border-radius: 50px;
    width: 0;
    transition: width 2s var(--ease-out);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
}

.thermometer-fill.animated {
    width: var(--target-width);
}

.thermometer-label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--cream);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Shine effect */
.thermometer-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
}

.progress-figures {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.progress-figure {
    text-align: center;
}

.progress-figure-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
}

.progress-figure-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* ---------- STATS SECTION (War Effort) ---------- */
.stats-section {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.stat-card {
    background: var(--navy);
    color: var(--cream);
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 3px solid var(--navy-light);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
}

.stat-svg-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ---------- SOCIAL MISSION ---------- */
.social-section {
    padding: var(--section-pad) 0;
    background: var(--olive);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.social-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 50%);
}

.social-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.social-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.social-step {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 2rem 1.5rem;
    transition: transform 0.3s var(--ease-out), background 0.3s;
}

.social-step:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
}

.social-step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.social-step-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.social-step-text {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
}

.social-hashtag {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--gold);
    margin-top: 1rem;
}

/* ---------- DONATION TIERS ---------- */
.donate-section {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.tier-card {
    background: var(--cream-light);
    border: 3px solid var(--navy);
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.tier-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(27, 42, 74, 0.2);
}

.tier-card.featured {
    border-color: var(--gold);
    background: var(--navy);
    color: var(--cream);
}

.tier-card.featured .tier-amount {
    color: var(--gold);
}

.tier-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 1.2rem;
}

.tier-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tier-rank {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.tier-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tier-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.tier-period {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.tier-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ---------- QR CODE SECTION ---------- */
.qr-section {
    padding: var(--section-pad) 0;
    background: var(--navy-deep);
    color: var(--cream);
}

.qr-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.qr-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.qr-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.qr-features {
    list-style: none;
    margin-bottom: 2rem;
}

.qr-features li {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qr-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.qr-preview {
    text-align: center;
}

.qr-mock {
    background: var(--cream);
    border: 4px solid var(--gold);
    padding: 2rem;
    display: inline-block;
    position: relative;
}

.qr-mock img {
    width: 200px;
    height: 200px;
}

.qr-mock-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--navy);
    margin-top: 1rem;
    display: block;
}

.beermat-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1.5rem;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ---------- ABOUT PAGE ---------- */
.about-hero {
    background: var(--navy-deep);
    color: var(--cream);
    padding: 10rem 2rem 5rem;
    text-align: center;
}

.about-content {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* ---------- DONATE PAGE ---------- */
.donate-hero {
    background: var(--navy-deep);
    color: var(--cream);
    padding: 10rem 2rem 5rem;
    text-align: center;
}

.donate-page-tiers {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

/* ---------- QR LANDING ---------- */
.qr-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--navy-deep);
    color: var(--cream);
}

.qr-landing-pub {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* ---------- ADMIN PAGES ---------- */
.admin-layout {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--cream);
}

.admin-header {
    background: var(--navy);
    color: var(--cream);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border: 2px solid var(--cream-dark);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-card h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.admin-card .value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--red);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 2px solid var(--cream-dark);
}

.admin-table th {
    background: var(--navy);
    color: var(--cream);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.9rem;
}

.admin-table tr:hover td {
    background: var(--cream-light);
}

.admin-form {
    background: white;
    border: 2px solid var(--cream-dark);
    padding: 2rem;
    max-width: 600px;
}

.admin-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--cream-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.flash-msg {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.flash-success {
    background: var(--olive-light);
    color: white;
    border: 2px solid var(--olive);
}

.flash-error {
    background: var(--red);
    color: white;
    border: 2px solid var(--red-dark);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--navy-deep);
    color: var(--cream);
    padding: 4rem 0 0;
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: var(--cream);
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.social-link:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-hashtag,
.footer-handle {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.footer-cta {
    text-align: center;
}

.footer-cta-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-legal {
    margin-top: 0.3rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 968px) {
    :root { --section-pad: 4rem; }
    
    .nav-toggle { display: flex; }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy-deep);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease-out);
        border-bottom: 3px solid var(--gold);
    }
    
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .cta-nav { margin-left: 0; text-align: center; }
    
    .themes-grid,
    .stats-grid,
    .social-steps,
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .qr-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero::before, .hero::after {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    :root { --section-pad: 3rem; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-figures {
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================
   PHASE 2: COMPETITIVE FEATURES
   League Table | Rank Progression | Competitions
   ================================================================ */

/* ---------- SHARED PAGE HEROs ---------- */
.league-hero,
.ranks-hero,
.comp-hero {
    padding: 10rem 0 4rem;
    background: var(--navy-deep);
    color: var(--cream);
    text-align: center;
}

.league-hero h1 .highlight,
.ranks-hero h1 .highlight,
.comp-hero h1 .highlight {
    color: var(--gold);
}

/* ---------- DIVISION PILLS (shared) ---------- */
.division-pill {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    border: 2px solid;
    white-space: nowrap;
}

.pill-unranked {
    color: #888;
    border-color: #888;
    background: rgba(136,136,136,0.1);
}

.pill-bronze {
    color: #8B5E3C;
    border-color: #8B5E3C;
    background: rgba(139,94,60,0.1);
}

.pill-silver {
    color: #6B7B8D;
    border-color: #8899AA;
    background: rgba(136,153,170,0.1);
}

.pill-gold {
    color: var(--gold-dark);
    border-color: var(--gold);
    background: rgba(201,162,56,0.1);
}

.pill-platinum {
    color: #1B2A4A;
    border-color: var(--navy);
    background: linear-gradient(135deg, rgba(201,162,56,0.15), rgba(27,42,74,0.15));
    box-shadow: 0 0 8px rgba(201,162,56,0.2);
}

/* ---------- PUB OF THE MONTH (full) ---------- */
.potm-section {
    padding: 3rem 0;
    background: var(--cream);
}

.potm-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--navy);
    color: var(--cream);
    padding: 2rem;
    border: 3px solid var(--gold);
    max-width: 700px;
    margin: 0 auto;
}

.potm-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--gold);
}

.potm-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.potm-name {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.potm-location {
    font-size: 0.9rem;
    opacity: 0.7;
}

.potm-raised {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin-top: 0.5rem;
}

.potm-reason {
    font-style: italic;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ---------- DIVISIONS SECTION ---------- */
.divisions-section {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.division-card {
    text-align: center;
    padding: 2rem 1rem;
    border: 3px solid var(--navy);
    background: var(--cream-light);
    transition: transform 0.3s var(--ease-out);
}

.division-card:hover {
    transform: translateY(-4px);
}

.division-badge-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.division-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid;
}

.badge-bronze { border-color: #8B5E3C; background: linear-gradient(135deg, #CD7F32, #8B5E3C); }
.badge-silver { border-color: #8899AA; background: linear-gradient(135deg, #C0C0C0, #8899AA); }
.badge-gold   { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark)); }
.badge-platinum { border-color: var(--navy); background: linear-gradient(135deg, var(--gold), var(--navy), var(--gold)); }

.division-threshold {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-dark);
    margin-top: 0.25rem;
}

/* ---------- LEAGUE TABLE ---------- */
.league-table-section {
    padding: var(--section-pad) 0;
    background: var(--navy-deep);
    color: var(--cream);
}

.league-table-wrap {
    margin-top: 3rem;
    overflow-x: auto;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.league-table thead th {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 1rem;
    text-align: left;
    border-bottom: 3px solid var(--gold-dark);
}

.league-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.league-table tbody tr:hover {
    background: rgba(201,162,56,0.08);
}

.league-table td {
    padding: 1rem;
    vertical-align: middle;
}

.rank-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
}

.division-platinum .rank-number { color: var(--gold-bright); text-shadow: 0 0 10px rgba(201,162,56,0.5); }

.pub-info {
    display: flex;
    flex-direction: column;
}

.pub-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.pub-location {
    font-size: 0.8rem;
    opacity: 0.6;
}

.col-rank { width: 60px; text-align: center; }
.col-donations,
.col-raised { text-align: right; font-family: var(--font-heading); }

/* ---------- LEAGUE CTA ---------- */
.league-cta {
    padding: 4rem 0;
    background: var(--red);
    color: var(--cream);
}

/* ---------- HOME PAGE LEAGUE PREVIEW ---------- */
.league-preview {
    padding: var(--section-pad) 0;
    background: var(--navy-deep);
    color: var(--cream);
}

.potm-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    background: rgba(201,162,56,0.1);
    border: 2px solid var(--gold);
    flex-wrap: wrap;
    text-align: center;
}

.potm-mini-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.potm-mini-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.potm-mini-amount {
    font-family: var(--font-heading);
    color: var(--gold);
}

.league-preview-table {
    max-width: 800px;
    margin: 0 auto;
}

.league-preview-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.league-preview-row:hover {
    background: rgba(201,162,56,0.08);
}

.lp-rank {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.lp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lp-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.lp-location {
    font-size: 0.8rem;
    opacity: 0.6;
}

.lp-amount {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
}

/* ---------- RANK SYSTEM ---------- */
.rank-ladder-section {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.rank-ladder {
    max-width: 650px;
    margin: 3rem auto 0;
    position: relative;
}

/* Vertical connecting line */
.rank-ladder::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), var(--navy));
}

.rank-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--cream-light);
    border: 2px solid var(--navy);
    position: relative;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.rank-step:hover {
    transform: translateX(8px);
    box-shadow: -4px 4px 0 var(--gold);
}

.rank-step-badge {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chevron badges */
.rank-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.rank-chevrons .chevron {
    display: block;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 8px solid var(--navy);
}

.rank-chevrons-recruit .chevron { border-top-color: #888; }
.rank-chevrons-corporal .chevron { border-top-color: #6B7B8D; }
.rank-chevrons-sergeant .chevron { border-top-color: var(--gold-dark); }
.rank-chevrons-officer .chevron { border-top-color: var(--gold); }
.rank-chevrons-general .chevron { border-top-color: var(--gold-bright); }

.rank-chevrons.small .chevron {
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 5px;
}

.rank-step-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
}

.rank-step-threshold {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gold-dark);
    letter-spacing: 0.1em;
}

.rank-step-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* ---------- RANK LOOKUP ---------- */
.rank-lookup-section {
    padding: var(--section-pad) 0;
    background: var(--navy-deep);
    color: var(--cream);
}

.rank-lookup-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.rank-lookup-card h2 {
    margin-bottom: 0.5rem;
}

.rank-lookup-card > p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.rank-lookup-form .form-row {
    display: flex;
    gap: 0.75rem;
}

.rank-lookup-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 2px solid var(--gold);
    background: rgba(201,162,56,0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

.rank-result-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-result-rank {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
}

.rank-result-stats {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------- DONOR LEADERBOARD ---------- */
.donor-leaderboard-section {
    padding: var(--section-pad) 0;
    background: var(--olive);
    color: var(--cream);
}

.donor-board {
    max-width: 700px;
    margin: 3rem auto 0;
}

.donor-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s;
}

.donor-row:hover {
    background: rgba(255,255,255,0.08);
}

.donor-rank-num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.donor-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.donor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.donor-name {
    font-family: var(--font-heading);
    font-weight: 600;
}

.donor-rank-label {
    font-size: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.donor-amount {
    font-family: var(--font-heading);
    color: var(--gold);
    flex-shrink: 0;
}

/* ---------- RANKS CTA ---------- */
.ranks-cta {
    padding: 4rem 0;
    background: var(--red);
    color: var(--cream);
    text-align: center;
}

/* ---------- COMPETITIONS ---------- */
.comp-active {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.comp-card {
    background: var(--cream-light);
    border: 3px solid var(--navy);
    padding: 2rem;
    transition: transform 0.3s var(--ease-out);
}

.comp-card:hover {
    transform: translateY(-4px);
}

.comp-card-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.comp-card-desc {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.comp-card-prize,
.comp-card-rules {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(27,42,74,0.05);
    border-left: 3px solid var(--gold);
}

.comp-card-legal {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 1rem;
    font-style: italic;
}

/* ---------- COMPETITION FORM ---------- */
.comp-submit-section {
    padding: var(--section-pad) 0;
    background: var(--navy-deep);
    color: var(--cream);
}

.comp-submit-card {
    max-width: 700px;
    margin: 0 auto;
}

.comp-submit-card h2 {
    margin-bottom: 0.5rem;
}

.comp-submit-card > p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.comp-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.form-input {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--cream);
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--gold);
}

.form-input::placeholder {
    color: rgba(245,240,225,0.4);
}

select.form-input {
    appearance: none;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Flash messages */
.flash-msg {
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
}

.flash-success {
    background: rgba(74,93,58,0.2);
    border: 2px solid var(--olive);
    color: var(--olive-light);
}

/* ---------- PAST WINNERS ---------- */
.comp-winners-section {
    padding: var(--section-pad) 0;
    background: var(--olive);
    color: var(--cream);
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 3rem;
}

.winner-card {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.winner-card:hover {
    transform: translateY(-4px);
}

.winner-month {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.winner-type {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.winner-name {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.winner-pub {
    font-size: 0.85rem;
    opacity: 0.7;
}

.winner-caption {
    font-style: italic;
    opacity: 0.8;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}

/* ---------- RESPONSIVE: Phase 2 ---------- */
@media (max-width: 768px) {
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comp-grid {
        grid-template-columns: 1fr;
    }
    
    .winners-grid {
        grid-template-columns: 1fr;
    }
    
    .potm-card {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .rank-lookup-form .form-row {
        flex-direction: column;
    }
    
    .rank-lookup-result {
        flex-direction: column;
        text-align: center;
    }
    
    .league-preview-row {
        flex-wrap: wrap;
    }
    
    .league-table {
        font-size: 0.9rem;
    }
    
    .league-table .col-donations {
        display: none;
    }
}

@media (max-width: 600px) {
    .divisions-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .rank-ladder::before {
        left: 25px;
    }
    
    .rank-step {
        padding: 1rem;
    }
    
    .rank-step-badge {
        width: 40px;
        height: 40px;
    }
}
