/* ========================================
   Team Tuvalu — Multi-Sport Hub
   landing.css
   ======================================== */

:root {
    --navy:      #0a1628;
    --navy-mid:  #111e36;
    --navy-light:#1a2a48;
    --sky-blue:  #009FDB;
    --gold:      #D4A843;
    --white:     #ffffff;
    --text-muted:#8899b4;

    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    --container-max: 1200px;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--white);
    line-height: 1.6;
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    background: linear-gradient(170deg, #0d1f3c 0%, var(--navy) 40%, #0e1a30 100%);
    overflow: hidden;
}

/* Decorative wave shapes */
.hero__wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
}

.hero__wave--top {
    top: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 60px,
        rgba(0, 159, 219, 0.04) 60px,
        rgba(0, 159, 219, 0.04) 62px
    );
}

.hero__wave--bottom {
    bottom: 0;
    background:
        radial-gradient(ellipse 120% 60% at 50% 100%, rgba(0, 159, 219, 0.08) 0%, transparent 70%);
}

/* Subtle background atoll ring decoration */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 159, 219, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 440px;
    height: 440px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(212, 168, 67, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212, 168, 67, 0.35);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 16px;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--sky-blue);
    margin-bottom: 12px;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================
   Sports Section
   ======================================== */
.sports {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--navy) 0%, #0c1a2e 100%);
}

.sports__header {
    text-align: center;
    margin-bottom: 48px;
}

.sports__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sky-blue);
    margin-bottom: 12px;
}

.sports__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
}

/* Grid */
.sports__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sports__loading,
.sports__error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    font-size: 1rem;
}

.sports__error {
    color: #e07070;
}

/* ========================================
   Sport Card
   ======================================== */
.card {
    --card-accent: var(--sky-blue);

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--card-accent);
}

/* Featured card */
.card--featured {
    grid-column: span 2;
    padding: 52px 32px 40px;
}

.card--featured .card__icon {
    font-size: 4rem;
}

.card--featured .card__name {
    font-size: 1.6rem;
}

/* Badge */
.card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gold);
    padding: 4px 12px;
    border-radius: 100px;
}

/* Icon */
.card__icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 16px;
    filter: grayscale(0.15);
    transition: transform var(--transition);
}

.card:hover .card__icon {
    transform: scale(1.12);
}

/* Name */
.card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 4px;
}

/* Federation subtitle */
.card__federation {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Arrow */
.card__arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color var(--transition), transform var(--transition);
}

.card:hover .card__arrow {
    color: var(--card-accent);
    transform: translateX(4px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 48px 24px 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.footer__text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
    .sports__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card--featured {
        grid-column: span 2;
    }

    .hero {
        padding: 80px 24px 64px;
        min-height: 360px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .sports__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card--featured {
        grid-column: span 1;
    }

    .hero {
        padding: 64px 20px 52px;
        min-height: 300px;
    }

    .hero__title {
        font-size: 2.6rem;
    }

    .sports {
        padding: 56px 0 72px;
    }

    .card {
        padding: 32px 20px 24px;
    }

    .card--featured {
        padding: 36px 24px 28px;
    }

    .card--featured .card__icon {
        font-size: 3.2rem;
    }

    .card--featured .card__name {
        font-size: 1.3rem;
    }
}
