/**
 * Valhalla Powerlifting Theme - Custom Styles
 * 
 * @package Valhalla
 * @since 1.0.0
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
    /* Lighter, more accessible dark palette */
    --valhalla-black: #16161a;
    --valhalla-dark: #242429;
    --valhalla-darker: #1c1c21;
    --valhalla-surface: #2e2e35;
    --valhalla-surface-light: #3a3a42;
    
    /* Desaturated gold for better accessibility */
    --valhalla-gold: #D4A84B;
    --valhalla-gold-light: #E4C06A;
    --valhalla-gold-dark: #B8922F;
    
    /* Semantic colors */
    --valhalla-red: #E53E3E;
    --valhalla-green: #38A169;
    
    /* Light colors - avoid pure white */
    --valhalla-light: #F7F7F8;
    --valhalla-white: #FFFFFE;
    
    /* Gray scale for depth */
    --valhalla-gray: #94949E;
    --valhalla-gray-light: #B8B8C0;
    --valhalla-gray-dark: #4A4A52;
    
    /* Text colors - off-white for reduced eye strain */
    --valhalla-text: #E8E8EC;
    --valhalla-text-muted: #A0A0AA;
    --valhalla-text-subtle: #7A7A84;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* Elevation shadows */
    --shadow-gold: 0 0 30px rgba(212, 168, 75, 0.25);
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --elevation-2: 0 4px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --elevation-3: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
    
    /* Border colors */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-default: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.18);
    
    /* Focus ring for accessibility */
    --focus-ring: 0 0 0 3px rgba(212, 168, 75, 0.5);
}

/* ========================================
   Light Mode Variables
   ======================================== */
[data-theme="light"] {
    /* Light backgrounds - clean whites like reference */
    --valhalla-black: #FFFFFF;
    --valhalla-dark: #FFFFFF;
    --valhalla-darker: #F8F8FA;
    --valhalla-surface: #FFFFFF;
    --valhalla-surface-light: #F5F5F7;
    
    /* Gold - richer for light backgrounds */
    --valhalla-gold: #D4A84B;
    --valhalla-gold-light: #E4B85B;
    --valhalla-gold-dark: #B8922F;
    
    /* Light mode text colors - strong contrast */
    --valhalla-white: #1A1A1F;
    --valhalla-light: #1A1A1F;
    --valhalla-text: #1A1A1F;
    --valhalla-text-muted: #4A4A54;
    --valhalla-text-subtle: #6A6A74;
    
    /* Gray scale for light mode */
    --valhalla-gray: #5A5A64;
    --valhalla-gray-light: #3A3A44;
    --valhalla-gray-dark: #E8E8EC;
    
    /* Shadows for light mode - softer */
    --shadow-gold: 0 0 40px rgba(212, 168, 75, 0.15);
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    --elevation-2: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --elevation-3: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 20px 50px -15px rgba(0, 0, 0, 0.12);
    
    /* Border colors for light mode */
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-default: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);

    /* WordPress preset colors (for block classes) */
    --wp--preset--color--valhalla-black: var(--valhalla-black);
    --wp--preset--color--valhalla-dark: var(--valhalla-dark);
    --wp--preset--color--valhalla-darker: var(--valhalla-darker);
    --wp--preset--color--valhalla-surface: var(--valhalla-surface);
    --wp--preset--color--valhalla-surface-light: var(--valhalla-surface-light);
    --wp--preset--color--valhalla-gold: var(--valhalla-gold);
    --wp--preset--color--valhalla-gold-light: var(--valhalla-gold-light);
    --wp--preset--color--valhalla-gold-dark: var(--valhalla-gold-dark);
    --wp--preset--color--valhalla-red: var(--valhalla-red);
    --wp--preset--color--valhalla-green: var(--valhalla-green);
    --wp--preset--color--valhalla-light: var(--valhalla-light);
    --wp--preset--color--valhalla-white: var(--valhalla-white);
    --wp--preset--color--valhalla-gray: var(--valhalla-gray);
    --wp--preset--color--valhalla-gray-light: var(--valhalla-gray-light);
    --wp--preset--color--valhalla-gray-dark: var(--valhalla-gray-dark);
    --wp--preset--color--valhalla-text: var(--valhalla-text);
    --wp--preset--color--valhalla-text-muted: var(--valhalla-text-muted);
}

/* ========================================
   Global Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--valhalla-black);
    color: var(--valhalla-text);
    overflow-x: hidden;
}

::selection {
    background-color: var(--valhalla-gold);
    color: var(--valhalla-black);
}

/* ========================================
   Typography
   ======================================== */
.has-valhalla-gold-color {
    color: var(--valhalla-gold) !important;
}

