@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. VARIABLES & CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Colors - Deep Navy & Gold (Luxury Heritage Club) */
    --navy-deep: #0f1b2d;
    --navy: #1a2744;
    --navy-light: #243556;
    --navy-muted: #2d3f5e;
    
    --gold: #c9a84c;
    --gold-light: #d4b95e;
    --gold-dark: #a8892e;
    --gold-shimmer: #e8d48b;
    
    --ivory: #f5f0e8;
    --ivory-dark: #e8e0d2;
    --cream: #faf7f2;
    --white: #ffffff;
    
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #8a8a8a;
    
    --success: #2d8a4e;
    --error: #c0392b;
    --warning: #d4a017;
    --info: #2980b9;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Cormorant Garamond', Garamond, serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;

    /* Fluid Typography Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);
    --text-5xl: clamp(3rem, 2.4rem + 3vw, 4rem);
    --text-6xl: clamp(4rem, 3.2rem + 4vw, 5rem);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 27, 45, 0.1), 0 2px 4px -1px rgba(15, 27, 45, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 27, 45, 0.1), 0 4px 6px -2px rgba(15, 27, 45, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 27, 45, 0.15), 0 10px 10px -5px rgba(15, 27, 45, 0.04);
    --shadow-gold: 0 4px 14px 0 rgba(201, 168, 76, 0.39);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Radii */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-full: 9999px;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--ivory);
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: var(--gold);
    color: var(--navy-deep);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-deep);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--gold);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--space-4);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   3. UTILITIES & LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Grids */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-8);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: var(--text-base);
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: var(--navy-deep);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-shimmer), var(--gold));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--navy-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    background: #a93226;
    color: var(--white);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-4) 0;
    background: transparent;
    transition: all var(--transition-base);
}

.nav-scrolled {
    background: var(--navy-deep);
    padding: var(--space-2) 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
}

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

.nav-links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-scrolled .nav-links a {
    color: var(--ivory);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: var(--text-2xl);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--navy-deep);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 27, 45, 0.7), rgba(15, 27, 45, 0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 var(--space-4);
}

.hero-badge {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-6);
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 5px;
    background: var(--navy-deep);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.hero-title {
    color: var(--white);
    font-size: var(--text-6xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--gold);
    font-size: var(--text-xl);
    font-family: var(--font-body);
    font-style: italic;
    margin-bottom: var(--space-8);
}

/* --- Section Layouts --- */
.section {
    padding: var(--space-20) 0;
}

.section-dark {
    background-color: var(--navy);
    color: var(--ivory);
}

.section-dark h2, 
.section-dark h3 {
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

/* --- Decorative Elements --- */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-6) 0;
}

.gold-divider::before,
.gold-divider::after {
    content: '';
    height: 1px;
    width: 100px;
    background: var(--gold);
}

.gold-divider-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
    margin: 0 var(--space-4);
}

.gold-border {
    position: relative;
    border: 1px solid var(--gold);
    padding: var(--space-6);
}

.gold-border::before,
.gold-border::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid var(--gold);
}

.gold-border::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.gold-border::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

/* --- Facility Cards --- */
.facility-card {
    background: var(--navy-deep);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 27, 45, 0.4);
    border-color: rgba(201, 168, 76, 0.5);
}

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

.facility-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-deep));
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: var(--text-3xl);
    box-shadow: inset 0 0 20px rgba(201, 168, 76, 0.1);
}

.facility-title {
    color: var(--white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.facility-desc {
    color: var(--text-light);
    font-size: var(--text-sm);
}

/* --- Member ID Card (Digital) --- */
.id-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gold-light);
}

.id-card-top {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    padding: var(--space-6);
    text-align: center;
    color: var(--white);
    position: relative;
    border-bottom: 2px solid var(--gold);
}

.id-card-logo {
    width: 60px;
    margin: 0 auto var(--space-2);
}

.id-card-club-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.id-card-bottom {
    background: var(--ivory);
    padding: var(--space-6);
    position: relative;
}

