/* ELFA shared stylesheet: index, about, competitions, tournaments, contact.
   Rules shared by every page are unscoped. Page-only rules are scoped with
   :where(.page-NAME) (zero specificity) via the class on <html>. */


:root:where(.page-home,.page-about,.page-contact) {
    --burgundy: #5C1F1F;
    --gold: #B8A574;
    --dark-burgundy: #3D1414;
    --light-gold: #D4C9A3;
    --cream: #F8F6F0;
    --charcoal: #2A2A2A;
    --white: #FFFFFF;
    --green: #3A5F3F;
    --light-green: #5A7F5F;
}

:root:where(.page-competitions) {
    --burgundy: #5C1F1F;
    --gold: #B8A574;
    --dark-burgundy: #3D1414;
    --light-gold: #D4C9A3;
    --cream: #F8F6F0;
    --charcoal: #2A2A2A;
    --white: #FFFFFF;
    --green: #3A5F3F;
    --light-green: #5A7F5F;
    --blue: #7B9BD9;
    --pink: #E891D8;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(92, 31, 31, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(92, 31, 31, 0.12);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

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

.logo-image {
    width: 90px;
    height: auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 15px rgba(92, 31, 31, 0.15));
}

:where(.page-about,.page-contact) header.scrolled .logo-image {
    width: 70px;
}

:where(.page-about,.page-contact) .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(92, 31, 31, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-image {
    width: 90px;
    transition: 0.3s ease;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--burgundy);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--green));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--burgundy);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--burgundy);
    font-weight: 700;
}

nav a.active::after {
    width: 100%;
}

.login-link {
    padding: 0.6rem 1.5rem;
    background: #E8E8E8;
    color: var(--burgundy) !important;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.login-link::after {
    display: none;
}

.login-link:hover {
    background: #D8D8D8;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--burgundy);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .logo-image {
        width: 65px;
    }
    .menu-toggle {
        display: flex;
    }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        padding-top: 120px;
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 2rem;
        padding-left: 2rem;
        align-items: flex-start;
    }
    nav a {
        font-size: 1rem;
    }
}

:where(.page-home) .hero {
    margin-top: 0;
    padding-top: 160px;
    padding-bottom: 4rem;
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

:where(.page-about,.page-competitions,.page-contact) .hero {
    margin-top: 0;
    padding-top: 160px;
    padding-bottom: 4rem;
    min-height: 65vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 1.2s ease-out;
}

@keyframes zoomIn {
 from { transform: scale(1.1); } to { transform: scale(1); } }

:where(.page-home) .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 31, 31, 0.85) 0%, rgba(61, 20, 20, 0.9) 100%);
    animation: fadeIn 0.8s ease-out;
}

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

:where(.page-about,.page-competitions,.page-contact) .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 31, 31, 0.88) 0%, rgba(61, 20, 20, 0.92) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(184,165,116,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="800" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

:where(.page-home) .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 10;
}

:where(.page-home) .hero-content > * {
    animation: slideUp 1s ease-out backwards;
}

:where(.page-home) .hero-content > *:nth-child(1) {
    animation-delay: 0.2s;
}

:where(.page-home) .hero-content > *:nth-child(2) {
    animation-delay: 0.4s;
}

:where(.page-home) .hero-content > *:nth-child(3) {
    animation-delay: 0.6s;
}

:where(.page-home) .hero-content > *:nth-child(4) {
    animation-delay: 0.8s;
}

:where(.page-home) .hero-content > * {
    animation: slideUp 1s ease-out backwards;
}

:where(.page-home) .hero-content > *:nth-child(1) {
    animation-delay: 0.2s;
}

:where(.page-home) .hero-content > *:nth-child(2) {
    animation-delay: 0.4s;
}

:where(.page-home) .hero-content > *:nth-child(3) {
    animation-delay: 0.6s;
}

:where(.page-home) .hero-content > *:nth-child(4) {
    animation-delay: 0.8s;
}

