:root {
    --rotary-blue: #17458F;
    --rotary-blue-dark: #0E2D5C;
    --rotary-gold: #F7A81B;
    --rotary-gold-dark: #D88E0F;
    --azure: #0B72D9;
    --ink: #0F1F3D;
    --ink-2: #2C3E5C;
    --muted: #6B7A93;
    --bg: #FFFFFF;
    --bg-alt: #F5F7FB;
    --bg-deep: #0E1E3C;
    --line: #E1E6EF;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 12px rgba(15, 31, 61, 0.06);
    --shadow: 0 12px 40px rgba(15, 31, 61, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 31, 61, 0.18);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bebas Neue', 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rotary-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--rotary-gold-dark); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex; align-items: center; gap: 24px;
    padding-top: 18px; padding-bottom: 18px;
}
.brand img { height: 44px; }
.primary-nav {
    display: flex; gap: 28px; margin-left: auto;
    font-size: 15px; font-weight: 500;
}
.primary-nav a { color: var(--ink-2); position: relative; padding: 6px 2px; }
.primary-nav a:hover { color: var(--rotary-blue); }
.primary-nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--rotary-gold); transform: scaleX(0); transition: transform .2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 12px; }

/* ─── Buttons ────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
    border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--rotary-blue); color: #fff;
}
.btn-primary:hover { background: var(--rotary-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
    background: var(--rotary-gold); color: var(--ink);
}
.btn-accent:hover { background: var(--rotary-gold-dark); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
    background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--rotary-blue); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ─── Hero ───────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    padding: 100px 0 120px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(247, 168, 27, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(23, 69, 143, 0.16), transparent 60%),
        linear-gradient(180deg, #FBFCFE 0%, #F2F5FA 100%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(23, 69, 143, 0.08);
    color: var(--rotary-blue); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(48px, 6vw, 84px); line-height: .98;
    margin: 22px 0 16px; letter-spacing: -.01em; color: var(--ink);
}
.hero h1 span { color: var(--rotary-gold); }
.hero p.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    position: relative; aspect-ratio: 4/5;
    background:
        radial-gradient(circle at 30% 20%, rgba(247, 168, 27, 0.35), transparent 55%),
        linear-gradient(135deg, var(--rotary-blue), var(--rotary-blue-dark));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-visual::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px);
}
.hero-visual .badge-stack {
    position: absolute; bottom: 28px; left: 28px; right: 28px;
    color: #fff; display: flex; flex-direction: column; gap: 10px;
}
.hero-visual .badge-stack strong { font-family: var(--font-display); font-size: 34px; letter-spacing: .02em; }
.hero-visual .badge-stack small { opacity: .8; font-size: 13px; text-transform: uppercase; letter-spacing: .15em; }
.hero-theme-badge {
    position: absolute; top: 24px; right: 24px;
    width: 110px; height: 110px; border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    border: 3px solid rgba(255,255,255,.15);
}

/* ─── Sections ───────────────────────────── */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head .eyebrow {
    color: var(--rotary-gold-dark); font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; font-size: 13px; margin-bottom: 12px; display: block;
}
.section-head h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(36px, 4vw, 56px); line-height: 1.05;
    margin: 0 0 14px; letter-spacing: -.01em;
}
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ─── Event cards ────────────────────────── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.event-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
    border: 1px solid var(--line);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card .cover {
    aspect-ratio: 16/9; background: linear-gradient(135deg, var(--rotary-blue), var(--azure));
    position: relative; overflow: hidden;
}
.event-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.event-card .cover .season-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.95); color: var(--ink);
    font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.event-card .cover .season-badge.winter { background: var(--azure); color: #fff; }
.event-card .cover .season-badge.summer { background: var(--rotary-gold); color: var(--ink); }
.event-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card h3 { font-size: 22px; margin: 0; color: var(--ink); }
.event-card .meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.event-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card p.summary { color: var(--ink-2); margin: 4px 0 0; font-size: 15px; }
.event-card .footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 18px; }
.event-card .footer-row a { font-weight: 600; }

/* ─── Organizers ─────────────────────────── */
.organizer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.organizer {
    background: #fff; padding: 28px; border-radius: var(--radius-lg);
    text-align: center; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.organizer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.organizer img {
    width: 132px; height: 132px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px;
    border: 4px solid var(--bg-alt);
}
.organizer h4 { margin: 0 0 6px; font-size: 19px; }
.organizer .role { color: var(--muted); font-size: 14px; }

/* ─── Sponsors marquee ───────────────────── */
.sponsor-marquee {
    position: relative;
    overflow: hidden;
    padding: 24px 0;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track {
    display: flex;
    width: max-content;
    gap: 72px;
    align-items: center;
    animation: sponsor-scroll 38s linear infinite;
}
.sponsor-marquee:hover .sponsor-track { animation-play-state: paused; }
.sponsor-track > * {
    flex: 0 0 auto;
    height: 70px;
    display: flex; align-items: center; justify-content: center;
}
.sponsor-track img {
    max-height: 64px; max-width: 180px; width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(85%) opacity(0.65);
    transition: filter .25s ease, transform .25s ease;
}
.sponsor-track img:hover { filter: grayscale(0) opacity(1); transform: scale(1.06); }

@keyframes sponsor-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .sponsor-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ─── Stats ──────────────────────────────── */
.stats-band {
    background: linear-gradient(135deg, var(--rotary-blue), var(--rotary-blue-dark));
    color: #fff; padding: 64px 0;
}
.stats-band .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--rotary-gold); }
.stat-label { font-size: 15px; opacity: .9; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* ─── Detail page ────────────────────────── */
.event-hero {
    padding: 80px 0 64px;
    background: linear-gradient(135deg, var(--rotary-blue-dark), var(--rotary-blue));
    color: #fff;
    text-align: left;
}
.event-hero .badge-row { display: flex; gap: 10px; margin-bottom: 18px; justify-content: flex-start; }
.event-hero .badge-row span {
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.15); font-size: 13px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
}
.event-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); margin: 0 0 18px; line-height: 1; }
.event-hero .meta-row { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; opacity: .92; }
.event-hero .meta-row span { display: inline-flex; align-items: center; gap: 8px; }

.event-body { padding: 64px 0 96px; }
.event-body .container { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; max-width: 1080px; }
.event-body article { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.event-body article :is(h2,h3) { color: var(--ink); margin-top: 1.4em; }
.event-body aside .card {
    background: var(--bg-alt); border-radius: var(--radius); padding: 24px;
    position: sticky; top: 100px;
}
.event-body aside h4 { margin-top: 0; }
.event-body aside .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* ─── Footer ─────────────────────────────── */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.85); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.footer-grid a:hover { color: var(--rotary-gold); }
.footer-grid p { margin: 12px 0 0; color: rgba(255,255,255,.6); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
    display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--rotary-gold); }

/* ─── Mobile ─────────────────────────────── */
@media (max-width: 880px) {
    .hero { padding: 60px 0 80px; }
    .hero .container { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 440px; margin: 0 auto; }
    .primary-nav { display: none; }
    section { padding: 64px 0; }
    .event-body .container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
