/* frontend.css */
/* /home/tnmwebd2/public_html/www/zaklad-kamieniarski-czestochowa.pl/assets/css/frontend.css */
/* Ostatnia aktualizacja: 2026-07-24 21:53:47 Europe/Warsaw */

:root {
    --front-black: #151513;
    --front-white: #ffffff;
    --front-light: #f3f1eb;
    --front-sand: #ddd3c2;
    --front-gold: #bda16c;
    --front-gray: #666760;
    --front-border: rgba(21, 21, 19, 0.14);
}

body {
    margin: 0;
    background: var(--front-light);
    color: var(--front-black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
}

.front-header {
    position: fixed;
    z-index: 1030;
    top: 0;
    right: 0;
    left: 0;
    padding: 0.6rem 0;
    background: rgba(18, 18, 16, 0.9);
}

.front-header.is-scrolled {
    background: rgba(18, 18, 16, 0.98);
    box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.2);
}

.front-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--front-white);
    text-decoration: none;
}

.front-logo:hover {
    color: var(--front-white);
}

.front-logo__symbol {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.15rem;
    transform: rotate(45deg);
}

.front-logo__symbol i {
    display: block;
    background: var(--front-gold);
}

.front-logo__symbol i:first-child {
    grid-row: span 2;
}

.front-logo > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.front-logo strong {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
}

.front-logo small {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.front-header .nav-link {
    color: rgba(255, 255, 255, 0.72);
}

.front-header .nav-link:hover {
    color: var(--front-white);
}

.front-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--front-gold);
    background: var(--front-gold);
    color: var(--front-black);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

.front-button--small {
    min-height: 2.4rem;
    padding: 0.45rem 0.8rem;
}

.front-button--outline {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: var(--front-white);
}

.front-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--front-black);
    color: var(--front-white);
}

.front-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(10, 10, 9, 0.94),
            rgba(10, 10, 9, 0.62),
            rgba(10, 10, 9, 0.18)
        ),
        linear-gradient(
            0deg,
            rgba(10, 10, 9, 0.82),
            transparent
        );
}

.front-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.front-label {
    margin-bottom: 1rem;
    color: var(--front-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.front-label--dark {
    color: #897246;
}

.front-hero h1,
.front-page-header h1 {
    max-width: 14ch;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.96;
}

.front-hero__lead {
    max-width: 46rem;
    margin-top: 1.8rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.2rem;
}

.front-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.front-section {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.front-section--white {
    background: var(--front-white);
}

.front-section--sand {
    background: var(--front-sand);
}

.front-intro {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(3rem, 8vw, 8rem);
}

.front-intro h2,
.front-heading h2,
.front-album h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.03;
}

.front-heading {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.front-heading > a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.front-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 14rem;
    gap: 0.8rem;
}

.front-preview a {
    position: relative;
    overflow: hidden;
    background: #ddd;
}

.front-preview a:first-child,
.front-preview a:nth-child(5) {
    grid-row: span 2;
    grid-column: span 2;
}

.front-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.front-preview a:hover img {
    transform: scale(1.05);
}

.front-preview span,
.front-gallery-grid span {
    position: absolute;
    z-index: 2;
    right: 1rem;
    bottom: 0.8rem;
    left: 1rem;
    color: var(--front-white);
    font-family: Georgia, serif;
    font-size: 1.15rem;
}

.front-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.front-featured article {
    position: relative;
    min-height: 30rem;
    overflow: hidden;
    background: #222;
    color: var(--front-white);
}

.front-featured article > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-featured article > div {
    position: absolute;
    z-index: 2;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    padding-top: 6rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.front-featured h3 {
    font-family: Georgia, serif;
    font-size: 2.6rem;
    font-weight: 400;
}

.front-featured a {
    color: var(--front-white);
}

.front-page-header {
    padding: 10rem 0 5rem;
    background: var(--front-black);
    color: var(--front-white);
}

.front-page-lead {
    max-width: 52rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.front-page-content {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 5rem);
    background: var(--front-white);
}

.front-cms h2,
.front-cms h3,
.front-cms h4 {
    margin-top: 2rem;
    font-family: Georgia, serif;
    font-weight: 400;
}

.front-cms img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
}

.front-cms table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.front-cms th,
.front-cms td {
    padding: 0.8rem;
    border: 1px solid var(--front-border);
}

.front-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 4rem;
}

.front-filter a {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--front-border);
    color: var(--front-black);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.front-filter a.is-active {
    background: var(--front-black);
    color: var(--front-white);
}

.front-album {
    padding: 1rem 0 5rem;
}

.front-album + .front-album {
    padding-top: 5rem;
    border-top: 1px solid var(--front-border);
}

.front-album.is-hidden {
    display: none;
}

.front-album > header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.front-album-description {
    max-width: 850px;
    margin-bottom: 2rem;
}

.front-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.front-gallery-grid a {
    position: relative;
    min-height: 20rem;
    overflow: hidden;
    background: #ddd;
}

.front-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.front-gallery-grid a:hover img {
    transform: scale(1.05);
}

.front-empty {
    padding: 3rem;
    border: 1px dashed var(--front-border);
    background: var(--front-light);
    text-align: center;
}

.front-footer {
    padding: 5rem 0 2rem;
    background: #0c0c0b;
    color: var(--front-white);
}

.front-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 3rem;
}

