/* ============================================================
   LUXE Nieruchomości — Custom Stylesheet
   Colors: #0a3d2f (green), #d4af77 (gold), #111111 (black)
             #ffffff (white), #f8f8f8 (light gray)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---- Variables ---- */
:root {
  --green:  #0a3d2f;
  --gold:   #d4af77;
  --gold-dk:#c49b5f;
  --black:  #111111;
  --white:  #ffffff;
  --gray:   #f8f8f8;
  --text:   #333333;
  --muted:  #777777;
  --border: #e8e8e8;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}
img { display: block; max-width: 100%; }
a { transition: color 0.3s; }

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.35); }

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .04em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .3s, border-color .3s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Voice Button ---- */
.voice-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  padding: .4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .3s, color .3s, transform .2s;
}
.voice-btn:hover { background: var(--gold); color: var(--green); }
.voice-btn.playing {
  background: var(--gold);
  color: var(--green);
  animation: pulseBtn 2s ease-in-out infinite;
}
@keyframes pulseBtn { 0%,100%{opacity:1} 50%{opacity:.65} }

/* ---- Mobile Hamburger ---- */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
}
@media (min-width: 768px) { .hamburger { display: none; } }

/* ---- Option B — single shared label + hairline dividers ---- */
/* Structure: | NIERUCHOMOŚCI  Sprzedaż  Zakup |               */
li.nav-b-group {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem;
  border-left:  1px solid rgba(255,255,255,.14);
  border-right: 1px solid rgba(255,255,255,.14);
}
.nav-b-label {
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(212,175,119,.38);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  /* subtle right separator between the label and the first link */
  padding-right: 1.1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}

/* ---- Option A — inline compound name ---- */
/* Each link reads "Nieruchomości Sprzedaż" / "Nieruchomości Zakup"
   The prefix is smaller, dimmer and non-interactive.              */
.nav-cat {
  font-size: .65em;
  font-weight: 300;
  letter-spacing: .04em;
  color: rgba(212,175,119,.45);
  margin-right: .45em;
  text-transform: none;
  display: inline;
  transition: color .3s;
}
/* Prefix brightens when the parent link is hovered or active */
.nav-links a:hover .nav-cat,
.nav-links a.active .nav-cat { color: rgba(212,175,119,.8); }

/* Same treatment in the mobile menu */
.mobile-menu .nav-cat {
  font-size: .72em;
  color: rgba(212,175,119,.4);
  margin-right: .15em;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  background: var(--green);
  border-top: 1px solid rgba(212,175,119,.2);
  padding: .75rem 1.5rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,.82);
  font-size: .85rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .3s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--green);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .13;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,61,47,.96) 0%, rgba(10,61,47,.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  width: 100%;
}
.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}
.hero-text {
  font-size: 1rem;
  color: rgba(255,255,255,.68);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-deco {
  position: absolute;
  right: -5%;
  bottom: -8%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(212,175,119,.06);
  pointer-events: none;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero subpage — shorter */
.hero-sub { min-height: 55vh; }
.hero-sub .hero-title { font-size: clamp(2rem, 4vw, 3.5rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: var(--green);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem 1.75rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s, transform .2s, box-shadow .3s;
}
.btn-gold:hover {
  background: var(--gold-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,119,.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .72rem 1.75rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--green);
  transform: translateY(-2px);
}

/* Dark outline (on white backgrounds) */
.btn-outline-dark {
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-dark:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-tag {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--black);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 2px;
  background: var(--gold);
}
.section-title.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-title.white { color: var(--white); }
.section-title.white::after { background: var(--gold); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--green);
  border-top: 1px solid rgba(212,175,119,.15);
  padding: 2.5rem 1.5rem;
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.58);
  letter-spacing: .05em;
}

/* ============================================================
   PILLAR CARDS
   ============================================================ */
.pillar-card {
  padding: 2rem 2rem 2rem 1.75rem;
  border-left: 3px solid var(--gold);
  transition: background .35s, transform .35s;
}
.pillar-card:hover {
  background: var(--gray);
  transform: translateX(5px);
}
.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.pillar-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .85rem;
}
.pillar-text {
  font-size: .9rem;
  color: #555;
  line-height: 1.8;
}

/* ============================================================
   CONCEPT LIST ITEMS
   ============================================================ */
