/*
Theme Name: Domki Resort
Theme URI: https://www.wzgorzezazakretem.pl
Author: Itta
Author URI: https://itta.pl
Description: Nowoczesny, elegancki motyw dla wynajmu domków i agroturystyki. Strona ofertowa z animacjami pojawiania się przy przewijaniu, zintegrowana z wtyczką „Domki Rezerwacje" (sekcja rezerwacji przez shortcode [domki_rezerwacja]). Sekcje: hero, o nas, domki, udogodnienia, galeria, okolica, opinie, rezerwacja, kontakt. Kolory, teksty hero i dane kontaktowe ustawisz w Personalizacji (Wygląd → Dostosuj).
Version: 1.0.12
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: domki-resort
Tags: custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, full-width-template, blog
*/

/* =========================================================
   0. ZMIENNE / DESIGN TOKENS
   Kolory możesz nadpisać w Wygląd → Dostosuj → Kolory
   ========================================================= */
:root {
  --green:        #1e5f63;   /* główny – morski petrol (marka) */
  --green-dark:   #123e42;
  --green-soft:   #3c7f84;
  --accent:       #c8a15a;   /* piaskowe złoto */
  --accent-dark:  #a8813c;
  --cream:        #f4efe4;   /* tło sekcji jasnych (piasek) */
  --cream-2:      #e9e0cf;
  --ink:          #18282a;   /* tekst główny */
  --muted:        #5f6f6e;   /* tekst drugorzędny */
  --line:         #e0d9c8;   /* obramowania */
  --white:        #ffffff;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    26px;
  --shadow:       0 18px 42px -18px rgba(74, 54, 36, .26);
  --shadow-sm:    0 9px 26px -13px rgba(74, 54, 36, .20);
  --container:    1180px;
  --gutter:       clamp(20px, 5vw, 64px);
  --ease:         cubic-bezier(.22, 1, .36, 1);

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================================
   1. RESET / BAZA
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #faf7f1;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: #2b2113; }
a { color: var(--green); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent-dark); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }

/* =========================================================
   2. UKŁAD / POMOCNICZE
   ========================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; scroll-margin-top: 84px; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #eef2ee; }
.section--green h2, .section--green h3 { color: #fff; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.section--green .eyebrow { color: var(--accent); }

.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head.is-left { margin-inline: 0; text-align: left; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--green .lead { color: #cfe0d6; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   3. PRZYCISKI
   ========================================================= */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border: 1px solid var(--btn-bg); border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #2b2113; border-color: var(--accent);
  background: linear-gradient(180deg, #d6b074, var(--accent));
  box-shadow: 0 12px 26px -12px rgba(168,129,60,.55); }
.btn--accent:hover { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border-color: var(--accent-dark); box-shadow: 0 18px 32px -12px rgba(168,129,60,.66); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); --btn-fg:#fff; }
.btn .ico { width: 1.1em; height: 1.1em; }

/* =========================================================
   4. NAGŁÓWEK / NAWIGACJA
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(8,26,27,.62) 0%, rgba(8,26,27,.32) 60%, rgba(8,26,27,.05) 100%);
}
/* menu czytelne na górze (na zdjęciu hero) */
.site-header .brand, .site-header .nav__menu a { text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.site-header.scrolled .brand, .site-header.scrolled .nav__menu a { text-shadow: none; }
/* offset, gdy zalogowany użytkownik ma pasek admina WordPress */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.brand__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #2b2113; flex: 0 0 auto; }
.brand__mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; opacity: .8; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__menu { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__menu a { color: #fff; font-weight: 500; font-size: .98rem; position: relative; padding: 4px 0; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.nav__menu a:hover::after, .nav__menu .current-menu-item > a::after { width: 100%; }

/* stan po przewinięciu */
.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.3); padding: 12px 0; }
.site-header.scrolled .brand, .site-header.scrolled .nav__menu a { color: var(--ink); }
.site-header.scrolled .brand small { opacity: .65; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* hamburger */
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); background: transparent; border-radius: 12px; padding: 0; place-items: center; gap: 5px; flex-direction: column; }
.site-header.scrolled .nav-toggle { border-color: var(--line); }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; padding: 120px 0 90px; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, #0f3a3d 0%, #1e5f63 50%, #123e42 100%);
  background-size: cover; background-position: center;
}
.hero__bg.has-image { background-blend-mode: normal; }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(13,30,31,.58) 0%, rgba(13,30,31,.26) 40%, rgba(13,30,31,.72) 100%); }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff !important; margin-bottom: .35em;
  text-shadow: 0 2px 16px rgba(0,0,0,.5), 0 0 40px rgba(0,0,0,.2); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e7efe9; max-width: 560px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* Główne CTA hero — wyraźnie dominuje nad przyciskiem drugorzędnym (kontrast + poświata) */
