﻿/* =============================================
   DESIGN TOKENS — POLSMREK
   Paleta: granat wieczorowy + złoto krawieckie + kość słoniowa
   Czcionki systemowe (bez Google Fonts)
============================================= */
:root {
    --navy: #1A2340;
    --navy-deep: #111827;
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #5F4D1C;
    --ivory: #F7F4EE;
    --text: #2C2C2C;
    --muted: #6B6B6B;
    --white: #FFFFFF;
    --border: #DDD8CE;

    --font-display: Georgia, 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    --max-w: 1140px;
    --section-py: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--ivory);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   TOPBAR — FLAGI JĘZYKÓW
============================================= */
.topbar {
    background: var(--navy-deep);
    padding: 8px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.topbar .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
    flex-shrink: 0;
}

.lang-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lang-grid li a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    transition: background .2s, color .2s;
    letter-spacing: .5px;
}

.lang-grid li a:hover,
.lang-grid li a.active {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    text-decoration: none;
}

.lang-grid li a img {
    border-radius: 1px;
    flex-shrink: 0;
}

/* =============================================
   NAVIGATION Z LOGO - BIAŁE TŁO
============================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand:hover {
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links a {
    display: block;
    padding: 0 20px;
    line-height: 70px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color .2s, background .2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--gold);
    transition: left .25s, right .25s;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--gold);
    background: rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.nav-links a:hover::after {
    left: 0;
    right: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    transition: transform .3s, opacity .3s;
}

@media (max-width: 768px) {
    .navbar .container {
        height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .navbar-brand {
        gap: 8px;
    }

    .logo-img {
        height: 38px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        line-height: 1;
        padding: 14px 24px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.03);
    }
}

/* =============================================
   HERO
============================================= */
#hero {
    position: relative;
    height: 90vh;
    min-height: 520px;
    background: url('../img/bg/slide.webp') center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.2) 0%, rgba(17, 24, 39, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 64px 0 72px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 4px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    color: var(--gold-dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title em {
    color: var(--gold-dark);
    font-style: normal;
}

.hero-desc {
    max-width: 580px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 36px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background .2s, transform .2s;
}

.btn-primary:hover {
    background: var(--gold-light);
    text-decoration: none;
    transform: translateY(-1px);
}

/* =============================================
   SECTION HEADERS
============================================= */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-divider {
    width: 56px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 32px;
}

.section-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   O FIRMIE
============================================= */
#o-firmie {
    padding: var(--section-py) 0;
    background: var(--ivory);
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.about-text .highlight {
    font-weight: 600;
    color: var(--navy);
    border-left: 3px solid var(--gold);
    padding-left: 18px;
    margin: 20px 0;
    font-style: italic;
    background: rgba(201, 168, 76, 0.05);
    border-radius: 0 8px 8px 0;
}

.about-image-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.15);
}

.about-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =============================================
   NASZA OFERTA - produkty
============================================= */
#nasza-oferta {
    padding: var(--section-py) 0;
    background: var(--white);
}

.offer-intro {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.product-card a {
    display: block;
    text-decoration: none;
}

.product-card img {
    width: 100%;
    aspect-ratio: 430 / 600;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 4px;
}

.product-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-dark);
}

/* =============================================
   OFERTA (co produkujemy)
============================================= */
#oferta {
    padding: var(--section-py) 0;
    background: var(--ivory);
}

.offer-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offer-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 36px 28px;
    transition: box-shadow .2s, transform .2s;
}

.offer-card:hover {
    box-shadow: 0 8px 32px rgba(26, 35, 64, 0.1);
    transform: translateY(-3px);
}

.offer-card-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: 12px;
}

.offer-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 10px;
}

.offer-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

/* =============================================
   GALERIA ZDJĘĆ
============================================= */
#galeria {
    padding: var(--section-py) 0;
    background: var(--white);
}

#galeria .section-title {
    color: var(--navy);
}

.gallery-header {
    text-align: center;
    margin-bottom: 48px;
}

.simple-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.simple-gallery-item {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    background: #eaeaea;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s;
}

.simple-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.simple-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.simple-gallery-item:hover img {
    transform: scale(1.03);
}

/* =============================================
   LIGHTBOX
============================================= */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 44px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--gold);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    padding: 15px 22px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.lb-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lb-prev {
    left: -70px;
}

.lb-next {
    right: -70px;
}

.lightbox-caption {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
}

.lb-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .lb-prev {
        left: 10px;
        font-size: 1.8rem;
        padding: 10px 15px;
    }
    .lb-next {
        right: 10px;
        font-size: 1.8rem;
        padding: 10px 15px;
    }
    .lightbox-close {
        top: -40px;
        font-size: 2.5rem;
    }
    .lb-counter {
        bottom: -35px;
        font-size: 0.8rem;
    }
    .lightbox-caption {
        bottom: -55px;
        font-size: 0.85rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .lb-prev,
    .lb-next {
        font-size: 1.4rem;
        padding: 8px 12px;
    }
    .lightbox-close {
        top: -35px;
        font-size: 2rem;
    }
}

/* =============================================
   KONTAKT
============================================= */
#kontakt {
    padding: var(--section-py) 0;
    background: var(--ivory);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    margin-bottom: 0;
}

.contact-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.contact-row:first-of-type {
    border-top: 1px solid var(--border);
}

.contact-row a {
    color: var(--gold-dark);
}

.contact-icon {
    width: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-map {
    margin-top: 40px;
}

.contact-map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 9px 18px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
}

.social-btn:hover {
    background: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-map {
        margin-top: 0;
    }
}

/* =============================================
   LANG SECTION
============================================= */
.lang-section {
    background: var(--navy-deep);
    padding: 24px 0;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.lang-section .lang-grid {
    justify-content: center;
}

.lang-section .lang-grid li a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.lang-section .lang-grid li a:hover {
    color: var(--gold);
}

/* =============================================
   FOOTER
============================================= */
.footer-main {
    background: #0D1220;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 56px 0 0;
    border-top: 2px solid var(--gold);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-col strong {
    color: var(--gold);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-copyright {
    padding: 28px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.9;
}

@media (max-width: 900px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =============================================
   REVEAL ANIMATION
============================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}