/* ==========================================================================
   GeoArt Artur Pietrzak – styl klasyczny (wierne odwzorowanie układu i kolorów)
   ========================================================================== */
:root {
    --navy:          #0b4884;   /* Główny granatowy pasek menu */
    --navy-dark:     #083b6e;   /* Granatowy pas po bokach niebieskiego banera (slaj1.gif) */
    --brown-dark:    #6d5641;   /* Brązowy pas po bokach brązowego banera (slajd1a.gif) */
    --link-blue:     #1a66b3;   /* Niebieski kolor linków i etykiet */
    --nav-inactive:  #79ace0;   /* Kolor nieaktywnych pozycji na granatowym pasku */
    --bg-gray:       #f2f2f2;   /* Jasnoszare tło części głównej */
    --card-bg:       #ffffff;   /* Białe tło kart i boksu "Co robimy" */
    --text:          #333333;   /* Podstawowy kolor tekstu */
    --heading:       #2b2b2b;   /* Kolor nagłówków */
    --border:        #e2e2e2;   /* Subtelne obramowanie */
    --container:     1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-gray);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

/* ---------- Górny granatowy pasek menu ---------- */
.top-navbar {
    background: linear-gradient(180deg, #0d5296 0%, var(--navy) 100%);
    border-bottom: 1px solid #062f59;
    position: relative;
    z-index: 50;
}
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}
.main-nav li { display: flex; }
.main-nav a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--nav-inactive);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover {
    color: #ffffff;
    text-decoration: none;
}
.main-nav a.active {
    background: #ffffff;
    color: #1c3d5e;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    padding: 7px 9px;
    cursor: pointer;
    margin: 6px 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    margin: 4px 0;
}

/* ---------- Baner górny: na przemian niebieskawy (slaj1.gif) i brązowy (slajd1a.gif) ---------- */
.hero-banner-wrap {
    border-bottom: 1px solid #d8d8d8;
    overflow: hidden;
}
.hero-banner-wrap--blue {
    background: var(--navy-dark);
}
.hero-banner-wrap--brown {
    background: var(--brown-dark);
}

.hero-banner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 242px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 242px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 52px;
    padding-bottom: 24px;
}
.hero-logo-box {
    position: absolute;
    top: 8px;
    left: 18px;
    background: #ffffff;
    padding: 4px 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.28);
    display: inline-block;
    z-index: 3;
}
.hero-logo-box img {
    height: 36px;
    width: auto;
}
.hero-text-center {
    text-align: center;
    padding: 0 12px;
}
.hero-main-title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    font-weight: 700;
    line-height: 1.12;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.88);
}
.hero-sub-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(0.95rem, 1.8vw, 1.32rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.25;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.92);
}

/* ---------- 4 kafelki pod banerem na stronie głównej ---------- */
.home-featured-strip {
    background: #ffffff;
    padding: 36px 0 34px;
    border-bottom: 1px solid var(--border);
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}
.featured-card {
    display: block;
    text-decoration: none;
}
.featured-card:hover {
    text-decoration: none;
}
.featured-thumb {
    overflow: hidden;
    border: 1px solid #dddddd;
    background: #eaeaea;
    aspect-ratio: 270 / 165;
}
.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.featured-card:hover .featured-thumb img {
    transform: scale(1.04);
}
.featured-label {
    display: block;
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--link-blue);
}
.featured-card:hover .featured-label {
    text-decoration: underline;
}

/* ---------- Główna strefa treści (jasnoszare tło + wyśrodkowany nagłówek + 2 kolumny) ---------- */
.page-wrapper {
    background: var(--bg-gray);
    padding: 34px 0 56px;
}
.page-heading {
    text-align: center;
    font-size: 32px;
    font-weight: 400;
    color: var(--heading);
    margin: 0 0 32px;
}

.content-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: start;
}

/* Lewa kolumna */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 28px 32px;
}
.content-card h2 {
    font-size: 24px;
    font-weight: 400;
    color: var(--heading);
    margin: 0 0 18px;
}
.content-card h2:not(:first-child) {
    margin-top: 28px;
}
.content-card p {
    margin: 0 0 14px;
}
.content-card ol {
    margin: 0 0 18px;
    padding-left: 22px;
}
.content-card ol li {
    margin-bottom: 7px;
}
.content-card ol ul {
    margin-top: 6px;
    padding-left: 20px;
    list-style-type: disc;
}

