:root {
    --brand: #fd1d0d; /* change to your club color */
    --accent: #0b5ed7;
    --muted: #6c757d;
    --hero-bg: linear-gradient(180deg, rgba(13,110,253,0.08), rgba(13,110,253,0.02));
}

html, body {
    height: 100%
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: "Merriweather", serif
}

a {
    color: var(--brand)
}

    a:hover {
        color: var(--accent)
    }

.container {
    max-width: 1100px
}

/* Delicate Navigation Bar */
.navbar {
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 128px;
    width: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
    opacity: 1;
}

.navbar-brand {
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

    .navbar-brand:hover {
        color: var(--brand);
    }

    .navbar-brand svg {
        opacity: 0.85;
        transition: opacity 0.2s ease;
    }

    .navbar-brand:hover svg {
        opacity: 1;
    }

.nav-link {
    font-weight: 400;
    font-size: 0.95rem;
    color: #555 !important;
    position: relative;
    transition: color 0.2s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--brand);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--brand) !important;
    }

        .nav-link:hover::after {
            width: 60%;
        }

    .nav-link.active {
        color: var(--brand) !important;
        font-weight: 500;
    }

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero */
.hero {
    background: var(--hero-bg);
    border-radius: .5rem;
    padding: 2.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}

    .hero .title {
        font-size: clamp(1.6rem, 3.8vw, 2.4rem);
        margin-bottom: .3rem
    }

    .hero .lead {
        color: var(--muted);
        margin-bottom: 1rem
    }

    .hero .hero-ctas .btn {
        min-width: 140px
    }

/* Event card */
.event-card {
    transition: transform .12s ease, box-shadow .12s ease;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 30px rgba(15,15,15,0.06)
    }

    .event-card .event-meta {
        background: rgba(13,110,253,0.04);
        padding: .6rem .8rem
    }

    .event-card .event-date {
        font-weight: 700;
        color: var(--brand)
    }

    .event-card .event-body {
        padding: 1rem
    }

/* Responsive */
@media(min-width:768px) {
    .hero {
        grid-template-columns: 2fr 1fr
    }

        .hero .hero-media {
            justify-self: end
        }
}

/* Small utilities */
.mb-1 {
    margin-bottom: .25rem
}

.small-muted {
    color: var(--muted);
    font-size: .9rem
}

/* Footer link subtle */
footer a {
    text-decoration: none;
    color: var(--muted)
}

    footer a:hover {
        color: var(--brand)
    }

/* Range photo gallery */
.range-photo {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .range-photo:hover {
        transform: scale(1.02);
        opacity: 0.9;
    }

/* Photo modal */
#photoModal .modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
}

#photoModal .modal-header {
    padding-bottom: 0;
}
/* Hover image overlay for navbar logo - appears in main content area */
.navbar-brand {
    position: relative;
}

    /* Target the main element when navbar-brand is hovered */
    .navbar-brand:hover ~ main::before,
    body:has(.navbar-brand:hover) main::before {
        opacity: 1;
        visibility: visible;
    }

main {
    position: relative;
}
    main::before {
        content: '';
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 500px;
        height: 500px;
        background-image: url('/images/colossuscuphover.jpg');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s;
        pointer-events: none;
        z-index: 100;
    }

/* Optional: backdrop effect on main content */
body:has(.navbar-brand:hover) main::after {
    opacity: 1;
    visibility: visible;
}

main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    pointer-events: none;
    z-index: 99;
}

/* ============================================
   CONSISTENT SITE-WIDE STYLES
   Earth-tone theme with professional hover effects
   ============================================ */

/* Earth-tone color variables */
:root {
    --earth-primary: #8b5a2b;
    --earth-secondary: #654321;
    --earth-light: #d4c5b9;
    --earth-lighter: #f5f0eb;
    --earth-accent: #a0826d;
    --earth-hover: #654321;
}

/* Modal Styling - Consistent across site */
.modal-content {
    border: 2px solid var(--earth-light);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(101, 67, 33, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%);
    color: white;
    border-radius: 13px 13px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-family: "Merriweather", serif;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    background: var(--earth-lighter);
}

.modal-footer {
    border-top: 1px solid var(--earth-light);
    background: var(--earth-lighter);
    border-radius: 0 0 13px 13px;
}

/* Card Hover Effects - Consistent across site */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--earth-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(101, 67, 33, 0.2);
    border-color: var(--earth-accent);
}

/* Clickable Images/Logos - Consistent hover */
.clickable-logo,
img[onclick],
img[data-bs-toggle="modal"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-logo:hover,
img[onclick]:hover,
img[data-bs-toggle="modal"]:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
    filter: brightness(1.05);
}

/* Button Styling - Earth theme */
.btn-earth,
.btn-primary {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-earth:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--earth-secondary) 0%, var(--earth-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 67, 33, 0.3);
    color: white;
}

.btn-outline-earth,
.btn-outline-primary {
    border: 2px solid var(--earth-primary);
    color: var(--earth-primary);
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-earth:hover,
.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%);
    color: white;
    border-color: var(--earth-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 67, 33, 0.3);
}

/* Feature Cards - Consistent styling */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--earth-light);
    background: white;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(101, 67, 33, 0.25);
    border-color: var(--earth-accent);
}

/* Sponsor Cards - Special styling */
.sponsor-logo {
    transition: all 0.3s ease;
    cursor: pointer;
}

.sponsor-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.35);
}

/* Hero Sections - Earth theme */
.hero-section,
.cta-section {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(101, 67, 33, 0.3);
}

/* Stats/Info Cards */
.stat-card {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(101, 67, 33, 0.4);
}

/* Text Colors */
.text-earth {
    color: var(--earth-secondary) !important;
}

.text-earth-light {
    color: var(--earth-accent) !important;
}

/* Background Colors */
.bg-earth {
    background-color: var(--earth-primary) !important;
}

.bg-earth-light {
    background-color: var(--earth-lighter) !important;
}

.bg-earth-gradient {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%) !important;
}

/* Badges - Earth theme */
.badge-earth {
    background: linear-gradient(135deg, var(--earth-primary) 0%, var(--earth-secondary) 100%);
    color: white;
}

/* Alert/Info boxes */
.alert-earth {
    background-color: var(--earth-lighter);
    border: 1px solid var(--earth-light);
    color: var(--earth-secondary);
}

/* Links - Earth theme */
a.link-earth {
    color: var(--earth-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a.link-earth:hover {
    color: var(--earth-secondary);
    text-decoration: underline;
}

/* Image containers with hover */
.image-container {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.image-container img {
    transition: all 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states - accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--earth-primary);
    outline-offset: 2px;
}

/* Loading spinner - Earth theme */
.spinner-earth {
    border: 3px solid var(--earth-lighter);
    border-top: 3px solid var(--earth-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
