/* ===========================================
   Walentyna Latosi - Custom Styles
   Dokładne odwzorowanie oryginalnego template
   =========================================== */

/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Główny kontener - tło strony */
#art-main {
    background: #E5CA8A url('../images/page.webp') top center no-repeat fixed;
    background: url('../images/pageglare.png') top right no-repeat, url('../images/page.webp') top center no-repeat, #E5CA8A;
    background-attachment: fixed, fixed, scroll !important;
    margin: 0 auto;
    font-size: 13px;
    font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
    font-weight: normal;
    position: relative;
    width: 100%;
    min-height: 100%;
    text-align: justify;
}

/* Główny arkusz - ograniczenie szerokości */
.art-sheet {
    background: transparent;
    margin: 0 auto;
    position: relative;
    width: 900px;
    z-index: auto !important;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* ===========================================
   NAWIGACJA
   =========================================== */

.art-nav {
    padding: 3px;
    margin: 0 auto;
    position: relative;
    z-index: 499;
    text-align: right;
}

ul.art-hmenu {
    display: inline-block;
    vertical-align: middle;
    float: right;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.art-hmenu li {
    position: relative;
    display: block;
    float: left;
    margin-left: 9px;
}

ul.art-hmenu>li:first-child {
    margin-left: 4px;
}

ul.art-hmenu>li:last-child {
    margin-right: 4px;
}

/* Separator między elementami menu */
ul.art-hmenu>li:before {
    position: absolute;
    display: block;
    content: ' ';
    top: 0;
    left: -9px;
    width: 9px;
    height: 26px;
    background: url('../images/menuseparator.png') center center no-repeat;
}

ul.art-hmenu>li:first-child:before {
    display: none;
}

/* Linki menu */
ul.art-hmenu>li>a {
    padding: 0 12px;
    margin: 0 auto;
    position: relative;
    display: block;
    height: 26px;
    cursor: pointer;
    text-decoration: none;
    color: #795D1B;
    line-height: 26px;
    text-align: center;
    font-size: 15px;
    font-family: 'Book Antiqua', Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
    font-weight: bold;
    font-style: italic;
}

/* Aktywny link */
ul.art-hmenu>li>a.active {
    background: #795D1B;
    color: #E5CA8A;
}

/* Hover */
ul.art-hmenu>li>a:hover {
    background: #795D1B;
    color: #E5CA8A;
    text-decoration: none;
}

/* ===========================================
   HEADER - NAGŁÓWEK Z LOGO
   =========================================== */

.art-header {
    margin: 0 auto;
    background-repeat: no-repeat;
    height: 150px;
    background-image: url('../images/header.png');
    background-position: 0 0;
    position: relative;
    z-index: auto !important;
}

.art-shapes {
    /* Placeholder dla kształtów */
}

/* Logo */
.art-headline {
    display: inline-block;
    position: absolute;
    min-width: 50px;
    top: 51px;
    left: 1.7%;
    margin-left: -1px !important;
    line-height: 100%;
    z-index: 101;
}

.art-headline a {
    text-decoration: none;
    padding: 0;
    margin: 0;
}

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

/* ===========================================
   SLIDESHOW / CAROUSEL
   =========================================== */

.art-post {
    margin: 0;
    padding: 0;
}

.art-postcontent {
    padding: 0;
    margin: 20px 0;
}

.carousel.wk-slideshow {
    margin: 0 auto;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Przyciski karuzeli */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(121, 93, 27, 0.8);
    border-radius: 50%;
    padding: 20px;
}

/* ===========================================
   LAYOUT / CONTENT
   =========================================== */

.art-layout-wrapper {
    position: relative;
    margin: 0 auto;
    z-index: auto !important;
}

.art-content-layout {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.art-content-layout-row {
    display: table-row;
}

.art-layout-cell {
    display: table-cell;
    vertical-align: top;
}

.art-content {
    /* Główna zawartość */
}

/* ===========================================
   FOOTER - STOPKA
   =========================================== */

.art-footer {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
    color: #67636E;
}

.art-nostyle {
    padding: 10px 0;
}

.art-footer a {
    color: #B6B4BB;
    text-decoration: underline;
    letter-spacing: 1px;
}

.art-footer a:hover {
    color: #E5CA8A;
    text-decoration: none;
}

.art-footer img {
    vertical-align: middle;
    margin: 0 5px;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */

p {
    margin: 12px 0;
}

a {
    color: #B6B4BB;
    text-decoration: underline;
    letter-spacing: 1px;
}

a:hover {
    color: #E5CA8A;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Georgia, Times, Serif;
    text-transform: uppercase;
    font-weight: normal;
}

/* ===========================================
   MOBILE MENU - PRZYCISK HAMBURGER
   =========================================== */

/* Przycisk hamburger - ukryty domyślnie */
.mobile-menu-toggle {
    display: none;
}

/* ===========================================
   RESPONSYWNOŚĆ - NOWOCZESNE MOBILE MENU
   =========================================== */

@media (max-width: 900px) {
    .art-sheet {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .art-nav {
        position: relative;
        min-height: 60px;
    }
    
    /* Przycisk hamburger menu - nowoczesny design */
    .mobile-menu-toggle {
        display: block;
        background: linear-gradient(135deg, #795D1B 0%, #5a4515 100%);
        border: none;
        padding: 12px;
        cursor: pointer;
        position: absolute;
        right: 15px;
        top: 10px;
        z-index: 1000;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(121, 93, 27, 0.3);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        width: 46px;
        height: 46px;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(121, 93, 27, 0.4);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #E5CA8A;
        margin: 5px auto;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-radius: 2px;
    }

    .mobile-menu-toggle.active {
        background: linear-gradient(135deg, #8b6e22 0%, #6b5318 100%);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Menu mobilne - nowoczesny slide-in */
    ul.art-hmenu {
        display: none;
        float: none;
        width: calc(100% + 20px);
        margin-left: -10px;
        margin-right: -10px;
        background: linear-gradient(180deg, rgba(121, 93, 27, 0.98) 0%, rgba(90, 69, 21, 0.98) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 999;
        padding: 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    ul.art-hmenu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    @keyframes slideDown {
        0% {
            transform: translateY(-20px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    ul.art-hmenu li {
        float: none;
        display: block;
        margin: 0;
        border-bottom: 1px solid rgba(229, 202, 138, 0.15);
        opacity: 0;
        transform: translateX(-20px);
        animation: slideIn 0.3s forwards;
    }
    
    ul.art-hmenu.active li:nth-child(1) { animation-delay: 0.1s; }
    ul.art-hmenu.active li:nth-child(2) { animation-delay: 0.15s; }
    ul.art-hmenu.active li:nth-child(3) { animation-delay: 0.2s; }
    ul.art-hmenu.active li:nth-child(4) { animation-delay: 0.25s; }
    ul.art-hmenu.active li:nth-child(5) { animation-delay: 0.3s; }
    
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    ul.art-hmenu li:last-child {
        border-bottom: none;
    }
    
    ul.art-hmenu>li>a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 16px 25px;
        color: #E5CA8A;
        font-size: 16px;
        height: auto;
        line-height: 1.4;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    ul.art-hmenu>li>a:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: #E5CA8A;
        transform: translateX(-4px);
        transition: transform 0.3s ease;
    }
    
    ul.art-hmenu>li>a.active:before,
    ul.art-hmenu>li>a:hover:before {
        transform: translateX(0);
    }
    
    ul.art-hmenu>li>a.active,
    ul.art-hmenu>li>a:hover {
        background: rgba(229, 202, 138, 0.15);
        color: #FFF;
        padding-left: 30px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    ul.art-hmenu>li>a.active {
        background: rgba(229, 202, 138, 0.25);
        font-weight: bold;
    }
    
    ul.art-hmenu>li:before {
        display: none;
    }
    
    .art-headline {
        position: static;
        text-align: center;
        margin: 20px 0 !important;
        left: auto;
    }
    
    .art-header {
        height: auto;
        min-height: 150px;
        background-size: cover;
        padding-top: 70px;
    }
}

@media (max-width: 600px) {
    .mobile-menu-toggle {
        right: 10px;
        width: 42px;
        height: 42px;
        padding: 10px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
    }
    
    ul.art-hmenu>li>a {
        font-size: 15px;
        padding: 14px 20px;
    }
    
    ul.art-hmenu>li>a.active,
    ul.art-hmenu>li>a:hover {
        padding-left: 25px;
    }
    
    .art-footer {
        font-size: 11px;
    }
    
    .art-header {
        padding-top: 60px;
    }
}

/* ===========================================
   NADPISANIA BOOTSTRAP
   =========================================== */

/* Usuwamy zbędne style Bootstrap dla naszego layoutu */
.carousel {
    margin-bottom: 0;
}

/* Zachowujemy tylko funkcjonalność Bootstrap carousel */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Białe tło dla treści - dodaj na końcu pliku przed media queries */

.page-header-img {
    margin-bottom: 20px;
    display: block;
}

.content-box {
    background: #FFFFFF;
    padding: 30px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-box .art-article {
    color: #333;
    line-height: 1.8;
}

.content-box .art-article p {
    margin-bottom: 15px;
}

.content-box .art-article strong {
    color: #795D1B;
}

.content-box .art-article em {
    color: #555;
}

/* ===========================================
   GALERIA OBRAZÓW - STYL JAK ORYGINAŁ
   =========================================== */

.wk-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin: 30px 0;
}

.wk-gallery.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.gallery-item {
    display: inline-block;
    width: 201px;
    height: 201px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 201px;
    height: 201px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-footer {
    text-align: justify;
    margin-top: 20px;
    color: #67636E;
    font-size: 13px;
}

/* ===========================================
   LIGHTBOX - DOSTOSOWANIE
   =========================================== */

/* Customizacja GLightbox */
.glightbox-clean .gslide-description {
    background: rgba(121, 93, 27, 0.95);
    padding: 15px;
    color: #E5CA8A;
    font-size: 14px;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(121, 93, 27, 0.9);
    color: #E5CA8A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: rgba(121, 93, 27, 1);
    transform: scale(1.1);
}

.glightbox-clean .gclose {
    background: rgba(121, 93, 27, 0.9);
    color: #E5CA8A;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.glightbox-clean .gclose:hover {
    background: rgba(121, 93, 27, 1);
    transform: scale(1.1);
}

/* Responsywne przyciski lightbox */
@media (max-width: 768px) {
    .glightbox-clean .gnext,
    .glightbox-clean .gprev {
        width: 40px;
        height: 40px;
    }
    
    .glightbox-clean .gclose {
        width: 35px;
        height: 35px;
    }
}

/* ===========================================
   STRONA KONTAKT - FORMULARZ
   =========================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form-wrapper {
    padding-right: 20px;
}

.contact-info-wrapper {
    padding-left: 20px;
    border-left: 1px solid #E5CA8A;
}

.contact-form .form-info {
    background: #FFF8E7;
    padding: 10px 15px;
    border-left: 4px solid #795D1B;
    margin-bottom: 20px;
    font-size: 13px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #795D1B;
    font-size: 14px;
}

.contact-form .required_field {
    color: #B60C0E;
    font-weight: bold;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #795D1B;
    box-shadow: 0 0 5px rgba(121, 93, 27, 0.2);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #67636E;
    margin-top: 5px;
}

.captcha-group {
    background: #FFF8E7;
    padding: 15px;
    border-radius: 4px;
}

.captcha-input {
    max-width: 100px;
}

.contact-form .btn-primary {
    background: linear-gradient(to bottom, #B60C0E 0, #690708 100%);
    color: #E5CA8A;
    border: 1px solid #9B9D9B;
    padding: 10px 30px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.25);
}

.contact-form .btn-primary:hover {
    background: linear-gradient(to bottom, #D60E10 0, #8B0909 100%);
    transform: translateY(-2px);
    box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.3);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.contact-info-wrapper img {
    float: left;
    margin: 0 20px 15px 0;
}

.contact-info-wrapper p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

/* Responsywność */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 0;
        border: none;
    }
    
    .contact-info-wrapper {
        border-top: 1px solid #E5CA8A;
        padding-top: 30px;
    }
}

@media (max-width: 600px) {
    .contact-info-wrapper img {
        float: none;
        display: block;
        margin: 0 auto 15px;
    }
}