:where(.page-about,.page-competitions,.page-contact) .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

:where(.page-about,.page-competitions,.page-contact) .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
 from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

:where(.page-home) .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 300;
}

:where(.page-home) .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

:where(.page-home) .hero-description {
    font-size: 1.3rem;
    color: var(--light-gold);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

:where(.page-home) .cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gold);
    color: var(--dark-burgundy);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(184, 165, 116, 0.3);
    position: relative;
    overflow: hidden;
}

:where(.page-home) .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

:where(.page-home) .cta-button:hover::before {
    left: 100%;
}

:where(.page-home) .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(184, 165, 116, 0.5);
}

:where(.page-home) .living-football {
    padding: 10rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

:where(.page-home) .living-football::before {
    content: '';
    position: absolute;
    top: 5rem;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(58, 95, 63, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

:where(.page-home) .section-header {
    text-align: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.page-home) .section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

:where(.page-home) .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

:where(.page-about,.page-competitions,.page-contact) .hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-gold);
    font-weight: 300;
    animation: slideUp 1s ease-out 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

:where(.page-about) .constitution {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

:where(.page-about) .constitution-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
}

:where(.page-about) .constitution-image-section {
    position: relative;
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-about) .constitution-image-section.visible {
    opacity: 1;
    transform: translateX(0);
}

:where(.page-about) .constitution-image {
    width: 100%;
    height: 700px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(92, 31, 31, 0.25);
    position: relative;
}

:where(.page-about) .constitution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

:where(.page-about) .constitution-image:hover img {
    transform: scale(1.05);
}

:where(.page-about) .constitution-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

:where(.page-about) .constitution-badge-year {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.3rem;
}

:where(.page-about) .constitution-badge-text {
    font-size: 0.85rem;
    color: var(--charcoal);
    font-weight: 600;
    letter-spacing: 1px;
}

:where(.page-about) .section-intro {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-about) .section-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.page-about) .section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

:where(.page-about) .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

:where(.page-home,.page-about) .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green));
}

:where(.page-home) .section-description {
    font-size: 1.1rem;
    color: var(--charcoal);
    max-width: 700px;
    margin: 2rem auto 0;
    line-height: 1.8;
    opacity: 0.8;
}

:where(.page-home) .values-container {
    margin-top: 5rem;
}

:where(.page-home) .values-intro {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.3rem;
    color: var(--burgundy);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

:where(.page-home) .values-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.page-home) .values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

:where(.page-home) .value-card {
    background: var(--white);
    padding: 3.5rem 3rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(92, 31, 31, 0.08);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.page-home) .value-card:nth-child(1) {
    transition-delay: 0.1s;
}

:where(.page-home) .value-card:nth-child(2) {
    transition-delay: 0.2s;
}

:where(.page-home) .value-card:nth-child(3) {
    transition-delay: 0.3s;
}

:where(.page-home) .value-card:nth-child(4) {
    transition-delay: 0.4s;
}

:where(.page-home) .value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--burgundy));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .value-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(184, 165, 116, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

:where(.page-home) .value-card:hover::after {
    width: 300px;
    height: 300px;
}

:where(.page-home) .value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(92, 31, 31, 0.15);
}

:where(.page-home) .value-card:hover::before {
    transform: scaleX(1);
}

:where(.page-home) .value-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--cream);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .value-card:hover .value-number {
    color: rgba(184, 165, 116, 0.3);
    transform: scale(1.2);
}

:where(.page-home) .value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

