/* ==============================
   PODSTAWY
============================== */

html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;

    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
}


/* ==============================
   TYPOGRAFIA PREMIUM
============================== */

.about-short h2,
.card h3,
.hero-photo h1 {
    font-family: 'Playfair Display', serif;
}


/* ==============================
   NAWIGACJA
============================== */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 20px;
}

.logo {
    font-weight: 700;
    color: #00695c;
    letter-spacing: .5px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li a {
    margin-left: 25px;
    text-decoration: none;
    font-weight: 600;
    color: #004d40;
    position: relative;

    transition: color .3s ease;
}

nav ul li a:hover {
    color: #00695c;
}


/* ==============================
   HERO — bardziej 1:1
============================== */

.hero-photo {
    min-height: 85vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.45)
        ),
        url('../images/hero-bg.jpg') center / cover no-repeat;

    padding: 120px 20px;
}

.hero-photo h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.hero-photo p {
    font-size: 1.15rem;
    opacity: .95;
    margin-bottom: 28px;
}

.hero-btn {
    display: inline-block;
    background: #1f6b45;
    color: #ffffff;

    padding: 14px 38px;
    border-radius: 12px;
    font-weight: 700;

    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25),
                0 10px 25px rgba(0,0,0,.25);

    transition: background .25s ease, transform .25s ease;
}

.hero-btn:hover {
    background: #175537;
    transform: translateY(-2px);
}


/* ==============================
   PAPIEROWA SEKCJA / O NAS
============================== */

.paper-section,
.about-short {
    background: #f7f3ea;
    border-radius: 14px;

    padding: 55px 45px;
    margin-top: -50px;
    margin-bottom: 40px;

    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.about-short h2 {
    color: #00695c;
    margin-bottom: 15px;
}

.about-short p {
    max-width: 820px;
    margin: 0 auto;
}

.read-more {
    color: #0e5a3c;
    text-decoration: none;
    font-weight: 600;
}


/* ==============================
   KARTY / USŁUGI
============================== */

.cards {
    background-color: #ffffff;
    border-radius: 16px;

    padding: 45px;
    margin-top: 25px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    text-align: center;
    padding: 32px;

    border-radius: 16px;
    background: #ffffff;

    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card img {
    max-width: 110px;
    margin-bottom: 15px;
}

.card h3 {
    color: #00695c;
    margin-bottom: 8px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
}


/* ==============================
   SEKCJA ZAUFANIA / INFO
============================== */

.trust {
    background-color: #e0f2f1;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
}


/* ==============================
   STOPKA
============================== */

footer {
    background-color: #004d40;
    color: #ffffff;

    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: .9rem;
    opacity: .85;
}


/* ==============================
   RESPONSYWNOŚĆ
============================== */

@media (max-width: 900px) {

    .paper-section,
    .about-short,
    .cards {
        padding: 35px 25px;
    }

    .hero-photo {
        padding: 90px 20px;
        min-height: 70vh;
    }

    nav ul li a {
        margin-left: 15px;
    }
}

@media (max-width: 600px) {

    .hero-photo h1 {
        line-height: 1.2;
    }

    .cards {
        gap: 18px;
    }
}
/* ==============================
   MENU – POŚWIATA + ANIMACJA
============================== */

nav ul li a {
    position: relative;
    padding: 8px 14px;
    border-radius: 10px;
    transition: 
        color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        transform 0.2s ease;
}

/* hover */
nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(0, 105, 92, 0.9);

    box-shadow:
        0 0 0 2px rgba(0, 105, 92, 0.35),
        0 0 18px rgba(0, 105, 92, 0.6);

    transform: translateY(-1px);
}

/* ==============================
   AKTYWNA PODSTRONA
============================== */

nav ul li a.active {
    color: #ffffff;
    background-color: #00695c;

    box-shadow:
        0 0 0 2px rgba(0, 105, 92, 0.4),
        0 0 16px rgba(0, 105, 92, 0.6);
}
/* ==============================
   KAFELKI O NAS
============================== */

.about-tiles {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.about-tile {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;

    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);

    cursor: pointer;
    transition: transform .35s ease, box-shadow .35s ease;
}

.about-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.15);
}

.about-tile img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.tile-content {
    padding: 22px;
}

.tile-content h3 {
    color: #00695c;
    margin-bottom: 8px;
}

.tile-content p {
    font-size: .95rem;
    opacity: .85;
}

.tile-more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: #0e5a3c;
}

/* ==============================
   MODAL FULLSCREEN
============================== */

.tile-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 9999;
}

.tile-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.tile-modal-box {
    background: #ffffff;
    border-radius: 22px;
    max-width: 900px;
    width: 90%;
    overflow: hidden;

    box-shadow: 0 30px 70px rgba(0,0,0,.35);
    animation: zoomIn .35s ease;
}

@keyframes zoomIn {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tile-modal-box img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.modal-text {
    padding: 35px;
}

.modal-text h2 {
    color: #00695c;
    margin-bottom: 12px;
}

.tile-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: none;

    font-size: 2rem;
    cursor: pointer;
    color: #ffffff;
}
.kontakt-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.kontakt-info {
    flex: 1;
    font-size: 16px;
}

.kontakt-form {
    flex: 1;
    background: #f7f7f7;
    padding: 25px;
    border-radius: 8px;
}

.kontakt-form h3 {
    margin-bottom: 20px;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.kontakt-form textarea {
    min-height: 120px;
    resize: vertical;
}

.kontakt-form button {
    background: #0a7c3a;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.kontakt-form button:hover {
    background: #065a2a;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .kontakt-wrapper {
        flex-direction: column;
    }
}
/* ==============================
   LOGO W HEADERZE
============================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 1.1rem;
}

.logo img {
    max-height: 42px;   /* TU JEST KLUCZ */
    width: auto;

    object-fit: contain;
    display: block;
}
@media (max-width: 600px) {
    .logo img {
        max-height: 34px;
    }
}
/* ==============================
   LOGO W STOPCE
============================== */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand img {
    max-width: 130px;   /* WIĘKSZE LOGO */
    height: auto;

    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

.footer-brand h4 {
    margin: 0;
}
@media (max-width: 600px) {
    .footer-brand img {
        max-width: 100px;
    }
}
