/*========================================================
    Visual Upgrade - Malarstwo Sakralne v1.13
    Additive stylesheet - only extends v1.12
=========================================================*/

/* -------------------------------------------------------
   1. FIX: brakujące zmienne CSS (powodowały błędy wizualne)
   ------------------------------------------------------- */
:root {
    --foo: rgba(255, 255, 255, 0.35);
    --red: var(--sienna);
    --blue: var(--mainh1);
    --bluebg: #2c2f36;
    --light-black: #1e2026;
    --lightblue: var(--sienna);
}

/* -------------------------------------------------------
   2. Globalne usprawnienia
   ------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'barlowregular';
    src: url("../fonts/Barlow-Regular.ttf") format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'barlowmedium';
    src: url("../fonts/Barlow-Medium.ttf") format('truetype');
    font-display: swap;
}

img {
    max-width: 100%;
}

/* -------------------------------------------------------
   3. Nawigacja - sticky + animacja hover
   ------------------------------------------------------- */
.top {
    position: sticky;
    top: 0;
    z-index: 9000;
    background: var(--black);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
}

.menu ul li.dlink {
    position: relative;
}
.menu ul li.dlink a {
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}
.menu ul li.dlink a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sienna);
    transition: width 0.3s ease;
}
.menu ul li.dlink:hover a::after {
    width: 100%;
}
.menu ul li.dlink a:hover {
    color: var(--sienna);
    transition: color 0.25s ease;
}

/* Numer telefonu w nagłówku */
.telTopNum a:hover p {
    color: var(--sienna);
    transition: color 0.25s ease;
}
.fateltop {
    color: var(--sienna);
}

/* -------------------------------------------------------
   4. Tytuły sekcji - złota linia dekoracyjna
   ------------------------------------------------------- */
.subMainTit h1::after {
    content: '';
    display: block;
    width: 55px;
    height: 2px;
    background: var(--sienna);
    margin: 18px auto 0;
}

.indAboutLeft h3::after,
.boxesSliTLeft h2::after,
.onsecLeft h3::after {
    content: '';
    display: block;
    width: 45px;
    height: 2px;
    background: var(--sienna);
    margin: 16px 0 0;
}

.kontWrap h3::after {
    content: '';
    display: block;
    width: 45px;
    height: 2px;
    background: var(--sienna);
    margin: 18px auto 0;
}

/* -------------------------------------------------------
   5. Przyciski - lepsze efekty hover
   ------------------------------------------------------- */
.bannerBtn {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, letter-spacing 0.3s ease, transform 0.2s ease;
}
.bannerBtn:hover {
    background: var(--sienna);
    letter-spacing: 1px;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.galBtn {
    transition: background-color 0.3s ease, letter-spacing 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.galBtn:hover {
    background: var(--sienna);
    letter-spacing: 3px;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* -------------------------------------------------------
   6. Miniatury wideo - nakładka play
   ------------------------------------------------------- */
.vidsec1Video a,
.mbsec1Video a {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.vidsec1Video a img,
.mbsec1Video a img {
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
    width: 100%;
}

.vidsec1Video a:hover img,
.mbsec1Video a:hover img {
    transform: scale(1.04);
    filter: brightness(0.75);
}

.vidsec1Video a::after,
.mbsec1Video a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/32px no-repeat;
    border-radius: 50%;
    border: 2.5px solid var(--sienna);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
}

.vidsec1Video a:hover::after,
.mbsec1Video a:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    border-color: #fff;
}

/* -------------------------------------------------------
   7. Galeria obrazów - hover z nakładką
   ------------------------------------------------------- */
.simplegal .grid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.simplegal .grid:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.simplegal .grid img {
    transition: transform 0.5s ease, filter 0.4s ease;
}
.simplegal .grid:hover img {
    filter: brightness(0.88);
}

/* -------------------------------------------------------
   8. Kafelki "nasze prace" - hover card
   ------------------------------------------------------- */
.praceBox {
    transition: transform 0.3s ease;
    border-radius: 2px;
}
.praceBox:hover {
    transform: translateY(-5px);
}
.praceBox img {
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.praceBox:hover img {
    opacity: 0.9;
    filter: brightness(1.05);
}

/* -------------------------------------------------------
   9. Karuzela boxów na stronie głównej
   ------------------------------------------------------- */
.boxSlider {
    overflow: hidden;
    position: relative;
}
.boxSlider img {
    transition: transform 0.4s ease;
}
.boxSlider:hover img {
    transform: scale(1.04);
}
.boxSlider h3 {
    transition: color 0.25s ease;
}
.boxSlider:hover h3 {
    color: var(--sienna);
}

/* -------------------------------------------------------
   10. Footer - ikonki społecznościowe
   ------------------------------------------------------- */
.foosocIco {
    border-color: var(--foo);
    transition: border-color 0.3s ease, transform 0.25s ease, background 0.3s ease;
}
.foosocIco:hover {
    border-color: var(--sienna) !important;
    background: rgba(193, 182, 150, 0.1);
    transform: translateY(-3px);
}
.foosocIco:hover .foosocico {
    color: var(--sienna) !important;
    transition: color 0.25s ease;
}

/* Linki nawigacyjne w stopce */
.fooCol2 ul li.dlink a:hover {
    color: var(--sienna) !important;
    transition: color 0.25s ease;
}

/* -------------------------------------------------------
   11. Sekcja "O nas" na stronie głównej - wyróżnienie
   ------------------------------------------------------- */
.indaboutbg {
    border-top: 3px solid var(--sienna);
    border-bottom: 3px solid var(--sienna);
}

/* -------------------------------------------------------
   12. Link w górnym pasku - numer telefonu mobile
   ------------------------------------------------------- */
.telMob img {
    transition: opacity 0.25s ease;
}
.telMob img:hover {
    opacity: 0.75;
}

/* -------------------------------------------------------
   13. Accordion FAQ - lepszy efekt otwierania
   ------------------------------------------------------- */
.faqWrap .accordion {
    transition: background-color 0.3s ease, padding-left 0.2s ease;
}
.faqWrap .accordion:hover {
    padding-left: 40px;
}
.faqWrap .active {
    border-left: 3px solid var(--sienna);
}

/* -------------------------------------------------------
   14. Sekcja kontakt - lepsza czytelność numeru
   ------------------------------------------------------- */
.telKont .telKontNum p {
    transition: color 0.25s ease;
}
.telKont:hover .telKontNum p {
    color: var(--sienna);
}
.fatelkont {
    color: var(--sienna);
}

/* -------------------------------------------------------
   15. Responsive - uzupełnienie pustych breakpointów
   ------------------------------------------------------- */
@media only screen and (max-width: 479px) {
    .vidsec1Video a::after,
    .mbsec1Video a::after {
        width: 56px;
        height: 56px;
        background-size: 24px;
    }

    .subMainTit h1::after {
        margin-top: 12px;
    }

    .bannerBtn:hover {
        letter-spacing: 0.5px;
    }
}

@media only screen and (max-width: 767px) {
    .top {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .menu ul li.dlink a::after {
        display: none;
    }

    .indAboutLeft h3::after,
    .onsecLeft h3::after {
        margin: 12px auto 0;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .vidsec1Video a::after,
    .mbsec1Video a::after {
        width: 60px;
        height: 60px;
    }
}
