@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: dark;
    --color-background: #101214;
    --color-text: #f3f0e9;
    --color-text-muted: #b0b5b6;
    --color-border: #303438;
    --color-accent: #e0b85f;
    --color-surface: #191c20;
    --color-surface-hover: #252a2f;
    --color-header: rgba(16, 18, 20, 0.92);
    --color-stat: #1c2023;
    --color-primary: #e0b85f;
    --color-primary-text: #17191b;
    --radius-card: 24px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --color-background: #f6f7f4;
    --color-text: #16191b;
    --color-text-muted: #596361;
    --color-border: #dcded7;
    --color-accent: #87631e;
    --color-surface: #ffffff;
    --color-surface-hover: #eceee7;
    --color-header: rgba(249, 250, 247, 0.92);
    --color-stat: #e9ebe5;
    --color-primary: #1b1e22;
    --color-primary-text: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: #e7c982;
    color: #141414;
}

.wrap {
    width: min(1380px, calc(100% - 72px));
    margin-inline: auto;
}

/* Shared navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: radial-gradient(ellipse at center, rgba(200, 157, 66, 0.1), transparent 72%);
    transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.brand-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: filter 0.25s;
}

.brand:hover {
    transform: translateY(-2px);
}

.brand:hover .brand-logo {
    filter: drop-shadow(0 5px 12px rgba(200, 157, 66, 0.25));
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    box-shadow: 0 8px 28px rgba(22, 25, 27, 0.035);
}

.nav-link,
.nav-drop-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 17px;
    border: 0;
    border-radius: 99px;
    background: transparent;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-link:hover,
.nav-drop-button:hover,
.nav-link[aria-current="page"] {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.brand:focus-visible,
.theme-toggle:focus-visible,
.nav-link:focus-visible,
.nav-drop-button:focus-visible,
.button:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid #dbb568;
    outline-offset: 3px;
}

.chevron {
    font-size: 12px;
    transition: transform 0.2s;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown.is-open .chevron {
    transform: rotate(180deg);
}

.dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    min-width: 250px;
    padding: 9px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: 0 20px 55px rgba(12, 17, 20, 0.12);
}

.nav-dropdown.is-open .dropdown-panel {
    display: block;
}

.dropdown-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.dropdown-panel a:hover {
    background: var(--color-surface-hover);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 100px;
    padding: 14px 23px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-dark {
    color: var(--color-primary-text);
    background: var(--color-primary);
}

.button-dark:hover {
    filter: brightness(1.12);
    box-shadow: 0 10px 22px #0002;
}

.button-light {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 12px;
    padding: 11px;
    cursor: pointer;
    font-size: 19px;
}

/* The theme control remains visible beside the mobile menu. */
.theme-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 11px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-accent);
    background: var(--color-surface);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
    background: var(--color-surface-hover);
    transform: rotate(12deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

.theme-icon-moon,
[data-theme="light"] .theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    display: block;
}

/* Homepage hero */

.hero {
    min-height: min(790px, calc(100svh - 90px));
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 0 150px;
    text-align: center;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    background: radial-gradient(ellipse at 50% 24%,
            rgba(225, 207, 158, 0.12),
            transparent 49%);
}

