:root {
    --lgLightBlue: rgb(102, 118, 138);
    --lgWhite: rgb(255, 255, 255);
    --lgOffWhite: rgb(241, 241, 241);
    --lgDarkBlue: rgb(22, 31, 42);
    --lgGray: rgb(219, 223, 226);
    --contentWidth: 72rem;
    --radius: 0.5rem;
    --shadow: 0 0.6rem 1.8rem rgb(22 31 42 / 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--lgDarkBlue);
    background: var(--lgWhite);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

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

a:focus-visible {
    outline: 0.18rem solid currentColor;
    outline-offset: 0.2rem;
}

header {
    position: sticky;
    z-index: 10;
    top: 0;
    background: rgb(102 118 138 / 0.96);
    box-shadow: 0 0.2rem 1rem rgb(22 31 42 / 0.12);
    backdrop-filter: blur(0.5rem);
}

header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: var(--contentWidth);
    margin-inline: auto;
    padding: 0.75rem clamp(1rem, 5vw, 3rem);
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li,
header nav ul li a {
    display: inline-flex;
    align-items: center;
}

header nav ul li a {
    min-height: 2.5rem;
    color: var(--lgWhite);
    font-weight: 700;
}

header nav ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

header nav img {
    width: 3rem;
    filter: invert(100%);
}

header nav>a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.3rem;
    background: var(--lgWhite);
    color: var(--lgLightBlue);
    font-weight: 700;
}

.hero,
.why,
.locations,
.volunteer,
footer {
    padding-inline: max(1rem, calc((100vw - var(--contentWidth)) / 2));
}

.hero {
    display: grid;
    min-height: clamp(24rem, 62vh, 38rem);
    place-items: center;
    padding-top: clamp(4rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 10vw, 8rem);
    background-image: linear-gradient(rgb(22 31 42 / 0.35), rgb(22 31 42 / 0.35)), url("../images/mma-cage.jpg");
    background-position: center 58%;
    background-size: cover;
    color: var(--lgWhite);
    text-align: center;
}

.hero div {
    width: min(48rem, 100%);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: var(--radius);
    background: rgb(22 31 42 / 0.78);
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.08;
    font-weight: 800;
    text-wrap: balance;
}

.hero p {
    margin: 0.75rem 0;
    font-weight: 700;
    text-wrap: balance;
}

.hero a {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--lgWhite);
    font-weight: 700;
}

.hero a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.hero a span {
    display: inline-block;
    width: 6.25rem;
    height: 6.25rem;
    border: 1px solid var(--lgWhite);
    border-radius: 50%;
}

.why {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.why>h2,
.volunteer h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    line-height: 1.15;
    font-weight: 800;
}

.why>p {
    max-width: 52rem;
    margin: 0 auto 2rem;
    text-wrap: balance;
}

.why section {
    display: grid;
    gap: 1rem;
    max-width: 60rem;
    margin-inline: auto;
}

.why section q,
.why section p {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid rgb(22 31 42 / 0.06);
    border-radius: var(--radius);
    background: var(--lgOffWhite);
}

.locations {
    display: grid;
    gap: 1.25rem;
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    background: var(--lgOffWhite);
    text-align: center;
}

.locations section {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-bottom: 1.5rem;
    border-radius: var(--radius);
    background: var(--lgWhite);
    box-shadow: var(--shadow);
}

.locations section img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.locations section h2 {
    margin: 1.25rem 1rem 0.5rem;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    line-height: 1.2;
    font-weight: 800;
}

.locations section p {
    margin: 0 1.25rem 1rem;
}

.locations section a,
.volunteer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 2px solid var(--lgGray);
    border-radius: 0.25rem;
    color: var(--lgDarkBlue);
    font-weight: 700;
}

.locations section a:hover,
.volunteer a:hover {
    border-color: var(--lgDarkBlue);
}

.volunteer {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.volunteer p {
    max-width: 50rem;
    margin: 0;
    text-wrap: balance;
}

footer {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    background: var(--lgDarkBlue);
    color: var(--lgWhite);
}

footer section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

footer>section:first-child {
    max-width: var(--contentWidth);
    margin-inline: auto;
}

footer>section:first-child>section:first-child,
footer>section:first-child>section:last-child {
    flex: 1 1 100%;
}

footer>section:first-child>section:first-child section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
}

footer>section:first-child>section:first-child section a {
    color: var(--lgWhite);
}

footer>section:first-child>section:first-child section a img {
    width: 1.6rem;
}

footer>section:first-child>section:first-child section a[href*="mailto"] img {
    filter: invert(100%);
}

footer>section:first-child>section:first-child section span {
    flex: 1 0 100%;
    text-align: center;
    color: var(--lgLightBlue);
}

footer>section:first-child>section:first-child section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer>section:first-child>section:last-child {
    display: block;
    text-align: center;
}

footer>section:first-child>section:last-child>p {
    margin-top: 0;
    font-weight: 700;
    text-wrap: balance;
}

@media (min-width: 576px) {
    .why section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    footer>section:first-child>section:first-child,
    footer>section:first-child>section:last-child {
        flex: 1 1 calc(50% - 0.5rem);
    }

    footer>section:first-child>section:last-child,
    footer>section:first-child>section:last-child>p,
    footer>section:first-child>section:last-child address {
        text-align: right;
    }
}

@media (min-width: 768px) {
    .locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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