/*
 * MozgásTámasz 45+ website stylesheet
 * A friss, modern dizájn lila és zöld színekre épül, klasszikus serif címsorokkal és letisztult sans-serif törzsszöveggel. A layout reszponzív, így mobileszközökön is jól működik.
 */

/* CSS variables for easy theming */
:root {
    --primary-color: #6457A6; /* mély lila */
    --secondary-color: #AEE8A1; /* világos zöld */
    --accent-color: #F4C95D; /* meleg arany árnyalat az akcentusokhoz */
    --text-color: #2D3246; /* sötét szöveg szín */
    --background-color: #F7F9FB; /* világos háttérszín */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 1.8rem;
}
h3 {
    font-size: 1.2rem;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}
.hero-overlay {
    position: relative;
    text-align: center;
    max-width: 700px;
    padding: 0 1rem;
}
.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    color: #f5f5f5;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: var(--secondary-color);
    color: #2D3246;
}

/* Info Section */
.info {
    background-color: #fff;
}
.info h2 {
    margin-bottom: 1rem;
}
.info p {
    font-size: 1.05rem;
    color: var(--text-color);
}

/* Programs */
.programs {
    background-color: var(--background-color);
}
.programs h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.program-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.program-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.program-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.price {
    font-weight: bold;
    color: var(--accent-color);
}

/* Gallery */
.gallery {
    background-color: #fff;
}
.gallery h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Contact */
.contact {
    background-color: var(--background-color);
}
.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.contact p {
    text-align: center;
    margin-bottom: 2rem;
}
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact label {
    font-weight: bold;
}
.contact input,
.contact textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.contact textarea {
    resize: vertical;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Reviews */
.reviews {
    background-color: #fff;
}
.reviews h2 {
    text-align: center;
    margin-bottom: 1rem;
}
#reviews-list {
    list-style: none;
    margin-bottom: 2rem;
}
#reviews-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}
#review-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
#review-form label {
    font-weight: bold;
}
#review-form input,
#review-form textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}
#review-form textarea {
    resize: vertical;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.popup-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem 1rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-info p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.footer-links a {
    color: #fff;
    font-weight: bold;
}
.footer-links a:hover {
    text-decoration: underline;
}
.copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #e6e6e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .program-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-info, .footer-links {
        text-align: center;
    }
}