/*
Theme Name: Zarnowa 464
Theme URI: https://www.zarnowa464.pl/
Author: Zarnowa 464
Description: Motyw strony Zarnowa 464: ruchomy baner, domki Denpasar i Nairobi, podstrona z galeriami i opinie z Google. Treści edytujesz w Wygląd → Dostosuj → „Zarnowa 464”, opinie w Ustawienia → Opinie Google.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zarnowa464
*/

/* Piasek + nocny granat + terakota; Baskervville (nagłówki) + Jost (tekst) */
:root {
	--z-sand: #f1eadf;
	--z-sand-2: #e7dccb;
	--z-card: #f8f3ec;
	--z-ink: #231e1a;
	--z-ink-soft: #4e453d;
	--z-muted: #6a5f55;
	--z-line: #cdbfac;
	--z-night: #161b26;
	--z-night-2: #0f131b;
	--z-peach: #e8b48f;
	--z-peach-2: #f0c9a8;
	--z-on-night: #d8d1c7;
	--z-accent: #9a5537;
	--z-serif: "Baskervville", Georgia, "Times New Roman", serif;
	--z-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--z-pad-l: max(24px, env(safe-area-inset-left, 0px));
	--z-pad-r: max(24px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--z-sand); color: var(--z-ink); font-family: var(--z-sans); font-size: 17px; font-weight: 300; line-height: 1.7; }
img, video { max-width: 100%; display: block; }
a { color: var(--z-accent); }
a:hover { color: #6e3a24; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--z-peach); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.z-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--z-ink); color: #fff; }
.z-skip:focus { left: 8px; }

/* Układ */
.z-wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--z-pad-l); padding-right: var(--z-pad-r); }
.z-wrap--content { max-width: 880px; }
.z-wrap--faq { max-width: 920px; }
.z-section { padding-block: 112px; }
.z-sand { background: var(--z-sand-2); }
.z-night { background: var(--z-night); color: #fff; }
.z-split { display: flex; flex-wrap: wrap; gap: 56px 64px; }
.z-split > * { flex: 1 1 440px; min-width: 0; }
.z-split--center { align-items: center; }
.z-stack { display: flex; flex-direction: column; gap: 22px; }
.z-stack--lg { gap: 40px; }
.z-self-start { align-self: flex-start; }
.z-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 56px; }
.z-head--tight { margin-bottom: 40px; }
.z-head__text { max-width: 640px; }
.z-head-left { max-width: 640px; }

/* Typografia */
.z-kicker { margin: 0; font-family: var(--z-sans); font-size: 14px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--z-accent); }
.z-kicker--light { color: var(--z-peach); }
.z-kicker--peach { color: var(--z-peach-2); font-size: 13px; }
.z-h2 { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; text-transform: uppercase; }
.z-h3 { margin: 0; font-family: var(--z-serif); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase; }
.z-muted { color: var(--z-ink-soft); }
.z-muted-light { color: var(--z-on-night); }

