/*
Theme Name: Mundo Invest
Description: Motyw przeniesiony 1:1 z projektu Webflow „Mundo Invest - Nieruchomości”. Style strony znajdują się w katalogu /css (eksport Webflow).
Author: Mundo Invest
Version: 1.0.9
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mundo-invest
*/

/* Poprawki specyficzne dla WordPressa (reszta stylów: css/*.css) */
.mundo-contact-form .w-button[disabled] { opacity: .7; cursor: wait; }

/* Polityka prywatności: w Webflow rozmiary liczone od szerokości ekranu (5vw/2vw)
   dawały ogromny tekst na dużych monitorach. Ograniczamy je jak na stronie RODO. */
.section-21 .privacy-policy { font-size: clamp(14px, 2vw, 18px) !important; }
.section-21 .privacy-policy h1 { font-size: clamp(24px, 5vw, 40px) !important; }
.section-21 .privacy-policy h2 { font-size: clamp(20px, 4vw, 32px) !important; }
.section-21 .privacy-policy h3 { font-size: clamp(18px, 3vw, 28px) !important; }

/* ===== Sekcja „Sprawdź jak pracujemy” – układ redakcyjny: zdjęcie + kroki w wierszach ===== */
.mundo-process { --gold: #d8ba81; display: block; }
.mundo-process__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 110px);
  width: 100%; max-width: 1240px; margin: 0 auto;
  align-items: start;
}
.mundo-process__aside { position: sticky; top: 110px; }
.mundo-process__heading { margin: 0 0 40px; line-height: 1.1; }
.mundo-process__photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.mundo-process__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mundo-process__main { padding-top: 10px; }
.mundo-row { position: relative; padding: 44px 0 46px; }
.mundo-row::before {               /* cienka linia nad wierszem */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(255, 255, 255, .16);
}
.mundo-row::after {                /* złota linia, która „dorysowuje się” */
  content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 1px; background: var(--gold);
  transform-origin: left center;
}
.mundo-row:first-child { padding-top: 0; }
.mundo-row:first-child::before, .mundo-row:first-child::after { display: none; }
.mundo-row__title {
  margin: 0 0 16px; max-width: 560px;
  color: #fff; font-family: Lato, sans-serif; font-weight: 300;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.5px;
}
.mundo-row__text {
  margin: 0; max-width: 560px;
  color: rgba(255, 255, 255, .72);
  font-family: Lato, sans-serif; font-weight: 300; font-size: 17px; line-height: 1.75;
}

.mundo-quote {
  margin: 16px 0 0; padding: 48px 0 0; border: 0;
  border-top: 1px solid rgba(216, 186, 129, .45);
}
.mundo-quote p {
  margin: 0; color: #fff;
  font-family: Lato, sans-serif; font-weight: 300;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.4; letter-spacing: -.4px;
}
.mundo-quote em { font-style: normal; color: var(--gold); }

/* --- Animacja przy przewijaniu (tylko z JS; bez JS wszystko jest widoczne) --- */
.mundo-anim .mundo-process [data-mundo-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.mundo-anim .mundo-process [data-mundo-reveal].is-visible { opacity: 1; transform: none; }
/* zdjęcie odsłania się od dołu i lekko przybliża */
.mundo-anim .mundo-process__photo[data-mundo-reveal] { opacity: 1; transform: none; }
.mundo-anim .mundo-process__photo[data-mundo-reveal] img {
  clip-path: inset(100% 0 0 0); transform: scale(1.12);
  transition: clip-path 1.4s cubic-bezier(.65, 0, .25, 1), transform 2.2s cubic-bezier(.2, .7, .2, 1);
}
.mundo-anim .mundo-process__photo.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }
/* złota linia nad wierszem */
.mundo-anim .mundo-row::after { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.65, 0, .25, 1) .25s; }
.mundo-anim .mundo-row.is-visible::after { transform: scaleX(1); }

@media (max-width: 991px) {
  .mundo-process__grid { grid-template-columns: 1fr; gap: 0; }
  .mundo-process__aside { position: static; }
  .mundo-process__heading { margin-bottom: 28px; text-align: left; }
  .mundo-process__photo { aspect-ratio: 4 / 3; margin-bottom: 44px; }
  .mundo-row { padding: 32px 0 34px; }
  .mundo-row__text { font-size: 16px; }
  .mundo-quote { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .mundo-anim .mundo-process [data-mundo-reveal],
  .mundo-anim .mundo-process__photo img,
  .mundo-anim .mundo-row::after { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ===== Dane spółki w stopce (art. 206 KSH) – kolumna obok „Linki” i „Kontakt” ===== */
.mundo-company { justify-content: flex-start; max-width: 380px; }
.mundo-company p {
  margin: 0 0 4px;
  color: #d4d4d4; font-family: Inter, sans-serif; font-size: 12px; line-height: 1.6;
}
.mundo-company .mundo-company__name { color: #fff; font-weight: 500; }
@media (max-width: 991px) {
  .mundo-company { margin: 28px 0 8px; max-width: none; }
}