:where(.page-home) .value-text {
    color: var(--charcoal);
    line-height: 1.8;
    opacity: 0.85;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

:where(.page-home) .values-footer {
    text-align: center;
    margin-top: 5rem;
    font-size: 1.2rem;
    color: var(--burgundy);
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

:where(.page-home) .values-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.page-home) .gallery {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    position: relative;
}

:where(.page-home) .gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

:where(.page-home) .gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

:where(.page-home) .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

:where(.page-home) .gallery-item {
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

:where(.page-home) .gallery-item:nth-child(1) {
    transition-delay: 0.1s;
}

:where(.page-home) .gallery-item:nth-child(2) {
    transition-delay: 0.2s;
}

:where(.page-home) .gallery-item:nth-child(3) {
    transition-delay: 0.3s;
}

:where(.page-home) .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

:where(.page-home) .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(92, 31, 31, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

:where(.page-home) .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

:where(.page-home) .gallery-caption {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

:where(.page-home) .gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

:where(.page-about) .constitution-content {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-about) .constitution-content.visible {
    opacity: 1;
    transform: translateX(0);
}

:where(.page-about) .constitution-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

:where(.page-about) .constitution-content p:last-child {
    margin-bottom: 0;
}

:where(.page-about) .constitution-content strong {
    color: var(--burgundy);
    font-weight: 700;
}

:where(.page-about) .areas-list {
    margin: 1.5rem 0 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

:where(.page-about) .areas-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    position: relative;
    padding-left: 1.5rem;
}

:where(.page-about) .areas-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

:where(.page-about) .areas-list li::marker {
    content: '';
}

:where(.page-about) .journey-section {
    padding: 8rem 4rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

:where(.page-about) .journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 95, 63, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

:where(.page-about) .journey-container {
    max-width: 1400px;
    margin: 0 auto;
}

:where(.page-about) .logo-display {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-about) .logo-display.visible {
    opacity: 1;
    transform: scale(1);
}

:where(.page-about) .logo-display img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(92, 31, 31, 0.15));
    animation: float 4s ease-in-out infinite;
    margin-bottom: 2rem;
}

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

:where(.page-about) .logo-caption {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--burgundy);
    font-weight: 600;
}

:where(.page-about) .journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

:where(.page-about) .journey-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(92, 31, 31, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
}

:where(.page-about) .journey-card.visible {
    opacity: 1;
    transform: translateY(0);
}

:where(.page-about) .journey-card:nth-child(1) {
    transition-delay: 0.1s;
}

:where(.page-about) .journey-card:nth-child(2) {
    transition-delay: 0.2s;
}

:where(.page-about) .journey-card:nth-child(3) {
    transition-delay: 0.3s;
}

:where(.page-about) .journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(92, 31, 31, 0.15);
}

:where(.page-about) .journey-card-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

:where(.page-about) .journey-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

:where(.page-about) .journey-card:hover .journey-card-image img {
    transform: scale(1.1);
}

:where(.page-about) .journey-card-content {
    padding: 2rem;
}

:where(.page-about) .journey-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.8rem;
}

:where(.page-about) .journey-card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--charcoal);
    opacity: 0.85;
}

:where(.page-about) .mission-vision {
    padding: 8rem 4rem;
    background: var(--white);
    position: relative;
}

:where(.page-about) .mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

:where(.page-about) .mission-vision-container {
    max-width: 1400px;
    margin: 0 auto;
}

:where(.page-about) .mission-wrapper, :where(.page-about) .vision-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 10rem;
}

:where(.page-about) .vision-wrapper {
    margin-bottom: 0;
    grid-template-columns: 1fr 1.3fr;
}

:where(.page-about) .mission-image-section, :where(.page-about) .vision-image-section {
    position: relative;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-about) .mission-image-section {
    transform: translateX(-40px);
    order: 1;
}

:where(.page-about) .vision-image-section {
    transform: translateX(40px);
    order: 2;
}

:where(.page-about) .mission-image-section.visible, :where(.page-about) .vision-image-section.visible {
    opacity: 1;
    transform: translateX(0);
}

:where(.page-about) .mission-image, :where(.page-about) .vision-image {
    width: 100%;
    height: 650px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(92, 31, 31, 0.25);
    position: relative;
}

:where(.page-about) .mission-image::before, :where(.page-about) .vision-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(92, 31, 31, 0.1) 0%, transparent 100%);
    z-index: 1;
}