.has-text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   Focus States (Accessibility)
   ======================================== */
*:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ========================================
   Button Styles
   ======================================== */
.wp-block-button__link {
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

.wp-block-button__link:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Gold Button Style */
.is-style-valhalla-gold .wp-block-button__link {
    background-color: var(--valhalla-gold) !important;
    color: var(--valhalla-black) !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    padding: 1rem 2rem;
}

.is-style-valhalla-gold .wp-block-button__link:hover {
    background-color: var(--valhalla-gold-light) !important;
}

/* Gold Outline Button Style */
.is-style-valhalla-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--valhalla-gold) !important;
    border: 2px solid var(--valhalla-gold) !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
}

.is-style-valhalla-outline .wp-block-button__link:hover {
    background-color: var(--valhalla-gold) !important;
    color: var(--valhalla-black) !important;
}

/* Dark Button Style */
.is-style-valhalla-dark .wp-block-button__link {
    background-color: var(--valhalla-dark) !important;
    color: var(--valhalla-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
}

.is-style-valhalla-dark .wp-block-button__link:hover {
    background-color: var(--valhalla-gray-dark) !important;
    border-color: var(--valhalla-gold) !important;
}

/* ========================================
   Card Styles
   ======================================== */
.is-style-valhalla-card {
    background-color: var(--valhalla-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-medium);
    box-shadow: var(--elevation-1);
}

.is-style-valhalla-card:hover {
    border-color: var(--valhalla-gold);
    box-shadow: var(--elevation-3);
    transform: translateY(-4px);
}

.is-style-valhalla-card:focus-within {
    box-shadow: var(--focus-ring);
}

/* Glass Effect Style */
.is-style-valhalla-glass {
    background: rgba(46, 46, 53, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--elevation-2);
}

/* Surface card - lighter variant */
.is-style-valhalla-surface {
    background-color: var(--valhalla-surface-light);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-medium);
}

.is-style-valhalla-surface:hover {
    border-color: var(--border-strong);
    box-shadow: var(--elevation-2);
}

/* ========================================
   Heading Styles
   ======================================== */
.is-style-valhalla-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--valhalla-gold);
    margin-top: 1rem;
}

.is-style-valhalla-accent.has-text-align-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Image Styles
   ======================================== */
.is-style-valhalla-border img {
    border: 3px solid var(--valhalla-gold);
    border-radius: 8px;
}

/* ========================================
   Header Styles
   ======================================== */
.valhalla-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.valhalla-header.scrolled {
    background-color: rgba(22, 22, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--elevation-2);
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .valhalla-header.scrolled {
    background-color: rgba(22, 22, 26, 0.95);
}

/* ========================================
   Navigation Styles
   ======================================== */
.wp-block-navigation a {
    transition: color var(--transition-fast);
}

.wp-block-navigation a:hover {
    color: var(--valhalla-gold) !important;
}

.wp-block-navigation .current-menu-item a,
.wp-block-navigation a[aria-current="page"] {
    color: var(--valhalla-gold) !important;
}

/* ========================================
   Hero Section Styles
   ======================================== */
.valhalla-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.valhalla-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 22, 26, 0.3) 0%, rgba(22, 22, 26, 0.92) 100%);
    z-index: 1;
}

[data-theme="light"] .valhalla-hero::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(245, 245, 247, 0.95) 100%);
}

[data-theme="light"] .valhalla-hero .is-style-valhalla-gold .wp-block-button__link {
    color: var(--valhalla-text) !important;
}

[data-theme="light"] .valhalla-hero .is-style-valhalla-outline .wp-block-button__link:hover {
    color: var(--valhalla-text) !important;
}

.valhalla-hero > * {
    position: relative;
    z-index: 2;
}

/* ========================================
   Section Styles
   ======================================== */
.valhalla-section {
    padding: 6rem 0;
}

.valhalla-section-dark {
    background-color: var(--valhalla-black);
}

.valhalla-section-darker {
    background-color: var(--valhalla-darker);
}

.valhalla-section-light {
    background-color: var(--valhalla-dark);
}

/* Gold decorative line */
.valhalla-gold-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--valhalla-gold), var(--valhalla-gold-light));
    margin: 1.5rem 0;
}

.valhalla-gold-line.centered {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Team/Member Cards
   ======================================== */
.valhalla-team-card {
    background-color: var(--valhalla-surface);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--elevation-1);
}

.valhalla-team-card:hover {
    transform: translateY(-6px);
    border-color: var(--valhalla-gold);
    box-shadow: var(--elevation-3);
}

.valhalla-team-card img {
    transition: transform var(--transition-slow);
}

.valhalla-team-card:hover img {
    transform: scale(1.05);
}

