/*
Theme Name: Swords Cricket Club Custom
Author: John Chacko
Description: Professional high-performance theme for Swords CC.
Version: 1.5
*/

/* 1. VARIABLES & RESET */
:root {
    --swords-blue: #005CB9;
    --swords-light-blue: #5BA4E5;
    --swords-white: #FFFFFF;
    --swords-dark: #121212;
    --swords-gray: #F4F7F9;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--swords-dark);
    margin: 0;
    background-color: var(--swords-white);
}

.container { 
    width: 92%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

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

/* 2. HEADER & NAVIGATION */
.site-header {
    background: var(--swords-blue);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-logo img {
    max-height: 85px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* 3. HERO & STATS */
.hero-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.hero-home h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    text-transform: uppercase;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    margin: 10px;
    transition: 0.3s;
}

.btn-primary { background: var(--swords-blue); color: white; border: 2px solid var(--swords-blue); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: var(--swords-blue); }

.stats-bar {
    background: var(--swords-blue);
    color: white;
    padding: 25px 0;
    border-bottom: 4px solid var(--swords-light-blue);
}

.stats-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

/* 4. FOOTER (FORCE DARK THEME) */
.site-footer {
    background-color: #1A1A1A !important; /* Fixed HEX for reliability */
    color: #FFFFFF !important;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.site-footer h4 { color: #FFFFFF !important; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer p, .site-footer div { color: #BBBBBB !important; }
.site-footer a { color: #FFFFFF !important; text-decoration: none; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.social-icons { display: flex; gap: 20px; font-size: 1.8rem; }
.social-icons a:hover { color: var(--swords-light-blue) !important; }

/* 5. PARTNERS SECTION */
.partners-section {
    padding-bottom: 40px;
    text-align: center;
}

.partner-grid {
    display: flex;
    flex-direction: row !important; /* Forces horizontal row */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Strip WordPress Widget Styling */
.partner-grid div, .partner-grid figure { margin: 0 !important; }

.partner-grid img {
    max-width: 160px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.4s ease;
}

.partner-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #777 !important;
}

/* 6. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .main-navigation ul { gap: 12px; }
    .main-navigation a { font-size: 0.8rem; }
    .hero-home { min-height: 50vh; padding: 40px 0; }
    .stats-bar .container { flex-direction: column; gap: 15px; }
    .partner-grid { gap: 25px; }
    .partner-grid img { max-width: 100px; }
    .footer-grid { text-align: center; }
    .social-icons { justify-content: center; }
}