:where(.page-about) .mission-image img, :where(.page-about) .vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

:where(.page-about) .mission-image:hover img, :where(.page-about) .vision-image:hover img {
    transform: scale(1.08);
}

:where(.page-about) .mission-content, :where(.page-about) .vision-content {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

:where(.page-about) .mission-content {
    transform: translateX(40px);
    order: 2;
}

:where(.page-about) .vision-content {
    transform: translateX(-40px);
    order: 1;
}

:where(.page-about) .mission-content.visible, :where(.page-about) .vision-content.visible {
    opacity: 1;
    transform: translateX(0);
}

:where(.page-about) .mission-box, :where(.page-about) .vision-box {
    position: relative;
}

:where(.page-about) .mission-title, :where(.page-about) .vision-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

:where(.page-about) .mission-title::after, :where(.page-about) .vision-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green));
}

:where(.page-about) .objectives-intro {
    font-size: 1.15rem;
    color: var(--charcoal);
    margin-bottom: 2rem;
    opacity: 0.85;
}

:where(.page-about) .objectives-list {
    list-style: none;
    padding: 0;
}

:where(.page-about) .objectives-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-about) .objectives-list li.visible {
    opacity: 1;
    transform: translateX(0);
}

:where(.page-about) .objectives-list li:nth-child(1) {
    transition-delay: 0.1s;
}

:where(.page-about) .objectives-list li:nth-child(2) {
    transition-delay: 0.15s;
}

:where(.page-about) .objectives-list li:nth-child(3) {
    transition-delay: 0.2s;
}

:where(.page-about) .objectives-list li:nth-child(4) {
    transition-delay: 0.25s;
}

:where(.page-about) .objectives-list li:nth-child(5) {
    transition-delay: 0.3s;
}

:where(.page-about) .objectives-list li:nth-child(6) {
    transition-delay: 0.35s;
}

:where(.page-about) .objectives-list li:nth-child(7) {
    transition-delay: 0.4s;
}

:where(.page-about) .objectives-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(184, 165, 116, 0.2);
    transition: all 0.3s ease;
}

:where(.page-about) .objectives-list li:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(184, 165, 116, 0.3);
}

:where(.page-about) .vision-statement {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--charcoal);
    opacity: 0.9;
}

:where(.page-competitions) .competitions-intro {
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

:where(.page-competitions) .intro-header {
    text-align: center;
    margin-bottom: 4rem;
}

:where(.page-competitions) .intro-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

:where(.page-competitions) .intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 2rem;
}

:where(.page-competitions) .intro-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--charcoal);
    opacity: 0.9;
    text-align: center;
}

:where(.page-contact) .image-showcase {
    padding: 4rem 4rem;
    background: var(--white);
}

:where(.page-contact) .showcase-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

:where(.page-contact) .showcase-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(92, 31, 31, 0.12);
    cursor: pointer;
}

:where(.page-contact) .showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

:where(.page-contact) .showcase-item:hover img {
    transform: scale(1.1);
}

:where(.page-contact) .showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(92, 31, 31, 0.95), rgba(92, 31, 31, 0.3));
    transition: all 0.4s ease;
}

:where(.page-contact) .showcase-item:hover .showcase-overlay {
    background: linear-gradient(to top, rgba(92, 31, 31, 0.98), rgba(92, 31, 31, 0.5));
    padding: 2.5rem;
}

:where(.page-contact) .showcase-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

:where(.page-contact) .contact-intro {
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

:where(.page-contact) .intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--charcoal);
    opacity: 0.9;
}

:where(.page-competitions,.page-contact) .intro-text strong {
    color: var(--burgundy);
    font-weight: 700;
}

:where(.page-competitions) .competitions-section {
    padding: 4rem 4rem 8rem;
    background: var(--white);
}

:where(.page-competitions) .competitions-container {
    max-width: 1400px;
    margin: 0 auto;
}

