/* ============================================================
   S. BURT BLOSSER MEMORIAL FUND
   Heritage Club Editorial Design System
   ============================================================ */

/* --- Google Fonts loaded in base.html --- */

:root {
    /* Core palette */
    --forest: #0f2e1a;
    --forest-mid: #1a4a2e;
    --pine: #234d32;
    --sage: #5a7d62;
    --meadow: #8baa7e;
    --gold: #c9a227;
    --gold-light: #dbb94a;
    --gold-muted: #b8944f;
    --amber: #e8c55a;
    --cream: #faf6ee;
    --cream-dark: #f0eade;
    --parchment: #f5f0e3;
    --charcoal: #2a2a28;
    --charcoal-light: #4a4a46;
    --warm-gray: #8a8680;
    --warm-gray-light: #c4bfb6;
    --white: #fffdf8;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 200ms;
    --duration-med: 400ms;
    --duration-slow: 800ms;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 46, 26, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 46, 26, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 46, 26, 0.12);
    --shadow-xl: 0 20px 60px rgba(15, 46, 26, 0.16);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.15);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.7;
    font-size: 1.05rem;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--forest);
}

p {
    max-width: 65ch;
}

a {
    color: var(--gold-muted);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--gold);
    color: var(--white);
}

/* ============================================================
   GRAIN TEXTURE OVERLAY
   ============================================================ */

.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.035;
    pointer-events: none;
    z-index: 10;
    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");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 46, 26, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
    transition: all var(--duration-med) var(--ease-out-expo);
}

.site-nav.scrolled {
    background: rgba(15, 46, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white) !important;
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-brand-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all var(--duration-med) var(--ease-out-expo);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 60%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem !important;
    background: var(--gold);
    color: var(--forest) !important;
    border-radius: 100px;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    transition: all var(--duration-fast) ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 46, 26, 0.98);
        flex-direction: column;
        padding: var(--space-sm);
        border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.8rem var(--space-sm);
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest);
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(15, 46, 26, 0.92) 0%, rgba(15, 46, 26, 0.6) 50%, rgba(15, 46, 26, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    color: var(--white);
    max-width: 14ch;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 50ch;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-portrait {
    position: absolute;
    right: 18%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 2;
}

@media (max-width: 900px) {
    .hero-portrait {
        display: none;
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    background: var(--gold);
    color: var(--forest);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: translateX(-101%);
    transition: transform var(--duration-med) var(--ease-out-expo);
}

.btn-primary-gold:hover {
    color: var(--forest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-primary-gold:hover::before {
    transform: translateX(0);
}

.btn-primary-gold span {
    position: relative;
    z-index: 1;
}

.btn-primary-gold i {
    position: relative;
    z-index: 1;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.2rem;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out-expo);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--gold);
    color: var(--forest);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--gold);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out-expo);
    width: auto;
}

.btn-accent:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--forest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--gold-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold-muted);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-med) var(--ease-out-expo);
}

.btn-outline-accent:hover {
    background: var(--gold);
    color: var(--forest);
    border-color: var(--gold);
}

/* ============================================================
   SECTION SYSTEM
   ============================================================ */

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 55ch;
    line-height: 1.8;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: var(--space-md) 0;
    border: none;
}

.section--cream {
    background: var(--cream);
}

.section--forest {
    background: var(--forest);
    color: var(--white);
}

.section--forest h2,
.section--forest h3,
.section--forest h4 {
    color: var(--white);
}

.section--forest .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.section--forest .section-eyebrow {
    color: var(--gold);
}

/* ============================================================
   INTRO / ABOUT SECTION
   ============================================================ */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.intro-content {
    padding-right: var(--space-lg);
}

.intro-content .section-title {
    margin-bottom: var(--space-md);
}

.intro-content .rich-text {
    font-size: 1.1rem;
    color: var(--charcoal-light);
    line-height: 1.9;
}

.intro-image-wrapper {
    position: relative;
}

.intro-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.intro-image-wrapper::after {
    content: '';
    position: absolute;
    top: var(--space-md);
    right: calc(var(--space-md) * -1);
    bottom: calc(var(--space-md) * -1);
    left: var(--space-md);
    border: 2px solid var(--gold);
    z-index: -1;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .intro-content {
        padding-right: 0;
    }
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
}

.event-card {
    background: var(--white);
    border: 1px solid rgba(15, 46, 26, 0.06);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    transition: all var(--duration-med) var(--ease-out-expo);
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform var(--duration-med) var(--ease-out-expo);
    transform-origin: top;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    transform: translateY(-4px);
}

.event-card:hover::before {
    transform: scaleY(1);
}

.event-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: var(--space-sm);
}

.event-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.event-card p {
    color: var(--warm-gray);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

/* ============================================================
   GALLERY
   ============================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(1) {
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 46, 26, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-med) ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2;
    transform: translateY(100%);
    transition: transform var(--duration-med) var(--ease-out-expo);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid .gallery-item:nth-child(1) {
        grid-column: span 2;
    }
}

/* ============================================================
   PAGE HEADER (Interior pages)
   ============================================================ */

.page-header {
    position: relative;
    padding: calc(72px + var(--space-xl)) 0 var(--space-xl);
    background: var(--forest);
    overflow: hidden;
}

.page-header .hero-bg {
    opacity: 0.3;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--forest), transparent);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.page-header .page-header-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
}

