/* XerockS - Generations Dance Sport Club */
@import "fonts.css";
@import "variables.css";

:root {
    --font-family: var(--font-family-base), -apple-system, Blinkmacsystemfont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --spacing-unit: 8px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--neutral-90);
    color: var(--neutral-10);
    line-height: 1.6;
}

/* Typography */
h1 {
    font-size: var(--font-size-xxx-large);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: var(--font-size-xx-large);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-3);
}

h3 {
    font-size: var(--font-size-x-large);
    font-weight: var(--font-weight-bold);
    margin: var(--spacing-1);
}

h4 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
}

h5 {
    font-size: var(--font-size-semi-large);
    font-weight: var(--font-weight-bold);
}

h6 {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-bold);
}

p {
    font-size: var(--font-size-regular);
    line-height: var(--line-heigth);
    padding-block: var(--spacing-1);
}

ul {
    padding: var(--spacing-1);

    li {
        font-size: var(--font-size-regular);
        line-height: var(--line-heigth);
    }
}

a {
    color: var(--neutral-10);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Container */
.maxwidth {
    max-width: 1000px;
    margin: 0 auto;
}

.container {
    margin: 0 auto;
    padding: var(--spacing-5);
}

/* Header */
header {
    background-color: var(--neutral-100);
    padding: var(--spacing-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    height: calc(var(--spacing-2) * 2 + var(--font-size-regular));
}

.logo a {
    color: var(--neutral-10);
    font-weight: var(--font-weight-bold);
}

nav {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
    padding-block: var(--spacing-2);
}

nav a {
    font-size: var(--font-size-regular);
    font-weight: var(--font-weight-regular);
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: var(--neutral-100);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    font-size: var(--font-size-semi-large);
    margin-bottom: 0.5rem;
}

.footer-section a {
    font-size: var(--font-size-x-small);
    opacity: 0.8;
}

.footer-logo img {
    width: auto;
    height: 4rem;
}

/* Main Content */
main {
    min-height: 60vh;
    background-color: var(--neutral-90);
}

/* Section Styles */
section {
    padding: var(--spacing-5);
}

.section-black {
    background-color: var(--neutral-100);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--spacing-5);
    align-items: center;
}

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

.grid-2-img {
    grid-template-columns:2fr 1fr;

    img {
        height: 100%;
        object-fit: cover;
    }
}

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

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

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

.reverse > :nth-last-child(1) {
    order: -1;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 2.5 / 1;
    width: 100%;
    height: auto;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("./images/hero.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center calc(50% + 6rem);
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    line-height: 1;
    text-align: center;
    align-content: center;

    img {
        height: 8rem;
        width: auto;
        margin-bottom: var(--spacing-5);
        object-fit: contain;
    }

    h1 {
        margin-bottom: 0;
    }
}

.hero-small {
    height: 300px;

    &::before {
        background-position: center;
    }
}

.hero p {
    font-size: var(--font-size-semi-large);
}

/* Cards */
.card {
    background-color: var(--neutral-10);
    color: var(--neutral-100);
    border-radius: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card h3 {
    color: var(--neutral-100);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--neutral-100);
}

.card-link {
    font-size: 0.875rem;
    text-decoration: underline;
    color: var(--neutral-100);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    margin-block: var(--spacing-3);
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--red-80);
    color: var(--neutral-10);
}

.btn-primary:hover {
    background-color: var(--red-100);
}

.btn-secondary {
    background-color: var(--neutral-60);
    color: var(--neutral-10);
}

.btn-secondary:hover {
    background-color: var(--neutral-60);
}

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

.rounded-3xl {
    border-radius: 30px;
    overflow: hidden;
}

.aspect-square {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--neutral-10);
}

.text-black {
    color: var(--neutral-100);
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

.font-normal {
    font-weight: var(--font-weight-regular);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: var(--spacing-5);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.flex-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

/* Backgrounds */
.bg-black {
    background-color: var(--neutral-100);
}

.bg-dark {
    background-color: var(--neutral-90);
}

.bg-white {
    background-color: var(--neutral-10);
}

.bg-gray {
    background-color: var(--neutral-60);
}

/* List Styles */
ul {
    list-style: none;
}

.list-check li::before {
    content: '• ';
    color: var(--neutral-10);
    margin-right: 0.5rem;
}

.shoe-banner {
    position: relative;
    overflow: hidden;
}

.shoe-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('./images/shoe-banner.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

.headshot-container {
    aspect-ratio: 5/4;
    overflow: hidden;
}

.headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-2,
    .grid-2-img,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .grid-2-img img {
        aspect-ratio: 16 / 9;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    nav {
        gap: 1rem;
    }

    .hero {
        height: 300px;

        &:before {
            background-position: center;
        }
    }

    .hero-small {
        height: 200px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;

        img {
            height: 3rem;
        }
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    section {
        padding: 2rem 0;
    }
    .reverse > :nth-last-child(1) {
        order: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

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

    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
}