:where(.page-competitions) .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

:where(.page-competitions) .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

:where(.page-competitions) .section-description {
    font-size: 1.05rem;
    color: var(--charcoal);
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

:where(.page-competitions) .category-section {
    margin-bottom: 5rem;
}

:where(.page-competitions) .category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 3rem;
    padding-left: 2rem;
    position: relative;
}

:where(.page-competitions) .category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--gold);
}

:where(.page-competitions) .competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

:where(.page-competitions) .competition-card {
    text-decoration: none;
    background: var(--cream);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(92, 31, 31, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

:where(.page-competitions) .competition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--blue);
    transition: height 0.3s ease;
}

:where(.page-competitions) .competition-card.ladies::before {
    background: var(--pink);
}

:where(.page-competitions) .competition-card.regional::before {
    background: linear-gradient(90deg, var(--gold), var(--burgundy));
}

:where(.page-competitions) .competition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(92, 31, 31, 0.15);
}

:where(.page-competitions) .competition-card:hover::before {
    height: 8px;
}

:where(.page-competitions) .competition-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--burgundy), var(--dark-burgundy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

:where(.page-competitions) .competition-icon svg {
    width: 35px;
    height: 35px;
}

:where(.page-competitions) .competition-card:hover .competition-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(92, 31, 31, 0.3);
}

:where(.page-competitions) .competition-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

:where(.page-competitions) .competition-description {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

:where(.page-competitions) .competition-link-text {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

:where(.page-competitions) .competition-link-text::after {
    content: '\2192';
    transition: transform 0.3s ease;
}

:where(.page-competitions) .competition-card:hover .competition-link-text::after {
    transform: translateX(5px);
}

:where(.page-contact) .contact-main {
    padding: 4rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

:where(.page-contact) .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

:where(.page-contact) .contact-info-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

:where(.page-contact) .contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green));
}

:where(.page-contact) .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

:where(.page-contact) .contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(92, 31, 31, 0.08);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

:where(.page-contact) .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(92, 31, 31, 0.15);
}

:where(.page-contact) .contact-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--burgundy), var(--dark-burgundy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

:where(.page-contact) .contact-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

:where(.page-contact) .contact-card-content p {
    color: var(--charcoal);
    line-height: 1.6;
    opacity: 0.9;
}

:where(.page-contact) .map-container {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(92, 31, 31, 0.08);
}

:where(.page-contact) .map-container iframe {
    display: block;
    border: 0;
    border-radius: 8px;
}

:where(.page-contact) .visit-us-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(92, 31, 31, 0.08);
}

:where(.page-contact) .visit-us-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

:where(.page-contact) .visit-us-section p {
    color: var(--charcoal);
    line-height: 1.7;
    opacity: 0.9;
}

:where(.page-contact) .contact-form-section {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(92, 31, 31, 0.12);
    position: relative;
    overflow: hidden;
}

:where(.page-contact) .contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--green));
}

:where(.page-contact) .contact-form-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

:where(.page-contact) .form-intro {
    font-size: 1rem;
    color: var(--charcoal);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

:where(.page-contact) .form-group {
    margin-bottom: 1.8rem;
}

:where(.page-contact) .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--burgundy);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

:where(.page-contact) .form-group input, :where(.page-contact) .form-group select, :where(.page-contact) .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gold);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--cream);
}

:where(.page-contact) .form-group input:focus, :where(.page-contact) .form-group select:focus, :where(.page-contact) .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 165, 116, 0.2);
}

:where(.page-contact) .form-group textarea {
    resize: vertical;
    min-height: 140px;
}

:where(.page-contact) .submit-button {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(135deg, var(--burgundy), var(--dark-burgundy));
    color: var(--gold);
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

:where(.page-contact) .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(92, 31, 31, 0.4);
}

