:root {
    --red: #c8102e;
    --red-dark: #8b0000;
    --btn-red: #e8231f;
    --ink: #2b2b2b;
    --muted: #666;
    --line: #e6e6e6;
    --bg: #f4f4f4;
    /* Interior page background (Games, Special Events, Game Results, Lessons,
       Contact). Change this one value to recolor those pages.
       Previous light red was #fbeaea. */
    --page-bg: #fbeaea;
    --card-radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

/* Sticky footer: body fills the viewport, footer is pushed to the bottom. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

a { color: var(--red); }

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

/* ---------- Header / nav ---------- */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem 2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    background: #fff;
}
.brand { flex-basis: 100%; text-align: center; }
.brand img { height: 92px; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}
.site-nav a {
    color: #777;
    text-decoration: none;
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: .2px;
    padding: .25rem 0;
    transition: color .15s;
}
.site-nav a:hover { color: var(--red); }
.site-nav a.active { color: var(--red); }

/* mobile burger */
.nav-toggle, .nav-burger { display: none; }

/* Homepage: enlarge the logo (~150%) at all sizes */
.page-home .brand img { height: 138px; }

/* Homepage: hide the main nav on DESKTOP only (mobile keeps the burger menu) */
@media (min-width: 821px) {
    .page-home .site-nav { display: none; }
    /* 130% of the 138px logo */
    .page-home .brand img { height: 179px; }
}

/* Homepage: let the hero/announcements be reordered on mobile */
.page-home .site-main { display: flex; flex-direction: column; }

/* ---------- Main ---------- */
.site-main { min-height: 50vh; }

/* ---------- Per-page backgrounds ---------- */
/* About Us: photo background behind the content card */
.page-about {
    background: url('../assets/cards-2937475-wpp1717615994785.jpg') center center / cover no-repeat fixed;
}
/* All other interior pages: soft light red */
.page-games,
.page-special,
.page-results,
.page-lessons,
.page-contact {
    background: var(--page-bg);
}

/* ---------- Home ---------- */
.home-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 1.5rem;
}
.home-top .announcements {
    max-width: 720px;
    color: var(--red-dark);
    font-weight: 700;
    text-align: center;
}
.home-top .acbl-badge { width: 110px; }

.hero {
    background: linear-gradient(rgba(40,40,40,.55), rgba(40,40,40,.65)),
                url('../assets/cards-2937475-wpp1717615994785.jpg') center/cover no-repeat;
    padding: 3.5rem 1.5rem 5rem;
}
.hero-banner {
    background: var(--red);
    color: #fff;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 2rem 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}
.hero-banner h1 { margin: 0; font-size: 2.6rem; letter-spacing: 1px; }
.hero-banner p { margin: .4rem 0 0; font-size: 1.05rem; opacity: .95; }

.hero-buttons {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--btn-red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 1rem 1.25rem;
    border: 2px solid #fff;
    border-radius: 4px;
    min-height: 64px;
    transition: transform .12s, background .15s;
}
.hero-btn:hover { background: #c91d19; transform: translateY(-2px); }

/* ---------- Content pages ---------- */
.content-page {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}
.content-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem 3rem;
}
.content-card.center { text-align: center; }
.content-card h1 {
    text-align: center;
    margin: 0 0 1.5rem;
    padding-bottom: .85rem;
    font-size: 2.4rem;
    border-bottom: 2px solid var(--line);
}

.rich-text { font-size: 1.05rem; }
.rich-text img { border-radius: 6px; margin: 1rem 0; }
.rich-text a { font-weight: 600; }

/* About layout with side column */
.about-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.about-side { text-align: center; padding-top: 1rem; }
.arch-photo {
    border: 6px solid #1f3b66;
    border-radius: 140px 140px 8px 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.acbl-badge-lg { width: 150px; margin-top: 2rem; }

/* Games calendar box */
.calendar-box {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #e7eff2;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
}
.calendar-icon { width: 70px; flex: 0 0 auto; }
.games-intro { text-align: center; }

/* Google map embed (contact page) */
.map-embed {
    margin-top: 1.75rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
}
.map-embed iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}

/* big external button (game results) */
.big-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--btn-red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: .85rem 1.75rem;
    border-radius: 6px;
}
.big-btn:hover { background: #c91d19; }

/* highlight helper (peanut warning etc.) */
.rich-text mark, .rich-text .hl {
    background: #fff24d;
    padding: 0 .15em;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1c1c1c;
    color: #bdbdbd;
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    font-size: .92rem;
}
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .sep { margin: 0 .6rem; opacity: .5; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .hero-buttons { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; }

    /* Homepage: show announcements above the hero on small screens */
    .page-home .home-top { order: 0; }
    .page-home .hero { order: 1; }
    /* About Us mobile: text content first, images below */
    .about-layout .content-card { order: 1; }
    .about-layout .about-side { order: 2; }
    .about-side { max-width: 320px; margin: 0 auto; }
    .content-card { padding: 1.75rem 1.5rem; }
    .calendar-box { flex-direction: column; align-items: center; text-align: center; }

    .nav-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        cursor: pointer;
    }
    .nav-burger span { width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
    .site-nav {
        flex-basis: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav-toggle:checked ~ .site-nav { max-height: 500px; }
}
