/*
Theme Name: Ostoja Roztocza
Theme URI: https://example.local/
Author: Weronika / Hermes
Description: Lekki, autorski motyw WordPress dla strony domku na Roztoczu. Inspirowany spokojnymi stronami obiektów premium: duże zdjęcia, dużo oddechu, naturalna zieleń i narracyjny układ sekcji.
Version: 0.1.0
Text Domain: ostoja-roztocza
*/

:root {
  --forest: #304735;
  --forest-dark: #1e3024;
  --sage: #78856c;
  --sand: #f4f0e8;
  --paper: #fffdf8;
  --wood: #9a6a42;
  --ink: #1c1d19;
  --muted: #686b60;
  --line: rgba(48, 71, 53, .22);
  --shadow: 0 24px 60px rgba(25, 35, 28, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(48, 71, 53, .08);
}
.header-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border: 1px solid var(--forest); color: var(--forest);
  display: grid; place-items: center; font-family: Georgia, serif; font-size: 24px;
}
.brand-text { display: grid; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 13px; letter-spacing: .03em; }
.nav a { text-decoration: none; color: var(--forest-dark); }
.nav a:hover { color: var(--wood); }
.nav a.button { color: #fff; }
.nav a.button:hover { color: #fff; background: var(--forest-dark); }

.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: var(--forest); color: #fff; text-decoration: none;
  padding: 13px 20px; min-height: 44px; font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; transition: .2s ease;
}
.button:hover { background: var(--forest-dark); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.button.ghost:hover { background: var(--forest); color: #fff; }

.section { padding: 90px 0; }
.section.alt { background: var(--sand); }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { color: var(--sage); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(42px, 7vw, 86px); color: #fff; max-width: 820px; }
h2 { font-size: clamp(30px, 4vw, 52px); color: var(--forest-dark); }
h3 { font-size: clamp(23px, 2.4vw, 32px); color: var(--forest-dark); }
p { margin: 0 0 18px; }
.lead { font-size: clamp(18px, 2vw, 24px); color: var(--muted); }
.rule { width: 74px; height: 1px; background: var(--forest); margin: 22px 0 28px; opacity: .7; }
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  background: #111;
  overflow: hidden;
}
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(13,20,15,.78), rgba(13,20,15,.22) 55%, rgba(13,20,15,.62)); z-index:1; }
.hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter: saturate(.95) contrast(1.02); }
.hero-content { position:relative; z-index:2; width:min(1160px, calc(100% - 40px)); margin:0 auto; padding: 110px 0 88px; color:#fff; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 620px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top: 30px; }
.hero .button.ghost { color: #fff; border-color: rgba(255,255,255,.52); }
.hero .button.ghost:hover { background: #fff; color: var(--forest); }
.hero-card {
  position:absolute; right: clamp(20px, 5vw, 90px); bottom: 42px; z-index:2;
  background: rgba(255,253,248,.92); color: var(--forest-dark); padding: 28px; width: min(430px, calc(100% - 40px));
  box-shadow: var(--shadow); text-align:left;
}
.hero-contact-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.hero-contact-list li { line-height:1.45; }
.hero-contact-list a { color: var(--forest-dark); font-weight:700; }
.hero-contact-list strong { font-weight:700; }

.intro-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 7vw, 96px); align-items:center; }
.photo-stack { position:relative; min-height: 560px; }
.photo-stack img:first-child { width: 78%; height: 470px; object-fit:cover; box-shadow: var(--shadow); }
.photo-stack img:last-child { position:absolute; right:0; bottom:0; width: 48%; height: 300px; object-fit:cover; border: 14px solid var(--paper); box-shadow: var(--shadow); }

.features { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature { border-top: 1px solid var(--line); padding: 28px 10px 10px 0; }
.feature-icon { font-size: 30px; margin-bottom: 10px; color: var(--forest); }
.feature strong { display:block; color: var(--forest-dark); }
.feature span { color: var(--muted); font-size: 14px; }

.band {
  position: relative; min-height: 420px; display:grid; place-items:center; color:#fff; text-align:center; overflow:hidden;
}
.band img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.band::after { content:""; position:absolute; inset:0; background: rgba(16,28,19,.48); }
.band-content { position:relative; z-index:2; width:min(820px, calc(100% - 40px)); }
.band h2 { color:#fff; }

.story { display:grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items:start; }
.story img { height: 520px; width:100%; object-fit:cover; box-shadow: var(--shadow); }
.story .text { padding-top: 26px; }
.checks { list-style:none; padding:0; margin: 24px 0 0; display:grid; gap:10px; }
.checks li::before { content:"✓"; color: var(--forest); font-weight:700; margin-right:10px; }

.gallery { display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 42px; }
.gallery a { overflow:hidden; background:#eee; min-height: 220px; }
.gallery img { width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:nth-child(1), .gallery a:nth-child(6) { grid-column: span 6; min-height: 420px; }
.gallery a:nth-child(2), .gallery a:nth-child(3), .gallery a:nth-child(4), .gallery a:nth-child(5) { grid-column: span 3; }
.gallery a:nth-child(n+7) { grid-column: span 3; }
.gallery:not(.okolica-gallery) a:nth-last-child(-n+3) { grid-column: span 4; }

.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top:42px; }
.card { background:#fff; padding:34px; box-shadow: var(--shadow); min-height: 280px; }
.card h3 { font-size: 28px; }
.okolica-gallery-intro { margin-top: 56px; }
.okolica-gallery-intro h3 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 0; }
.okolica-gallery {
  margin-top: 30px;
  gap: 22px;
  align-items: start;
}
.okolica-gallery a,
.okolica-gallery a:nth-child(n) {
  grid-column: span 3;
  height: 230px;
  min-height: 0;
  padding: 10px 10px 34px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(22, 31, 24, .16);
  overflow: visible;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}
.okolica-gallery a:nth-child(-n+3) { grid-column: span 4; height: 250px; }
.okolica-gallery a:nth-child(1) { --tilt: -2.2deg; }
.okolica-gallery a:nth-child(2) { --tilt: 1.4deg; }
.okolica-gallery a:nth-child(3) { --tilt: -1.1deg; }
.okolica-gallery a:nth-child(4) { --tilt: 1.7deg; }
.okolica-gallery a:nth-child(5) { --tilt: -1.3deg; }
.okolica-gallery a:nth-child(6) { --tilt: 1.1deg; }
.okolica-gallery a:nth-child(7) { --tilt: -1.8deg; }
.okolica-gallery a:nth-child(8) { --tilt: 1.3deg; }
.okolica-gallery a:nth-child(9) { --tilt: -1.2deg; }
.okolica-gallery a:nth-child(10) { --tilt: 1.8deg; }
.okolica-gallery a:nth-child(11) { --tilt: -1.4deg; }
.okolica-gallery a:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 22px 42px rgba(22, 31, 24, .2);
  z-index: 2;
}
.okolica-gallery img { display:block; height:100%; box-shadow:none; }
.okolica-gallery a:nth-child(6) img { object-position: center 82%; }

.price-box { display:grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--forest); color:#fff; box-shadow: var(--shadow); }
.price-box > div { padding: 42px; }
.price-box > div:first-child { background: #7a7f68; }
.price-box h2, .price-box h3 { color:#fff; }
.price-box .button { background: #fff; color: var(--forest); }
.price-contact-list { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:10px; }
.price-contact-list li { line-height:1.45; }
.price-contact-list a { color:#fff; font-weight:700; text-decoration: underline; text-underline-offset: 3px; }


.site-footer { background: var(--forest); color:#fff; padding: 42px 0; }
.footer-inner { width:min(1160px, calc(100% - 40px)); margin:0 auto; display:flex; justify-content:space-between; gap:24px; align-items:center; }
.footer-inner a { color:#fff; }

@media (max-width: 900px) {
  .header-inner { min-height:auto; padding: 16px 0; align-items:flex-start; }
  .nav { display:none; }
  .hero { min-height: 760px; }
  .hero-card { position:relative; right:auto; bottom:auto; margin: 0 auto 28px; }
  .intro-grid, .story, .price-box { grid-template-columns: 1fr; }
  .photo-stack { min-height:auto; }
  .photo-stack img:first-child, .photo-stack img:last-child { position:static; width:100%; height:auto; border:0; margin-bottom:16px; }
  .features { grid-template-columns: repeat(2,1fr); }
  .cards { grid-template-columns: 1fr; }
  .gallery a, .gallery a:nth-child(n) { grid-column: span 12; min-height: 280px; }
  .okolica-gallery a, .okolica-gallery a:nth-child(n) { grid-column: span 12; height: 220px; min-height: 0; }
  .form .row { grid-template-columns:1fr; }
}