footer {
    background: #2A2A2A;
    color: var(--cream);
    padding: 4rem 4rem 2rem;
    position: relative;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2A2A2A;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--light-gold);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 0.2rem;
}

.footer-contact-item strong {
    color: var(--white);
    display: block;
    margin-bottom: 0.3rem;
}

@media (max-width: 1024px) {
    :where(.page-home) .nav-container { padding: 1rem 2rem; }
    :where(.page-home) .hero-content, :where(.page-home) .living-football, :where(.page-home) .gallery-container { padding: 5rem 2rem; }
    :where(.page-home) .hero { height: 60vh; }
    :where(.page-home) .footer-container { grid-template-columns: 1fr 1fr; gap: 4rem; }
    :where(.page-home) .footer-left { grid-column: 1 / -1; text-align: center; }
    :where(.page-home) .footer-left .social-links { justify-content: center; }
    :where(.page-home) .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    :where(.page-home) .values-grid { grid-template-columns: 1fr; }
    :where(.page-home) .hero-title { font-size: 3.5rem; }
    :where(.page-home) .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    :where(.page-home) .logo-text { font-size: 1.3rem; }
    :where(.page-home) .logo-image { width: 60px; }
    :where(.page-home) .hero { height: 50vh; }
    :where(.page-home) .hero-title { font-size: 2.5rem; }
    :where(.page-home) .hero-subtitle { font-size: 1rem; }
    :where(.page-home) .section-title { font-size: 2rem; }
    :where(.page-home) .living-football, :where(.page-home) .gallery { padding: 5rem 1.5rem; }
    :where(.page-home) .gallery-container { padding: 0 1.5rem; }
    :where(.page-home) .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    :where(.page-home) .gallery-item { height: 300px; }
    :where(.page-home) .value-card { padding: 2.5rem 2rem; }
    :where(.page-home) .value-number { font-size: 4rem; }
    :where(.page-home) .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    :where(.page-home) .footer-left { grid-column: auto; }
    :where(.page-home) .footer-contact-item { flex-direction: column; text-align: center; align-items: center; }
    :where(.page-home) footer { padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
    :where(.page-home) .nav-container { padding: 1rem; }
    :where(.page-home) .hero-title { font-size: 2rem; }
    :where(.page-home) .hero-subtitle { font-size: 0.9rem; }
    :where(.page-home) .section-title { font-size: 1.8rem; }
    :where(.page-home) .value-title { font-size: 1.3rem; }
    :where(.page-home) .living-football, :where(.page-home) .gallery { padding: 4rem 1rem; }
    :where(.page-home) .gallery-container { padding: 0 1rem; }
    :where(.page-home) .gallery-item { height: 250px; }
    :where(.page-home) .social-link { width: 40px; height: 40px; }
    :where(.page-home) footer { padding: 2.5rem 1rem 1.5rem; }
    :where(.page-home) .footer-heading { font-size: 1.3rem; }
    :where(.page-home) .footer-container { gap: 2.5rem; }
    :where(.page-home) .footer-copyright { font-size: 0.85rem; }
}

:where(.page-home) .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.page-home) .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    :where(.page-about) .nav-container { padding: 1rem 2rem; }
    :where(.page-about) .constitution, :where(.page-about) .journey-section, :where(.page-about) .mission-vision { padding: 5rem 2rem; }
    :where(.page-about) .constitution-grid, :where(.page-about) .mission-wrapper, :where(.page-about) .vision-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    :where(.page-about) .mission-image-section, :where(.page-about) .vision-image-section { order: 1; }
    :where(.page-about) .mission-content, :where(.page-about) .vision-content { order: 2; }
    :where(.page-about) .journey-grid { grid-template-columns: 1fr; }
    :where(.page-about) .footer-container { grid-template-columns: 1fr 1fr; gap: 4rem; }
    :where(.page-about) .footer-left { grid-column: 1 / -1; text-align: center; }
    :where(.page-about) .footer-left .social-links { justify-content: center; }
    :where(.page-about) .hero-title { font-size: 3.5rem; }
    :where(.page-about) .section-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    :where(.page-about) .logo-text { font-size: 1.3rem; }
    :where(.page-about) .logo-image { width: 60px; }
    :where(.page-about) .hero-title { font-size: 2.5rem; }
    :where(.page-about) .section-title { font-size: 2.2rem; }
    :where(.page-about) .mission-title, :where(.page-about) .vision-title { font-size: 2.2rem; }
    :where(.page-about) .constitution-image, :where(.page-about) .mission-image, :where(.page-about) .vision-image { height: 350px; }
    :where(.page-about) .areas-list { grid-template-columns: 1fr; }
    :where(.page-about) .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    :where(.page-about) .footer-left { grid-column: auto; }
    :where(.page-about) .footer-contact-item { flex-direction: column; text-align: center; align-items: center; }
    :where(.page-about) footer { padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 1024px) {
    :where(.page-competitions) .nav-container { padding: 1rem 2rem; }
    :where(.page-competitions) .competitions-intro, :where(.page-competitions) .competitions-section { padding: 5rem 2rem; }
    :where(.page-competitions) .competitions-grid { grid-template-columns: repeat(2, 1fr); }
    :where(.page-competitions) .footer-container { grid-template-columns: 1fr 1fr; gap: 4rem; }
    :where(.page-competitions) .footer-left { grid-column: 1 / -1; text-align: center; }
    :where(.page-competitions) .footer-left .social-links { justify-content: center; }
}