.page-header .page-header-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.page-header .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
}

.page-header .meta-item i {
    font-size: 1rem;
}

/* ============================================================
   MEMORIAL PAGE - StreamField
   ============================================================ */

.memorial-content-section {
    background: var(--white);
}

.memorial-divider {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.memorial-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.memorial-divider span {
    position: relative;
    background: var(--white);
    padding: 0 var(--space-md);
    color: var(--gold);
    font-size: 1.25rem;
}

.memorial-lead {
    font-size: 1.35rem !important;
    line-height: 2 !important;
    color: var(--charcoal) !important;
    font-family: var(--font-display) !important;
    font-style: italic;
    border-left: 3px solid var(--gold);
    padding-left: var(--space-md);
    margin-bottom: var(--space-lg) !important;
}

.memorial-featured-image {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.memorial-featured-image img {
    max-width: 360px;
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.memorial-body {
    max-width: 960px;
    margin: 0 auto;
}

.memorial-body h2 {
    font-size: 2rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.memorial-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.memorial-body .rich-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--charcoal-light);
    font-family: 'Playfair Display', serif;
}

.memorial-body figure {
    margin: var(--space-lg) calc(var(--space-lg) * -1);
}

.memorial-body figure img {
    width: 100%;
    height: auto;
}

.memorial-body blockquote {
    position: relative;
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--cream);
    border-left: 4px solid var(--gold);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--forest);
    line-height: 1.6;
}

.memorial-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    font-family: var(--font-display);
}

@media (max-width: 768px) {
    .memorial-body figure {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ============================================================
   MEMORIAL UPLOAD
   ============================================================ */

.memorial-upload-form {
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: var(--space-lg);
    max-width: 560px;
    margin-bottom: var(--space-xl);
}

.memorial-upload-form h3 {
    margin: 0 0 var(--space-md);
    font-size: 1.3rem;
    color: var(--forest);
}

.memorial-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: var(--space-sm);
}

.memorial-form-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.memorial-form-field input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.user-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.user-photo-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--cream);
}

.user-photo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.user-photo-info {
    padding: 0.75rem 1rem;
}

.user-photo-caption {
    font-weight: 600;
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
}

.user-photo-credit {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0 0 0.5rem;
}

.photo-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    background: transparent;
    color: #c0392b;
    border: 1px solid #c0392b;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.photo-delete-btn:hover {
    background: #c0392b;
    color: var(--white);
}

.memorial-upload-login {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.memorial-upload-message {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.memorial-upload-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.memorial-upload-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   SPONSORS PAGE
   ============================================================ */

/* ============================================================
   About Page
   ============================================================ */

.about-intro-section {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--cream);
    text-align: center;
}

.about-intro-inner {
    max-width: 820px;
    margin: 0 auto;
}

.about-intro-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--charcoal);
    font-style: normal;
    font-weight: 400;
}

.about-body-section {
    background: var(--white);
}

.about-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--forest);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.about-paragraph {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.15rem;
    line-height: 1.95;
    color: var(--charcoal-light);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.about-figure {
    margin: var(--space-xl) 0;
}

.about-figure img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.about-quote {
    position: relative;
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: var(--cream);
    border-left: 4px solid var(--gold);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--forest);
    line-height: 1.6;
}

/* ============================================================
   Sponsors
   ============================================================ */

.sponsors-tier {
    margin-bottom: var(--space-xl);
}

.tier-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.tier-name {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--forest);
    font-size: 0.9rem;
}

.tier-min-amount {
    display: inline-block;
    background: var(--gold);
    color: var(--forest);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.tier-description {
    color: var(--warm-gray);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    display: block;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.tier-description ul,
.tier-description ol {
    list-style: disc !important;
    margin: 0 !important;
    padding-left: 1.25rem !important;
}

.tier-description ul li,
.tier-description ol li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
}

.tier-description p,
.tier-description div {
    margin: 0 !important;
    padding: 0 !important;
}

.tier-no-sponsors {
    color: var(--warm-gray);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: var(--space-sm);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.sponsor-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all var(--duration-med) var(--ease-out-expo);
}

.sponsor-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.sponsor-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.sponsor-logo img {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
}

.sponsor-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-gray-light);
    font-size: 2rem;
    margin: 0 auto;
}

.sponsor-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.sponsor-link {
    font-size: 0.8rem;
    color: var(--warm-gray);
    display: block;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-link:hover {
    color: var(--gold);
}

/* ============================================================
   TOURNAMENT PAGE
   ============================================================ */

.tournament-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-xl);
    align-items: start;
}

.tournament-details .rich-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--charcoal-light);
}

.tournament-info-card {
    background: var(--cream);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-left: 3px solid var(--gold);
}

.tournament-info-card h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.tournament-schedule {
    margin: var(--space-lg) 0;
}

.schedule-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--cream-dark);
}

.schedule-time {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--gold-muted);
    min-width: 100px;
    font-size: 0.9rem;
}

