/* ============================================================
   GS KORZENIEW — wspólny styl serwisu
   ============================================================ */
:root {
    --gs-green: #017223;
    --gs-green-dark: #014a17;
    --gs-green-light: #e8f5e9;
    --gs-accent: #f5b301;
}

html { scroll-behavior: smooth; }
html, body {
    overflow-x: clip;
    max-width: 100%;
}
body { font-family: 'Inter', sans-serif; }

/* ---------- NAV ---------- */
#mainNav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: padding 0.3s;
}
#mainNav .nav-link {
    font-weight: 600;
    color: #2a2a2a;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s;
}
#mainNav .nav-link:link,
#mainNav .nav-link:visited { color: #2a2a2a; }
#mainNav .nav-link::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.25rem;
    height: 2px;
    background: var(--gs-green);
    transform: scaleX(0);
    transition: transform 0.25s;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gs-green); }
#mainNav .navbar-brand span { color: var(--gs-green); }
#mainNav .fa-facebook-square {
    color: #1877f2; cursor: pointer; transition: opacity 0.2s;
}
#mainNav .fa-facebook-square:hover { opacity: 0.75; }

/* ---------- BUTTONS ---------- */
.btn-pill {
    font-weight: 700; padding: 14px 38px; border-radius: 50px;
    font-size: 1rem; text-decoration: none; display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-light-pill { background: #fff; color: var(--gs-green-dark); border: none; }
.btn-light-pill:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); color: var(--gs-green-dark); }
.btn-outline-pill { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.6); }
.btn-outline-pill:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.btn-green-pill { background: var(--gs-green); color: #fff; border: none; }
.btn-green-pill:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(1, 114, 35, 0.3); color: #fff; }

/* ---------- HERO (strona główna) ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, var(--gs-green-dark) 0%, var(--gs-green) 55%, #02a032 100%);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/pexels-photo-6474342.jpeg') center/cover no-repeat;
    opacity: 0.16;
    animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-blob {
    position: absolute;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(245, 179, 1, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    top: -180px; right: -120px;
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    padding: 7px 20px; border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.4rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800; color: #fff; line-height: 1.08;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--gs-accent); }
.hero p.lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem; max-width: 520px; line-height: 1.7;
}
.hero-card {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2.4rem 2rem;
    text-align: center; color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.hero-card .label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gs-accent); margin-bottom: 0.6rem;
}
.hero-card .phone { font-size: 2.3rem; font-weight: 800; letter-spacing: 2px; }
.hero-card a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.hero-card a:hover { color: #fff; }

.wave { display: block; width: 100%; height: auto; }

/* ---------- PAGE HEADER (podstrony) ---------- */
.page-header {
    position: relative;
    background: linear-gradient(120deg, var(--gs-green-dark) 0%, var(--gs-green) 60%, #02a032 100%);
    color: #fff;
    padding: 7rem 0 9rem;
    text-align: center;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../img/pexels-photo-8805183.jpeg') center/cover no-repeat;
    opacity: 0.12;
}
.page-header .badge-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    padding: 6px 18px; border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}
.page-header h1 {
    font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: -0.5px; position: relative;
}
.page-header p {
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px; margin: 1rem auto 0; position: relative;
    font-size: 1.08rem;
}

/* sekcja wchodząca na falę nad nią */
.section-pull { margin-top: -6rem; position: relative; z-index: 2; }

/* ---------- SECTION HEADINGS ---------- */
.section-tag {
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.78rem; font-weight: 700; color: var(--gs-green);
}
.section-title { font-weight: 800; color: #1b1b1b; letter-spacing: -0.5px; }

/* ---------- QUICK LINKS ---------- */
.ql-card {
    border: none; border-radius: 18px; padding: 2.2rem 1.5rem;
    text-align: center; transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer; text-decoration: none; display: block;
    background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); color: #222; height: 100%;
}
.ql-card:hover { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(1, 114, 35, 0.16); color: var(--gs-green); }
.ql-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--gs-green-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem; font-size: 1.7rem; color: var(--gs-green);
    transition: background 0.25s, color 0.25s;
}
.ql-card:hover .ql-icon { background: var(--gs-green); color: #fff; }
.ql-card h5 { font-weight: 700; margin-bottom: 0.4rem; }
.ql-card p { font-size: 0.86rem; color: #777; margin: 0; }

/* ---------- OFERTA / OBRAZY Z NAKŁADKĄ ---------- */
.offer-card {
    position: relative; border-radius: 18px; overflow: hidden;
    height: 280px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
.offer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.offer-card:hover img { transform: scale(1.08); }
.offer-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(1, 74, 23, 0.88) 0%, rgba(1, 74, 23, 0.1) 60%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.6rem; color: #fff;
}
.offer-card .overlay h5 { font-weight: 700; margin: 0; }
.offer-card .overlay p { font-size: 0.85rem; margin: 0.2rem 0 0; color: rgba(255, 255, 255, 0.85); }

/* ---------- OFERTA — pełne karty produktów ---------- */
.product-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(1, 114, 35, 0.14); }
.product-card .img-wrap { height: 240px; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .img-wrap img { transform: scale(1.07); }
.product-card .body { padding: 1.6rem 1.5rem 2rem; }
.product-card .body h4 { font-weight: 700; color: var(--gs-green-dark); }
.product-card .body p { color: #666; font-size: 0.92rem; line-height: 1.7; margin: 0; }

/* ---------- O NAS — statystyki ---------- */
.about-section { background: var(--gs-green-light); }
.stat-box {
    background: #fff; border-radius: 18px; padding: 1.8rem 1rem;
    text-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s;
}
.stat-box:hover { transform: translateY(-5px); }
.stat-box .number { font-size: 2.6rem; font-weight: 800; color: var(--gs-green); line-height: 1; }
.stat-box .desc { font-size: 0.84rem; color: #666; margin-top: 0.5rem; }

/* ---------- O NAS — zarząd / rada ---------- */
.board-card {
    border-radius: 22px; padding: 2.2rem 1.8rem; height: 100%;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.board-card.green { background: linear-gradient(135deg, var(--gs-green-dark), var(--gs-green)); color: #fff; }
.board-card.gold { background: #fff; border: 2px solid var(--gs-accent); }
.board-card h3 {
    text-align: center; font-weight: 800; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px; font-size: 1.3rem;
}
.board-card.green h3 { color: #fff; }
.board-card.gold h3 { color: var(--gs-green-dark); }
.board-card ul { list-style: none; padding: 0; margin: 0; }
.board-card li {
    text-align: center; font-weight: 600; padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07); font-size: 1.02rem;
}
.board-card.green li { border-bottom-color: rgba(255, 255, 255, 0.18); }
.board-card li:last-child { border-bottom: none; }

/* ---------- SHOPS GALLERY (mini) ---------- */
.shop-thumb {
    position: relative; border-radius: 16px; overflow: hidden;
    height: 220px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.shop-thumb:hover img { transform: scale(1.1); }
.shop-thumb .name {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
    color: #fff; font-weight: 700; padding: 1.4rem 1rem 0.9rem; font-size: 1rem;
}

/* ---------- SKLEPY — pełne karty ---------- */
.store-card {
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column;
}
.store-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(1, 114, 35, 0.16); }
.store-card .img-wrap { height: 210px; overflow: hidden; position: relative; }
.store-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.store-card:hover .img-wrap img { transform: scale(1.08); }
.store-card .num-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--gs-accent); color: #1b1b1b;
    font-weight: 700; font-size: 0.72rem; letter-spacing: 1px;
    padding: 5px 14px; border-radius: 50px;
}
.store-card .body { padding: 1.4rem 1.4rem 1.6rem; text-align: center; flex: 1; display: flex; flex-direction: column; }
.store-card .body h4 { font-weight: 800; color: var(--gs-green-dark); margin-bottom: 1rem; }
.store-phone {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gs-green-light); color: var(--gs-green-dark);
    font-weight: 700; padding: 8px 20px; border-radius: 50px;
    text-decoration: none; margin-top: auto; font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.store-phone:hover { background: var(--gs-green); color: #fff; }

/* ---------- KONTAKT — karty działów ---------- */
.contact-card {
    position: relative; background: #fff; border-radius: 20px;
    padding: 2.4rem 1.8rem 2rem; height: 100%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(1, 114, 35, 0.14); }
.contact-card .c-icon {
    width: 58px; height: 58px; border-radius: 16px;
    background: var(--gs-green-light); color: var(--gs-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.2rem;
}
.contact-card h5 { font-weight: 700; color: var(--gs-green-dark); margin-bottom: 0.8rem; }
.contact-card p { color: #555; margin: 0; line-height: 1.8; }
.contact-card a { color: var(--gs-green); text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(120deg, var(--gs-green-dark), var(--gs-green));
    border-radius: 24px; color: #fff; padding: 3.5rem 2rem; text-align: center;
    position: relative; overflow: hidden;
}
.cta h2 { font-weight: 800; }

/* ---------- VIDEO ---------- */
.video-frame {
    position: relative; width: 100%; padding-bottom: 56.25%;
    border-radius: 18px; overflow: hidden; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FOOTER ---------- */
footer.site-footer { background: #0f2d18; color: #ccc; }
footer.site-footer a,
footer.site-footer a:link,
footer.site-footer a:visited { color: #a8f0b8; text-decoration: none; font-weight: 500; transition: color 0.2s; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer h5 {
    color: #fff; font-weight: 700; font-size: 0.9rem;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem;
}
footer.site-footer hr { border-color: rgba(255, 255, 255, 0.1); }
footer.site-footer .footer-bottom { font-size: 0.82rem; color: #888; }
footer.site-footer .fa-facebook-square { color: #a8f0b8; font-size: 2rem; cursor: pointer; transition: color 0.2s; }
footer.site-footer .fa-facebook-square:hover { color: #fff; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- UE IMAGE + LIGHTBOX ---------- */
.ue-zoom {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    cursor: zoom-in;
    transition: transform 0.25s, box-shadow 0.25s;
}
.ue-zoom:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.ue-zoom-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.6rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 1.4rem;
    right: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ============================================================
   RESPONSYWNOŚĆ — tablety i telefony
   ============================================================ */

/* Tablety i mniejsze (< 992px) */
@media (max-width: 991.98px) {
    .hero { min-height: auto; padding: 3.5rem 0 2rem; text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero .d-flex { justify-content: center; }
    .hero-card { margin-top: 2.5rem; max-width: 460px; margin-left: auto; margin-right: auto; }
    .hero-blob { width: 380px; height: 380px; top: -120px; right: -120px; }

    .page-header { padding: 5rem 0 6.5rem; }
    .section-pull { margin-top: -5rem; }
}

/* Telefony (< 768px) */
@media (max-width: 767.98px) {
    /* zapobiega poziomemu przewijaniu od dużych gutterów Bootstrapa */
    .row.g-5 { --bs-gutter-x: 1.5rem; }

    .hero { padding: 2.5rem 0 1rem; }
    .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.12; }
    .hero p.lead { font-size: 1rem; }
    .hero-badge { font-size: 0.68rem; letter-spacing: 2px; padding: 6px 16px; }
    .hero-card { padding: 1.8rem 1.4rem; }
    .hero-card .phone { font-size: 1.9rem; letter-spacing: 1px; }

    /* przyciski na pełną szerokość, łatwiejsze do kliknięcia */
    .hero .d-flex { flex-direction: column; align-items: stretch; }
    .hero .btn-pill { width: 100%; text-align: center; }
    .cta .d-flex { flex-direction: column; align-items: stretch; }
    .cta .btn-pill { width: 100%; text-align: center; }

    .btn-pill { padding: 13px 28px; }

    /* nagłówki podstron */
    .page-header { padding: 4rem 0 5.5rem; }
    .page-header h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .page-header p { font-size: 1rem; }
    .section-pull { margin-top: -4rem; }

    /* tytuły sekcji */
    .section-title { font-size: 1.6rem; }

    /* mniejsza fala, by nie przykrywała treści */
    .wave { height: 40px; }

    /* karty szybkich linków */
    .ql-card { padding: 1.6rem 1rem; }
    .ql-icon { width: 58px; height: 58px; font-size: 1.4rem; margin-bottom: 0.9rem; }
    .ql-card h5 { font-size: 1rem; }
    .ql-card p { font-size: 0.8rem; }

    /* karty oferty / sklepów — niższe na mobile */
    .offer-card { height: 220px; }
    .product-card .img-wrap { height: 200px; }
    .store-card .img-wrap { height: 190px; }

    /* statystyki */
    .stat-box { padding: 1.4rem 0.6rem; }
    .stat-box .number { font-size: 2rem; }

    /* CTA */
    .cta { padding: 2.5rem 1.4rem; }
    .cta h2 { font-size: 1.5rem; }

    /* obrazek UE wyśrodkowany */
    .ue-zoom { margin-left: auto; margin-right: auto; display: block; }

    /* lightbox — mniejszy padding na telefonie */
    .lightbox { padding: 1rem; }
    .lightbox img { padding: 0.5rem; max-width: 96vw; }
    .lightbox-close { top: 0.8rem; right: 1rem; }
}

/* Małe telefony (< 480px) */
@media (max-width: 479.98px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-card .phone { font-size: 1.6rem; }
    .hero-card a { font-size: 0.85rem; word-break: break-word; }

    .section-title { font-size: 1.4rem; }
    .stat-box .number { font-size: 1.7rem; }
    .stat-box .desc { font-size: 0.76rem; }
}