@media (max-width: 768px) {
    :where(.page-competitions) .logo-text { font-size: 1.3rem; }
    :where(.page-competitions) .logo-image { width: 60px; }
    :where(.page-competitions) .hero-title { font-size: 2.5rem; }
    :where(.page-competitions) .hero-subtitle { font-size: 1rem; }
    :where(.page-competitions) .competitions-intro, :where(.page-competitions) .competitions-section { padding: 4rem 1.5rem; }
    :where(.page-competitions) .intro-title { font-size: 2.2rem; }
    :where(.page-competitions) .competitions-grid { grid-template-columns: 1fr; }
    :where(.page-competitions) .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    :where(.page-competitions) .footer-left { grid-column: auto; }
    :where(.page-competitions) .footer-contact-item { flex-direction: column; text-align: center; align-items: center; }
    :where(.page-competitions) footer { padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
    :where(.page-competitions) .hero-title { font-size: 2rem; }
    :where(.page-competitions) .section-title { font-size: 2rem; }
    :where(.page-competitions) .competition-card { padding: 2rem 1.5rem; }
}

@media (max-width: 1024px) {
    :where(.page-contact) .nav-container { padding: 1rem 2rem; }
    :where(.page-contact) .contact-intro, :where(.page-contact) .contact-main, :where(.page-contact) .image-showcase { padding: 5rem 2rem; }
    :where(.page-contact) .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
    :where(.page-contact) .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    :where(.page-contact) .footer-container { grid-template-columns: 1fr 1fr; gap: 4rem; }
    :where(.page-contact) .footer-left { grid-column: 1 / -1; text-align: center; }
    :where(.page-contact) .footer-left .social-links { justify-content: center; }
}

@media (max-width: 768px) {
    :where(.page-contact) .logo-text { font-size: 1.3rem; }
    :where(.page-contact) .logo-image { width: 60px; }
    :where(.page-contact) .hero-title { font-size: 2.5rem; }
    :where(.page-contact) .hero-subtitle { font-size: 1rem; }
    :where(.page-contact) .contact-intro, :where(.page-contact) .contact-main, :where(.page-contact) .image-showcase { padding: 4rem 1.5rem; }
    :where(.page-contact) .showcase-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    :where(.page-contact) .showcase-item { height: 250px; }
    :where(.page-contact) .contact-form-section { padding: 2.5rem 2rem; }
    :where(.page-contact) .map-container iframe { height: 300px; }
    :where(.page-contact) .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    :where(.page-contact) .footer-left { grid-column: auto; }
    :where(.page-contact) .footer-contact-item { flex-direction: column; text-align: center; align-items: center; }
    :where(.page-contact) footer { padding: 3rem 1.5rem 2rem; }
}

@media (max-width: 480px) {
    :where(.page-contact) .hero-title { font-size: 2rem; }
    :where(.page-contact) .contact-card { padding: 2rem 1.5rem; }
    :where(.page-contact) .contact-form-section h2 { font-size: 2rem; }
    :where(.page-contact) .showcase-item { height: 220px; }
    :where(.page-contact) .map-container iframe { height: 250px; }
    :where(.page-contact) .intro-text { font-size: 1rem; }
}

/* ===== Tournaments page (tournaments.php) ===== */
:where(.page-tournaments) .tournaments-section {
    padding: 2rem 4rem 8rem;
    background: var(--white);
}

:where(.page-tournaments) .tournaments-container {
    max-width: 1100px;
    margin: 0 auto;
}

:where(.page-tournaments) .tournaments-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--burgundy);
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

