/* EMC Badminton Club — shared styles */
:root {
    --navy: #1e1e32;
    --navy-2: #2b2b47;
    --shuttle: #f5c518;
    --shuttle-dark: #d9ab00;
    --court: #1f9d6b;
    --cream: #fbf8f1;
    --paper: #ffffff;
    --ink: #1e1e32;
    --muted: #5b5b70;
    --line: #e7e2d6;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(30, 30, 50, 0.07);
    --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
}

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

a { color: var(--navy); text-decoration-color: var(--shuttle-dark); text-underline-offset: 3px; }
a:hover { color: var(--court); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ===== HEADER / NAV ===== */
.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 4px solid var(--shuttle);
}
.site-header .wrap {
    max-width: 1320px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 80px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}
.brand { min-width: 0; }
.brand img, .site-footer img {
    flex-shrink: 0;
    /* thin outline tracing the badge so it stands out on the navy header */
    filter: drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 0.6px #fff);
}
.brand img { width: 64px; height: 64px; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--shuttle); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; }
.nav a {
    display: block;
    padding: 0.45rem 0.55rem;
    color: #e9e9f2;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
}
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--shuttle); background: var(--navy-2); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--shuttle); font-weight: 600; }

.lang-switch {
    margin-left: 0.5rem;
    display: flex;
    border: 1px solid #50506e;
    border-radius: 999px;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 600;
}
.lang-switch a, .lang-switch span { padding: 0.25rem 0.6rem; text-decoration: none; }
.lang-switch a { color: #c9c9da; }
.lang-switch a:hover { color: var(--shuttle); }
.lang-switch span { background: #fff; color: var(--navy); }

.nav-hamburger {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid #50506e;
    color: #fff;
    border-radius: 8px;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 197, 24, 0.18), transparent 45%),
        var(--navy);
    color: #fff;
    padding: 4rem 0 4.5rem;
}
.hero .eyebrow {
    display: inline-block;
    color: var(--shuttle);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}
.hero h1 span { color: var(--shuttle); }
.hero p.lead { font-size: 1.15rem; max-width: 40rem; color: #d8d8e6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.page-head { background: var(--navy); color: #fff; padding: 2.5rem 0 2.2rem; }
.page-head p { color: #d0d0e0; max-width: 42rem; margin: 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--shuttle); color: var(--navy); }
.btn-primary:hover { background: #ffd43b; color: var(--navy); }
.btn-ghost { border-color: #6a6a8a; color: #fff; }
.btn-ghost:hover { border-color: var(--shuttle); color: var(--shuttle); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: var(--shuttle); }

/* ===== SECTIONS ===== */
main { padding-bottom: 3rem; }
.section { padding: 2.8rem 0 0; }
.section > .wrap > p { max-width: 46rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.6rem; line-height: 1; margin-bottom: 0.6rem; display: block; }
.card.accent { border-top: 4px solid var(--shuttle); }
.card.green { border-top: 4px solid var(--court); }

.callout {
    background: #fff8d9;
    border-left: 5px solid var(--shuttle);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 0.4rem; }

.band {
    background: var(--court);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.band h2 { margin: 0 0 0.3rem; }
.band p { margin: 0; color: #e6f6ee; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3efe4; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag {
    display: inline-block;
    background: var(--shuttle);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    margin-left: 0.3rem;
    white-space: nowrap;
}
.tag.green { background: var(--court); color: #fff; }

/* ===== STEPS ===== */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li {
    counter-increment: step;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem 1.1rem 3.6rem;
    position: relative;
    box-shadow: var(--shadow);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--navy);
    color: var(--shuttle);
    font-weight: 700;
    display: grid;
    place-items: center;
    font-family: var(--font-head);
}

/* ===== FAQ ===== */
.faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 0.7rem;
    box-shadow: var(--shadow);
}
.faq summary {
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-family: var(--font-head);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--court); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1rem; }
.faq details > div p { margin: 0 0 0.5rem; }

/* ===== EMBEDS ===== */
.embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.embed iframe { display: block; width: 100%; border: 0; }
.embed.calendar iframe { height: 620px; }
.embed.map iframe { height: 300px; }

.venue { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.venue + .venue { margin-top: 2rem; }

/* ===== LISTS ===== */
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.board li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; box-shadow: var(--shadow); }
.board .role { display: block; color: var(--muted); font-size: 0.85rem; }
.board .name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--shuttle); }
.timeline li { position: relative; padding: 0 0 1.3rem 1.4rem; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0.45rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--navy);
    border: 2px solid var(--shuttle);
}
.timeline .when { display: block; font-size: 0.85rem; font-weight: 700; color: var(--court); text-transform: uppercase; letter-spacing: 0.04em; }
.timeline p { margin: 0.2rem 0 0; }

.check { list-style: none; padding: 0; }
.check li { padding-left: 1.8rem; position: relative; margin-bottom: 0.5rem; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--court); font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: #c9c9da; padding: 2rem 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--shuttle); }
.site-footer .foot-brand { display: flex; align-items: center; gap: 0.6rem; }
.site-footer img { width: 36px; height: 36px; }

/* ===== MOBILE ===== */
@media (max-width: 1280px) {
    .nav-hamburger { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        border-bottom: 4px solid var(--shuttle);
        padding: 0.5rem 16px 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .nav.nav-open { display: flex; }
    .nav ul { flex-direction: column; }
    .nav a { padding: 0.7rem 0.8rem; font-size: 1rem; }
    .lang-switch { margin: 0.8rem 0 0; align-self: flex-start; font-size: 0.9rem; }
    .lang-switch a, .lang-switch span { padding: 0.4rem 0.9rem; }
}

@media (max-width: 720px) {
    .hero { padding: 2.6rem 0 3rem; }
    .venue { grid-template-columns: 1fr; }
    .embed.calendar iframe { height: 520px; }
    th, td { padding: 0.6rem 0.7rem; }
    .band { padding: 1.4rem; }
}

/* Schedule table becomes stacked rows on phones */
@media (max-width: 600px) {
    .schedule thead { display: none; }
    .schedule tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.15rem 0.8rem;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--line);
    }
    .schedule tr:last-child { border-bottom: none; }
    .schedule td { padding: 0; border: none; }
    .schedule td:nth-child(3), .schedule td:nth-child(4) { grid-column: 1 / -1; }
    .schedule td:nth-child(4) { color: var(--muted); font-size: 0.9rem; }
}
