/* 1) Reset některých výchozích stylů (mírný reset, ne plný) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2) :root proměnné - snadná změna barev */
:root {
    --primary-color: #2ecc71;    /* třeba zelená */
    --primary-dark: #27ae60;
    --secondary-color: #333;
    --font-color: #444;
    --font-family: 'Poppins', sans-serif;
}

/* 3) Globální nastavení */
html, body {
    font-family: var(--font-family);
    color: var(--font-color);
    background-color: #f7f7f7;
    line-height: 1.5;
}

/* 4) Kontejner pro vnitřní zarovnání */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* 5) Hero sekce */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('gym-private.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Poloprůhledná vrstva přes obrázek */
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative; /* pro overlay */
    max-width: 700px;
    padding: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Tlačítko v hero (anchor) */
.btn-hero {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--primary-dark);
}

/* 6) Sekce s výhodami */
.benefits {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    margin-top: 4rem; /* mírné překrytí, aby to vypadalo efektně */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.benefits h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.benefits ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: left;
    max-width: 600px;
    margin: 1rem auto 0;
}

.benefits li {
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.4;
}

/* "check" symbol může být klidně ikona – tady základ ASCII check */
.benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* 7) CTA formulář sekce */
.cta-form {
    position: relative;
    text-align: center;
    margin-top: -4rem;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cta-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-form p {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Styl formuláře */
.cta-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.cta-form input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.cta-form button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.cta-form button:hover {
    background-color: var(--primary-dark);
}

/* 8) Responzivita - úpravy pro menší displeje */
@media (max-width: 768px) {
    .hero {
        height: 80vh; /* menší výška pro tablety a mobily */
    }
    .hero h1 {
        font-size: 2rem;
    }
    .benefits {
        margin-top: 1rem; /* menší negativní margin */
    }
    .benefits h2,
    .cta-form h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn-hero {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    .benefits, .cta-form {
        padding: 1rem;
    }
    .benefits ul {
        padding-left: 0;
    }
    .cta-form p {
        font-size: 0.9rem;
    }
}
