/* ============================================================
   Działki na sprzedaż Radom — styl główny
   Zaplecze contentowe portalu tuziemia.pl
   ============================================================ */

:root {
  --bg: #fbfaf6;
  --bg-soft: #f1ede3;
  --paper: #ffffff;
  --ink: #1c1b17;
  --ink-soft: #58544a;
  --line: #e4ddcc;
  --green: #16281d;
  --green-soft: #2f4c37;
  --green-tint: #e8efe6;
  --gold: #c9954f;
  --gold-soft: #edd9b4;
  --clay: #b5583c;
  --max: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --serif: "Fraunces", "Iowan Old Style", serif;
  --grotesk: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--green-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; }

/* ---------- Grain / textura ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Blobs animados ---------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.blob-a {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), transparent 70%);
  animation: float-a 22s ease-in-out infinite;
}
.blob-b {
  width: 420px; height: 420px;
  top: 220px; left: -160px;
  background: radial-gradient(circle at 60% 40%, var(--green-tint), transparent 70%);
  animation: float-b 26s ease-in-out infinite;
}
.blob-c {
  width: 380px; height: 380px;
  bottom: -160px; right: 10%;
  background: radial-gradient(circle at 50% 50%, #f3e2c8, transparent 70%);
  animation: float-a 30s ease-in-out infinite reverse;
}

@keyframes float-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-40px, 50px) scale(1.08); }
  66% { transform: translate(30px, -30px) scale(0.94); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: var(--green);
  color: var(--gold-soft);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--grotesk);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}
.marquee-track span::after { content: "◆"; color: var(--gold); font-size: 0.6rem; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Nagłówek / nawigacja ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 246, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 24px;
  transition: padding 0.25s var(--ease);
}
.site-header.scrolled .wrap { padding-top: 12px; padding-bottom: 12px; }
.site-header.scrolled { box-shadow: 0 8px 30px -20px rgba(22,40,29,0.35); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green);
  white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px;
  color: var(--green);
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-text b { color: var(--gold); font-weight: 700; }
.brand-tagline {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

nav.main-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
nav.main-nav a.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--grotesk);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
nav.main-nav a.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.25s var(--ease);
}
nav.main-nav a.nav-link:hover { color: var(--ink); }
nav.main-nav a.nav-link:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-soft); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(22,40,29,0.45); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Hero split ---------- */

.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--grotesk);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-soft);
  font-weight: 600;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--green);
  max-width: 15ch;
}
h1 .hl {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--gold-soft) 62%);
  padding: 0 2px;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.trust-row {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--grotesk);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.trust-row strong { color: var(--green); }

/* ---------- Podgląd przeglądarki (hero) ---------- */

.browser-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(22,40,29,0.45), 0 6px 20px -8px rgba(22,40,29,0.12);
  transform: rotate(1.2deg);
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}
.browser-frame:hover { transform: rotate(0deg) translateY(-4px); }

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.browser-frame__dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-frame__dot:nth-child(1) { background: #e0645a; }
.browser-frame__dot:nth-child(2) { background: #e3b23c; }
.browser-frame__dot:nth-child(3) { background: #5da86a; }
.browser-frame__url {
  margin-left: 8px;
  font-family: var(--grotesk);
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-switch {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
}
.tab-btn {
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--bg-soft);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tab-btn.active { background: var(--paper); color: var(--green); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

/* ---------- Sekcje ---------- */

section { padding: 88px 0; position: relative; z-index: 1; }
section.alt { background: var(--bg-soft); }
section.dark { background: var(--green); color: #fff; }
section + section { border-top: 1px solid var(--line); }
section.dark + section, section + section.dark { border-top: none; }

.section-head { max-width: 68ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--green);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
section.dark h2 { color: #fff; }

h3 {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green);
  margin: 0 0 10px;
}

.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
section.dark .section-head p { color: #cfd9d2; }

/* ---------- Listingi pełne (sekcja własna) ---------- */

.listing-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 50px -35px rgba(22,40,29,0.4);
}
.listing-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.listing-block iframe { width: 100%; height: 600px; border: 0; border-radius: 10px; margin-top: 16px; }
.listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-foot { margin-top: 14px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Bento grid (atuty) ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}
.bento-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bento-item:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -28px rgba(22,40,29,0.4); }
.bento-item--wide { grid-column: span 2; }
.bento-item--tall { grid-row: span 2; }
.bento-item--dark { background: var(--green); color: #fff; border-color: var(--green); }
.bento-item--dark h3 { color: #fff; }
.bento-item--dark p { color: #cfd9d2; }
.bento-icon { font-size: 1.8rem; }
.bento-item p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item--wide, .bento-item--tall { grid-column: span 1; grid-row: auto; }
}

/* ---------- Karty / blog ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(22,40,29,0.45); border-color: var(--gold); }
.card .tag {
  font-family: var(--grotesk);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  font-weight: 700;
}
.card h3 { margin-bottom: 4px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }
.card .read-more { margin-top: auto; font-family: var(--grotesk); font-weight: 600; color: var(--green); font-size: 0.9rem; }

/* ---------- CTA pas ---------- */

.cta-banner {
  position: relative;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 64px 48px;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%);
  top: -160px; right: -100px;
  opacity: 0.35;
  z-index: -1;
  animation: float-a 20s ease-in-out infinite;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; max-width: 20ch; }
.cta-banner p { color: #d3ddd6; margin: 0 0 28px; max-width: 50ch; font-size: 1.08rem; }

/* ---------- Lista atutów (legacy, artykuły) ---------- */

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.feature-list strong { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Artykuł (blog post) ---------- */

.post-header { padding: 64px 0 44px; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.post-meta { color: var(--ink-soft); font-family: var(--grotesk); font-size: 0.9rem; margin-top: 12px; }
.post-body { max-width: 72ch; margin: 0 auto; padding: 52px 32px; position: relative; z-index: 1; }
.post-body h2 { margin-top: 44px; }
.post-body h3 { margin-top: 30px; }
.post-body p { margin: 0 0 20px; color: var(--ink); }
.post-body ul, .post-body ol { color: var(--ink); padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  margin: 36px 0;
  padding: 6px 26px;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-soft);
}
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin: 34px 0; }
.callout p:last-child { margin-bottom: 0; }
.breadcrumbs { font-family: var(--grotesk); font-size: 0.85rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------- Stopka gigantyczna ---------- */

footer.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.footer-giant {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 9rem);
  line-height: 0.85;
  color: rgba(255,255,255,0.05);
  white-space: nowrap;
  margin: 0 0 20px;
  user-select: none;
  letter-spacing: -0.02em;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; position: relative; z-index: 1; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--grotesk); color: var(--gold-soft); margin: 0 0 14px; font-size: 0.95rem; letter-spacing: 0.02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #d3ddd6; text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { color: #b7c4bb; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  font-family: var(--grotesk);
  font-size: 0.85rem;
  color: #b7c4bb;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