.concept-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  font-size: .9rem;
  color: var(--text);
  transition: background .25s, transform .25s;
}
.concept-item:hover { background: #fdf9f2; transform: translateX(4px); }
.concept-icon { font-size: 1.15rem; flex-shrink: 0; color: var(--gold); }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 3rem;
}
.step-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .4rem;
}
.step-body p {
  font-size: .875rem;
  color: #555;
  line-height: 1.75;
}

/* ============================================================
   BENEFIT CARDS
   ============================================================ */
.benefit-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.benefit-card:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(212,175,119,.18);
  transform: translateY(-3px);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,175,119,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.benefit-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: .5rem;
}
.benefit-text { font-size: .875rem; color: #555; line-height: 1.75; }

/* ============================================================
   OFFER CARDS
   ============================================================ */
.offer-card {
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .4s, border-color .4s, box-shadow .4s;
}
.offer-card:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: var(--gold);
  box-shadow: 0 14px 44px rgba(212,175,119,.22);
}
.offer-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.offer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.offer-card:hover .offer-img-wrap img { transform: scale(1.07); }

.offer-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}
.offer-audio-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10,61,47,.82);
  border: 1px solid rgba(212,175,119,.5);
  color: var(--gold);
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, transform .2s;
  backdrop-filter: blur(4px);
}
.offer-audio-btn:hover, .offer-audio-btn.playing {
  background: var(--gold);
  color: var(--green);
}
.offer-audio-btn.playing { animation: pulseBtn 1.5s infinite; }

.offer-body { padding: 1.4rem 1.4rem 1.6rem; }
.offer-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .4rem;
}
.offer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: .4rem;
}
.offer-location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.offer-desc {
  font-size: .84rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.offer-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.offer-map-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border: 1px solid var(--border);
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.offer-map-btn:hover,
.offer-map-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(10,61,47,.04);
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel-outer {
  position: relative;
  padding-bottom: 2.75rem; /* space for dots */
}
.carousel-wrapper {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .52s cubic-bezier(.25,.46,.45,.94);
}
.carousel-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
}
@media (max-width: 1023px) {
  .carousel-slide { flex: 0 0 calc(50% - .75rem); }
}
@media (max-width: 639px) {
  .carousel-slide { flex: 0 0 calc(100%); min-width: 0; }
}

.carousel-arrow {
  position: absolute;
  top: calc(220px / 2); /* midpoint of image */
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  border: 1px solid rgba(212,175,119,.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: background .3s, color .3s, transform .25s, opacity .3s;
}
.carousel-arrow:hover {
  background: var(--gold);
  color: var(--green);
  transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.prev { left: -22px; }
.carousel-arrow.next { right: -22px; }
@media (max-width: 639px) {
  .carousel-arrow.prev { left: 0; }
  .carousel-arrow.next { right: 0; }
}

.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: background .3s, width .3s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--gold);
  width: 24px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

/* Card wrapper */
.contact-form-card {
  background: var(--white);
  padding: 2.5rem 2.75rem 2.75rem;
  box-shadow: 0 4px 40px rgba(10,61,47,.07), 0 1px 6px rgba(10,61,47,.04);
}

/* ── Field group: label sits tightly above its own field ─────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;   /* label → input: close — they clearly belong together */
}

/* Label — readable size, muted, not decorative */
.form-label {
  font: 500 .78rem/1 var(--body-font, 'Inter', sans-serif);
  color: #888;
  letter-spacing: .02em;
  transition: color .2s;
}
.form-group:focus-within .form-label { color: var(--green); }

/* ── Form layout ─────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;  /* between groups: much larger than within (.45rem) */
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Fields — full border, inherits page font exactly ────────── */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #dbd5cc;
  background: #faf8f5;
  font: inherit;              /* same family, size, weight as page body */
  color: var(--black);
  outline: none;
  border-radius: 2px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b8b2a8;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,175,119,.12);
}

/* Textarea */
.contact-form textarea { resize: vertical; min-height: 126px; line-height: 1.7; }

/* Select — custom chevron arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 5px solid #999;
  pointer-events: none;
  transition: border-top-color .2s;
}
.select-wrap:focus-within::after { border-top-color: var(--gold); }
.contact-form select { cursor: pointer; padding-right: 2.4rem; }

/* Per-field inline error */
.field-error {
  display: none;
  font-size: .75rem;
  color: #b94040;
  margin-top: .1rem;
}
.field-error.visible { display: block; }
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #b94040;
  background: #fdf8f8;
}
.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus {
  border-color: #b94040;
  box-shadow: 0 0 0 3px rgba(185,64,64,.1);
}