.id-card-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    border: 3px solid var(--gold);
    margin: -60px auto var(--space-4);
    position: relative;
    z-index: 10;
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.id-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-card-info {
    text-align: center;
}

.id-card-name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--navy-deep);
    margin-bottom: var(--space-1);
    font-weight: 700;
}

.id-card-number {
    font-family: var(--font-mono);
    color: var(--gold-dark);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    letter-spacing: 0.05em;
}

.id-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    text-align: left;
    font-size: var(--text-sm);
    border-top: 1px solid rgba(15, 27, 45, 0.1);
    padding-top: var(--space-4);
}

.id-card-label {
    color: var(--text-muted);
    font-weight: 600;
}

.id-card-value {
    color: var(--navy-deep);
    font-weight: 700;
    text-align: right;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: var(--space-6);
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    color: var(--navy-deep);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-dark);
    background: var(--white);
    border: 1px solid rgba(15, 27, 45, 0.2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 4px 0 -2px var(--gold);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Login specific */
.login-container {
    max-width: 440px;
    margin: 0 auto;
    padding: var(--space-20) var(--space-4);
}

.login-card {
    background: var(--navy-deep);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--gold);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0) 70%);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login-logo img {
    height: 80px;
    margin: 0 auto;
}

.login-toggle {
    display: flex;
    margin-bottom: var(--space-8);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.login-toggle button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: var(--space-2);
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

.login-toggle button.active {
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 600;
}

.login-form-wrapper {
    display: none;
    animation: fadeIn var(--transition-base);
}

.login-form-wrapper.active {
    display: block;
}

.login-card .form-label {
    color: var(--ivory);
}

.login-card .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
}

.login-card .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold);
}

/* --- Tables --- */
.table-responsive {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th, .table td {
    padding: var(--space-4);
    border-bottom: 1px solid rgba(15,27,45,0.1);
}

.table th {
    background: var(--navy-deep);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:nth-child(even) {
    background-color: var(--cream);
}

.table tbody tr:hover {
    background-color: var(--ivory-dark);
    box-shadow: inset 4px 0 0 var(--gold);
}

/* --- Admin Dashboard Cards --- */
.stat-card {
    background: var(--navy-deep);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--gold);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,168,76,0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    color: var(--white);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    color: var(--text-light);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Flash Messages / Alerts --- */
.alert {
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid;
    animation: slideInRight var(--transition-base);
}

.alert-success {
    background: #eafaf1;
    border-left-color: var(--success);
    color: #1e5a32;
}

.alert-error {
    background: #fdedec;
    border-left-color: var(--error);
    color: #7b241c;
}

.alert-warning {
    background: #fef5e7;
    border-left-color: var(--warning);
    color: #7e5109;
}

.alert-info {
    background: #ebf5fb;
    border-left-color: var(--info);
    color: #1a5276;
}

.alert-dismiss {
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.alert-dismiss:hover {
    opacity: 1;
}

/* --- Modals --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,27,45,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--gold);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-base);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(15,27,45,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: var(--navy-deep);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid rgba(15,27,45,0.1);
    background: var(--cream);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-4);
}

/* --- Footer --- */
.footer {
    background: var(--navy-deep);
    color: var(--white);
    padding: var(--space-16) 0 0 0;
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.footer-logo img {
    height: 60px;
}

.footer-desc {
    color: var(--text-light);
    max-width: 400px;
}

.footer-title {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-2);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-bottom {
    background: #0a121e;
    padding: var(--space-4) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--navy-deep);
    border: none;
    border-radius: 50%;
    font-size: var(--text-xl);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--navy-deep);
    color: var(--gold);
}

/* ==========================================================================
   5. SPECIAL BACKGROUNDS & UTILITIES
   ========================================================================== */
.pattern-sports {
    background-color: var(--navy);
    background-image: radial-gradient(rgba(201,168,76,0.1) 15%, transparent 16%),
                      radial-gradient(rgba(201,168,76,0.1) 15%, transparent 16%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.texture-linen {
    background-color: var(--ivory);
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Stagger reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Floating element utility */
.floating {
    animation: float 4s ease-in-out infinite;
}
