:root {
    /* Color Palette */
    --color-primary: #471515;
    /* Deep Bordeaux/Maroon */
    --color-primary-light: #6d2c2c;
    --color-secondary: #fdfbf7;
    /* Off-white/Cream background */
    --color-accent: #C9B69B;
    /* Beige */
    --color-text: #2c2c2c;
    --color-text-muted: #666;
    --color-text-light: #fdfbf7;
    --color-border: #e0e0e0;

    /* Typography */
    --font-heading: 'PP Editorial New', 'Playfair Display', serif;
    --font-body: 'Degular', 'Inter', sans-serif;

    /* Spacing */
    --u-spacing-xs: 0.5rem;
    --u-spacing-sm: 1rem;
    --u-spacing-md: 2rem;
    --u-spacing-lg: 4rem;
    --u-spacing-xl: 8rem;

    /* Shadows & Radius */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 200;
    /* Ultra Light */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
header {
    padding: var(--u-spacing-md);
    display: flex;
    justify-content: center;
    /* Center the nav */
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    /* Above nav */
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger .bar:nth-child(1) {
    top: 0;
}

.hamburger .bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .bar:nth-child(3) {
    bottom: 0;
}

/* Hamburger Active State (Cross) */
.hamburger.active .bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Nav */
nav {
    /* Desktop styles */
}

nav ul {
    display: flex;
    gap: var(--u-spacing-lg);
    list-style: none;
    transition: all 0.3s ease;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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

/* Responsive Nav */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: auto;
        /* Push to right if needed, or flex alignment */
    }

    header {
        justify-content: flex-end;
        /* Align hamburger to right */
        padding: var(--u-spacing-md);
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-secondary);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        /* Hidden by default */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        /* Glassmorphism optional */
        background: rgba(253, 251, 247, 0.98);
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--u-spacing-md);
        text-align: center;
    }

    nav a {
        font-size: 1.5rem;
        /* Bigger links on mobile */
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--u-spacing-lg);
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.9) 0%, rgba(253, 251, 247, 0.7) 100%), url('assets/images/squash-bg.jpg') no-repeat center center/cover;
}

.hero-logo {
    animation: fadeInDown 1s ease-out;
}

.hero-logo img {
    height: 180px;
    width: auto;
    /* Adjust filter if logo needs color correction, keeping distinct bordeaux/gold feel */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--u-spacing-xs);
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--u-spacing-lg);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: transparent;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 1s ease-out 0.9s backwards;
    /* Removed heavy shadow for editorial look */
}

.btn:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Section General */
section {
    padding: 6em 0;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    /* Slightly larger to compensate for light weight */
    margin-bottom: var(--u-spacing-md);
    position: relative;
    font-weight: 200;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    /* Thinner line */
    background-color: var(--color-accent);
    margin: 1rem auto 0;
}

/* About */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-content>p {
    font-size: 1.35rem;
    /* Larger for readability */
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto 2em;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--u-spacing-md);
    margin-top: var(--u-spacing-lg);
}

.feature-item {
    background: transparent;
    padding: var(--u-spacing-lg) var(--u-spacing-md);
    border: 1px solid var(--color-border);
    /* Border instead of shadow */
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.feature-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--u-spacing-md);
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(201, 182, 155, 0.15);
    /* Light beige circle */
    transition: background-color 0.3s ease;
}

.feature-item:hover .icon {
    background-color: rgba(201, 182, 155, 0.3);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--u-spacing-xs);
    color: var(--color-primary);
}

.feature-item p {
    color: var(--color-text-muted);
}

/* Boxes / Schedule */
#boxes {
    /* background-color: var(--color-secondary); */
}

.boxes-container {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    /* box-shadow: var(--shadow-md); */
    /* Removed shadow */
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.boxes-layout {
    display: flex;
    flex-wrap: wrap;
    /* Wraps on mobile */
    align-items: stretch;
}

.boxes-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.boxes-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.boxes-container:hover .boxes-image img {
    transform: scale(1.05);
    /* Subtle zoom effect */
}

.boxes-content {
    flex: 1;
    padding: var(--u-spacing-xl) var(--u-spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 300px;
    overflow: visible;
}

.boxes-container .section-title {
    color: var(--color-text-light);
    text-align: left;
    margin-bottom: var(--u-spacing-sm);
}

.boxes-container .section-title::after {
    margin: 1rem 0 0 0;
    background-color: var(--color-accent);
}

.box-info {
    font-size: 1.25rem;
    line-height: 1.6;
    font-family: var(--font-body);
    margin-bottom: var(--u-spacing-md);
    font-weight: 400;
    /* Adjusted weight for sans-serif legibility */
}

.box-info ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.box-info li {
    margin-bottom: 0.5rem;
}

.box-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--u-spacing-md);
}

