/* Sportzey Brand Colors */
:root {
    /* Sportzey Brand Colors */
    --sportzey-beige: #f5f5dc;
    --sportzey-beige-dark: #e8e8d0;
    --sportzey-beige-light: #fafaf0;
    --sportzey-black: #1a1a1a;
    --sportzey-black-light: #2d2d2d;
    --sportzey-gray: #6b7280;
    --sportzey-gray-light: #9ca3af;
    
    /* Legacy support - keeping for backward compatibility */
    --primary-beige: var(--sportzey-beige);
    --secondary-beige: var(--sportzey-beige-dark);
    --accent-beige: var(--sportzey-beige-dark);
    --primary-blue: var(--sportzey-black);
    --secondary-blue: var(--sportzey-black-light);
    --accent-blue: var(--sportzey-gray);
    --text-dark: var(--sportzey-black);
    --text-light: var(--sportzey-gray);
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Additional variables for news page */
    --text-primary: var(--sportzey-black);
    --text-secondary: var(--sportzey-gray);
    --text-white: var(--white);
    --gradient-primary: linear-gradient(135deg, var(--sportzey-black) 0%, var(--sportzey-black-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--sportzey-beige) 0%, var(--sportzey-beige-light) 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Performance & Touch Optimizations - Eliminate Click Lag */
* {
    /* Remove 300ms click delay on mobile */
    touch-action: manipulation;
    /* Hardware acceleration for smoother interactions */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Optimize rendering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Prevent text selection on UI elements */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, span, h1, h2, h3, h4, h5, h6, input, textarea, .content, label {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Instant feedback for interactive elements */
button, .btn, a, input[type="submit"], input[type="button"], .nav-toggle {
    /* Instant touch response */
    touch-action: manipulation !important;
    /* Remove highlight on mobile */
    -webkit-tap-highlight-color: transparent !important;
    /* Faster transitions for buttons */
    transition: all 0.08s ease-out !important;
    /* Hardware acceleration */
    will-change: transform, opacity, background-color;
    /* Optimize for cursor changes */
    cursor: pointer;
    /* Prevent zoom on double tap */
    touch-action: manipulation;
}

/* Ultra-fast hover states */
button:hover, .btn:hover, a:hover {
    transition: all 0.05s ease-out !important;
}

/* Instant active states for immediate feedback */
button:active, .btn:active, a:active, .nav-link:active, .nav-toggle:active {
    transition: all 0.02s ease-out !important;
    transform: scale(0.98) !important;
}

/* Mobile touch optimizations */
@media (max-width: 768px) {
    /* Make all clickable elements more responsive on mobile */
    .btn, button, a, .nav-toggle, .nav-link {
        transition: all 0.05s ease-out !important;
    }
    
    /* Instant feedback on touch */
    .btn:active, button:active, a:active, .nav-toggle:active {
        transform: scale(0.95) !important;
        transition: all 0.01s ease-out !important;
    }
    
    /* Contact form buttons optimization */
    .open-form-btn {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        will-change: transform, background-color !important;
    }
}

/* Font Face for Jersey25 */
@font-face {
    font-family: 'Jersey25';
    src: url('../fonts/Jersey25-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Font Face for Jersey M54 */
@font-face {
    font-family: 'Jersey M54';
    src: url('../fonts/JerseyM54.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4; /* Further reduced from 1.5 */
    color: var(--text-dark);
    background-color: var(--primary-beige);
    overflow-x: hidden;
}

/* Container and Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
    
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Enhanced touch interactions for mobile */
    button, .btn, .nav-link, .card, .sport-btn, input, textarea {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    /* Improve mobile scroll performance */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Mobile-optimized focus states */
    button:focus, .btn:focus, .nav-link:focus, input:focus, textarea:focus {
        outline: 2px solid var(--sportzey-black);
        outline-offset: 2px;
    }
    
    /* Better mobile spacing */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jersey25', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.05; /* Further reduced from 1.1 */
    margin-bottom: 0.6rem; /* Further reduced from 0.8rem */
    color: var(--primary-blue);
}

h1 { font-size: 2.8rem; } /* Further reduced from 3rem */
h2 { font-size: 2.2rem; } /* Further reduced from 2.4rem */
h3 { font-size: 1.6rem; } /* Further reduced from 1.8rem */
h4 { font-size: 1.3rem; } /* Further reduced from 1.5rem */
h5 { font-size: 1.1rem; } /* Further reduced from 1.2rem */
h6 { font-size: 0.9rem; } /* Further reduced from 1rem */

p {
    margin-bottom: 0.6rem; /* Further reduced from 0.8rem */
    font-size: 0.95rem; /* Further reduced from 1rem */
    color: var(--text-dark);
}

/* Mobile Typography */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; line-height: 1.1; }
    h2 { font-size: 1.8rem; line-height: 1.1; }
    h3 { font-size: 1.4rem; line-height: 1.15; }
    h4 { font-size: 1.2rem; line-height: 1.15; }
    h5 { font-size: 1rem; line-height: 1.2; }
    h6 { font-size: 0.9rem; line-height: 1.2; }
    
    p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; line-height: 1.15; }
    h2 { font-size: 1.5rem; line-height: 1.15; }
    h3 { font-size: 1.25rem; line-height: 1.2; }
    h4 { font-size: 1.1rem; line-height: 1.2; }
    h5 { font-size: 0.95rem; line-height: 1.25; }
    h6 { font-size: 0.85rem; line-height: 1.25; }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.7rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--sportzey-beige);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--sportzey-beige-dark);
    z-index: 99998;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0; /* Default padding for desktop */
    /* Override global backface-visibility and perspective */
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    -webkit-perspective: none !important;
    perspective: none !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10003;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-link:active {
    transform: scale(0.98);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Jersey25', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sportzey-black);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

/* Hide menu on mobile by default */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.mobile-active {
        display: flex !important;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--sportzey-black);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--sportzey-black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.nav-link:hover::after {
    width: 80%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10002;
    position: relative;
    /* Ultra-fast response */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.05s ease-out;
    will-change: transform;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--sportzey-black);
    margin: 3px 0;
    transition: all 0.15s ease-out;
    will-change: transform, opacity;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
        border-bottom: 3px solid var(--sportzey-beige-dark);
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
        position: relative;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.4rem;
        font-weight: 800;
    }
    
    .nav-toggle {
        display: flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid var(--sportzey-black);
        transition: all 0.2s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .nav-toggle.active {
        background: var(--sportzey-black);
        border-color: var(--sportzey-black);
    }
    
    .nav-toggle.active .bar {
        background: var(--sportzey-beige);
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-2px, 2px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-2px, -2px);
    }
    
    .bar {
        width: 20px;
        height: 2px;
        background: var(--sportzey-black);
        margin: 2px 0;
        transition: all 0.2s ease;
        border-radius: 1px;
    }
    
    /* Force hide desktop menu and show mobile menu */
    .nav-container .nav-menu {
        display: none !important;
    }
    
    .nav-container .nav-menu.mobile-active {
        position: fixed !important;
        left: 0 !important;
        top: 60px !important;
        height: calc(100vh - 60px) !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        width: 100vw !important;
        text-align: center !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
        padding: 2rem 1rem !important;
        gap: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
        align-content: center !important;
        border-top: 1px solid rgba(26, 26, 26, 0.1) !important;
        z-index: 99999 !important;
        display: flex !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        transform: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: 280px !important;
        margin: 0 auto 0.5rem auto !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 25px !important;
        background: rgba(245, 245, 220, 0.2) !important;
        border: 2px solid rgba(26, 26, 26, 0.1) !important;
        color: var(--sportzey-black) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        text-align: center !important;
        box-shadow: none !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }
    
    /* Removed old ::before pseudo-element for cleaner design */
    
    .nav-link:hover {
        background: var(--sportzey-black) !important;
        border-color: var(--sportzey-black) !important;
        transform: translateY(-2px) !important;
        color: var(--sportzey-beige) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .nav-link:active {
        transform: translateY(0) scale(0.98) !important;
        background: var(--sportzey-black) !important;
        border-color: var(--sportzey-black) !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Remove menu header for cleaner centered design */
    .nav-menu.mobile-active::before {
        display: none;
    }
    
    /* Remove bottom spacing for centered design */
    .nav-menu.mobile-active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 55px;
    }
    
    .navbar {
        padding: 0.6rem 0;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        width: 28px;
        height: 28px;
    }
    
    .bar {
        width: 18px;
        height: 2px;
        margin: 1.5px 0;
    }
    
    .nav-container .nav-menu.mobile-active {
        top: 55px !important;
        height: calc(100vh - 55px) !important;
        padding: 1.5rem 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
        align-content: center !important;
        overflow-y: hidden !important;
    }
    
    .nav-link {
        width: auto !important;
        min-width: 180px !important;
        max-width: 260px !important;
        padding: 0.8rem 1.25rem !important;
        font-size: 0.95rem !important;
        margin: 0 auto 0.4rem auto !important;
        align-self: center !important;
        flex-shrink: 0 !important;
    }
    
    .nav-menu.mobile-active::before {
        display: none;
    }
    
    /* Ensure proper ultra-mobile menu container alignment */
    .nav-menu.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .nav-menu.mobile-active::after {
        display: none;
    }
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 55px;
        min-height: calc(100vh - 55px);
    }
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0 1rem; /* Further reduced from 2.5rem */
    margin-top: 2rem; /* Further reduced from 3rem */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Further reduced from 1.5rem */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Further reduced from 220px */
    gap: 1.2rem; /* Further reduced from 1.5rem */
}

.footer-section h4 {
    color: var(--accent-beige);
    margin-bottom: 0.6rem; /* Further reduced from 0.8rem */
    font-size: 1.1rem; /* Further reduced from 1.2rem */
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem; /* Further reduced from 0.4rem */
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-beige);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Further reduced from 0.8rem */
    margin-bottom: 0.6rem; /* Further reduced from 0.8rem */
}

.footer-logo-img {
    width: 30px; /* Further reduced from 35px */
    height: 30px; /* Further reduced from 35px */
}

.footer-logo-text {
    font-family: 'Jersey25', sans-serif;
    font-size: 1.2rem; /* Further reduced from 1.3rem */
    font-weight: 700;
}

.footer-tagline {
    color: var(--accent-beige);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem; /* Further reduced from 1.5rem */
    margin-top: 1.2rem; /* Further reduced from 1.5rem */
    border-top: 1px solid var(--secondary-blue);
    color: var(--text-light);
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 1rem;
        margin-top: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section a {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.2rem 0 0.8rem;
    }
    
    .footer-container {
        padding: 0 0.75rem;
        gap: 1.2rem;
    }
    
    .footer-logo-img {
        width: 25px;
        height: 25px;
    }
    
    .footer-logo-text {
        font-size: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.2rem;
        margin-top: 1.2rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem; /* Further reduced from 1rem 2rem */
    background: var(--sportzey-black);
    color: var(--white);
    text-decoration: none;
    border-radius: 35px; /* Further reduced from 40px */
    font-weight: 600;
    font-size: 0.95rem; /* Further reduced from 1rem */
    transition: all 0.08s ease-out !important;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow); /* Further reduced shadow */
    /* Performance optimizations */
    will-change: transform, background-color, box-shadow;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:hover {
    background: var(--sportzey-black-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-dark); /* Further reduced shadow */
    transition: all 0.05s ease-out !important;
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.02s ease-out !important;
    box-shadow: 0 1px 5px var(--shadow);
}

.btn-secondary {
    background: var(--sportzey-beige);
    color: var(--sportzey-black);
}

.btn-secondary:hover {
    background: var(--secondary-beige);
}

/* Mobile Button Styles */
@media (max-width: 768px) {
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 30px;
        min-height: 48px; /* Better touch target */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 200px;
    }
    
    .btn:hover {
        transform: none; /* Remove hover effects on mobile */
    }
    
    /* Active state for better mobile feedback */
    .btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px var(--shadow);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        min-width: 180px;
        width: 100%;
        max-width: 280px;
    }
}

/* Cards */
.card {
    background: var(--sportzey-beige-light);
    border-radius: 12px; /* Further reduced from 16px */
    padding: 1.2rem; /* Further reduced from 1.5rem */
    box-shadow: 0 6px 20px var(--shadow); /* Further reduced shadow */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-6px); /* Further reduced from -8px */
    box-shadow: 0 12px 30px var(--shadow-dark); /* Further reduced shadow */
    border-color: var(--sportzey-gray);
}

/* Mobile Card Styles */
@media (max-width: 768px) {
    .card {
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px var(--shadow);
    }
    
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px var(--shadow-dark);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 0.8rem;
        border-radius: 8px;
        box-shadow: 0 3px 12px var(--shadow);
    }
    
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px var(--shadow-dark);
    }
}






