/* The public home page. Same blues and warm orange as the dashboard
   (app.css), bolder for the public. */

:root {
    --ink: #14303f;
    --ink-soft: #4a6576;
    --blue: #31657f;
    --blue-deep: #1d3c4b;
    --sky: #4fa3bf;
    --orange: #f2a36b;
    --orange-deep: #d9772f;
    --paper: #fbfcfd;
    --line: #e3edf3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
}

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

/* Top bar */

.site-nav {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 4vw, 3rem);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.site-brand i { color: var(--orange); }

.site-nav nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-decoration: none;
}

.site-nav nav a:hover { color: #fff; }

.site-nav-button {
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
}

/* Hero: the first photo, or the court blues */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 640px);
    padding: 7rem clamp(1rem, 4vw, 3rem) 4.5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(242, 163, 107, 0.45), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(79, 163, 191, 0.55), transparent 40%),
        linear-gradient(135deg, #14303f 0%, #1d3c4b 45%, #31657f 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 28, 38, 0.45) 0%, rgba(10, 28, 38, 0.15) 35%, rgba(10, 28, 38, 0.8) 100%);
}

.hero-inner {
    position: relative;
    max-width: 46rem;
}

.hero-kicker {
    margin: 0;
    color: var(--orange);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0.1rem 0 0.75rem;
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero-lead {
    margin: 0;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
}

.hero-caption {
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* The numbers, overlapping the hero's bottom edge */

.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 64rem;
    margin: -2.75rem auto 0;
    padding: 0 1rem;
    gap: 0.75rem;
}

.stat {
    display: grid;
    justify-items: center;
    padding: 1.25rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(20, 48, 63, 0.1);
    text-align: center;
}

.stat strong {
    color: var(--blue-deep);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 900;
    line-height: 1;
}

.stat span {
    margin-top: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Announcements and gallery */

.site-main {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3.5rem 1rem 4rem;
}

.site-main h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    color: var(--blue-deep);
    font-size: 1.6rem;
    font-weight: 900;
}

.site-main h2::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, transparent 100%);
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-item {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.news-latest {
    grid-column: 1 / -1;
    border-left: 5px solid var(--orange);
}

.news-item time {
    color: var(--orange-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.news-item h3 {
    margin: 0.25rem 0 0.5rem;
    color: var(--blue-deep);
    font-size: 1.2rem;
}

.news-latest h3 { font-size: 1.45rem; }

.news-item p {
    margin: 0;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}

.news-empty { color: var(--ink-soft); }

.gallery { margin-top: 3.5rem; }

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

.gallery-grid figure { margin: 0; }

.gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid a:hover img {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 48, 63, 0.18);
}

.gallery-grid figcaption {
    margin-top: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem clamp(1rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.site-footer a {
    color: var(--ink-soft);
    font-weight: 600;
}

@media (max-width: 720px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-list { grid-template-columns: 1fr; }
    .site-nav nav a:not(.site-nav-button) { display: none; }
}