/* Honeypot — never shown to real users */
.form-honey { display: none !important; }

/* Inline error */
.form-error-msg {
  font-size: .82rem;
  color: #b94040;
  padding: .65rem 1rem;
  background: #fdf2f2;
  border-left: 3px solid #b94040;
}

/* Disabled submit while sending */
.contact-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }

/* Success box */
.form-success-box {
  text-align: center;
  padding: 2.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 40px rgba(10,61,47,.07);
}
.form-success-box p:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--green);
}
.form-success-box p + p {
  color: #666;
  margin-top: .6rem;
  font-size: .88rem;
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 4.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}
.footer-tag {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(212,175,119,.75);
  margin-bottom: 1rem;
}
.footer-desc {
  font-size: .84rem;
  color: rgba(255,255,255,.44);
  line-height: 1.8;
  max-width: 300px;
}
.footer-trust {
  font-size: .78rem;
  font-style: italic;
  color: rgba(255,255,255,.25);
  line-height: 1.85;
  margin-top: 1.1rem;
  max-width: 300px;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-contact-label {
  display: block;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(212,175,119,.38);
  margin-bottom: .2rem;
  font-style: normal;
}
.footer-links.footer-contact { gap: 1.1rem; }
.footer-links.footer-contact li { line-height: 1.4; }
.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-links a {
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-links li span {
  font-size: .84rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.75rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.28); }

/* ============================================================
   AUDIO INDICATOR (fixed bottom toast)
   ============================================================ */
#audio-indicator {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: .7rem 1.4rem;
  border-radius: 2rem;
  font-size: .84rem;
  font-family: 'Inter', sans-serif;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.32);
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  animation: toastIn .35s ease;
}
#audio-indicator.visible { display: flex; }
@keyframes toastIn {
  from { transform: translateX(-50%) translateY(16px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.audio-stop-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0 0 .5rem;
  line-height: 1;
  transition: opacity .2s;
}
.audio-stop-btn:hover { opacity: .7; }

/* ============================================================
   FADE-IN (Intersection Observer)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }
.fade-in:nth-child(4) { transition-delay: .3s; }
.fade-in:nth-child(5) { transition-delay: .4s; }
.fade-in:nth-child(6) { transition-delay: .5s; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad  { padding: 5.5rem 1.5rem; }
.section-pad-sm { padding: 3.5rem 1.5rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 3rem; } }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

/* ============================================================
   OFFERS GRID (oferty.html)
   ============================================================ */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

/* ============================================================
   SECTION COLOR VARIANTS
   ============================================================ */
.bg-white  { background: var(--white); }
.bg-gray   { background: var(--gray); }
.bg-green  { background: var(--green); }
.bg-black  { background: var(--black); }

/* ============================================================
   MISC / UTILITIES
   ============================================================ */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.divider-gold {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0;
}
.divider-gold.center { margin: 1.25rem auto; }

/* ============================================================
   OFFER DETAIL MODAL
   ============================================================ */
.offer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.offer-modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: modalIn .3s cubic-bezier(.25,.46,.45,.94);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Scrollbar inside modal */
.modal-box::-webkit-scrollbar { width: 5px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s;
  color: var(--black);
}
.modal-close-btn:hover { background: var(--green); color: var(--gold); border-color: var(--green); }

/* ── Modal header (badge + title + location + price) ── */
.modal-header {
  padding: 2.25rem 2.75rem 2rem;
  border-bottom: 1px solid var(--border);
}
.modal-header .offer-tag {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}
#modal-offer-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: .6rem;
}
#modal-location {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: .6rem;
  line-height: 1.5;
}
#modal-location::before {
  content: '📍 ';
}
#modal-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: .5rem;
  line-height: 1;
}
@media (max-width: 700px) {
  .modal-header { padding: 1.5rem; }
  #modal-offer-title { font-size: 1.5rem; }
  #modal-price { font-size: 1.6rem; }
}