.hero__cta .btn--accent { font-size: 1.02rem; font-weight: 700; padding: 17px 32px; box-shadow: 0 10px 30px -8px rgba(200,161,90,.55); }
.hero__cta .btn--accent:hover { box-shadow: 0 14px 36px -8px rgba(200,161,90,.7); }
.hero__badge { display:inline-flex; align-items:center; gap:.5em; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); padding: 7px 16px; border-radius: 100px; font-size:.85rem; font-weight:600; letter-spacing:.04em; margin-bottom: 1.4rem; }
.hero__badge .stars { color: var(--accent); letter-spacing: 1px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: #fff; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: grid; justify-items: center; gap: 8px; opacity: .85; }
.scroll-hint .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.scroll-hint .mouse::after { content:""; position:absolute; left:50%; top:7px; width:4px; height:7px; background:#fff; border-radius:3px; transform:translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1;top:7px} 70%{opacity:0;top:18px} 100%{opacity:0} }

/* mini-pasek zaufania pod hero */
.trust { display:flex; flex-wrap:wrap; gap: clamp(20px,5vw,60px); justify-content:center; padding: 26px 0; border-top:1px solid var(--line); }
.trust__item { display:flex; align-items:center; gap:12px; color: var(--muted); font-weight:500; font-size:.95rem; }
.trust__item svg { width:26px; height:26px; color: var(--green); flex:0 0 auto; }

/* =========================================================
   6. O NAS
   ========================================================= */
.about__grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,72px); align-items:center; }
.about__media { position: relative; }
.about__img { aspect-ratio: 4/5; border-radius: var(--radius-lg); background: var(--cream-2) center/cover; box-shadow: var(--shadow); }
.about__img--2 { position:absolute; right:-22px; bottom:-28px; width:46%; aspect-ratio: 1/1; border-radius: var(--radius); border: 6px solid #fff; background: var(--green-soft) center/cover; box-shadow: var(--shadow-sm); }
.about__stats { display:flex; gap: clamp(18px,3vw,40px); margin-top: 2rem; flex-wrap:wrap; }
.stat { }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); font-weight:700; color: var(--green); line-height:1; }
.stat__num .suffix { color: var(--accent); }
.stat__label { font-size:.9rem; color: var(--muted); margin-top:6px; }

/* =========================================================
   7. DOMKI / OFERTA
   ========================================================= */