/* Blok Kontakt na dole strony głównej (jak na screenie) */
.home-contact-block {
    margin-top: 34px;
    padding: 0 4px;
}
.home-contact-block h3 {
    font-size: 21px;
    font-weight: 400;
    color: var(--heading);
    margin: 0 0 12px;
}
.home-contact-block p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
}

/* Prawa kolumna boczna ("Co robimy") */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.sidebar-box {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 24px 26px;
}
.sidebar-box h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--heading);
    margin: 0 0 14px;
}
.sidebar-box h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--heading);
    margin: 0 0 10px;
}
.sidebar-box p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
}
.sidebar-box p:last-child {
    margin-bottom: 0;
}

/* ---------- Tabele (Cennik i Nasi Klienci) ---------- */
.table-responsive {
    overflow-x: auto;
}
.classic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
}
.classic-table th,
.classic-table td {
    padding: 12px 14px;
    border: 1px solid #dddddd;
    text-align: left;
    vertical-align: middle;
}
.classic-table thead th {
    background: var(--navy);
    color: #ffffff;
    font-weight: 600;
}
.classic-table tbody tr:nth-child(even) {
    background: #f9fafb;
}
.price-cell {
    white-space: nowrap;
}
.table-footnote {
    font-size: 13px;
    color: #666666;
    margin: 8px 0 0;
}

.clients-table .client-logo-col {
    width: 240px;
    text-align: center;
    background: #fafafa;
}
.client-logo-link {
    display: inline-block;
    margin-top: 10px;
}
.client-logo-link img {
    max-width: 200px;
    margin: 0 auto;
}

/* ---------- Referencje ---------- */
.classic-quote {
    margin: 0;
    padding: 18px 22px;
    border-left: 4px solid var(--navy);
    background: #f8fafc;
    font-style: italic;
    font-size: 16px;
}
.classic-quote p { margin: 0; }

/* ---------- Realizacje (układ 2x2 kategorii + pełna galeria + Lightbox) ---------- */
.gallery-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.gallery-cat-box {
    border: 1px solid #e0e0e0;
    background: #fafafa;
    padding: 16px;
    text-align: center;
}
.gallery-cat-link {
    display: block;
    text-decoration: none;
}
.gallery-cat-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: var(--link-blue);
    margin-bottom: 10px;
}
.gallery-cat-thumb {
    max-width: 220px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #cccccc;
}
.gallery-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-cat-count {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #555555;
}

.classic-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 26px 0;
}

.gallery-section {
    margin-bottom: 28px;
    scroll-margin-top: 20px;
}
.gallery-section:last-child { margin-bottom: 0; }
.gallery-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e6e6e6;
}
.gallery-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.gallery-photo-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #d8d8d8;
    background: #eeeeee;
}
.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.gallery-photo-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}
.lightbox-inner img {
    max-width: 90vw;
    max-height: 78vh;
    margin: 0 auto;
    border: 2px solid #ffffff;
}
.lightbox-inner p {
    color: #ffffff;
    margin: 10px 0 0;
    font-size: 14px;
}
.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 18px; right: 18px; font-size: 28px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Mapa na stronie Kontakt ---------- */
.map-frame {
    margin-top: 18px;
    border: 1px solid #999999;
    height: 420px;
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---------- Stopka ---------- */
.site-footer {
    background: var(--navy);
    color: #cde0f5;
    font-size: 13px;
    padding: 16px 0;
    border-top: 1px solid #062f59;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.site-footer a { color: #ffffff; }
.site-footer .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Responsywność (tablety i telefony) ---------- */
@media (max-width: 900px) {
    .content-columns {
        grid-template-columns: 1fr;
    }
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .nav-container {
        justify-content: flex-end;
    }
    .nav-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        border-top: 1px solid rgba(255,255,255,0.15);
    }
    .main-nav.open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
    }
    .main-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .hero-logo-box {
        position: static;
        margin: 0 auto 14px;
    }
    .hero-inner {
        padding-top: 18px;
    }
    .content-card {
        padding: 20px 18px;
    }
    .clients-table tr,
    .clients-table td {
        display: block;
        width: 100%;
    }
    .clients-table .client-logo-col {
        width: 100%;
    }
    .gallery-categories-grid {
        grid-template-columns: 1fr;
    }
    .gallery-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