.eyebrow {
    font-weight: 800;
    letter-spacing: 0.19em;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.hero .hero-logo-heading {
    width: min(780px, 90%);
    margin: 0 auto 22px;
    position: relative;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.22));
    animation: logo-arrive 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes logo-arrive {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    max-width: 650px;
    margin: 15px auto 0;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(19px, 1.8vw, 25px);
    text-wrap: balance;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hero-links {
    margin-top: 34px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.scroll-cue {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.scroll-cue:after {
    content: "";
    height: 54px;
    width: 1px;
    background: linear-gradient(#b59b6b, transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.25;
        transform: translateY(7px);
    }
}

/* Content sections */

.section {
    padding: 115px 0;
}

.section-no-top-padding {
    padding-top: 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 40px;
}

.kicker {
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
}

.section h2,
.inside-hero h1 {
    font: 800 clamp(37px, 4.3vw, 68px) / 1.08 Manrope, sans-serif;
    letter-spacing: -0.03em;
    margin: 18px 0;
    word-spacing: 0.1em;
}

.section-intro {
    max-width: 440px;
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.feature {
    min-height: 510px;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    background: #24313d;
    isolation: isolate;
    display: flex;
    align-items: end;
}

.feature+.feature {
    margin-top: 22px;
}

.feature-art {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover .feature-art {
    transform: scale(1.035);
}

.feature-art-community {
    background-image: linear-gradient(90deg,
            rgba(8, 14, 19, 0.91),
            rgba(18, 29, 42, 0.42)),
        url("../images/CHP%20Diversity.png");
    background-color: #35475b;
}

.feature-art-departments {
    background-image: linear-gradient(90deg,
            rgba(8, 14, 19, 0.86),
            rgba(27, 34, 35, 0.25)),
        url("../images/GPRP%20Olympic.png");
    background-color: #35413e;
}

.feature-art-tools {
    background-image: linear-gradient(90deg,
            rgba(8, 14, 19, 0.9),
            rgba(29, 31, 37, 0.34)),
        url("../images/Dispatch%20Room.png");
    background-color: #4a4142;
}

.feature-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: clamp(28px, 5vw, 72px);
    width: min(700px, 100%);
}

.feature-index {
    display: block;
    opacity: 0.7;
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.feature h3 {
    font: 800 clamp(35px, 4.8vw, 68px) / 1.09 Manrope, sans-serif;
    letter-spacing: -0.03em;
    margin: 22px 0;
    word-spacing: 0.1em;
}

.feature p {
    max-width: 500px;
    color: #e4e7e7;
    line-height: 1.7;
    font-size: 17px;
}

.feature .button {
    margin-top: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.stat {
    min-height: 180px;
    background: var(--color-stat);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 29px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat strong {
    font: 800 clamp(26px, 3.2vw, 47px) / 1 Manrope, sans-serif;
    letter-spacing: -0.06em;
}

.stat p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.join-section {
    padding: 110px 0 130px;
    text-align: center;
}

.join-panel {
    padding: 100px 28px;
    border-radius: 28px;
    background: #1b2023;
    color: #fff;
}

.join-panel h2 {
    font: 800 clamp(42px, 5vw, 76px) / 1.05 Manrope, sans-serif;
    letter-spacing: -0.07em;
    margin: 20px 0;
}

.join-panel p {
    color: #bfc7c4;
    font-size: 17px;
    margin-bottom: 28px;
}

.join-panel .button {
    background: #d9af5a;
    color: #1e1f1f;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 28px 0 45px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

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

/* Interior pages */
.inside-hero {
    padding: 110px 0 65px;
}

.inside-hero p {
    max-width: 680px;
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.content-panel {
    padding: 45px;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    margin-bottom: 110px;
}

.content-panel p {
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* Reveal animation: elements remain visible if JS disabled */

.js .reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.2, 0.7, 0.15, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1150px) {
    .nav-actions > .button {
        display: none;
    }
}

@media (max-width: 1030px) {

    .brand,
    .nav-actions {
        min-width: auto;
    }

    .nav-list {
        gap: 0;
    }

    .nav-link,
    .nav-drop-button {
        padding: 11px 12px;
    }

    .wrap {
        width: min(100% - 42px, 1380px);
    }
}

@media (max-width: 960px) {
    .nav-shell {
        min-height: 74px;
    }

    .brand {
        padding: 6px 0;
    }

    .brand-logo {
        width: clamp(120px, 25vw, 170px);
    }

    .nav-shell {
        gap: 12px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions>.button {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 21px 24px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 18px 25px #0001;
    }

    .nav-list.mobile-open {
        display: flex;
    }

    .nav-link,
    .nav-drop-button {
        width: 100%;
        justify-content: space-between;
        padding: 15px;
    }

    .dropdown-panel {
        position: static;
        box-shadow: none;
        margin-bottom: 8px;
        min-width: auto;
    }

    .hero {
        min-height: 650px;
        padding: 100px 0 130px;
    }


    .hero-links {
        flex-wrap: wrap;
    }

    .section {
        padding: 75px 0;
    }

    .section-no-top-padding {
        padding-top: 0;
    }

    .section-head {
        display: block;
    }

    .feature {
        min-height: 460px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        min-height: 125px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .join-section {
        padding: 50px 0 75px;
    }

    .join-panel {
        padding: 70px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
