/*
Theme Name: Klinika Turkowiak
Description: Motyw blokowy Kliniki Turkowiak.
Version: 2.0.5
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: klinika-turkowiak
*/
:root{--ivory:#f8f5f0;--paper:#fffdf9;--ink:#262019;--muted:#64574c;--line:#dfd3c4;--bronze:#694c34}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 system-ui,sans-serif}a{color:inherit;text-underline-offset:.2em}a:focus-visible,summary:focus-visible{outline:2px solid var(--bronze);outline-offset:4px}img{display:block;max-width:100%;height:auto}h1,h2,h3,.tagline{font-family:Georgia,serif;font-weight:400;line-height:1.12;margin:0 0 .45em}h1{font-size:clamp(3rem,7.4vw,7.5rem);letter-spacing:-.065em;overflow-wrap:anywhere}h2{font-size:clamp(2.2rem,4.5vw,4.5rem);letter-spacing:-.045em}h3{font-size:clamp(1.45rem,2.4vw,2rem)}p{margin:.6em 0 1em}.wrap{width:min(100% - 3rem, 1280px);margin-inline:auto}.narrow{max-width:840px}.eyebrow{text-transform:uppercase;letter-spacing:.17em;color:var(--bronze);font-size:.72rem;font-weight:650;margin:0 0 1.35rem}.bar,.footer,.actions{display:flex;align-items:center;justify-content:space-between;gap:1.4rem}.bar{padding-block:1.15rem}.bar nav{display:flex;gap:clamp(.65rem,2vw,2rem);flex-wrap:wrap;font-size:.9rem}.bar nav a{text-decoration:none}.bar nav a:hover{text-decoration:underline}.logo{width:136px;flex:none}.button{display:inline-block;background:var(--ink);color:white;text-decoration:none;padding:.72rem 1.2rem;line-height:1.35;min-height:44px}.button:hover{background:var(--bronze)}.quiet{font-weight:600}.skip{position:absolute;top:0;left:1rem;transform:translateY(-200%);padding:.6rem;background:white;z-index:999}.skip:focus{transform:none}.hero{min-height:clamp(500px,62vw,820px);display:grid;align-items:center;background:#f6f8f8 url("assets/BG3.png") center center/cover no-repeat}.hero-copy{width:max-content;max-width:100%;padding:2rem 1.5rem 2rem 0;background:linear-gradient(90deg,#f6f8f8 65%,#f6f8f800)}.tagline{font-size:clamp(1.4rem,2.7vw,2.6rem);font-style:italic;color:var(--muted);margin-bottom:1.8rem}.actions{justify-content:flex-start;flex-wrap:wrap}.section{padding-block:clamp(3rem,7vw,7rem);scroll-margin-top:1rem}.section:nth-of-type(odd){background:var(--ivory)}.split,.contact,.offer{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,5vw,5rem);align-items:start}.split img{width:100%;max-height:700px;object-fit:contain}.team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem}.team article{background:var(--paper);border:1px solid var(--line)}.team img{width:100%;aspect-ratio:4/4.5;object-fit:cover;object-position:center 25%}.profile{padding:1.4rem}.offer{grid-template-columns:3fr 2fr}.service,details{border-bottom:1px solid var(--line);margin:0;padding:.8rem 0}summary{cursor:pointer;font-weight:600;padding:.22rem 0}details>div{padding:.5rem 0}details p:last-child{margin-bottom:0}.gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}.gallery img{width:100%;aspect-ratio:4/5;object-fit:cover}.footer{padding-block:2.5rem;align-items:flex-start}.wp-site-blocks>footer{background:#29211b;color:#fff7ed}.wp-site-blocks>header{background:var(--paper);border-bottom:1px solid var(--line)}.contact a{overflow-wrap:anywhere}.narrow h1{font-size:clamp(2.6rem,6vw,5.5rem)}
@media(max-width:880px){.bar{flex-wrap:wrap;gap:.75rem}.bar nav{order:3;width:100%;padding:.5rem 0}.hero{background-position:55% center}.team{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.wrap{width:calc(100% - 2rem)}.hero{min-height:0;display:block;padding-top:min(82vw,460px);background-position:center top;background-size:auto min(96vw,490px)}.hero-copy{width:100%;padding:1.5rem 0;background:#f6f8f8}.split,.team,.offer,.contact{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.footer{display:grid}.team img{max-height:440px}.actions{gap:.7rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Editorial layout */
:root{--paper:#fbf8f2;--ivory:#f0e8dc;--ink:#27211d;--muted:#65564b;--line:#d9cbbc;--bronze:#79543b;--night:#28211d;--gold:#e7c9a1}
body{font-family:system-ui,sans-serif}h1,h2,h3,.tagline{font-family:"Baskerville","Palatino Linotype",Georgia,serif}
.wp-site-blocks>header{background:var(--paper)}.bar{min-height:83px}.bar nav{font-size:.74rem;letter-spacing:.12em;text-transform:uppercase}.logo{width:147px}.button{padding:.95rem 1.3rem;font-size:.79rem;letter-spacing:.06em}.button span{margin-left:1.2rem}.hero{display:grid;grid-template-columns:45% 55%;min-height:clamp(540px,59vw,800px);background:var(--night);color:var(--paper);align-items:stretch;position:relative;padding:0}.hero-art{grid-column:2;grid-row:1;background:#f6f8f8 url("assets/BG3.png") center 34%/cover no-repeat}.hero-copy{grid-column:1;grid-row:1;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:100%;padding:5rem clamp(1.4rem,5vw,6rem);background:none}.hero .eyebrow,.hero-index{color:var(--gold)}.hero h1{font-size:clamp(3.5rem,7.15vw,8rem);letter-spacing:-.06em;line-height:.86;margin:.35em 0}.hero h1 em{font-weight:400}.hero .tagline{color:#efe1d1;font-size:clamp(1.25rem,2.25vw,2.35rem);line-height:1.2}.hero .button,.appointment .button{background:var(--gold);color:var(--night)}.hero .button:hover,.appointment .button:hover{background:#fff1d9}.hero-index{position:absolute;bottom:1.4rem;font-size:.66rem;letter-spacing:.2em;text-transform:uppercase}
.section-intro{display:grid;grid-template-columns:1.5fr 1fr;align-items:end;gap:2rem}.section-intro>p{max-width:28rem;color:var(--muted)}.path-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line);margin:2rem 0}.path-grid a{min-height:235px;display:flex;flex-direction:column;align-items:flex-start;padding:clamp(1rem,2vw,2rem);border-bottom:1px solid var(--line);border-right:1px solid var(--line);text-decoration:none;transition:background .18s,color .18s}.path-grid h3{overflow-wrap:anywhere}.path-grid p{font-size:.9rem}.path-grid a:hover,.path-grid a:focus-visible{background:var(--night);color:var(--paper)}.path-grid a:hover .eyebrow,.path-grid a:focus-visible .eyebrow{color:var(--gold)}.arrow{margin-top:auto;font-size:1.25rem}
#onas .split img{max-height:650px;width:100%;object-fit:cover;aspect-ratio:4/5}#onas .split{align-items:center}.team{grid-template-columns:repeat(12,minmax(0,1fr));gap:1.5rem}.team article{grid-column:span 4}.team article:nth-child(-n+2){grid-column:span 6}.team article:nth-child(-n+2) img{aspect-ratio:5/4}.profile{padding:1.6rem}.profile .eyebrow{margin-bottom:.5rem}.offer{gap:clamp(2rem,6vw,7rem)}.offer summary{padding-right:1rem}.offer details[open]{background:#fffdf9;padding-inline:1rem}.catalog-search{max-width:42rem;margin:1.8rem 0 2rem}.catalog-search label{display:block;font-weight:650;margin-bottom:.4rem}.catalog-search input{width:100%;font:inherit;padding:.8rem 1rem;border:1px solid #8b7664;color:var(--ink);background:#fffdf9}.search-status{min-height:1.5em;color:var(--muted);font-size:.9rem}.gallery{grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem}.gallery img{grid-column:span 2;aspect-ratio:5/4}.gallery img:nth-child(-n+2){grid-column:span 3;aspect-ratio:4/3}.section.appointment{background:var(--night);color:var(--paper)}.appointment .eyebrow{color:var(--gold)}.wp-site-blocks>footer{border-top:1px solid #695849}
@media(max-width:1000px){.path-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:49% 51%}.hero-copy{padding-inline:1.6rem}.hero h1{font-size:clamp(3.2rem,8vw,5.5rem)}}
@media(max-width:660px){.hero{display:flex;flex-direction:column;min-height:0}.hero-art{height:clamp(310px,91vw,490px);background-position:center 28%}.hero-copy{padding:2.4rem 1.35rem 4rem}.hero h1{font-size:clamp(3.55rem,14vw,5.5rem)}.hero-index{bottom:.85rem}.section-intro{display:block}.path-grid a{min-height:190px}.path-grid h3{font-size:1.25rem}.path-grid p{font-size:.82rem}.team{display:grid;grid-template-columns:1fr}.team article,.team article:nth-child(-n+2){grid-column:auto}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.gallery img,.gallery img:nth-child(-n+2){grid-column:auto;aspect-ratio:4/5}.gallery img:first-child{grid-column:span 2;aspect-ratio:5/3}}

body::after{content:"";position:fixed;z-index:8;pointer-events:none;right:-4%;bottom:3%;width:clamp(220px,42vw,610px);aspect-ratio:1;background:url("assets/monogram-kliniki.png") center/contain no-repeat;opacity:.045;animation:klinika-monogram 48s ease-in-out infinite alternate}
@keyframes klinika-monogram{to{transform:translate(-14%,-17%)}}
@media(max-width:660px){body::after{opacity:.035;right:-9%}}
@media(prefers-reduced-motion:reduce){body::after{animation:none}}

.hero .hero-copy h1{font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;font-size:clamp(2.7rem,5.1vw,5.6rem);font-weight:400;letter-spacing:-.045em;line-height:1.02}
.hero .hero-copy h1 em{font-style:normal;font-weight:inherit}
.hero .hero-copy .tagline{font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,sans-serif;font-size:clamp(1.05rem,1.55vw,1.55rem);font-style:normal;font-weight:400;line-height:1.55;letter-spacing:.02em}
@media(max-width:660px){.hero .hero-copy h1{font-size:clamp(2.5rem,11vw,4.2rem)}}

.hero-art{background-image:url("assets/portret-glowny.jpeg");background-position:52% center;background-size:cover}
@media(max-width:660px){.hero-art{height:clamp(360px,110vw,560px);background-position:52% 27%}}

.hero{overflow:hidden}.hero-art{transform-origin:52% 35%}.gallery img{object-position:center 24%}
@media(prefers-reduced-motion:reduce){.hero-art{transform:none!important}}

#galeria .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.7rem,1.6vw,1.4rem);align-items:stretch}
#galeria .gallery img,#galeria .gallery img:nth-child(-n+2),#galeria .gallery img:first-child{grid-column:auto;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center 24%;margin:0}
@media(max-width:660px){#galeria .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#galeria .gallery{grid-template-columns:1fr}}

.wp-site-blocks>header{position:sticky;top:0;z-index:20;transition:background-color .3s,box-shadow .3s}
.wp-site-blocks>header.is-scrolled{background:rgba(251,248,242,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 5px 24px #27211d0d}
body.admin-bar .wp-site-blocks>header{top:32px}
.section{scroll-margin-top:170px}.offer details{scroll-margin-top:180px}
#galeria .gallery-photo{display:block;overflow:hidden;aspect-ratio:4/5;padding:0;border:0;background:#e9e1d5;cursor:zoom-in;width:100%;border-radius:0}
#galeria .gallery-photo img{width:100%;height:100%;object-fit:cover;transition:scale .65s cubic-bezier(.2,.7,.2,1)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){#galeria .gallery-photo:hover img{scale:1.035}}
.gallery-photo:focus-visible{outline:2px solid var(--bronze);outline-offset:5px}
.photo-viewer{padding:0;border:0;background:transparent;color:white;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;overflow:hidden}
.photo-viewer[open]{display:grid;grid-template-columns:60px minmax(0,1fr) 60px;align-items:center;gap:1rem;padding:60px 24px 24px}
.photo-viewer::backdrop{background:rgba(15,13,12,.96)}
.photo-viewer figure{margin:0;display:flex;flex-direction:column;align-items:center;min-width:0;gap:12px}
.photo-viewer figure img{max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 140px);object-fit:contain}
.photo-viewer figcaption{font-size:13px;letter-spacing:.2em}
.photo-viewer button{font:400 40px/1 system-ui,sans-serif;cursor:pointer;color:white;background:rgba(255,255,255,.08);border:1px solid #ffffff40;width:48px;height:48px;border-radius:50%;padding:0}
.photo-viewer button:focus-visible{outline:2px solid white;outline-offset:4px}
.photo-viewer .viewer-close{position:absolute;top:15px;right:24px;font-size:30px}
@media(max-width:782px){body.admin-bar .wp-site-blocks>header{top:46px}}
@media(max-width:660px){.photo-viewer[open]{padding:65px 8px 20px;grid-template-columns:34px minmax(0,1fr) 34px;gap:5px}.photo-viewer button{width:34px;height:44px;font-size:28px}.photo-viewer .viewer-close{right:12px;width:44px}.photo-viewer figure img{max-height:calc(100dvh - 160px)}}
@media(prefers-reduced-motion:reduce){.wp-site-blocks>header,#galeria .gallery-photo img{transition:none}}
