@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    color-scheme: light;
    --bg-top: #f4fbf5;
    --bg-bottom: #e6f3eb;
    --card: #ffffff;
    --card-hover: #fcfdfc;
    --line: #d1e6d6;
    --ink: #0d261b;
    --muted: #587563;
    --accent: #1f5c42;
    --accent-dark: #123d2b;
    --soft: #e8f5ec;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 12px rgba(23, 66, 44, 0.04);
    --shadow-md: 0 12px 32px rgba(23, 66, 44, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    color: var(--ink);
    min-height: 100vh;
}

/* Page Layout */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(31, 92, 66, 0.3);
}

.topbar a,
.topbar button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}

.topbar a:hover,
.topbar button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
    padding: 48px 0 32px;
}

.kicker,
.mini-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(3.5rem, 5.5vw, 5rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 900;
    color: var(--accent-dark);
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    line-height: 0.95;
}

p {
    line-height: 1.7;
    margin-top: 0;
}

.hero-copy {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 100%;
}

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(23, 66, 44, 0.12);
}

.image-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    height: max-content;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Labels */
.label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 11px;
    font-weight: 700;
    color: #83a38e;
    margin-bottom: 12px;
}

.icon-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #638570;
}

.icon-label svg {
    color: var(--accent);
}

/* Values */
.value-lg {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    margin-top: auto;
}

.value-md {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.value-sm {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

/* Contact Card */
.contact-card {
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    padding: 32px 24px;
    border-radius: var(--radius-md);
}

.contact-card h3 {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.contact-item {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.4;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: #aed9be;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* U15 Badge */
.u15-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.04em;
    line-height: 1;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Utilities */
.small {
    font-size: 14px;
    color: var(--muted);
}

.text-muted {
    color: var(--muted);
}

.text-ink {
    color: var(--ink);
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-0 {
    margin-bottom: 0;
}

.section {
    padding-top: 32px;
}

/* Other older classes to retain compatibility if user hasn't asked to delete them yet */
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 24px;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid var(--line);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-secondary {
    background: white;
    color: var(--ink);
}

.tab-buttons {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.tab-button {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
}

.tab-button.active {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.contact-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
    color: var(--muted);
}

.timeline-item,
.honour-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 14px;
}

.badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
    flex: 0 0 auto;
}


/* Responsive */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-sidebar .image-card {
        min-height: 500px;
    }
}

@media (max-width: 640px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 16px 16px 60px;
    }

    .hero-sidebar .image-card {
        min-height: 400px;
    }
}

@media print {
    body {
        background: white;
    }

    .topbar,
    .cta-row {
        display: none !important;
    }

    .page {
        max-width: none;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border-color: #eee;
        break-inside: avoid;
    }
}

/* Gallery Masonry */
.gallery-grid {
    column-count: 2;
    column-gap: 16px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 980px) {
    .gallery-grid {
        column-count: 4;
    }
}

.gallery-item {
    display: block;
    margin-bottom: 16px;
    break-inside: avoid;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══ Nav Links (Desktop) ═══ */
.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ═══ Hamburger Button ═══ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: var(--accent);
}

.hamburger:hover span {
    background: white;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: background 0.2s ease;
}

/* ═══ Sidebar Overlay ═══ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* ═══ Sidebar ═══ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100dvh;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    border-right: 1px solid var(--line);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--line);
}

.sidebar-header .brand {
    gap: 12px;
}

.sidebar-header .mark {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
}

.sidebar-header .label {
    font-size: 9px;
    margin-bottom: 2px;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.sidebar-nav a,
.sidebar-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ═══ Mobile Responsive ═══ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .topbar {
        border-radius: 16px;
        padding: 10px 16px;
        top: 12px;
    }
}