/* ── Gallery (full-width, 16:9 aspect ratio) ── */
.modal-gallery {
  background: #111;
  display: flex;
  flex-direction: column;
}
.modal-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  overflow: hidden;
  background: #111;
}
.modal-gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity .35s;
}
.modal-thumbs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #1a1a1a;
}
.modal-thumb {
  flex: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 76px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #111;
  border-radius: 3px;
  transition: border-color .2s;
}
.modal-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.modal-thumb.active, .modal-thumb:hover { border-color: var(--gold); }
@media (max-width: 700px) {
  .modal-gallery-main { max-height: 300px; }
  .modal-thumb { max-height: 54px; }
}

/* ── 2-col body: description (left) + sticky facts card (right) ── */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: start;
}
@media (max-width: 820px) {
  .modal-body { grid-template-columns: 1fr; }
}

.modal-desc-col {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
}
@media (max-width: 820px) {
  .modal-desc-col {
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.modal-desc-body p {
  font-size: 1.05rem;
  color: #3a3a3a;
  line-height: 1.85;
  margin: 0;
}
.modal-desc-body p + p { margin-top: 1.4rem; }

.modal-facts-col {
  padding: 2rem 1.75rem;
}
@media (max-width: 820px) {
  .modal-facts-col { padding: 1.75rem 1.5rem; }
}

.modal-facts-card {
  background: #faf9f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

/* Technical data — 2-column grid, label-on-top style */
.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border); /* gap becomes visible grid lines */
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.modal-feat-item {
  background: #fff;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.modal-feat-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}
.modal-feat-value {
  font-size: .98rem;
  color: var(--black);
  font-weight: 600;
  line-height: 1.3;
}

/* CTA inside facts card */
.modal-facts-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.modal-facts-cta .btn-gold {
  font-size: .8rem;
  text-align: center;
  justify-content: center;
  display: flex;
}
.modal-facts-cta .btn-outline {
  font-size: .8rem;
  text-align: center;
  justify-content: center;
  display: flex;
  color: var(--green);
  border-color: var(--green);
}
.modal-facts-cta .btn-outline:hover { background: var(--green); color: var(--white); }

/* ============================================================
   NAVBAR LOGO SIZE for ValoraVia (longer name)
   ============================================================ */
.navbar-logo { font-size: 1.45rem; }

/* ============================================================
   RESPONSIVE — MOBILE OVERRIDES
   ============================================================ */

/* Footer 4-col → 2-col → 1-col */
@media (max-width: 900px) {
  .footer-inner > div:first-of-type {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 540px) {
  .footer-inner > div:first-of-type {
    grid-template-columns: 1fr !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Process / concept side-by-side on subpages */
@media (max-width: 860px) {
  /* Stack process image + steps on mobile */
  .section-pad .container > div[style*="grid-template-columns:1fr 1fr"],
  .section-pad .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  /* Un-sticky the process image */
  [style*="position:sticky"] {
    position: relative !important;
    top: auto !important;
  }
}

/* Stats grid wraps nicely on small screens */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }
  .stat-number { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; gap: .75rem; }
  .hero-btns .btn-gold,
  .hero-btns .btn-outline { text-align: center; justify-content: center; }
  .carousel-arrow { display: none; } /* on very small screens rely on swipe */
}

/* Nav links compact on mid-range */
@media (max-width: 1280px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .7rem; }
}
@media (max-width: 1050px) {
  .nav-links { gap: .7rem; }
  .nav-links a { font-size: .65rem; }
}
@media (max-width: 900px) {
  .nav-links { gap: .45rem; }
  .nav-links a { font-size: .6rem; }
}

/* Offer card grid responsive */
@media (max-width: 480px) {
  .offers-grid { grid-template-columns: 1fr !important; }
}

/* Contact section: 2-column layout → stacked on tablet/mobile */
@media (max-width: 860px) {
  .contact-section-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* Contact form rows: 2-col fields → 1-col on mobile */
@media (max-width: 600px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem 1.25rem 2rem; }
  .contact-form { gap: 1.25rem; }
}

/* Section padding reduced on mobile */
@media (max-width: 640px) {
  .section-pad { padding: 3.5rem 1.25rem !important; }
  .section-pad-sm { padding: 2.5rem 1.25rem !important; }
  .container { padding: 0 1.25rem !important; }
  .hero-content { padding: 4rem 1.25rem !important; }
}

/* ============================================================
   MODAL SECTIONS — Video · Analiza · CTA
   ============================================================ */

/* Shared section label (uppercase overline) */
.modal-section-label {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(212,175,119,.45);
  margin-bottom: 1.5rem;
}
.modal-section-label--dark {
  color: var(--green);
  border-bottom-color: var(--gold);
}

/* ── Video section (dark green centrepiece) ── */
.modal-video-section {
  background: #0a3d2f;
  padding: 2.5rem;
}
@media (max-width: 700px) {
  .modal-video-section { padding: 2rem 1.5rem; }
}

.modal-video-container {
  width: 100%;
}

/* 16:9 iframe wrapper — keeps class name for JS compatibility */
.modal-tour-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,.5);
}
.modal-tour-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* "Open in new window" link below embed */
.modal-tour-external {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .85rem;
  font-size: .75rem;
  letter-spacing: .06em;
  color: rgba(212,175,119,.55);
  text-decoration: none;
  transition: color .2s;
}
.modal-tour-external:hover { color: var(--gold); }

/* Caption below video */
.modal-video-caption {
  margin-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  text-align: center;
}

/* ── Analysis section ── */
.modal-analysis-section {
  background: #f8f7f4;
  padding: 2.5rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 700px) {
  .modal-analysis-section { padding: 2rem 1.5rem; }
}

.modal-analysis-sub {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: -.75rem;
  margin-bottom: 1.5rem;
}

.modal-analysis-body {
  color: #3a3a3a;
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 72ch;
}
.modal-analysis-body p { margin: 0; }
.modal-analysis-body p + p { margin-top: 1.1rem; }

/* ── CTA section (centered button at bottom) ── */
.modal-cta-section {
  padding: 2.75rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.modal-cta-btn {
  font-size: .88rem !important;
  padding: 1rem 2.75rem !important;
  letter-spacing: .1em !important;
}

/* ============================================================
   PACKAGES SECTION (pkg-*)
   Used on: dla-kupujacego.html, dla-sprzedajacego.html
   ============================================================ */

.pkg-section {
  background: #f5f5f3;
  padding: 5rem 0;
}
.pkg-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.pkg-section-header {
  text-align: center;
  margin-bottom: 1rem;
}
.pkg-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--black);
  margin-bottom: 1rem;
}
.pkg-section-sub {
  font-size: .95rem;
  color: #666;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 3.5rem;
}

