/* ===== Variables ===== */
:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f0ede8;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #2c3e50;
  --color-accent-light: #3d5a73;
  --color-cta: #c9a227;
  --color-cta-hover: #b8921f;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.125rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-accent); display: flex; align-items: center; }
.logo img { height: 48px; width: auto; object-fit: contain; }
.logo span { color: var(--color-cta); }
.nav { display: flex; gap: 2rem; }
.nav a { font-weight: 500; color: var(--color-text-muted); transition: color 0.2s; }
.nav a:hover { color: var(--color-accent); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); }

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--color-bg); padding: 1rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav.active { display: flex; }
  .nav a { padding: 0.75rem; }
  .nav-toggle { display: flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--color-accent); color: white; }
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.btn-secondary:hover { background: var(--color-accent); color: white; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { 
  margin-bottom: 1rem; 
  color: white; 
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 4px 40px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; color: var(--color-cta); }
.hero-subtitle { 
  font-size: 1.25rem; 
  color: rgba(255,255,255,0.95); 
  margin-bottom: 2rem; 
  max-width: 480px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero .btn { 
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.hero-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(44,62,80,0.03) 0%, transparent 50%), 
              linear-gradient(225deg, rgba(201,162,39,0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.hero-slider {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}
.hero-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15) translateX(20px);
  animation: heroSlide 30s infinite;
}
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 5s; }
.hero-slider img:nth-child(3) { animation-delay: 10s; }
.hero-slider img:nth-child(4) { animation-delay: 15s; }
.hero-slider img:nth-child(5) { animation-delay: 20s; }
.hero-slider img:nth-child(6) { animation-delay: 25s; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.15) translateX(20px); }
  2% { opacity: 1; transform: scale(1) translateX(0); }
  15% { opacity: 1; transform: scale(1) translateX(0); }
  17% { opacity: 0; transform: scale(1.08) translateX(-20px); }
  100% { opacity: 0; transform: scale(1.15) translateX(20px); }
}

/* ===== Inwestycje Preview ===== */
.inwestycje-preview { padding: 4rem 0; background: white; }
.inwestycje-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.inwestycja-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
  display: block;
}
.inwestycja-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.inwestycja-card.coming-soon { opacity: 0.85; }
.inwestycja-card-image { aspect-ratio: 4/3; background: var(--color-bg-alt); overflow: hidden; }
.inwestycja-card-image img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--color-text-muted); font-size: 0.9rem;
}
.inwestycja-card-content { padding: 1.5rem; }
.inwestycja-card h3 { margin: 0 0 0.5rem; }
.inwestycja-card .location { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.inwestycja-card .price-range { font-weight: 600; color: var(--color-accent); margin: 0 0 0.5rem; }
.link-arrow { font-size: 0.9rem; color: var(--color-cta); font-weight: 500; }
.inwestycja-card .badge { display: inline-block; background: var(--color-bg-alt); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; margin-top: 0.5rem; }
.inwestycje-map-link { margin-top: 1.5rem; margin-bottom: 0; text-align: center; }
.inwestycje-map-link a { font-weight: 500; color: var(--color-cta); }
.inwestycje-map-link a:hover { text-decoration: underline; }

/* ===== Dlaczego my ===== */
.dlaczego-my { padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.feature { text-align: center; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--color-text-muted); margin: 0; }

/* ===== CTA ===== */
.cta {
  padding: 4rem 0;
  background: var(--color-accent);
  color: white;
  text-align: center;
}
.cta h2 { color: white; margin-bottom: 0.5rem; }
.cta p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta .btn-secondary { border-color: white; color: white; }
.cta .btn-secondary:hover { background: white; color: var(--color-accent); }

/* ===== Footer ===== */
.footer { padding: 3rem 0; background: var(--color-bg-alt); color: var(--color-text-muted); font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-accent); margin: 0 0 0.5rem; }
.footer-logo img { height: 36px; width: auto; object-fit: contain; display: block; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--color-cta); }

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Page Header ===== */
.page-header {
  padding: 8rem 0 3rem;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.page-header h1 { margin: 0 0 0.5rem; }
.page-header p { color: var(--color-text-muted); margin: 0; }

.page-header-inwestycja .page-header-back { margin-bottom: 1.5rem; }
.page-header-inwestycja .page-header-title { margin: 0 0 1rem; }
.page-header-inwestycja .page-header-address { margin: 0 0 1.25rem; }
.page-header-inwestycja .page-header-status {
  margin: 0;
  padding: 0.875rem 1.25rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-cta);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 28em;
}

/* ===== Content Pages ===== */
.page-content { padding: 3rem 0; }
.content-section { margin-bottom: 3rem; }
.content-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.inwestycja-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.inwestycja-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.inwestycja-hero-img img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
  .inwestycja-gallery { grid-template-columns: 1fr; }
}
.wizualizacja-disclaimer {
  font-size: 0.8rem;
  color: rgba(92, 92, 92, 0.6);
  margin: -1rem 0 2rem;
}

/* ===== Cennik Tables ===== */
.table-wrapper { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 0.875rem 1rem; text-align: left; border-bottom: 1px solid #eee; }
th { background: var(--color-accent); color: white; font-weight: 600; }
tr:hover { background: #f9f9f9; }
.price-history { font-size: 0.9rem; color: var(--color-text-muted); }
.price-history table th { background: var(--color-bg-alt); color: var(--color-text); }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-info p { margin: 0.5rem 0; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== Documents / Prospekt ===== */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { margin-bottom: 1rem; }
.doc-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.doc-list a:hover { box-shadow: var(--shadow-hover); }
.doc-list a::before { content: "📄"; }

.text-muted { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 0.5rem; }

.wkrotce-box { background: var(--color-bg-alt); padding: 1.5rem; border-radius: var(--radius-lg); }
.wkrotce-box h2 { margin-bottom: 0.75rem; }
.wkrotce-box p { margin: 0 0 0.5rem; }
.wkrotce-box p:last-child { margin-bottom: 0; }

/* ===== Map Page ===== */
.map-investments-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.map-investments-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 1rem;
}
.map-investments-list li:last-child { border-bottom: none; }
.map-investments-list strong { color: var(--color-accent); }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  height: 70vh;
  min-height: 450px;
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { margin-top: 1rem; }
.map-link a { color: var(--color-accent); font-weight: 500; }
.map-link a:hover { text-decoration: underline; }
