/*
Theme Name: Kluczek RELAX – wersja 1:1
Theme URI: https://kluczek.com.pl/
Author: NotAngrySoftware
Description: Wierne (1:1) odwzorowanie dotychczasowej strony Gospodarstwa Agroturystycznego RELAX (Perzanowo) przeniesionej z WebWave do WordPressa. Treści w blokach (Gutenberg), formularz rezerwacji (Contact Form 7 lub wbudowany), mapa Google, licznik, pasek cookies.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: kluczek
*/

:root{--kl-green:#00ad00;--kl-text:#333;--kl-gray:#f0f0f0;--kl-wrap:1200px;--kl-font:Tahoma,Geneva,Verdana,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.4;color:var(--kl-text);background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:var(--kl-green)}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.kl-wrap{max-width:var(--kl-wrap);margin:0 auto;padding:0 0}
.kl-main{display:block}
.kl-main > *:not(.alignfull):not(.kl-full){max-width:var(--kl-wrap);margin-left:auto;margin-right:auto}

/* ---------- Nagłówek ---------- */
.kl-header{position:fixed;top:0;left:0;right:0;z-index:100;height:60px;transition:background .3s,box-shadow .3s}
.kl-header .kl-wrap{display:flex;align-items:flex-start;justify-content:space-between;height:60px;position:relative}
.kl-brand{display:block;color:#fff;text-decoration:none;font-family:var(--kl-font);font-weight:bold;font-size:15px;line-height:28px;padding:7px 10px 0;letter-spacing:0;text-transform:uppercase;transition:all .3s}
.kl-brand b{font-weight:bold}
.kl-header.is-stuck{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.kl-header.is-stuck .kl-brand{background:var(--kl-green);border-radius:10px;text-transform:none;font-weight:normal;font-size:20px;line-height:45px;height:45px;padding:0 14px;margin-top:7px;min-width:300px;text-align:center}
.kl-header.is-stuck .kl-brand b{font-weight:bold}
.kl-brand .kl-brand-short{display:none}
.kl-nav{margin-top:2px}
.kl-menu{list-style:none;margin:0;padding:0;display:flex}
.kl-menu li{position:relative}
.kl-menu > li > a{display:block;padding:12px 20px;color:#fff;text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-weight:bold;font-size:12px;text-transform:uppercase;letter-spacing:0;line-height:22px}
.kl-header.is-stuck .kl-menu > li > a{color:#333;padding-top:18px}
.kl-menu > li > a:hover{color:var(--kl-green)}
.kl-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:120px;list-style:none;margin:0;padding:6px 0 0;background:transparent}
.kl-menu li:hover > .sub-menu,.kl-menu li:focus-within > .sub-menu{display:block}
.kl-menu .sub-menu a{display:block;padding:9px 20px;color:#fff;text-decoration:none;font-size:12px;font-weight:bold;text-transform:uppercase;line-height:21px;text-shadow:0 0 3px rgba(0,0,0,.25)}
.kl-header.is-stuck .kl-menu .sub-menu{background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.kl-header.is-stuck .kl-menu .sub-menu a{color:#333;text-shadow:none}
.kl-menu .sub-menu a:hover,.kl-header.is-stuck .kl-menu .sub-menu a:hover{color:var(--kl-green)}
.kl-menu li:hover > a{color:var(--kl-green)}
.kl-burger{display:none;background:none;border:0;width:50px;height:50px;padding:10px;cursor:pointer}
.kl-burger span{display:block;height:4px;margin:6px 0;background:#fff;border-radius:2px}
.kl-header.is-stuck .kl-burger span{background:#444}
.admin-bar .kl-header{top:32px}
/* Menu zawsze widoczne: na zdjęciu białe (z cieniem dla czytelności), po przewinięciu biały pasek */
.kl-header:not(.is-stuck) .kl-brand,.kl-header:not(.is-stuck) .kl-menu > li > a{text-shadow:0 1px 4px rgba(0,0,0,.55)}
.kl-header:not(.is-stuck) .kl-burger span{box-shadow:0 1px 3px rgba(0,0,0,.45)}
.kl-main a{text-decoration:none}

/* ---------- Hero (strona główna) ---------- */
.kl-main .kl-hero.wp-block-cover{min-height:100vh;padding:0 113px;margin:0}
.kl-hero .wp-block-cover__inner-container{width:100%;max-width:1200px}
.kl-hero h1{font-family:Verdana,Geneva,sans-serif;font-size:55px;line-height:66px;font-weight:bold;color:#fff;margin:0 0 50px;text-align:center}

/* ---------- Baner podstron ---------- */
.kl-banner{position:relative;height:286px;background:#555 center/cover no-repeat;display:flex;align-items:flex-start;justify-content:center}
.kl-banner::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45)}
.kl-banner h1{position:relative;margin:112px 0 0;color:#fff;font-family:var(--kl-font);font-size:32px;line-height:38px;font-weight:bold;text-transform:uppercase;text-align:center}
.kl-banner h1::after{content:"";display:block;width:100px;height:3px;background:var(--kl-green);margin:8px auto 0}

/* ---------- Ikony / cechy ---------- */
.kl-features{display:flex;justify-content:center;gap:22px;padding:74px 0 20px;max-width:986px;margin:0 auto}
.kl-feature{width:230px;text-align:center}
.kl-feature .kl-circle{width:150px;height:150px;border-radius:50%;background:var(--kl-green);margin:0 auto 19px;display:flex;align-items:center;justify-content:center}
.kl-feature .kl-circle svg{width:78px;height:78px}
.kl-feature h3{font-family:Arial,Helvetica,sans-serif;font-weight:normal;font-size:20px;line-height:24px;color:#333;margin:0 0 24px}
.kl-feature p{font-style:italic;font-size:13px;line-height:16px;color:#333;margin:0 auto;max-width:190px}

/* ---------- Poznaj nas ---------- */
.kl-main .kl-about{background:var(--kl-gray);padding:26px 0 70px;margin:0}
.kl-about > *{max-width:1041px;margin-left:auto;margin-right:auto}
.kl-about h2,.kl-h2{font-family:Arial,Helvetica,sans-serif;font-weight:normal;font-size:36px;line-height:43px;text-align:center;color:#333;margin:30px 0 0}
.kl-bar::after,.kl-about h2::after{content:"";display:block;width:100px;height:3px;background:var(--kl-green);margin:24px auto 18px}
.kl-about a{text-decoration:none}
.kl-about p{font-family:var(--kl-font);font-size:17px;line-height:24px;text-align:justify;margin:0 0 24px}
.kl-about .wp-block-columns{max-width:1100px;margin:46px auto 0;gap:30px}
.kl-about .kl-list-title{font-family:var(--kl-font);font-weight:bold;font-size:17px;text-align:left;margin:0 0 18px}
ul.kl-checks{list-style:none;margin:0;padding:0 0 0 0}
ul.kl-checks li{position:relative;padding:10px 0 10px 45px;min-height:40px;line-height:20px;font-family:var(--kl-font);font-size:17px;margin:0 0 16px}
ul.kl-checks li::before{content:"";position:absolute;left:0;top:50%;margin-top:-20px;width:40px;height:40px;background:url("assets/icons/check.svg") center/26px no-repeat}
.kl-checks .kl-muted{color:#999}

/* ---------- Kafle zdjęć ---------- */
.kl-main .wp-block-gallery.kl-tiles{display:flex;flex-wrap:nowrap;--wp--style--unstable-gallery-gap:0px!important;gap:0!important;margin:0 0 20px}
.kl-tiles.wp-block-gallery figure.wp-block-image{flex:1 1 33.333%!important;width:33.333%!important;margin:0!important;height:280px}
.kl-tiles.wp-block-gallery figure.wp-block-image:not(#individual-image) img{width:100%;height:280px!important;object-fit:cover}

/* ---------- Przyciski ---------- */
.wp-block-button__link,.kl-btn,.kl-form .wpcf7-submit,.kl-form button{display:inline-block;background:var(--kl-green);color:#fff;border:0;border-radius:10px;font-family:Arial,Helvetica,sans-serif;font-weight:bold;font-size:14px;line-height:48px;min-width:228px;height:48px;padding:0 20px;text-align:center;text-decoration:none;cursor:pointer;transition:background .2s}
.wp-block-button__link:hover,.kl-btn:hover,.kl-form .wpcf7-submit:hover,.kl-form button:hover{background:#008f00;color:#fff}
.kl-main .wp-block-buttons{margin:0 auto 50px;gap:35px}
.kl-square .wp-block-button__link{border-radius:0}

/* ---------- Liczniki ---------- */
.kl-counters{position:relative;background:#7a7a7a url("assets/img/liczniki.jpg") center/cover no-repeat;color:#fff;text-align:center;padding:39px 0 33px;min-height:485px}
.kl-counters::before{content:"";position:absolute;inset:0;background:rgba(90,90,90,.55)}
.kl-counters > *{position:relative}
.kl-counters .kl-c-title{font-size:16px;margin:0;color:#fff}
.kl-counters .kl-c-title::after{content:"";display:block;width:100px;height:3px;background:var(--kl-green);margin:16px auto 0}
.kl-c-grid{display:flex;justify-content:space-between;max-width:1200px;margin:40px auto 30px}
.kl-c{width:25%}
.kl-c .kl-num{display:block;font-family:Arial,Helvetica,sans-serif;font-weight:bold;font-size:72px;line-height:86px;color:#fff}
.kl-c .kl-lbl{display:block;font-family:Verdana,Geneva,sans-serif;font-weight:bold;font-size:30px;line-height:36px;color:var(--kl-green);max-width:260px;margin:0 auto}
.kl-counters .kl-btn{margin-top:20px}

/* ---------- Cennik ---------- */
.kl-intro p{font-size:18px;line-height:21px;text-align:center;margin:0}
.kl-intro{margin:30px auto 18px!important;max-width:986px!important}
.kl-intro .kl-gap{height:21px}
.kl-main .wp-block-table.kl-price{max-width:986px;margin:0 auto 40px}
.kl-price table{border-collapse:separate;border-spacing:5px;width:100%;table-layout:fixed;margin:0 -5px}
.kl-price th,.kl-price td{height:91px;text-align:center;vertical-align:middle;font-size:18px;line-height:21px;font-weight:bold;border:0;padding:5px}
.kl-price thead th{background:rgba(0,173,0,.55);color:#fff;border:0}
.kl-price tbody td:first-child{background:rgba(0,0,0,.5);color:#fff}
.kl-price tbody td{background:#dbdbdb;color:#333}
.kl-price thead{border:0}
.kl-note{max-width:986px!important;margin:30px auto 0!important;text-align:center;font-size:18px;line-height:21px}

/* ---------- Galeria ---------- */
.kl-gal-lead{text-align:center;margin:30px auto 0!important;font-size:16px}
.kl-gal-lead::after{content:"";display:block;width:100px;height:3px;background:var(--kl-green);margin:28px auto 0}
.kl-gal-h{font-family:var(--kl-font)!important;font-size:20px!important;line-height:24px!important;font-weight:bold;color:#333;margin:12px auto 0!important;padding-bottom:12px;border-bottom:3px solid var(--kl-green);text-transform:uppercase}
.kl-gal-row{align-items:center!important;margin:16px auto 10px!important;gap:20px}
.kl-gal-row .wp-block-buttons{margin:0!important}
.kl-main .wp-block-gallery.kl-grid{--wp--style--unstable-gallery-gap:10px!important;gap:10px!important;margin:48px auto 60px}
.wp-block-gallery.kl-thumbs{--wp--style--unstable-gallery-gap:10px!important;gap:10px!important;margin:0}
.wp-block-gallery.kl-thumbs figure.wp-block-image:not(#individual-image){height:280px;flex-grow:0}
.wp-block-gallery.kl-thumbs figure.wp-block-image:not(#individual-image) img{height:280px!important;object-fit:cover}
.wp-block-gallery.kl-grid figure.wp-block-image:not(#individual-image){height:290px;flex-grow:0}
.wp-block-gallery.kl-grid figure.wp-block-image:not(#individual-image) img{height:290px!important;object-fit:cover}

/* ---------- Kontakt ---------- */
.kl-contact{margin:84px auto 30px!important;max-width:1113px!important;gap:32px}
.kl-contact .kl-badge{background:var(--kl-green);color:#fff;border-radius:10px;font-family:var(--kl-font);font-weight:bold;font-size:20px;line-height:40px;padding:0 8px;margin:0 0 12px}
.kl-contact p{font-family:var(--kl-font);font-size:20px;line-height:28px;margin:0}
.kl-contact .kl-g{color:var(--kl-green);font-weight:bold;margin:8px 0 24px}
.kl-contact .kl-b{font-weight:bold}
.kl-contact .kl-ico-phone::before,.kl-contact .kl-ico-mail::before{content:"";display:inline-block;width:1em;height:1em;margin-right:18px;vertical-align:-2px;background:center/contain no-repeat}
.kl-contact .kl-ico-phone::before{background-image:url("assets/icons/phone.svg")}
.kl-contact .kl-ico-mail::before{background-image:url("assets/icons/mail.svg")}
.kl-contact a{color:inherit;text-decoration:none}
.kl-contact .kl-meteor{font-weight:normal;margin-top:6px}
.kl-contact .kl-meteor a{color:#8bc34a}
.kl-contact-lead{font-family:var(--kl-font);color:var(--kl-green);font-size:20px;line-height:28px;text-align:justify;margin:30px auto 60px!important;max-width:1200px}

/* ---------- Stopka: mapa + formularz ---------- */
.kl-map{height:445px;background:#e5e3df;scroll-margin-top:60px}
.kl-map iframe{display:block;width:100%;height:445px;border:0}
.kl-booking{position:relative;background:#333 url("assets/img/rezerwacja.jpg") center/cover no-repeat;padding:61px 20px 67px;scroll-margin-top:100px}
.kl-box{max-width:605px;margin:0 auto;background:rgba(240,240,240,.66);padding:6px 63px 20px}
.kl-box h4{font-family:Arial,Helvetica,sans-serif;font-size:20px;line-height:24px;font-weight:normal;text-align:center;margin:0 0 2px;color:#333}
.kl-box h4 span{color:var(--kl-green)}
.kl-box .kl-small{font-size:12px;line-height:14px;text-align:center;margin:0}
.kl-form{margin-top:12px}
.kl-form-grid{display:flex;flex-wrap:wrap;gap:10px 12px}
.kl-f{margin:0}
.kl-half{width:calc(50% - 6px)}
.kl-full{width:100%}
.kl-form p{margin:0}
.kl-form input[type=text],.kl-form input[type=email],.kl-form input[type=tel],.kl-form input[type=date],.kl-form textarea{width:100%;height:36px;border:1px solid #ccc;background:#fff;padding:6px 8px;font:13px Arial,Helvetica,sans-serif;color:#333;border-radius:0}
.kl-form textarea{height:120px;resize:vertical}
.kl-form ::placeholder{color:#aaa}
.kl-zgoda{font-size:11px;line-height:13px;color:#333}
.kl-zgoda .wpcf7-list-item{margin:0}
.kl-zgoda input{margin:0 6px 0 0;vertical-align:top}
.kl-zgoda label{display:flex;align-items:flex-start}
.kl-submit{text-align:center}
.kl-form .wpcf7-submit,.kl-form button{min-width:110px;height:34px;line-height:34px;border-radius:0;font-weight:normal;font-size:14px}
.kl-form .wpcf7-spinner{position:absolute}
.kl-form .wpcf7-response-output,.kl-form-msg{margin:10px 0 0!important;padding:6px 10px!important;font-size:13px;text-align:center;border:0!important;background:#fff}
.kl-form .wpcf7-not-valid-tip{font-size:11px}
.kl-hp{position:absolute;left:-9999px}
.kl-addr{max-width:605px;margin:30px auto 0;background:rgba(240,240,240,.66);display:flex;padding:9px 8px}
.kl-addr > div{flex:1;text-align:center;font-family:"Trebuchet MS",sans-serif}
.kl-addr > div + div{border-left:1px solid rgba(0,0,0,.23)}
.kl-addr .kl-t{font-size:18px;line-height:21px;margin:0 0 21px}
.kl-addr p{margin:0;font-family:"Lucida Sans Unicode","Lucida Grande",sans-serif;font-size:14px;line-height:20px;color:#333}
.kl-addr a{color:#333;text-decoration:none}
.kl-addr svg{width:1em;height:1em;vertical-align:-2px;margin-right:4px}
.kl-foot{background:var(--kl-gray);height:56px}
.kl-foot .kl-wrap{display:flex;align-items:center;justify-content:space-between;height:56px}
.kl-foot p{margin:0;font-size:12px;line-height:14px;color:#ccc}
.kl-social{display:flex;gap:9px}
.kl-social a{display:block;width:30px;height:35px;padding:7px 3px}
.kl-social svg{width:24px;height:22px}
.kl-social svg path{fill:#ccc}

/* ---------- Pasek cookies ---------- */
.kl-cookies{position:fixed;left:0;right:0;bottom:0;z-index:200;background:rgba(230,230,230,.95);border-top:1px solid #ccc;padding:8px 20px;text-align:center;font-size:12px;color:#555;display:none}
.kl-cookies.is-visible{display:block}
.kl-cookies button{margin-left:20px;font-size:12px;padding:3px 10px;background:#eee;border:1px solid #ccc;cursor:pointer}

/* ---------- Ukrywanie animacji podczas wczytywania ---------- */
.kl-anim{opacity:0;transform:translateY(20px);transition:opacity .8s,transform .8s}
.kl-anim.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.kl-anim{opacity:1;transform:none}}

/* ---------- Galeria – podgląd (lightbox WP) ---------- */
.wp-lightbox-overlay .scrim{background:rgba(0,0,0,.9)!important}

/* ---------- Mobile (jak w WebWave: < 768px) ---------- */
@media (max-width:1250px){.kl-main > *:not(.alignfull):not(.kl-full){padding-left:20px;padding-right:20px}.kl-main .kl-hero.wp-block-cover{padding:0 20px}}
@media (max-width:767px){
 .kl-header{height:60px}
 .kl-header .kl-wrap{align-items:center;padding:0 10px}
 .kl-brand{font-size:12px;line-height:14px;padding:0;text-align:center;max-width:260px}
 .kl-header.is-stuck .kl-brand{font-size:12px;line-height:14px;height:auto;min-width:0;padding:6px 10px;margin:0}
 .kl-burger{display:block}
 .kl-nav{display:none;position:absolute;top:60px;left:0;right:0;background:#fff;box-shadow:0 4px 8px rgba(0,0,0,.2);margin:0}
 .kl-header.menu-open .kl-nav{display:block}
 .kl-menu{flex-direction:column}
 .kl-menu > li > a,.kl-header.is-stuck .kl-menu > li > a{color:#333;padding:14px 20px;font-size:14px;border-bottom:1px solid #eee}
 .kl-menu .sub-menu,.kl-header.is-stuck .kl-menu .sub-menu{display:block;position:static;box-shadow:none;background:#fff;padding:0}
 .kl-menu .sub-menu a,.kl-header.is-stuck .kl-menu .sub-menu a{color:#333;text-shadow:none;font-size:13px}
 .kl-menu .sub-menu a{padding-left:40px}
 .kl-main .kl-hero.wp-block-cover{align-items:flex-start;padding-top:150px}
 .kl-hero h1{font-size:34px;line-height:40px}
 .kl-burger span{height:5px;margin:7px 0}
 .kl-counters .kl-c-title{font-size:24px;line-height:29px}
 .kl-banner{height:155px}.kl-banner h1{margin-top:52px;font-size:26px;line-height:31px}
 .wp-block-gallery.kl-grid figure.wp-block-image:not(#individual-image),.wp-block-gallery.kl-thumbs figure.wp-block-image:not(#individual-image){width:100%!important;height:auto}
 .kl-features{flex-direction:column;align-items:center;padding-top:40px}
 .kl-feature{width:100%;max-width:330px;margin-bottom:30px}
 .kl-feature h3{color:#333;margin-bottom:20px}
 .kl-feature p{color:#333;font-size:16px;line-height:20px}
 .kl-about p{text-align:center}
 .kl-about .kl-list-title{text-align:center}
 .kl-tiles.wp-block-gallery{flex-direction:column}
 .kl-tiles.wp-block-gallery figure.wp-block-image{width:100%!important;flex-basis:100%!important;height:240px}
 .kl-tiles.wp-block-gallery figure.wp-block-image img{height:240px!important}
 .kl-c-grid{flex-direction:column;gap:20px}.kl-c{width:100%}
 .kl-c .kl-lbl{font-size:22px;line-height:26px;max-width:none}
 .kl-c .kl-num{font-size:60px;line-height:70px}
 .kl-price th,.kl-price td{font-size:13px;line-height:15px;height:70px;padding:2px}
 .kl-price table{border-spacing:3px}
 .kl-gal-row{flex-direction:column}
 .kl-box{padding:10px 15px 20px}
 .kl-half{width:100%}
 .kl-addr{flex-direction:column}.kl-addr > div + div{border-left:0;border-top:1px solid rgba(0,0,0,.23);margin-top:10px;padding-top:10px}
 .kl-foot{height:auto}.kl-foot .kl-wrap{flex-direction:column;padding:10px;gap:6px;height:auto}
 .kl-contact{margin-top:40px!important}
 .wp-block-gallery.kl-grid figure.wp-block-image:not(#individual-image) img,.wp-block-gallery.kl-thumbs figure.wp-block-image:not(#individual-image) img{height:auto!important;aspect-ratio:4/3}
}
