/* ==========================================================================
   BOOKSTORE TEMPLATE - PREMIUM CSS
   Independent bookshop with cozy, literary atmosphere
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Color Palette - Warm, Literary, Cozy */
    --color-cream: #faf8f5;
    --color-cream-dark: #f5f2ed;
    --color-brown-50: #fdf8f6;
    --color-brown-100: #f2e8e5;
    --color-brown-200: #eaddd7;
    --color-brown-300: #e0cec7;
    --color-brown-400: #d2bab0;
    --color-brown-500: #b8997f;
    --color-brown-600: #9c7a5e;
    --color-brown-700: #7d5e45;
    --color-brown-800: #5d3d2a;
    --color-brown-900: #3d2817;
    --color-green-50: #f0f5f3;
    --color-green-100: #d9e8e0;
    --color-green-200: #b3d1c1;
    --color-green-300: #8cbaa2;
    --color-green-400: #5f9977;
    --color-green-500: #3d7a56;
    --color-green-600: #2d5f42;
    --color-green-700: #1f4430;
    --color-green-800: #162e21;
    --color-green-900: #0d1a13;
    --color-burgundy-50: #fdf5f7;
    --color-burgundy-100: #fce8eb;
    --color-burgundy-200: #f9d1d7;
    --color-burgundy-300: #f5b5c0;
    --color-burgundy-400: #ed8a9b;
    --color-burgundy-500: #d95f73;
    --color-burgundy-600: #b8405a;
    --color-burgundy-700: #8f2d43;
    --color-burgundy-800: #661e2f;
    --color-burgundy-900: #3d121c;

    /* Semantic Colors - Light Mode */
    --bg-primary: var(--color-cream);
    --bg-secondary: var(--color-brown-50);
    --bg-tertiary: #ffffff;
    --text-primary: var(--color-brown-900);
    --text-secondary: var(--color-brown-700);
    --text-tertiary: var(--color-brown-600);
    --border-primary: var(--color-brown-200);
    --border-secondary: var(--color-brown-100);
    --accent-primary: var(--color-green-600);
    --accent-secondary: var(--color-burgundy-600);
    --accent-hover: var(--color-green-700);

    /* Typography Scale */
    --font-serif: 'Playfair Display', 'Merriweather', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --text-hero: clamp(2.5rem, 7vw, 5rem);
    --text-display: clamp(2rem, 5vw, 3.5rem);
    --text-h1: clamp(1.75rem, 4vw, 2.75rem);
    --text-h2: clamp(1.5rem, 3vw, 2rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: 1.125rem;
    --text-body: 1rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Spacing Scale (8px base) */
    --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;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(61, 40, 23, 0.05);
    --shadow-md: 0 4px 6px rgba(61, 40, 23, 0.07), 0 2px 4px rgba(61, 40, 23, 0.06);
    --shadow-lg: 0 10px 15px rgba(61, 40, 23, 0.1), 0 4px 6px rgba(61, 40, 23, 0.05);
    --shadow-xl: 0 20px 25px rgba(61, 40, 23, 0.1), 0 10px 10px rgba(61, 40, 23, 0.04);
    --shadow-2xl: 0 25px 50px rgba(61, 40, 23, 0.15);
    --shadow-glow: 0 0 40px rgba(61, 122, 86, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Dark Mode Colors */
.dark {
    --bg-primary: #1a1410;
    --bg-secondary: #221b15;
    --bg-tertiary: #2a221a;
    --text-primary: var(--color-cream);
    --text-secondary: var(--color-brown-200);
    --text-tertiary: var(--color-brown-300);
    --border-primary: rgba(184, 153, 127, 0.2);
    --border-secondary: rgba(184, 153, 127, 0.1);
    --accent-primary: var(--color-green-400);
    --accent-secondary: var(--color-burgundy-400);
    --accent-hover: var(--color-green-300);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6), 0 10px 10px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(95, 153, 119, 0.3);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

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

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Selection */
::selection {
    background-color: var(--accent-primary);
    color: white;
}

::-moz-selection {
    background-color: var(--accent-primary);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-brown-400);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-secondary);
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--color-brown-600);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-brown-500);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-20) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid Utilities */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
    transition: all var(--transition-base);
}

.dark .nav {
    background: rgba(26, 20, 16, 0.95);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-logo svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-6);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-spring);
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-menu a {
    display: block;
    padding: var(--space-3) 0;
    color: var(--text-secondary);
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-secondary);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--text-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-primary) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--text-hero);
    font-family: var(--font-serif);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--text-h3);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

/* ==========================================================================
   BOOK CARDS (SIGNATURE COMPONENT)
   ========================================================================== */

.book-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: all var(--transition-spring);
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.book-card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.book-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.book-card:hover .book-card-image img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--accent-secondary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}

.book-badge.staff-pick {
    background: var(--accent-primary);
}

.book-card-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card-category {
    font-size: var(--text-xs);
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.book-card-title {
    font-size: var(--text-h4);
    font-family: var(--font-serif);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.book-card-author {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
}

.book-card-excerpt {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.book-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-secondary);
}

.book-card-price {
    font-size: var(--text-h4);
    font-weight: 700;
    color: var(--text-primary);
}

.book-card-action {
    padding: var(--space-2) var(--space-4);
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.book-card-action:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   STAFF PICKS (SIGNATURE COMPONENT)
   ========================================================================== */

.staff-pick-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid var(--border-primary);
    display: flex;
    gap: var(--space-6);
    transition: all var(--transition-spring);
}

.staff-pick-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.staff-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--accent-primary);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-pick-content {
    flex: 1;
}

.staff-pick-quote {
    font-size: var(--text-body);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
    position: relative;
    padding-left: var(--space-6);
}

.staff-pick-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--accent-primary);
    opacity: 0.3;
}

.staff-pick-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.staff-pick-role {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

/* ==========================================================================
   CATEGORY FILTER
   ========================================================================== */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
    justify-content: center;
}

.category-btn {
    padding: var(--space-3) var(--space-6);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ==========================================================================
   EVENT CARD
   ========================================================================== */

.event-card {
    display: flex;
    gap: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-spring);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: var(--text-h4);
    font-family: var(--font-serif);
    margin-bottom: var(--space-2);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.event-description {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.newsletter {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: var(--space-20);
    border-radius: var(--radius-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    border: none;
    font-size: var(--text-body);
    background: white;
    color: var(--text-primary);
}

.newsletter-btn {
    padding: var(--space-4) var(--space-8);
    background: var(--color-brown-900);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    background: var(--color-brown-800);
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    grid-column: 1 / -1;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.footer-section h4 {
    font-size: var(--text-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: var(--text-small);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-primary);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Page Load Animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-load {
    animation: fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: var(--text-display);
    }

    .staff-pick-card {
        flex-direction: column;
        text-align: center;
    }

    .staff-pick-quote {
        padding-left: 0;
    }

    .event-card {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .nav, .footer, .newsletter, .btn {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

@media (min-width: 1024px) {
    section {
        content-visibility: auto;
        contain-intrinsic-size: 0 500px;
    }
}
