/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* OGÓLNE */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    line-height: 1.6;
}

/* NAWIGACJA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a5c2d;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.05);
}

.navbar ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    list-style: none;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.navbar ul li a:hover {
    background-color: #d35400;
    box-shadow: 0 0 10px rgba(211,84,0,0.4);
}

/* HERO */
.hero {
    background-color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #d35400;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.4rem;
    color: #0a5c2d;
    margin-bottom: 25px;
}

.btn {
    background-color: #0a5c2d;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background-color: #d35400;
    box-shadow: 0 0 10px rgba(211,84,0,0.4);
}

/* SEKCJE */
.section {
    padding: 60px 20px;
    margin: 30px auto;
    max-width: 1100px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.35) 2px, transparent 2px),
        linear-gradient(to bottom, rgba(255,255,255,0.35) 2px, transparent 2px);
    background-size: 120px 120px;
    pointer-events: none;
}

/* KOLORY SEKCJI */
.section-court { background-color: #f3d7c0; }
.section-green { background-color: #e3f1df; }
.section-blue  { background-color: #e0ecf8; }
.section-purple{ background-color: #eee4f8; }

/* ANIMACJE */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* SIATKI */
.offer-grid, .pricing-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.offer-box, .price-box, .blog-post {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-box:hover, .price-box:hover, .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* FORMULARZ KONTAKTOWY */
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #0a5c2d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background-color: #d35400;
}

/* STOPKA */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0a5c2d;
    color: white;
    font-size: 0.9rem;
}

/* MOBILNE MENU */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        background-color: #0a5c2d;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        border-radius: 0 0 0 10px;
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar::after {
        content: "☰";
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
        position: absolute;
        right: 30px;
        top: 20px;
    }
}