.schedule-desc {
    color: var(--charcoal-light);
}

/* Registration sidebar */
.registration-card {
    position: sticky;
    top: calc(72px + var(--space-md));
    background: var(--white);
    border: 1px solid var(--cream-dark);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.registration-card-header {
    background: var(--forest);
    padding: var(--space-md);
    color: var(--white);
}

.registration-card-header h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registration-card-body {
    padding: var(--space-md);
}

.reg-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}

.reg-stat:last-of-type {
    border-bottom: none;
}

.reg-stat-label {
    color: var(--warm-gray);
}

.reg-stat-value {
    font-weight: 700;
    color: var(--forest);
}

.reg-stat-value.price {
    color: var(--gold-muted);
    font-size: 1.2rem;
}

.registration-form {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--cream-dark);
}

@media (max-width: 991px) {
    .tournament-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FORMS
   ============================================================ */

.form-control,
.form-select {
    border-radius: 0;
    border-color: var(--cream-dark);
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    transition: all var(--duration-fast) ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--charcoal);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-welcome {
    padding: calc(72px + var(--space-lg)) 0 var(--space-lg);
    background: var(--forest);
}

.dashboard-welcome h1 {
    color: var(--white);
    font-size: 2.2rem;
}

.dashboard-welcome p {
    color: rgba(255, 255, 255, 0.6);
}

.dashboard-content {
    padding: var(--space-xl) 0;
}

.reg-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--cream-dark);
    padding-bottom: 0;
}

.reg-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--warm-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.reg-tab:hover {
    color: var(--forest);
}

.reg-tab.active {
    color: var(--forest);
    border-bottom-color: var(--gold);
}

.reg-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    padding: var(--space-xl);
    max-width: 700px;
}

.reg-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.reg-card-subtitle {
    color: var(--warm-gray);
    margin-bottom: var(--space-lg);
}

.reg-section-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--forest);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--cream-dark);
}

.tier-detail-card {
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 4px;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.tier-detail-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.tier-detail-amount {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    margin-bottom: 0.5rem;
}

.tier-detail-team-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

.reg-placeholder-notice {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--charcoal-light);
    font-size: 0.95rem;
    border-radius: 0 4px 4px 0;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead th {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    padding: var(--space-sm);
    border-bottom: 2px solid var(--cream-dark);
    text-align: left;
}

.dashboard-table tbody td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
    color: var(--charcoal-light);
}

.dashboard-table tbody tr:hover {
    background: var(--cream);
}

/* Status badges */
.badge-paid {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(35, 77, 50, 0.1);
    color: var(--pine);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-pending {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-refunded {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(100, 120, 180, 0.1);
    color: #5a6aa0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-failed {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    background: rgba(180, 60, 60, 0.1);
    color: #a04040;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--warm-gray-light);
    font-size: 2rem;
}

.empty-state p {
    max-width: 40ch;
    margin: 0 auto var(--space-md);
    color: var(--warm-gray);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--cream);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-xl);
}

.auth-card h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--warm-gray);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    color: var(--warm-gray-light);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cream-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--forest);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all var(--duration-fast) ease;
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* ============================================================
   ALERTS / MESSAGES
   ============================================================ */

.site-messages {
    max-width: 1320px;
    margin: calc(72px + var(--space-sm)) auto var(--space-sm);
    padding: 0 var(--space-md);
}

.site-alert {
    padding: var(--space-sm) var(--space-md);
    border-left: 4px solid var(--gold);
    background: var(--cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.site-alert.alert-error {
    border-left-color: #a04040;
    background: #fff5f5;
}

.site-alert.alert-success {
    border-left-color: var(--pine);
    background: #f0f8f0;
}

.site-alert .close-btn {
    background: none;
    border: none;
    color: var(--warm-gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
}

/* ============================================================
   PAYMENT SUCCESS
   ============================================================ */

.success-page {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(35, 77, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--pine);
    font-size: 2.5rem;
}

.success-page h1 {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
}

.success-details {
    background: var(--cream);
    padding: var(--space-md);
    text-align: left;
    margin: var(--space-md) 0;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}

.success-detail-row:last-child {
    border-bottom: none;
}

.success-detail-label {
    color: var(--warm-gray);
}

.success-detail-value {
    font-weight: 600;
    color: var(--charcoal);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ============================================================
   ERROR PAGES
   ============================================================ */

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    color: var(--cream-dark);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

/* ============================================================
   TWO COLUMN LAYOUT
   ============================================================ */

.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    align-items: start;
}

.two-col-main {
    min-width: 0;
}

.two-col-sidebar {
    position: sticky;
    top: 100px;
}

.info-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-card-header {
    background: var(--forest);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-header i {
    color: var(--gold);
}

.info-card-body {
    background: var(--cream);
    padding: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal);
}

.info-card-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: var(--space-sm) 0;
}

.info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-card-list i {
    color: var(--gold);
    flex-shrink: 0;
}

.memorial-featured-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .two-col-sidebar {
        position: static;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-gold { color: var(--gold); }
.text-muted { color: var(--warm-gray); }
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