:where(.page-tournaments) .tournaments-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

:where(.page-tournaments) .tournament-panel {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--cream);
    box-shadow: 0 6px 24px rgba(92, 31, 31, 0.1);
}

:where(.page-tournaments) .tournament-banner {
    position: relative;
    padding: 2rem 2.5rem;
    color: var(--white);
    background: linear-gradient(120deg, var(--burgundy), var(--dark-burgundy));
    border-bottom: 4px solid var(--gold);
}

:where(.page-tournaments) .tournament-panel.is-upcoming .tournament-banner {
    background: linear-gradient(120deg, var(--green), var(--burgundy));
}

:where(.page-tournaments) .tournament-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--light-gold);
    color: var(--light-gold);
    margin-bottom: 0.9rem;
}

:where(.page-tournaments) .tournament-panel.is-upcoming .tournament-status {
    background: var(--gold);
    color: var(--dark-burgundy);
    border-color: var(--gold);
}

:where(.page-tournaments) .tournament-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
}

:where(.page-tournaments) .tournament-name span {
    color: var(--light-gold);
    font-style: italic;
}

:where(.page-tournaments) .tournament-subtitle {
    margin-top: 0.6rem;
    opacity: 0.85;
}

:where(.page-tournaments) .tournament-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    padding: 1.75rem 2.5rem 2.25rem;
}

:where(.page-tournaments) .tournament-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    text-decoration: none;
    color: var(--charcoal);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

:where(.page-tournaments) .tournament-link:hover {
    transform: translateX(6px);
    border-left-color: var(--burgundy);
    box-shadow: 0 6px 18px rgba(92, 31, 31, 0.12);
}

:where(.page-tournaments) .tournament-link-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy);
    color: var(--gold);
}

:where(.page-tournaments) .tournament-link-icon svg {
    width: 22px;
    height: 22px;
}

:where(.page-tournaments) .tournament-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

:where(.page-tournaments) .tournament-link-text small {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
}

:where(.page-tournaments) .tournament-link-text strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--burgundy);
}

:where(.page-tournaments) .tournament-link-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--burgundy);
    white-space: nowrap;
}

@media (max-width: 768px) {
    :where(.page-tournaments) .tournaments-section { padding: 1rem 1.5rem 5rem; }
    :where(.page-tournaments) .tournament-banner { padding: 1.5rem; }
    :where(.page-tournaments) .tournament-name { font-size: 1.5rem; }
    :where(.page-tournaments) .tournament-links { grid-template-columns: 1fr; padding: 1.25rem 1.5rem 1.5rem; }
    :where(.page-tournaments) .tournament-link-cta { display: none; }
}

/* Tournaments hero: keep the ball (bottom of the photo) in frame */
:where(.page-tournaments) .hero-image {
    object-position: center 88%;
}
