/* --- style.css (KOMPLETNY) --- */

/* --- ZMIENNE I RESET --- */
:root {
    --traffic-green: #2ecc71;      /* GO */
    --traffic-green-dark: #27ae60;
    --traffic-amber: #f39c12;      /* WARNING */
    --traffic-red: #e74c3c;        /* STOP / ACTION */
    --dark-red: #c0392b;
    --dark-bg: #2c3e50;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: #333;
    background-color: var(--light-bg);
    line-height: 1.6;
    padding-top: 80px; /* Miejsce na fixed header */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER & NAV --- */
header {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo .text-red { color: var(--traffic-red); }
.logo .text-green { color: var(--traffic-green); }

/* Hamburger Icon (domyślnie ukryty na PC) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-bg);
}

.nav-links { display: flex; gap: 1rem; font-weight: 600; align-items: center; }
.nav-links a { color: var(--dark-bg); font-size: 0.9rem; }
.nav-links a:hover { color: var(--traffic-green); }

.btn-book-now {
    background-color: var(--traffic-red);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: transform 0.2s, background-color 0.3s;
}
.btn-book-now:hover { background-color: var(--dark-red); transform: scale(1.05); }

/* --- HERO SECTIONS --- */

/* Index Page Hero */
.hero-large {
    height: 90vh;
    background-size: cover;
    background-position: center bottom;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.6) 60%, rgba(44,62,80,0.1) 100%);
}
.hero-content-large {
    position: relative; z-index: 2;
    max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%;
}
.hero-content-large h1 {
    font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 800;
}
.hero-content-large p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; opacity: 0.9; }

/* Subpages Hero */
.hero-small {
    background: var(--dark-bg);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-small::before { content: ''; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(44, 62, 80, 0.85); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 2.8rem; margin-bottom: 0.5rem; color: var(--white); font-weight: 800; }
.hero-title span { color: var(--traffic-green); }

/* --- GENERAL LAYOUTS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 3rem; }

/* Feature Boxes */
.feature-box {
    background: white; padding: 2.5rem 2rem; border-radius: 20px;
    box-shadow: var(--shadow); text-align: center; transition: 0.3s;
    border-bottom: 5px solid transparent; height: 100%;
}
.feature-box:hover { transform: translateY(-10px); }
.feature-box.green { border-bottom-color: var(--traffic-green); }
.feature-box.amber { border-bottom-color: var(--traffic-amber); }
.feature-box.red { border-bottom-color: var(--traffic-red); }

.icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.text-section p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #555; }

/* --- ABOUT --- */
.anxiety-box {
    background: #fffcf5; border: 2px dashed var(--traffic-amber);
    padding: 3rem; border-radius: 20px; text-align: center; margin-top: 2rem;
}

/* --- TIPS & REVIEWS --- */
.tip-card, .review-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.tip-header { background: var(--dark-bg); color: white; padding: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.tip-body { padding: 2rem; }
.tip-number {
    background: var(--traffic-green); width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0;
}

/* Reviews Masonry Layout */
.reviews-grid { column-count: 1; column-gap: 2rem; }
@media (min-width: 768px) { .reviews-grid { column-count: 2; } }
@media (min-width: 1024px) { .reviews-grid { column-count: 3; } }

.review-card { padding: 2rem; margin-bottom: 2rem; break-inside: avoid; border-top: 4px solid var(--traffic-green); }
.review-text { font-style: italic; color: #555; margin-bottom: 1rem; }
.review-author { font-weight: bold; color: var(--dark-bg); }
.review-source { font-size: 0.8rem; color: #999; margin-top: 0.5rem; display: block; }
.review-source a { color: var(--traffic-green); text-decoration: underline; }

/* --- LESSONS CARDS --- */
.service-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: var(--shadow); transition: 0.3s;
    border-top: 6px solid var(--traffic-green);
    display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-5px); }
.card-img { height: 250px; background-color: #ddd; background-size: cover; background-position: center; }
.card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.6rem; margin-bottom: 1rem; color: var(--dark-bg); }
.btn-outline {
    display: inline-block; width: 100%; text-align: center;
    padding: 0.8rem; margin-top: auto; 
    border: 2px solid var(--traffic-green);
    color: var(--traffic-green);
    font-weight: bold; border-radius: 50px;
}
.btn-outline:hover { background: var(--traffic-green); color: white; }

/* --- PAY IN 3 SPECIFIC --- */
.lp-pay-container { padding: 40px 20px; }
.lp-pay-title { text-align: center; color: #006400; font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.lp-pay-subtitle { text-align: center; color: #228B22; font-size: 1.2rem; margin-bottom: 40px; }
.lp-pay-grid { display: grid; gap: 25px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-pay-card {
    background: white; border: 3px solid #32CD32; border-radius: 20px;
    padding: 30px 20px; box-shadow: 0 12px 35px rgba(50,205,50,0.15);
    text-align: center; position: relative; display: flex; flex-direction: column; justify-content: space-between;
    transition: transform 0.3s;
}
.lp-pay-card:hover { transform: translateY(-5px); }
.lp-pay-card-premium { border-color: #DC143C; box-shadow: 0 15px 40px rgba(220,20,60,0.2); }
.lp-pay-hours { font-size: 3.5rem; color: #228B22; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.lp-pay-hours-premium { color: #DC143C; }
.lp-pay-heading { color: #006400; font-weight: 700; margin-bottom: 10px; font-size: 1.3rem; }
.lp-pay-price { font-size: 2.2rem; color: #DC143C; font-weight: 800; margin: 15px 0; }
.lp-pay-btn {
    background: linear-gradient(45deg, #32CD32, #228B22); color: white;
    padding: 12px 20px; border-radius: 50px; font-weight: bold; display: block;
    box-shadow: 0 5px 15px rgba(50,205,50,0.3);
}
.lp-pay-btn-premium { background: linear-gradient(45deg, #DC143C, #B22222); box-shadow: 0 5px 15px rgba(220,20,60,0.3); }

/* Discount Box */
.discount-alert {
    background: #e8f5e9; border-left: 6px solid var(--traffic-green);
    padding: 1.5rem; margin-bottom: 3rem; border-radius: 0 10px 10px 0;
    display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow);
}
.discount-icon { font-size: 2rem; }
.discount-text strong { color: #006400; display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }

/* --- FOOTER --- */
footer { background: var(--dark-bg); color: white; padding: 3rem 2rem; text-align: center; margin-top: auto; }

/* --- MOBILE & HAMBURGER MENU LOGIC --- */
@media (max-width: 900px) {
    /* Show Hamburger */
    .hamburger { display: block; }

    /* Hide Navigation Links by default */
    .nav-links {
        display: none; /* Ukryte */
        position: absolute;
        top: 80px; /* Wysokość nagłówka */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }

    /* Class added by JS to show menu */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a { margin: 1rem 0; font-size: 1.2rem; }
    
    .hero-content-large h1 { font-size: 2.2rem; }
    .grid-2 { grid-template-columns: 1fr; }
    
    /* Pay in 3 adjustments */
    .discount-alert { flex-direction: column; text-align: center; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