.pkg-category-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pkg-category-label::before,
.pkg-category-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .pkg-grid { grid-template-columns: 1fr; }
}

.pkg-card {
  background: var(--white);
  padding: 2.25rem 2rem 2.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pkg-card:last-child { border-right: none; }
@media (max-width: 768px) {
  .pkg-card { border-right: none; border-bottom: 1px solid var(--border); }
  .pkg-card:last-child { border-bottom: none; }
}

.pkg-card.featured { background: var(--green); }

.pkg-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--green);
  padding: .25rem .65rem;
  border-radius: 2px;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.pkg-tier {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.pkg-card.featured .pkg-tier { color: rgba(212,175,119,.7); }

.pkg-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .6rem;
}
.pkg-card.featured .pkg-name { color: var(--white); }

.pkg-desc {
  font-size: .84rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.pkg-card.featured .pkg-desc { color: rgba(255,255,255,.65); }

.pkg-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.pkg-card.featured .pkg-features { border-top-color: rgba(255,255,255,.15); }

.pkg-features li {
  font-size: .84rem;
  color: #444;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.pkg-card.featured .pkg-features li { color: rgba(255,255,255,.82); }

.pkg-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: .45em;
}

.pkg-cta {
  display: block;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.pkg-cta-outline {
  border: 1px solid var(--border);
  color: var(--green);
  background: none;
}
.pkg-cta-outline:hover {
  border-color: var(--green);
  background: rgba(10,61,47,.04);
}
.pkg-cta-gold {
  background: var(--gold);
  color: var(--green);
  border: 1px solid var(--gold);
}
.pkg-cta-gold:hover { background: #c49e60; border-color: #c49e60; }

/* Individual investment strip */
.indiv-strip {
  background: var(--green);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.indiv-strip-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.indiv-strip-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 520px;
}
.indiv-strip-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
@media (max-width: 640px) {
  .indiv-strip { padding: 2rem 1.5rem; }
  .pkg-section-inner { padding: 0 1.25rem; }
}