.front-footer p,
.front-footer li a,
.front-footer address a,
.front-footer address span {
    color: rgba(255, 255, 255, 0.58);
}

.front-footer h2 {
    color: var(--front-gold);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.front-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.front-footer address {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-style: normal;
}

.front-footer__bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.75rem;
}

.front-footer__bottom a {
    color: inherit;
}

.front-debug {
    position: fixed;
    z-index: 9999;
    right: 10px;
    bottom: 10px;
    width: min(520px, calc(100vw - 20px));
    max-height: 45vh;
    overflow: auto;
    padding: 15px;
    border: 2px solid #c00;
    background: #fff;
    color: #000;
    font: 13px/1.4 monospace;
}

.front-debug pre {
    white-space: pre-wrap;
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

@media (max-width: 991px) {
    .front-intro,
    .front-featured,
    .front-footer__grid {
        grid-template-columns: 1fr;
    }

    .front-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .front-preview a:first-child,
    .front-preview a:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .front-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .front-actions,
    .front-heading,
    .front-album > header,
    .front-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .front-preview,
    .front-gallery-grid {
        grid-template-columns: 1fr;
    }

    .front-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .front-filter a {
        flex: 0 0 auto;
    }
}

/* =========================================================
   LIGHTBOX GALERII
========================================================= */

body.front-lightbox-open {
    overflow: hidden;
}

.front-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 5, 5, 0.94);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.front-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.front-lightbox__dialog {
    position: relative;
    display: flex;
    width: min(100%, 1500px);
    height: min(92vh, 1000px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: none;
}

.front-lightbox__stage {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
}

.front-lightbox__image {
    display: block;
    max-width: calc(100% - 8rem);
    max-height: calc(92vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.985);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.front-lightbox__image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.front-lightbox__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.7rem;
    height: 2.7rem;
    margin: -1.35rem 0 0 -1.35rem;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: var(--front-gold);
    border-radius: 50%;
    animation: front-lightbox-spin 0.8s linear infinite;
}

.front-lightbox__loader.is-hidden {
    display: none;
}

.front-lightbox__close,
.front-lightbox__previous,
.front-lightbox__next {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(13, 13, 12, 0.72);
    color: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.front-lightbox__close:hover,
.front-lightbox__previous:hover,
.front-lightbox__next:hover,
.front-lightbox__close:focus,
.front-lightbox__previous:focus,
.front-lightbox__next:focus {
    border-color: var(--front-gold);
    background: var(--front-gold);
    color: var(--front-black);
    outline: none;
}

.front-lightbox__close {
    top: 0;
    right: 0;
    width: 3rem;
    height: 3rem;
    font-size: 1.9rem;
    line-height: 1;
}

.front-lightbox__previous,
.front-lightbox__next {
    top: 50%;
    width: 3.4rem;
    height: 4.8rem;
    margin-top: -2.4rem;
    font-size: 2.2rem;
    line-height: 1;
}

.front-lightbox__previous {
    left: 0;
}

.front-lightbox__next {
    right: 0;
}

.front-lightbox__previous.is-hidden,
.front-lightbox__next.is-hidden {
    display: none;
}

.front-lightbox__footer {
    display: grid;
    width: min(100%, 1100px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: end;
    padding-top: 1rem;
    color: #ffffff;
}

.front-lightbox__caption {
    min-width: 0;
    font-family: Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.35;
}

.front-lightbox__counter {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-transform: uppercase;
}

.front-preview a,
.front-gallery-grid a {
    cursor: zoom-in;
}

@keyframes front-lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .front-lightbox {
        padding: 0.75rem;
    }

    .front-lightbox__dialog {
        height: 96vh;
    }

    .front-lightbox__image {
        max-width: 100%;
        max-height: calc(96vh - 9rem);
    }

    .front-lightbox__close {
        top: 0.25rem;
        right: 0.25rem;
    }

    .front-lightbox__previous,
    .front-lightbox__next {
        top: auto;
        bottom: 0;
        width: 3rem;
        height: 3rem;
        margin-top: 0;
        font-size: 1.8rem;
    }

    .front-lightbox__previous {
        left: 0;
    }

    .front-lightbox__next {
        right: 0;
    }

    .front-lightbox__footer {
        min-height: 4.5rem;
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding-right: 3.6rem;
        padding-left: 3.6rem;
        text-align: center;
    }

    .front-lightbox__counter {
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-lightbox,
    .front-lightbox__image {
        transition: none;
    }

    .front-lightbox__loader {
        animation-duration: 1.5s;
    }
}