/* ========================================
   Stats/Counter Styles
   ======================================== */
.valhalla-stat {
    text-align: center;
    padding: 2rem;
}

.valhalla-stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--valhalla-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.valhalla-stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--valhalla-text-muted);
}

/* ========================================
   Pricing/Membership Cards
   ======================================== */
.valhalla-pricing-card {
    background-color: var(--valhalla-surface);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    box-shadow: var(--elevation-1);
}

.valhalla-pricing-card:hover {
    border-color: var(--valhalla-gold);
    transform: translateY(-6px);
    box-shadow: var(--elevation-3);
}

.valhalla-pricing-card.featured {
    border-color: var(--valhalla-gold);
    background: linear-gradient(180deg, rgba(212, 168, 75, 0.12) 0%, var(--valhalla-surface) 100%);
    box-shadow: var(--elevation-2);
}

.valhalla-pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--valhalla-gold);
    color: var(--valhalla-black);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.valhalla-price {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--valhalla-white);
}

.valhalla-price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.valhalla-price-period {
    font-size: 1rem;
    color: var(--valhalla-text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* ========================================
   News/Blog Cards
   ======================================== */
.valhalla-news-card {
    background-color: var(--valhalla-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--elevation-1);
}

.valhalla-news-card:hover {
    transform: translateY(-4px);
    border-color: var(--valhalla-gold);
    box-shadow: var(--elevation-3);
}

.valhalla-news-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.valhalla-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.valhalla-news-card:hover .valhalla-news-card-image img {
    transform: scale(1.05);
}

.valhalla-news-card-content {
    padding: 1.5rem;
}

.valhalla-news-date {
    font-size: 0.85rem;
    color: var(--valhalla-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* ========================================
   Contact Form Styles
   ======================================== */
.valhalla-contact-form input,
.valhalla-contact-form textarea {
    background-color: var(--valhalla-dark);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--valhalla-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: all var(--transition-fast);
}

.valhalla-contact-form input::placeholder,
.valhalla-contact-form textarea::placeholder {
    color: var(--valhalla-text-muted);
}

.valhalla-contact-form input:focus,
.valhalla-contact-form textarea:focus {
    outline: none;
    border-color: var(--valhalla-gold);
    box-shadow: var(--focus-ring);
}

.valhalla-contact-form input::placeholder,
.valhalla-contact-form textarea::placeholder {
    color: var(--valhalla-gray);
}

.valhalla-contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--valhalla-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Footer Styles
   ======================================== */
.valhalla-footer {
    background-color: var(--valhalla-darker);
    border-top: 1px solid var(--border-default);
    margin-top: 0 !important;
}

.wp-block-template-part:has(.valhalla-footer) {
    margin-block-start: 0 !important;
}

.valhalla-page-header-minimal {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

.valhalla-footer a {
    color: var(--valhalla-text-muted);
    transition: color var(--transition-fast);
}

.valhalla-footer .wp-block-navigation a,
.valhalla-footer .wp-block-navigation-item__content {
    color: #FFFFFF !important;
}

.valhalla-footer a:hover {
    color: var(--valhalla-gold);
}

/* Social Icons */
.valhalla-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--valhalla-white);
    transition: all var(--transition-fast);
}

.valhalla-social-icon:hover {
    background-color: var(--valhalla-gold);
    color: var(--valhalla-black);
    transform: translateY(-3px);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   Utility Classes
   ======================================== */
.text-gold {
    color: var(--valhalla-gold) !important;
}

.bg-gold {
    background-color: var(--valhalla-gold) !important;
}

.border-gold {
    border-color: var(--valhalla-gold) !important;
}

.text-muted {
    color: var(--valhalla-text-muted) !important;
}

.overflow-hidden {
    overflow: hidden;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 1024px) {
    .valhalla-section {
        padding: 4rem 0;
    }
    
    .valhalla-stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .valhalla-section {
        padding: 3rem 0;
    }
    
    .valhalla-pricing-card {
        padding: 2rem;
    }
    
    .valhalla-price {
        font-size: 2.5rem;
    }
    
    .valhalla-stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .is-style-valhalla-gold .wp-block-button__link,
    .is-style-valhalla-outline .wp-block-button__link,
    .is-style-valhalla-dark .wp-block-button__link {
        padding: 0.875rem 1.5rem;
    }
}

/* ========================================
   Theme Toggle Button
   ======================================== */
/* Fixed position theme toggle button */
.valhalla-theme-toggle-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--valhalla-surface);
    border: 2px solid var(--valhalla-gold);
    color: var(--valhalla-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.5rem;
    padding: 0;
    box-shadow: var(--elevation-3);
}

.valhalla-theme-toggle-fixed:hover {
    background-color: var(--valhalla-gold);
    color: var(--valhalla-black);
    transform: scale(1.1);
}

.valhalla-theme-toggle-fixed:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Hide icons based on theme */
.valhalla-theme-toggle-fixed .icon-sun {
    display: none;
}

.valhalla-theme-toggle-fixed .icon-moon {
    display: block;
}

[data-theme="light"] .valhalla-theme-toggle-fixed .icon-sun {
    display: block;
}

[data-theme="light"] .valhalla-theme-toggle-fixed .icon-moon {
    display: none;
}

/* Header toggle (fallback) */
.valhalla-theme-toggle .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--valhalla-surface) !important;
    border: 1px solid var(--border-default);
    color: var(--valhalla-text) !important;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
    padding: 0;
}

.valhalla-theme-toggle .wp-block-button__link:hover {
    background-color: var(--valhalla-gold) !important;
    color: var(--valhalla-black) !important;
    border-color: var(--valhalla-gold);
}

.valhalla-theme-toggle .wp-block-button__link:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Hide icons based on theme */
.valhalla-theme-toggle .wp-block-button__link .icon-sun {
    display: none;
}

.valhalla-theme-toggle .wp-block-button__link .icon-moon {
    display: block;
}

[data-theme="light"] .valhalla-theme-toggle .wp-block-button__link .icon-sun {
    display: block;
}

[data-theme="light"] .valhalla-theme-toggle .wp-block-button__link .icon-moon {
    display: none;
}

/* ========================================
   Light Mode - Comprehensive Overrides
   Best Practice: Explicit colors to prevent white-on-white
   ======================================== */

/* Glass effect for light mode */
[data-theme="light"] .is-style-valhalla-glass {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Social icons */
[data-theme="light"] .valhalla-social-icon {
    background-color: rgba(0, 0, 0, 0.06);
    color: #1A1A1F;
}

[data-theme="light"] .valhalla-social-icon:hover {
    background-color: var(--valhalla-gold);
    color: #FFFFFF;
}

/* ----------------------------------------
   Cards and Sections - White BG, Dark Text
   ---------------------------------------- */
[data-theme="light"] .is-style-valhalla-card {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .is-style-valhalla-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--valhalla-gold);
}

/* Force dark text on cards in light mode */
[data-theme="light"] .is-style-valhalla-card .has-valhalla-white-color,
[data-theme="light"] .is-style-valhalla-card h1,
[data-theme="light"] .is-style-valhalla-card h2,
[data-theme="light"] .is-style-valhalla-card h3,
[data-theme="light"] .is-style-valhalla-card h4,
[data-theme="light"] .is-style-valhalla-card h5,
[data-theme="light"] .is-style-valhalla-card h6,
[data-theme="light"] .is-style-valhalla-card p {
    color: #1A1A1F !important;
}

[data-theme="light"] .is-style-valhalla-card .has-valhalla-gray-color {
    color: #5A5A64 !important;
}

[data-theme="light"] .is-style-valhalla-card .has-valhalla-gold-color {
    color: #B8922F !important;
}

/* Pricing cards */
[data-theme="light"] .valhalla-pricing-card {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .valhalla-pricing-card.featured {
    background: linear-gradient(180deg, rgba(212, 168, 75, 0.08) 0%, #FFFFFF 100%);
    border-color: var(--valhalla-gold);
}

[data-theme="light"] .valhalla-pricing-card .has-valhalla-white-color,
[data-theme="light"] .valhalla-pricing-card h1,
[data-theme="light"] .valhalla-pricing-card h2,
[data-theme="light"] .valhalla-pricing-card h3,
[data-theme="light"] .valhalla-pricing-card p {
    color: #1A1A1F !important;
}

/* Team cards */
[data-theme="light"] .valhalla-team-card {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .valhalla-team-card .has-valhalla-white-color,
[data-theme="light"] .valhalla-team-card h1,
[data-theme="light"] .valhalla-team-card h2,
[data-theme="light"] .valhalla-team-card h3,
[data-theme="light"] .valhalla-team-card h4,
[data-theme="light"] .valhalla-team-card p {
    color: #1A1A1F !important;
}

/* News cards */
[data-theme="light"] .valhalla-news-card {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .valhalla-news-card .has-valhalla-white-color,
[data-theme="light"] .valhalla-news-card h1,
[data-theme="light"] .valhalla-news-card h2,
[data-theme="light"] .valhalla-news-card h3,
[data-theme="light"] .valhalla-news-card h4,
[data-theme="light"] .valhalla-news-card p {
    color: #1A1A1F !important;
}

/* ----------------------------------------
   Header - STAYS DARK
   ---------------------------------------- */
[data-theme="light"] .valhalla-header {
    background-color: #16161a !important;
}

[data-theme="light"] .valhalla-header.has-valhalla-black-background-color {
    background-color: #16161a !important;
}

[data-theme="light"] .valhalla-header,
[data-theme="light"] .valhalla-header * {
    --valhalla-white: #FFFFFF;
    --valhalla-text: #FFFFFF;
    --valhalla-black: #16161a;
    --valhalla-surface: #2e2e35;
    --valhalla-surface-light: #3a3a42;
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-default: rgba(255, 255, 255, 0.2);
    --wp--preset--color--valhalla-black: #16161a;
}

[data-theme="light"] .valhalla-header .has-valhalla-white-color,
[data-theme="light"] .valhalla-header .has-valhalla-text-color,
[data-theme="light"] .valhalla-header h1,
[data-theme="light"] .valhalla-header h2,
[data-theme="light"] .valhalla-header p {
    color: #FFFFFF !important;
}

[data-theme="light"] .valhalla-header a,
[data-theme="light"] .valhalla-header .wp-block-navigation a,
[data-theme="light"] .valhalla-header .wp-block-navigation-item__content {
    color: #FFFFFF !important;
}

[data-theme="light"] .valhalla-header a:hover,
[data-theme="light"] .valhalla-header .wp-block-navigation a:hover {
    color: var(--valhalla-gold) !important;
}

[data-theme="light"] .valhalla-header .wp-block-site-title a {
    color: #FFFFFF !important;
}

/* ----------------------------------------
   Footer - STAYS DARK
   ---------------------------------------- */
[data-theme="light"] .valhalla-footer {
    background-color: #16161a !important;
    color: #E8E8EC;
}

[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color {
    background-color: #16161a !important;
}

[data-theme="light"] .valhalla-footer,
[data-theme="light"] .valhalla-footer * {
    --valhalla-white: #FFFFFF;
    --valhalla-text: #E8E8EC;
    --valhalla-gray: #A0A0AA;
    --valhalla-gray-dark: #3A3A44;
    --wp--preset--color--valhalla-darker: #16161a;
    --wp--preset--color--valhalla-white: #FFFFFF;
    --wp--preset--color--valhalla-gray: #A0A0AA;
    --wp--preset--color--valhalla-text: #E8E8EC;
}

[data-theme="light"] .valhalla-footer .has-valhalla-white-color,
[data-theme="light"] .valhalla-footer .wp-block-site-title,
[data-theme="light"] .valhalla-footer .wp-block-site-title a,
[data-theme="light"] .valhalla-footer h1,
[data-theme="light"] .valhalla-footer h2,
[data-theme="light"] .valhalla-footer h3,
[data-theme="light"] .valhalla-footer h4,
[data-theme="light"] .valhalla-footer h5,
[data-theme="light"] .valhalla-footer h6 {
    color: #FFFFFF !important;
}

[data-theme="light"] .valhalla-footer .has-valhalla-text-color {
    color: #E8E8EC !important;
}

[data-theme="light"] .valhalla-footer p:not(.has-valhalla-white-color):not(.has-valhalla-text-color) {
    color: #A0A0AA !important;
}

[data-theme="light"] .valhalla-footer .has-valhalla-gray-color p {
    color: #A0A0AA !important;
}

[data-theme="light"] .valhalla-footer a {
    color: #A0A0AA;
}

[data-theme="light"] .valhalla-footer a:hover {
    color: var(--valhalla-gold);
}

[data-theme="light"] .valhalla-footer .has-valhalla-gray-color {
    color: #A0A0AA !important;
}

[data-theme="light"] .valhalla-footer strong {
    color: #FFFFFF !important;
}

[data-theme="light"] .valhalla-footer .wp-block-navigation a,
[data-theme="light"] .valhalla-footer .wp-block-navigation-item__content {
    color: #FFFFFF !important;
}

[data-theme="light"] .valhalla-page-header-minimal {
    margin-top: 0 !important;
}

[data-theme="light"] .valhalla-footer .wp-block-navigation a:hover {
    color: var(--valhalla-gold) !important;
}

[data-theme="light"] .valhalla-footer .wp-block-social-links a,
[data-theme="light"] .valhalla-footer .wp-block-social-link,
[data-theme="light"] .valhalla-footer .wp-block-social-link svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

[data-theme="light"] .valhalla-footer .wp-block-social-links a:hover,
[data-theme="light"] .valhalla-footer .wp-block-social-link:hover svg {
    color: var(--valhalla-gold) !important;
    fill: var(--valhalla-gold) !important;
}

/* ----------------------------------------
   Hero Sections - STAY DARK
   ---------------------------------------- */
[data-theme="light"] .valhalla-hero,
[data-theme="light"] .valhalla-page-hero,
[data-theme="light"] .wp-block-cover.valhalla-hero,
[data-theme="light"] .wp-block-cover.valhalla-page-hero {
    background-color: #16161a;
}

[data-theme="light"] .valhalla-hero,
[data-theme="light"] .valhalla-hero *,
[data-theme="light"] .valhalla-page-hero,
[data-theme="light"] .valhalla-page-hero *,
[data-theme="light"] .wp-block-cover.valhalla-hero,
[data-theme="light"] .wp-block-cover.valhalla-hero *,
[data-theme="light"] .wp-block-cover.valhalla-page-hero,
[data-theme="light"] .wp-block-cover.valhalla-page-hero * {
    --valhalla-white: #FFFFFF;
    --valhalla-text: #E8E8EC;
    --valhalla-text-muted: #A0A0AA;
    --valhalla-black: #16161a;
    --valhalla-dark: #242429;
    --wp--preset--color--valhalla-white: #FFFFFF;
    --wp--preset--color--valhalla-text: #E8E8EC;
    --wp--preset--color--valhalla-black: #16161a;
}

[data-theme="light"] .valhalla-hero .has-valhalla-white-color,
[data-theme="light"] .valhalla-hero h1,
[data-theme="light"] .valhalla-hero h2,
[data-theme="light"] .valhalla-hero h3,
[data-theme="light"] .valhalla-hero h4,
[data-theme="light"] .valhalla-hero h5,
[data-theme="light"] .valhalla-hero h6,
[data-theme="light"] .valhalla-page-hero .has-valhalla-white-color,
[data-theme="light"] .valhalla-page-hero h1,
[data-theme="light"] .valhalla-page-hero h2,
[data-theme="light"] .valhalla-page-hero h3,
[data-theme="light"] .valhalla-page-hero h4,
[data-theme="light"] .valhalla-page-hero h5,
[data-theme="light"] .valhalla-page-hero h6,
[data-theme="light"] .wp-block-cover.valhalla-hero h1,
[data-theme="light"] .wp-block-cover.valhalla-hero h2,
[data-theme="light"] .wp-block-cover.valhalla-hero h3,
[data-theme="light"] .wp-block-cover.valhalla-hero h4,
[data-theme="light"] .wp-block-cover.valhalla-hero h5,
[data-theme="light"] .wp-block-cover.valhalla-hero h6,
[data-theme="light"] .wp-block-cover.valhalla-page-hero h1,
[data-theme="light"] .wp-block-cover.valhalla-page-hero h2,
[data-theme="light"] .wp-block-cover.valhalla-page-hero h3,
[data-theme="light"] .wp-block-cover.valhalla-page-hero h4,
[data-theme="light"] .wp-block-cover.valhalla-page-hero h5,
[data-theme="light"] .wp-block-cover.valhalla-page-hero h6 {
    color: #FFFFFF !important;
}

[data-theme="light"] .valhalla-hero .has-valhalla-text-color,
[data-theme="light"] .valhalla-hero p,
[data-theme="light"] .valhalla-page-hero .has-valhalla-text-color,
[data-theme="light"] .valhalla-page-hero p,
[data-theme="light"] .wp-block-cover.valhalla-hero p,
[data-theme="light"] .wp-block-cover.valhalla-page-hero p {
    color: #E8E8EC !important;
}

[data-theme="light"] .valhalla-hero .has-valhalla-gray-color,
[data-theme="light"] .valhalla-page-hero .has-valhalla-gray-color {
    color: #A0A0AA !important;
}

/* ----------------------------------------
   Page Hero Pattern - STAYS DARK
   ---------------------------------------- */
[data-theme="light"] .valhalla-page-hero,
[data-theme="light"] .wp-block-cover.valhalla-page-hero {
    background-color: #16161a !important;
}

[data-theme="light"] .valhalla-page-hero .wp-block-cover__background,
[data-theme="light"] .wp-block-cover.valhalla-page-hero .wp-block-cover__background {
    background-color: #16161a !important;
}

/* ----------------------------------------
   Page Header Minimal - STAYS DARK
   ---------------------------------------- */
[data-theme="light"] .valhalla-page-header-minimal {
    background-color: #16161a !important;
}

[data-theme="light"] .valhalla-page-header-minimal.has-valhalla-darker-background-color {
    background-color: #16161a !important;
}

[data-theme="light"] .valhalla-page-header-minimal,
[data-theme="light"] .valhalla-page-header-minimal * {
    --valhalla-white: #FFFFFF;
    --valhalla-text: #E8E8EC;
    --valhalla-gray: #A0A0AA;
    --valhalla-gray-dark: #4A4A52;
    --wp--preset--color--valhalla-darker: #16161a;
    --wp--preset--color--valhalla-white: #FFFFFF;
    --wp--preset--color--valhalla-text: #E8E8EC;
    --wp--preset--color--valhalla-gray: #A0A0AA;
    --wp--preset--color--valhalla-gray-dark: #4A4A52;
}

[data-theme="light"] .valhalla-page-header-minimal .has-valhalla-text-color,
[data-theme="light"] .valhalla-page-header-minimal p,
[data-theme="light"] .valhalla-page-header-minimal .wp-block-post-title {
    color: #E8E8EC !important;
}

[data-theme="light"] .valhalla-page-header-minimal .has-valhalla-gray-color {
    color: #A0A0AA !important;
}

[data-theme="light"] .valhalla-page-header-minimal a {
    color: #A0A0AA !important;
}

[data-theme="light"] .valhalla-page-header-minimal a:hover {
    color: var(--valhalla-gold) !important;
}

[data-theme="light"] .valhalla-page-header-minimal .has-valhalla-gray-dark-color {
    color: #6A6A74 !important;
}

/* ----------------------------------------
   Buttons - Proper Contrast
   ---------------------------------------- */
[data-theme="light"] .is-style-valhalla-gold .wp-block-button__link {
    background-color: var(--valhalla-gold) !important;
    color: #FFFFFF !important;
}

[data-theme="light"] .is-style-valhalla-outline .wp-block-button__link {
    border-color: var(--valhalla-gold) !important;
    color: var(--valhalla-gold) !important;
    background-color: transparent !important;
}

[data-theme="light"] .is-style-valhalla-outline .wp-block-button__link:hover {
    background-color: var(--valhalla-gold) !important;
    color: #FFFFFF !important;
}

[data-theme="light"] .is-style-valhalla-dark .wp-block-button__link {
    background-color: #1A1A1F !important;
    color: #FFFFFF !important;
}

/* Default buttons on light backgrounds */
[data-theme="light"] .wp-block-button__link {
    color: #FFFFFF !important;
}

/* ----------------------------------------
   Content Sections - White BG, Dark Text
   ---------------------------------------- */
[data-theme="light"] .valhalla-section {
    color: #1A1A1F;
}

/* Sections with white/light backgrounds need dark text */
[data-theme="light"] .has-valhalla-black-background-color,
[data-theme="light"] .has-valhalla-surface-background-color,
[data-theme="light"] .has-valhalla-surface-light-background-color {
    background-color: #FFFFFF !important;
}

[data-theme="light"] .has-valhalla-black-background-color .has-valhalla-white-color,
[data-theme="light"] .has-valhalla-surface-background-color .has-valhalla-white-color,
[data-theme="light"] .has-valhalla-surface-light-background-color .has-valhalla-white-color {
    color: #1A1A1F !important;
}

[data-theme="light"] .has-valhalla-black-background-color h1,
[data-theme="light"] .has-valhalla-black-background-color h2,
[data-theme="light"] .has-valhalla-black-background-color h3,
[data-theme="light"] .has-valhalla-black-background-color h4,
[data-theme="light"] .has-valhalla-black-background-color h5,
[data-theme="light"] .has-valhalla-black-background-color h6 {
    color: #1A1A1F !important;
}

[data-theme="light"] .has-valhalla-black-background-color p,
[data-theme="light"] .has-valhalla-surface-background-color p {
    color: #1A1A1F !important;
}

[data-theme="light"] .has-valhalla-black-background-color .has-valhalla-gray-color,
[data-theme="light"] .has-valhalla-surface-background-color .has-valhalla-gray-color {
    color: #5A5A64 !important;
}

[data-theme="light"] .has-valhalla-black-background-color .has-valhalla-text-muted-color {
    color: #5A5A64 !important;
}

/* Darker background sections switch to light */
[data-theme="light"] .has-valhalla-darker-background-color {
    background-color: #FFFFFF !important;
}

[data-theme="light"] .has-valhalla-darker-background-color .has-valhalla-white-color,
[data-theme="light"] .has-valhalla-darker-background-color h1,
[data-theme="light"] .has-valhalla-darker-background-color h2,
[data-theme="light"] .has-valhalla-darker-background-color h3 {
    color: var(--valhalla-black) !important;
}

[data-theme="light"] .has-valhalla-darker-background-color p {
    color: #1A1A1F !important;
}

[data-theme="light"] .has-valhalla-darker-background-color .has-valhalla-gray-color {
    color: #5A5A64 !important;
}


/* Override general darker-background rule for footer specifically */
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color h1,
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color h2,
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color h3,
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color h4,
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color h5,
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color h6,
[data-theme="light"] .valhalla-footer.has-valhalla-darker-background-color .has-valhalla-white-color {
    color: #FFFFFF !important;
}


/* ----------------------------------------
   Form Inputs
   ---------------------------------------- */
[data-theme="light"] .valhalla-contact-form input,
[data-theme="light"] .valhalla-contact-form textarea,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="password"],
[data-theme="light"] textarea {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1A1A1F;
}

[data-theme="light"] .valhalla-contact-form input:focus,
[data-theme="light"] .valhalla-contact-form textarea:focus,
[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--valhalla-gold);
    outline: none;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #8A8A94;
}

/* ----------------------------------------
   Stats
   ---------------------------------------- */
[data-theme="light"] .valhalla-stat-number {
    color: var(--valhalla-gold);
}

[data-theme="light"] .valhalla-stat-label {
    color: #4A4A54;
}

/* ----------------------------------------
   Accent Headings
   ---------------------------------------- */
[data-theme="light"] .is-style-valhalla-accent::after {
    background-color: var(--valhalla-gold);
}

/* ----------------------------------------
   Selection
   ---------------------------------------- */
[data-theme="light"] ::selection {
    background-color: var(--valhalla-gold);
    color: #FFFFFF;
}

/* ----------------------------------------
   Tables
   ---------------------------------------- */
[data-theme="light"] .wp-block-table table {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wp-block-table td,
[data-theme="light"] .wp-block-table th {
    border-color: rgba(0, 0, 0, 0.08);
    color: #1A1A1F;
}

[data-theme="light"] .wp-block-table thead {
    background-color: #F8F8FA;
}

/* ----------------------------------------
   Separators
   ---------------------------------------- */
[data-theme="light"] .wp-block-separator {
    border-color: rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------
   Details/Accordion
   ---------------------------------------- */
[data-theme="light"] details {
    border-color: rgba(0, 0, 0, 0.08);
    background-color: #FFFFFF;
}

[data-theme="light"] details summary {
    color: #1A1A1F;
}

/* ----------------------------------------
   Lists
   ---------------------------------------- */
[data-theme="light"] .has-valhalla-black-background-color ul,
[data-theme="light"] .has-valhalla-black-background-color ol,
[data-theme="light"] .has-valhalla-black-background-color li,
[data-theme="light"] .has-valhalla-surface-background-color ul,
[data-theme="light"] .has-valhalla-surface-background-color ol,
[data-theme="light"] .has-valhalla-surface-background-color li,
[data-theme="light"] .has-valhalla-darker-background-color ul,
[data-theme="light"] .has-valhalla-darker-background-color ol,
[data-theme="light"] .has-valhalla-darker-background-color li {
    color: #1A1A1F !important;
}

/* ----------------------------------------
   Links on Light Backgrounds
   ---------------------------------------- */
[data-theme="light"] .has-valhalla-black-background-color a:not(.wp-block-button__link),
[data-theme="light"] .has-valhalla-surface-background-color a:not(.wp-block-button__link),
[data-theme="light"] .has-valhalla-darker-background-color a:not(.wp-block-button__link) {
    color: var(--valhalla-gold);
}

[data-theme="light"] .has-valhalla-black-background-color a:not(.wp-block-button__link):hover,
[data-theme="light"] .has-valhalla-surface-background-color a:not(.wp-block-button__link):hover,
[data-theme="light"] .has-valhalla-darker-background-color a:not(.wp-block-button__link):hover {
    color: #B8922F;
}

/* Smooth transition for theme change */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body,
.wp-block-group,
.wp-block-cover,
.is-style-valhalla-card,
.valhalla-header,
.valhalla-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   Committee Members - Mobile First Responsive
   ======================================== */
.valhalla-committee-table {
    width: 100%;
}

.committee-member-card {
    transition: all var(--transition-fast);
}

.committee-member-card:hover {
    border-color: var(--valhalla-gold) !important;
    transform: translateY(-2px);
}

.committee-email {
    min-width: 200px;
    text-align: right;
}

.committee-email a {
    color: var(--valhalla-gray);
    transition: color var(--transition-fast);
}

.committee-email a:hover {
    color: var(--valhalla-gold);
}

@media (max-width: 768px) {
    .committee-member-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .committee-email {
        text-align: left;
        min-width: auto;
        width: 100%;
        padding-left: 76px;
    }
}

@media (max-width: 480px) {
    .committee-email {
        padding-left: 0;
    }
}

/* Light mode - Committee cards */
[data-theme="light"] .committee-member-card {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .committee-member-card:hover {
    border-color: var(--valhalla-gold) !important;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .valhalla-header,
    .valhalla-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
