html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,'Segoe UI', sans-serif;
    color: #3a3a3a;
    line-height: 1.6;
    background: url("tlo_kompas.jpg") no-repeat center fixed;
    background-size: cover;
}

/* ===== MENU ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #4b5d57;
    font-weight: 500;
}

/* ===== HEADER ===== */
header {
    min-height: 100vh;
    background: rgba(75, 93, 87, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.header-content {
    max-width: 1000px;
    padding: 10px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-logo {
    max-width: 510px;
    height: auto;
}

.header-text {
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    color: #4b5d57;
    margin: 0;
    line-height: 1.1;
}

.header-text p {
    /* margin-top: 10px; */
    font-size: 1.5rem;
    max-width: 500px;
    line-height: 1.1;

}

/* ===== MOBILE ===== */
@media (min-width: 768px) {
    .header-brand {
        flex-direction: row;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }
}

/* ===== SEKCJE ===== */
section {
    padding: 100px 20px 80px;
    max-width: 1000px;
    margin: auto;
    background-color: rgba(255,255,255,0.95);
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* new shadow */
    
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #4b5d57;
}

/* ===== O MNIE ===== */
.about-main {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    text-align: justify;
}

.about-image {
    max-width: 320px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tile {
    background: #eef2f1;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.tile:hover {
    background: #4b5d57;
    color: #ffffff;
}

.tile.active {
    background: #4b5d57;
    color: #ffffff;
}

/* hide old hover overlay */
.tile-details {
    display: none;
}

/* ===== DETAILS PANEL ===== */

.tile-content {
    margin-top: 30px;
    background: #eef2f1;
    border-radius: 12px;
    padding: 30px;
    display: none;
    animation: fadeIn 0.3s ease;
    text-align: justify;
}

.tile-content h3 {
    color: #4b5d57;
    margin-top: 0;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== POZOSTA�E SEKCJE ===== */
.recommendations,
.pricing,
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.recommendation,
.price-card,
.contact-box {
    background: #eef2f1;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
}

/* ===== STOPKA ===== */
footer {
    background-color: #4b5d57;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.contact-iframe {
    margin-top: 30px;
    display: grid; /* align with contact tiles */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-left: 100px;
    padding-right: 100px;
}

.contact-iframe iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 12px;
}

.big-tile {
    background: #eef2f1;        /* same as other tiles */
    border-radius: 12px;
    padding: 30px;
    text-align: justify;         /* justified text */
    color: #3a3a3a;
    line-height: 1.6;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1); /* subtle shadow like tiles */
    margin: 20px 0;
    max-width: 100%;             /* fit section width */
}

/* style list inside the tile */
.big-tile ul {
    padding-left: 25px;   /* indent for bullets */
    margin: 0;
    list-style-type: disc; /* standard bullets */
}

.big-tile li {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05rem;   /* slightly larger text */
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 767px) {

    /* NAV */
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
        padding: 10px;
    }

    nav a {
        font-size: 0.95rem;
    }

    /* HEADER */
    header {
        padding-top: 80px; /* space for fixed nav */
        min-height: auto;
    }

    .header-brand {
        flex-direction: column;
        gap: 20px;
    }

    .header-logo {
        max-width: 260px;
        width: 100%;
    }

    /* SECTIONS */
    section {
        padding: 70px 15px 60px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* ABOUT */
    .about-main {
        flex-direction: column;
        text-align: left;
        gap: 20px;
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .about-text {
        text-align: justify;
    }

    /* CONTACT MAP */
    .contact-iframe {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-iframe iframe {
        height: 260px;
    }

    /* PRICING */
    .price {
        font-size: 1.4rem;
    }
}