.cottage { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.cottage:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cottage__media { aspect-ratio: 3/2; background: var(--cream-2) center/cover; position:relative; overflow:hidden; }
.cottage__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.cottage__media img { width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.cottage:hover .cottage__media img { transform: scale(1.07); }
.cottage__tag { position:absolute; top:14px; left:14px; z-index:2; background: rgba(255,255,255,.92); color: var(--green-dark); font-size:.78rem; font-weight:700; padding:6px 12px; border-radius:100px; }
.cottage__price { position:absolute; bottom:12px; right:14px; z-index:2; color:#fff; font-weight:600; font-size:.95rem; text-shadow:0 1px 8px rgba(0,0,0,.5); }
.cottage__price b { font-family: var(--font-head); font-size:1.3rem; }
.cottage__body { padding: 22px 24px 26px; display:flex; flex-direction:column; flex:1; }
.cottage__body h3 { margin-bottom:.3em; }
.cottage__desc { color: var(--muted); font-size:.97rem; margin-bottom: 18px; }
.cottage__features { display:flex; flex-wrap:wrap; gap: 8px 16px; margin: 0 0 22px; list-style:none; }
.cottage__features li { display:flex; align-items:center; gap:7px; font-size:.88rem; color: var(--ink); }
.cottage__features svg { width:18px; height:18px; color: var(--green-soft); }
.cottage__body .btn { margin-top:auto; align-self:flex-start; }

/* =========================================================
   8. UDOGODNIENIA
   ========================================================= */
.amenity { text-align:center; padding: 30px 18px; border-radius: var(--radius); background:#fff; border:1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); }
.amenity:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.amenity__ico { width:60px; height:60px; margin:0 auto 16px; border-radius:50%; display:grid; place-items:center; background: var(--cream); color: var(--green); transition: background .3s var(--ease), color .3s var(--ease); }
.amenity:hover .amenity__ico { background: var(--green); color:#fff; }
.amenity__ico svg { width:28px; height:28px; }
.amenity h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight:600; margin-bottom:.3em; }
.amenity p { font-size:.88rem; color: var(--muted); margin:0; }

/* =========================================================
   9. GALERIA
   ========================================================= */
.gallery { display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.gallery__item { position:relative; overflow:hidden; border-radius: var(--radius); background: var(--cream-2) center/cover; cursor:pointer; box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.gallery__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gallery__item img { width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after { content:"+"; position:absolute; inset:0; display:grid; place-items:center; font-size:2rem; color:#fff; background: rgba(15,40,42,0); opacity:0; transition:.3s var(--ease); }
.gallery__item:hover::after { background: rgba(15,40,42,.5); opacity:1; }
.gallery__item.span-2 { grid-column: span 2; }
.gallery__item.row-2 { grid-row: span 2; }

/* lightbox */
.lightbox { position:fixed; inset:0; z-index:200; background: rgba(11,21,22,.94); display:none; align-items:center; justify-content:center; padding:40px; }
.lightbox.open { display:flex; animation: fade .3s var(--ease); }
.lightbox img { max-width:min(1100px,92vw); max-height:86vh; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close { position:absolute; top:22px; right:26px; width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,.4); background:transparent; color:#fff; font-size:1.5rem; }
.lightbox__nav { position:absolute; top:50%; transform:translateY(-50%); width:54px; height:54px; border-radius:50%; border:1px solid rgba(255,255,255,.4); background:transparent; color:#fff; font-size:1.6rem; }
.lightbox__nav.prev { left:24px; } .lightbox__nav.next { right:24px; }
@keyframes fade { from{opacity:0} to{opacity:1} }

/* =========================================================
   10. OKOLICA / ATRAKCJE
   ========================================================= */
.feature-row { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,70px); align-items:center; }
.feature-row + .feature-row { margin-top: clamp(40px,6vw,90px); }
.feature-row__media { aspect-ratio: 5/4; border-radius: var(--radius-lg); background: var(--green-soft) center/cover; box-shadow: var(--shadow); }
.feature-row:nth-child(even) .feature-row__text { order:2; }
.feature-row:nth-child(even) .feature-row__media { order:1; }
.feature-row__text h3 { font-size: clamp(1.5rem,3vw,2rem); }
.feature-row .meta { display:inline-flex; align-items:center; gap:8px; color:var(--accent-dark); font-weight:600; font-size:.85rem; letter-spacing:.05em; text-transform:uppercase; margin-bottom:.8rem; }

/* =========================================================
   11. OPINIE
   ========================================================= */
.testi { display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,30px); }
.testi__card { background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 30px 28px; }
.section--green .testi__card { color:#eef2ee; }
.testi__stars { color: var(--accent); letter-spacing:2px; margin-bottom: 14px; font-size:1.05rem; }
.testi__text { font-family: var(--font-head); font-size: 1.18rem; line-height:1.5; font-style:italic; margin-bottom: 22px; }
.testi__who { display:flex; align-items:center; gap:12px; }
.testi__avatar { width:46px; height:46px; border-radius:50%; background: var(--accent) center/cover; flex:0 0 auto; display:grid; place-items:center; font-weight:700; color:#2b2113; }
.testi__name { font-weight:600; }
.testi__role { font-size:.82rem; opacity:.75; }

/* =========================================================
   12. SEKCJA REZERWACJI (shortcode wtyczki)
   ========================================================= */
.booking-section { background: var(--cream); }
.booking-shell { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,4vw,46px); box-shadow: var(--shadow); }
/* nadpisania, by kalendarz wtyczki [domki_rezerwacja] ładnie pasował */
.booking-shell .dr-wrap { max-width: 100%; font-size: 15px; }

/* makieta kalendarza – tylko w preview.html */
.calendar-mock { }
.calendar-mock__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.calendar-mock__grid { display:grid; grid-template-columns: repeat(7,1fr); gap:8px; }
.calendar-mock__grid span { aspect-ratio:1; display:grid; place-items:center; border-radius:8px; font-size:.85rem; background: var(--cream); color: var(--ink); }
.calendar-mock__grid span.dow { background:transparent; color:var(--muted); font-weight:600; font-size:.75rem; aspect-ratio:auto; }
.calendar-mock__grid span.free { background:#e4efed; color:#1e5f63; }
.calendar-mock__grid span.busy { background: var(--cream-2); color:#b9b1a3; text-decoration:line-through; }
.calendar-mock__grid span.sel { background: var(--green); color:#fff; }

/* =========================================================
   12b. CENNIK
   ========================================================= */
.pricing { display:grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px,4vw,40px); align-items:stretch; }
.price-card { background: linear-gradient(160deg, var(--green), var(--green-dark)); color:#fff; border-radius: var(--radius-lg); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow); display:flex; flex-direction:column; justify-content:center; }
.price-card .badge-min { display:inline-block; background: var(--accent); color:#2b2113; font-weight:700; font-size:.78rem; padding:5px 13px; border-radius:100px; margin-bottom:18px; align-self:flex-start; }
.price-card .from { font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; opacity:.85; }
.price-card .amount { font-family:var(--font-head); font-size: clamp(3rem,7vw,4.4rem); line-height:1; font-weight:700; margin:.1em 0; }
.price-card .amount span { font-size:1.3rem; font-family:var(--font-body); font-weight:600; }
.price-card .per { opacity:.92; margin-bottom:20px; }
.price-card .note { font-size:.92rem; opacity:.92; border-top:1px solid rgba(255,255,255,.22); padding-top:16px; }
.price-card .btn { margin-top:22px; align-self:flex-start; }
.price-incl { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-sm); }
.price-incl h3 { font-family:var(--font-body); font-size:1.05rem; font-weight:700; letter-spacing:.02em; margin-bottom:20px; }
.price-incl ul { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:15px 24px; }
.price-incl li { display:flex; gap:11px; align-items:flex-start; font-size:.98rem; }
.price-incl li svg { width:22px; height:22px; flex:0 0 auto; color:var(--green); margin-top:1px; }
.price-incl .hours { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); display:flex; gap:28px; flex-wrap:wrap; color:var(--muted); font-size:.92rem; }
.price-incl .hours b { color:var(--ink); font-weight:600; }
@media (max-width:760px){ .pricing{ grid-template-columns:1fr; } .price-incl ul{ grid-template-columns:1fr; } }

/* =========================================================
   13. KONTAKT
   ========================================================= */
.contact__grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,60px); align-items:start; }
.contact__list { list-style:none; display:grid; gap:18px; margin:0 0 26px; }
.contact__list li { display:flex; gap:16px; align-items:flex-start; }
.contact__list .ico { width:46px; height:46px; flex:0 0 auto; border-radius:12px; background: var(--cream); color: var(--green); display:grid; place-items:center; }
.contact__list .ico svg { width:22px; height:22px; }
.contact__list b { display:block; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:700; margin-bottom:2px; }
.contact__list a, .contact__list span { font-size:1.08rem; color:var(--ink); }
.contact__map { aspect-ratio: 4/3; border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); background: var(--cream-2); box-shadow: var(--shadow-sm); }
.contact__map iframe { width:100%; height:100%; border:0; display:block; }

.form { display:grid; gap:16px; }
.form .row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form label { font-size:.82rem; font-weight:600; color:var(--ink); display:block; margin-bottom:6px; }
.form input, .form textarea {
  width:100%; padding:13px 16px; border:1px solid var(--line); border-radius:12px;
  font-family:inherit; font-size:1rem; color:var(--ink); background:#fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus { outline:none; border-color: var(--green); box-shadow:0 0 0 3px rgba(200,161,90,.25); }
.form textarea { min-height:130px; resize:vertical; }

/* =========================================================
   13b. FAQ (akordeon)
   ========================================================= */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item + .faq__item { margin-top: 2px; }

/* TWARDY RESET OPRAWY — !important, bo dowolny inny arkusz (Dodatkowy CSS
   w Personalizacji, wtyczka, motyw potomny) mógłby dorysować ramkę.
   Dotyczy kontenera pytania i samego przycisku. */
.faq .faq__item,
.faq .faq__q,
.faq .faq__a,
.faq .faq__a-inner {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.faq__q {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  width: 100%; margin: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 18px 0;
  text-align: left;
  font-family: var(--font-body); font-size: 1.06rem; font-weight: 600;
  line-height: 1.45; color: var(--ink);
  cursor: pointer; transition: color .25s var(--ease);
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--green); }
/* Bez prostokątnej ramki fokusa (globalne :focus-visible rysowałoby obwódkę wokół
   całego wiersza). Dla klawiatury czytelny sygnał: kolor + podkreślenie tekstu. */
.faq__q:focus { outline: none; box-shadow: none; }
.faq__q:focus-visible { outline: none; box-shadow: none; color: var(--green); }
.faq__q:focus-visible span:first-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.faq__icon { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; color: var(--accent-dark); position: relative; top: 2px; }
.faq__icon svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.faq__item.is-open .faq__icon { color: var(--green); }
.faq__item.is-open .faq__icon svg { transform: rotate(45deg); }

.faq__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq__item.is-open .faq__a { max-height: 600px; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p { margin: 0; padding: 0 40px 22px 0; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }

/* =========================================================
   14. STOPKA
   ========================================================= */
.site-footer { background: var(--green-dark); color: #c6d4cb; padding: clamp(56px,8vw,84px) 0 0; }
.site-footer a { color:#dce6df; }
.site-footer a:hover { color:#fff; }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px,4vw,50px); padding-bottom: 50px; }
.footer__brand .brand { color:#fff; margin-bottom:16px; }
.footer__about { font-size:.95rem; color:#a9bcb0; max-width:34ch; }
.footer h4 { font-family: var(--font-body); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; color:#fff; margin-bottom:18px; }
.footer__links { list-style:none; display:grid; gap:11px; font-size:.97rem; }
.footer__social { display:flex; gap:12px; margin-top:8px; }
.footer__social a { width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.2); display:grid; place-items:center; transition: background .25s var(--ease), transform .25s var(--ease); }
.footer__social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer__social svg { width:18px; height:18px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.12); padding: 22px 0; display:flex; flex-wrap:wrap; gap:10px 24px; justify-content:space-between; align-items:center; font-size:.85rem; color:#9fb2a6; }

/* =========================================================
   15. ANIMACJE PRZY SCROLLU (data-animate)
   ========================================================= */
[data-animate] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
[data-animate="fade-up"]    { transform: translateY(42px); }
[data-animate="fade-down"]  { transform: translateY(-42px); }
[data-animate="fade-left"]  { transform: translateX(48px); }
[data-animate="fade-right"] { transform: translateX(-48px); }
[data-animate="zoom-in"]    { transform: scale(.9); }
[data-animate="zoom-out"]   { transform: scale(1.06); }
[data-animate].in-view { opacity: 1; transform: none; }

/* opóźnienia do efektu kaskady */
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }
[data-delay="6"] { transition-delay: .48s; }

/* =========================================================
   16. RWD
   ========================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .feature-row, .contact__grid { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__text,
  .feature-row:nth-child(even) .feature-row__media { order: initial; }
  .testi { grid-template-columns: 1fr; }
  .about__img--2 { display:none; }
  .gallery { grid-auto-rows: 160px; }
}

/* Nawigacja: hamburger włącza się wcześniej, by uniknąć ściśniętego menu na tabletach */
@media (max-width: 900px) {
  .nav__menu, .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 14px var(--gutter) 24px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
  }
  .nav.is-open .nav__menu a { color: var(--ink); width:100%; padding: 12px 0; border-bottom:1px solid var(--line); }
  .nav.is-open .btn { display:inline-flex; margin-top:14px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item.span-2 { grid-column: span 2; }
  .trust { gap: 16px 28px; }

  /* HERO — całość (nagłówek + CTA) musi mieścić się w ekranie bez przewijania */
  .hero { min-height: 92svh; padding: 108px 0 56px; }
  .hero__badge { font-size: .78rem; padding: 5px 13px; margin-bottom: .9rem; }
  .hero h1 { font-size: clamp(1.6rem, 7.2vw, 2.15rem); line-height: 1.18; margin-bottom: .5em; }
  .hero__sub {
    font-size: .95rem; margin-bottom: 1.4rem;
    /* przycięcie do 2 linii — gwarantuje przewidywalną wysokość niezależnie od długości tekstu */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta .btn { justify-content: center; padding: 15px 24px; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
}

/* =========================================================
   16b. UPIĘKSZENIA / DETALE PREMIUM
   ========================================================= */
/* Eleganckie łamanie nagłówków — bez „sierot" na końcu wiersza */
h1, h2, h3, .lead { text-wrap: balance; }

/* Symetryczna złota kreska po obu stronach wyśrodkowanego „eyebrow" */
.section-head:not(.is-left) .eyebrow { justify-content: center; }
.section-head:not(.is-left) .eyebrow::after { content:""; width:28px; height:2px; background:var(--accent); display:inline-block; }

/* Delikatny złoty akcent pod wyśrodkowanym nagłówkiem sekcji */
.section-head:not(.is-left) h2::after { content:""; display:block; width:54px; height:3px; border-radius:3px; margin:18px auto 0; background:linear-gradient(90deg, var(--accent), var(--accent-dark)); }

/* Karty domków — złoty pasek na górze + złoty tytuł przy najechaniu */
.cottage { position: relative; }
.cottage::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; z-index:3; background:linear-gradient(90deg, var(--accent), var(--accent-dark)); transform:scaleX(0); transform-origin:left; transition:transform .45s var(--ease); }
.cottage:hover::before { transform:scaleX(1); }
.cottage h3 { transition: color .3s var(--ease); }
.cottage:hover h3 { color: var(--green); }

/* Subtelna, ciepła poświata w ciemnej sekcji */
.section--green { background-image: radial-gradient(70% 90% at 88% -10%, rgba(200,161,90,.16), transparent 60%); }

/* Markowy pasek przewijania */
html { scrollbar-color: var(--accent) var(--cream); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--cream); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* Spójny, markowy pierścień focusa (dostępność) */
.btn:focus-visible, .nav__menu a:focus-visible, .footer__social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Animowane podkreślenie linków w kontakcie */
.contact__list a { text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.contact__list a:hover { background-size: 100% 1.5px; }

/* =========================================================
   17. DOSTĘPNOŚĆ — mniej ruchu
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* WordPress – drobne klasy systemowe */
.screen-reader-text { position:absolute !important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden; }
.skip-link { position:absolute; left:-9999px; top:0; background:#fff; color:var(--green); padding:10px 16px; z-index:9999; border-radius:0 0 8px 0; }
.skip-link:focus { left:0; }
.alignwide { } .alignfull { }