.boxes-content .badge {
    position: absolute;
    right: -30px;
    top: -30px;
    transform: rotate(15deg);
}

.box-detail-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* background: rgba(255, 255, 255, 0.05); */
    /* Cleaner look without background */
    padding: var(--u-spacing-md);
    border-radius: var(--radius-sm);
    /* backdrop-filter: blur(10px); */
    text-align: center;
    transition: border-color 0.3s ease;
}

.box-detail-item:hover {
    border-color: var(--color-accent);
}

.box-detail-item h3 {
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--u-spacing-xs);
}

.box-detail-item p {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

/* Interclub */
.teams-list {
    display: flex;
    justify-content: center;
    gap: var(--u-spacing-md);
    flex-wrap: wrap;
    text-align: center;
}

.team-category {
    background: transparent;
    padding: var(--u-spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    transition: all 0.3s ease;
}

.team-category:hover {
    border-color: var(--color-primary);
    background-color: #fff;
}

.team-category h3 {
    font-size: 2rem;
    margin-bottom: var(--u-spacing-xs);
    color: var(--color-primary);
}

/* Contact / Footer */
footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--u-spacing-xl) var(--u-spacing-lg);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--u-spacing-md);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    flex: 1 1 0px;
    /* Equal width columns */
    min-width: 250px;
    /* Prevent crushing on small screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-info h4 {
    color: var(--color-text-light);
    /* White instead of accent for cleaner footer */
    margin-bottom: var(--u-spacing-sm);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-info a {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.footer-info a:hover {
    border-color: #fff;
    opacity: 1;
}

.footer-info img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: var(--u-spacing-sm);
    }

    nav ul {
        gap: var(--u-spacing-sm);
        font-size: 0.8rem;
    }

    .hero-logo img {
        height: 120px;
    }

    section {
        padding: var(--u-spacing-lg) var(--u-spacing-md);
    }

    .boxes-container {
        padding: 0;
    }

    .boxes-content {
        padding: var(--u-spacing-md);
    }

    .boxes-image {
        min-height: 250px;
    }
}

/* Marquee Section */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
    padding: var(--u-spacing-md) 0;
    margin-bottom: var(--u-spacing-lg);
    white-space: nowrap;
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 4rem;
    /* Big text */
    color: var(--color-primary);
    /* Off-white text */
    text-transform: uppercase;
    /* Optional, keep as requested or uppercase? Requested 'Finally...', keeping case */
    text-transform: none;
    font-weight: 200;
    font-style: italic;
    padding-right: 2rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustment for marquee */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 2.5rem;
    }
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(rgba(74, 26, 26, 0.8), rgba(74, 26, 26, 0.9)), url('assets/images/squash-bg.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 8rem var(--u-spacing-md);
    color: var(--color-text-light);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: var(--u-spacing-sm);
    color: var(--color-text-light);
    /* Enforce white */
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    margin-bottom: 1em;
    font-weight: 400;
}

.btn-cta {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    padding: 1.2rem 3.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Fixed Login Button */
.fixed-login-btn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 100;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary);
}

.fixed-login-btn:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    opacity: 1;
    /* Reset default link opacity if set */
}

/* Adjust for mobile if needed */
@media (max-width: 768px) {
    .fixed-login-btn {
        bottom: 20px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* Coaching Section */
#coaching {
    background-color: var(--color-secondary);
}

.coaching-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--u-spacing-xl);
}

.coaching-content {
    flex: 1;
    padding-right: var(--u-spacing-lg);
}

.coaching-content .section-title {
    text-align: left;
    margin-bottom: var(--u-spacing-md);
}

.coaching-content .section-title::after {
    margin: 1rem 0 0 0;
}

.coaching-intro {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 1em;
    font-family: var(--font-body);
}

.coaching-options {
    margin-bottom: 2em;
}

.coaching-option {
    margin-bottom: var(--u-spacing-md);
}

.coaching-option h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: var(--u-spacing-xs);
    font-weight: 200;
}

.coaching-option p {
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.coaching-cta {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    font-family: var(--font-body);
}

.coaching-image {
    flex: 1;
    min-width: 400px;
}

.coaching-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .coaching-container {
        flex-direction: column;
    }

    .coaching-content {
        padding-right: 0;
    }

    .coaching-content .section-title {
        text-align: center;
    }

    .coaching-content .section-title::after {
        margin: 1rem auto 0;
    }

    .coaching-image {
        min-width: 100%;
        max-height: 300px;
    }
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

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

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

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

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

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

/* Stagger delays */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}