/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --color-primary: #00540E;
    --color-primary-light: #007513;
    --color-primary-dark: #003d0a;
    --color-dark: #0f1923;
    --color-dark-lighter: #1a2a38;
    --color-dark-card: #162231;
    --color-text: #ffffff;
    --color-text-muted: #a0b0c0;
    --color-text-dark: #333333;
    --color-bg-light: #f5f7fa;
    --color-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Roboto', sans-serif;
    --container-max: 1200px;
    --header-height: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* ===========================
   Utility
   =========================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* ===========================
   Button
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius);
}

/* ===========================
   Header
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color var(--transition);
    position: relative;
}

.header__link:hover {
    color: #ffffff;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.header__link:hover::after {
    width: 100%;
}

.header__cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-dark);
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 84, 14, 0.3) 0%,
        rgba(15, 25, 35, 0.95) 50%,
        rgba(15, 25, 35, 1) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-height);
    max-width: 720px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero__cta {
    box-shadow: 0 4px 20px rgba(0, 84, 14, 0.4);
}

.hero__cta:hover {
    box-shadow: 0 6px 28px rgba(0, 84, 14, 0.5);
}

/* Decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 84, 14, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 84, 14, 0.08) 0%, transparent 70%);
    z-index: 0;
}

/* ===========================
   Events
   =========================== */
.events {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.events .section__title {
    color: var(--color-text-dark);
}

.events .section__subtitle {
    color: #666;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.event-card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card__date {
    background: var(--color-primary);
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.event-card__day {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-card__month {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.event-card__body {
    padding: 24px;
    flex: 1;
}

.event-card__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.event-card__tag--florbal {
    background: rgba(0, 84, 14, 0.1);
    color: var(--color-primary);
}

.event-card__tag--futsal {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.event-card__tag--atletika {
    background: rgba(41, 128, 185, 0.1);
    color: #2980b9;
}

.event-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.event-card__location {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-card__location i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* ===========================
   Features
   =========================== */
.features {
    padding: 100px 0;
    background: var(--color-dark);
    color: #ffffff;
}

.features .section__title {
    color: #ffffff;
}

.features .section__subtitle {
    color: var(--color-text-muted);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius);
    background: var(--color-dark-card);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 84, 14, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.6rem;
    color: var(--color-primary-light);
    transition: background var(--transition);
}

.feature-card:hover .feature-card__icon {
    background: rgba(0, 84, 14, 0.25);
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--color-dark-lighter);
    color: var(--color-text-muted);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.footer__logo {
    margin-bottom: 16px;
}

.footer__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer__heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: #ffffff;
}

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: background var(--transition), color var(--transition);
}

.footer__social-links a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.footer__bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: #667788;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.8rem;
    }

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

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

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition);
        border-left: 1px solid var(--color-border);
    }

    .header__nav.active {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        gap: 24px;
    }

    .header__link {
        font-size: 1.1rem;
        color: #ffffff;
    }

    .header__cta {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    .hero {
        min-height: 85vh;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
    }

    .events__grid,
    .features__grid {
        grid-template-columns: 1fr;
    }

    .events,
    .features {
        padding: 64px 0;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .btn--lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .container {
        padding: 0 16px;
    }
}

/* ===========================
   Mobile menu overlay
   =========================== */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