/* Przyciski */
.z-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-family: var(--z-sans); font-size: 14px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter 0.2s, background 0.2s; }
.z-btn--lg { min-height: 52px; padding: 0 32px; font-size: 15px; }
.z-btn--sm { min-height: 44px; padding: 0 22px; font-weight: 400; letter-spacing: 0.14em; }
.z-btn--accent { background: var(--z-accent); color: #fff; }
.z-btn--accent:hover { color: #fff; filter: brightness(0.92); }
.z-btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.z-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.z-btn--glass { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.z-btn--glass:hover { color: #fff; background: rgba(255, 255, 255, 0.24); }
.z-btn--outline { border-color: var(--z-ink); color: var(--z-ink); }
.z-btn--outline:hover { color: var(--z-ink); background: rgba(35, 30, 26, 0.06); }

/* Nagłówek */
.z-header { position: relative; z-index: 20; color: #fff; }
.z-header--over { position: absolute; top: 0; left: 0; right: 0; }
.z-header--solid { background: var(--z-night); }
.z-header__inner { max-width: 1280px; margin: 0 auto; padding: 24px var(--z-pad-r) 24px var(--z-pad-l); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.z-logo { display: flex; align-items: center; min-height: 44px; }
.z-logo img { width: 210px; height: auto; }
.z-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--z-sans); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.z-nav__list a { color: #fff; text-decoration: none; padding-block: 6px; }
.z-nav__list a:hover, .z-nav__list a[aria-current="page"], .z-nav__list .current-menu-item > a { color: var(--z-peach-2); }
.z-nav__list a[aria-current="page"], .z-nav__list .current-menu-item > a { border-bottom: 1px solid var(--z-peach-2); }
.z-header__actions { display: flex; align-items: center; gap: 16px; }
.z-lang { font-size: 13px; letter-spacing: 0.1em; opacity: 0.9; }

/* Baner */
.z-hero { position: relative; min-height: 820px; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: var(--z-night); }
.z-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.z-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 17, 26, 0.45) 0%, rgba(14, 17, 26, 0) 35%, rgba(14, 17, 26, 0.15) 60%, rgba(14, 17, 26, 0.7) 100%); }
.z-hero__content { position: relative; flex-grow: 1; width: 100%; display: flex; flex-direction: column; padding-top: calc(var(--z-header-h, 150px) + 28px); padding-bottom: 64px; }
.z-hero__content .z-kicker { font-size: 15px; color: var(--z-peach-2); margin-bottom: 18px; }
.z-hero__title { margin: 0; max-width: 920px; font-family: var(--z-serif); font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: 1.08; letter-spacing: 0.04em; text-transform: uppercase; }
.z-hero__text { margin-top: 24px; max-width: 620px; font-size: 19px; line-height: 1.6; color: #f3eee7; }
.z-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 56px; }

/* Pasek liczb */
.z-stats { background: var(--z-night); color: #fff; }
.z-stats__grid { padding-block: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.z-stat { display: flex; flex-direction: column; gap: 4px; }
.z-stat__num { font-family: var(--z-serif); font-size: 40px; line-height: 1; color: var(--z-peach); }
.z-stat__label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #cfc6ba; }

/* O nas */
.z-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 8px; }
.z-feat { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.z-feat svg { color: var(--z-accent); flex: none; }
.z-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.z-mosaic img { width: 100%; height: 252px; object-fit: cover; border-radius: 18px; }
.z-mosaic .z-mosaic__big { height: 520px; grid-row: span 2; }

/* Domki */
.z-houses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; }
.z-house { background: var(--z-card); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.z-house__media { position: relative; }
.z-house__media img { width: 100%; height: 400px; object-fit: cover; }
.z-house__tag { position: absolute; top: 20px; left: 20px; padding: 6px 14px; border-radius: 999px; background: rgba(248, 243, 236, 0.92); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--z-ink); }
.z-house__body { padding: 32px 32px 36px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.z-house__name { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: 36px; letter-spacing: 0.04em; text-transform: uppercase; }
.z-house__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.z-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.z-chip { padding: 7px 14px; border: 1px solid var(--z-line); border-radius: 999px; font-size: 13px; font-weight: 600; }

/* SPA */
.z-spa__images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; flex-basis: 500px; }
.z-spa__images img { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; }
.z-spa__images .z-spa__wide { height: 300px; grid-column: span 2; }
.z-checks { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.z-checks li { display: flex; gap: 12px; align-items: center; }
.z-checks svg { color: var(--z-peach); flex: none; }
.z-night .z-btn--accent { margin-top: 12px; }

/* Co czeka na miejscu */
.z-amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.z-amen__card { background: var(--z-card); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.z-amen__card svg { color: var(--z-accent); }
.z-amen__card p { font-size: 15px; color: var(--z-ink-soft); }

/* Galerie */
.z-gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.z-gal-head__text { gap: 14px; max-width: 640px; }
.z-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 14px; }
.z-gallery--details { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); grid-auto-rows: 240px; gap: 16px; }
.z-tile { margin: 0; position: relative; overflow: hidden; border-radius: 14px; }
.z-gallery--details .z-tile { border-radius: 18px; }
.z-tile--tall { grid-row: span 2; }
.z-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.z-tile:hover img { transform: scale(1.03); }
.z-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; background: linear-gradient(180deg, rgba(20, 18, 15, 0) 0%, rgba(20, 18, 15, 0.65) 100%); color: #fff; font-size: 14px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .z-tile img { transition: none; } .z-tile:hover img { transform: none; } }

/* Opinie (wtyczka/moduł opinii) */
#opinie .z464-rv { --z464-accent: var(--z-accent); }

/* Okolica */
.z-area__img { width: 100%; height: 300px; object-fit: cover; border-radius: 18px; margin-top: 8px; }
.z-area__grid { flex-basis: 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.14); border-radius: 18px; overflow: hidden; align-self: flex-start; }
.z-area__item { background: var(--z-night); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.z-area__dist { font-family: var(--z-serif); font-size: 30px; color: var(--z-peach); line-height: 1.1; }
.z-area__name { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.z-area__desc { font-size: 14px; color: #bfb6aa; }

/* FAQ */
.z-faq { border-top: 1px solid var(--z-line); }
.z-faq__item { border-bottom: 1px solid var(--z-line); padding: 24px 0; }
.z-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.z-faq__item summary::-webkit-details-marker { display: none; }
.z-faq__item p { margin-top: 12px; }
.z-faq__icon { position: relative; flex: none; width: 22px; height: 22px; }
.z-faq__icon::before, .z-faq__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 1.8px; background: var(--z-ink); border-radius: 2px; transition: transform 0.2s; }
.z-faq__icon::after { transform: rotate(90deg); }
.z-faq__item[open] .z-faq__icon::after { transform: rotate(0deg); }

/* Rezerwacja */
.z-cta { position: relative; overflow: hidden; color: #fff; background: var(--z-night); }
.z-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.z-cta__shade { position: absolute; inset: 0; background: rgba(14, 17, 26, 0.66); }
.z-cta__content { position: relative; max-width: 860px; padding-block: 128px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.z-cta__content p { max-width: 600px; color: #ede6dc; }
.z-cta__content .z-kicker { color: var(--z-peach-2); }
.z-cta__title { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.z-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }
.z-cta__actions--left { justify-content: flex-start; }

/* Stopka */
.z-footer { background: var(--z-night-2); color: #cfc6ba; font-size: 15px; }
.z-footer__grid { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.z-footer__col { display: flex; flex-direction: column; gap: 8px; }
.z-footer__col img { width: 180px; height: auto; margin-bottom: 2px; }
.z-footer__head { letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.z-footer a { color: #cfc6ba; }
.z-footer a:hover { color: #fff; }
.z-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.z-footer__bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #9c9387; }

/* Podstrony */
.z-page-hero { background: var(--z-night); color: #fff; padding-block: 56px 72px; }
.z-page-hero .z-stack { gap: 20px; }
.z-back { align-self: flex-start; color: #cfc6ba; font-size: 14px; text-decoration: none; }
.z-back:hover { color: #fff; }
.z-page-title { margin: 0; font-family: var(--z-serif); font-weight: 600; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.z-page-intro { max-width: 640px; color: var(--z-on-night); font-size: 18px; }
.z-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.z-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; text-decoration: none; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.z-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.z-house-hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; }
.z-house-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.z-house-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 15, 0) 45%, rgba(20, 18, 15, 0.7) 100%); }
.z-house-hero__text { position: relative; padding: 36px 40px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.z-house-hero__name { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.z-house-info { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-start; }
.z-house-info__text { flex: 1 1 460px; min-width: 0; font-size: 18px; }
.z-house-info > .z-stack { flex: 1 1 340px; min-width: 0; gap: 20px; }
.z-calendar { background: #f6f6f6; border: 1px solid var(--z-line); border-radius: 22px; padding: 32px 28px 12px; display: flex; flex-direction: column; gap: 20px; }
.z-calendar__head { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.z-calendar__title { margin: 0; font-family: var(--z-serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; }
.z-calendar__frame { display: block; width: 100%; height: 480px; border: 0; }
.z-section--page { padding-block: 72px 112px; }
.z-content > * + * { margin-top: 1.1em; }
.z-content h2, .z-content h3 { font-family: var(--z-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2; }
.z-content h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; }
.z-content h3 { font-size: 22px; margin-top: 1.6em; }
.z-content img { height: auto; border-radius: 14px; }
.z-content .alignwide { margin-left: calc(50% - min(50vw, 640px) + 24px); margin-right: calc(50% - min(50vw, 640px) + 24px); max-width: none; }
.z-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.z-content .wp-block-button__link { background: var(--z-accent); color: #fff; border-radius: 999px; font-family: var(--z-sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; }
.z-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .z-content textarea, .z-content select { width: 100%; padding: 12px 14px; border: 1px solid var(--z-line); border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.z-content input[type="submit"], .z-content button[type="submit"] { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--z-accent); color: #fff; font-family: var(--z-sans); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.z-content__thumb img { width: 100%; }
.z-content__cta { margin-top: 48px !important; text-align: center; }
.z-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.z-post h2 a { color: var(--z-ink); text-decoration: none; }

/* Tablet i telefon */
@media (max-width: 900px) {
	.z-section { padding-block: 80px; }
	.z-hero { min-height: 720px; }
	.z-mosaic .z-mosaic__big { height: 420px; }
	.z-mosaic img { height: 202px; }
	.z-house-hero { min-height: 420px; }
	.z-calendar__frame { height: 560px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.z-header__inner { padding-top: 16px; padding-bottom: 16px; gap: 12px 20px; }
	.z-logo img { width: 170px; }
	.z-nav__list { gap: 4px 18px; font-size: 13px; }
	.z-lang { display: none; }
	.z-hero__text { font-size: 17px; }
	.z-house__media img { height: 300px; }
	.z-house__body { padding: 24px; }
	.z-calendar { padding: 24px 12px 8px; border-radius: 16px; }
	.z-calendar__head { padding-inline: 8px; }
	.z-mosaic .z-mosaic__big { height: 320px; }
	.z-mosaic img { height: 152px; }
	.z-spa__images img { height: 160px; }
	.z-spa__images .z-spa__wide { height: 220px; }
	.z-house-hero__text { padding: 24px; }
	.z-cta__content { padding-block: 96px; }
}
