:root {
    --background: hsl(150 20% 97%);
    --surface: hsl(0 0% 100%);
    --foreground: hsl(155 60% 10%);
    --primary: hsl(150 35% 27%);
    --accent: hsl(90 60% 30%);
    --muted-foreground: hsl(155 25% 30%);
    --border: hsl(150 15% 88%);
    --gradient-gold: linear-gradient(135deg, hsl(45 97% 56%) 0%, hsl(43 85% 39%) 50%, hsl(45 97% 50%) 100%);
    --gradient-text: linear-gradient(135deg, hsl(155 60% 10%) 0%, hsl(150 35% 27%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(150 20% 97%) 0%, hsl(150 15% 93%) 50%, hsl(150 20% 96%) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gradient-hero);
    color: var(--foreground);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

.wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: hsl(150 20% 97% / 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.25rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav-brand img {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    object-fit: cover;
}

.nav-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--foreground);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a[aria-current="page"] {
    color: var(--primary);
    position: relative;
}

.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.85rem;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.hero p.lead {
    max-width: 46rem;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--muted-foreground);
}

/* Sections */
section {
    padding: 3.5rem 0;
}

section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 0.75rem;
}

section > .wrap > p.section-lead {
    color: var(--muted-foreground);
    max-width: 48rem;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Cards / grids
   Column counts are fixed (never `auto-fit`), so a row of cards always
   fills completely before wrapping - e.g. 4 cards in `.grid-2` form a
   clean 2x2, not a 3+1 orphan row. Pick the column count per-section to
   match the number of cards it holds (2, 3, 4, 6, ...) so the result
   reads as a balanced rectangle rather than a lopsided leftover row. */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

@media (max-width: 56rem) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 32rem) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.card ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.card li {
    margin-bottom: 0.4rem;
}

/* Stat row */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat .num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat .label {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* People */
.person {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.75rem;
}

.person .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.person .role a {
    text-decoration: none;
}

.person .role a:hover {
    text-decoration: underline;
}

.person p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.person p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--background);
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button.secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.button.secondary:hover {
    background: var(--primary);
    color: var(--background);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}
