/*
Theme Name: PetExpo
Description: Lekki motyw petexpo.pl (zastępuje Ohio + Elementor). Treść stron i szablony nagłówka/stopki czytane z bloków zapisanych w Elementorze.
Version: 0.1.0
Author: Elite Expo
Text Domain: petexpo
*/
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:#0e0e0e;font-family:Montserrat,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg,video,iframe{max-width:100%}
img{height:auto}
a{color:inherit}

/* Nagłówek: przyklejony, biały, środek 1280 px (jak kontener Elementora) */
.pxt-header{position:sticky;top:0;z-index:999;background:#fff}
.admin-bar .pxt-header{top:32px}
@media (max-width:782px){.admin-bar .pxt-header{top:46px}}
.pxt-hbar{max-width:1280px;margin:0 auto;min-height:74px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px}
.pxt-logo{flex:0 0 auto;margin-left:20px}
.pxt-logo img{display:block;width:110px;height:auto}
.pxt-hpart{flex:0 1 auto;min-width:0}
@media (max-width:767px){.pxt-logo{margin-left:6px}.pxt-logo img{width:96px}}

/* Sekcje: boxed = 1300 px z odstępem 16 px (jak Elementor w Ohio), full = cała szerokość */
.pxt-sec{position:relative}
.pxt-boxed>.pxt-in{max-width:1300px;margin:0 auto;padding:0 16px}
.pxt-boxed.pxt-nogap>.pxt-in{padding:0}
.pxt-full>.pxt-in{width:100%}
@media (min-width:1025px){.pxt-hide-desktop{display:none!important}}
@media (min-width:768px) and (max-width:1024px){.pxt-hide-tablet{display:none!important}}
@media (max-width:767px){.pxt-hide-mobile{display:none!important}}

/* Strony bez Elementora (polityka, katalog) */
.pxt-page{padding-top:clamp(32px,5vw,64px)!important;padding-bottom:clamp(48px,7vw,96px)!important;max-width:920px!important}
.pxt-page h1,.pxt-title{font-family:"Krona One",Montserrat,sans-serif;font-weight:400;font-size:clamp(28px,4vw,44px);line-height:1.15;margin:0 0 28px}
.pxt-page h2{font-family:"Krona One",Montserrat,sans-serif;font-weight:400;font-size:clamp(20px,2.4vw,26px);line-height:1.25;margin:40px 0 14px}
.pxt-page a{color:#ea0e6e}
body:has(.px-visit) .pxt-page{max-width:1300px!important;padding-top:0!important;padding-bottom:0!important}

/* Galeria logotypów (dawny ohio_gallery) */
.pxt-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.pxt-gal-item{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff}
.pxt-gal-item img{width:100%;height:100%;object-fit:contain}
@media (max-width:767px){.pxt-gallery{grid-template-columns:repeat(2,1fr)}}

/* Tryb ciemny (body.dark-scheme — reszta w mu-plugin petexpo-dark.php) */
body.dark-scheme{background:#111013;color:#f5f3f1}
body.dark-scheme .pxt-page{color:#d6d2ce}
body.dark-scheme .pxt-page h1,body.dark-scheme .pxt-page h2{color:#f5f3f1}

/* Przełącznik jasny/ciemny: pionowa pigułka po lewej (jak w Ohio) */
.pxt-switch{position:fixed;left:28px;top:50%;transform:translateY(-50%);z-index:998;display:flex;flex-direction:column;gap:2px;padding:4px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff;cursor:pointer;font:600 10px/1 Montserrat,sans-serif;letter-spacing:.04em;color:#6b6660}
.pxt-switch span{writing-mode:vertical-rl;transform:rotate(180deg);padding:10px 5px;border-radius:999px}
.pxt-switch .pxt-sw-l{background:#0e0e0e;color:#fff}
body.dark-scheme .pxt-switch{background:#1c1b1f;border-color:rgba(255,255,255,.18);color:#a8a29c}
body.dark-scheme .pxt-switch .pxt-sw-l{background:transparent;color:#a8a29c}
body.dark-scheme .pxt-switch .pxt-sw-d{background:#f5f3f1;color:#111013}
@media (max-width:767px){.pxt-switch{left:6px;top:auto;bottom:16px;transform:none}}
@media print{.pxt-switch,.pxt-header{display:none}}
