:root {
  --color-white: #ffffff;
  --color-beige: #f4f1ea;
  --color-beige-light: #fbfaf8;
  --color-green-dark: #1b3a2a;
  --color-green-medium: #3c6549;
  --color-green-light: #e6efe8;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-accent: #cfa872; /* Złoty/Beżowy akcent */

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.3s ease;
  
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 15px 50px rgba(27, 58, 42, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-beige-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green-dark);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* Layout utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-green-dark);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(27, 58, 42, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-green-medium);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 58, 42, 0.3);
}

.btn-pulse {
  position: relative;
}

.btn-pulse::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50px;
  border: 2px solid var(--color-green-dark);
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-fast);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  padding: 0 2rem;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green-dark);
  text-decoration: none;
}

header.scrolled .logo, header:not(.hero-intersecting) .logo {
  color: var(--color-green-dark);
}

/* In hero, nav text might need to be white if img is dark */
header.hero-top:not(.scrolled) .logo {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('https://dzialka-na-sprzedaz-dosin.pl/dzialka-na-sprzedaz-dosin-gmina-serock.webp'); /* Nature/field background */
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05); /* For slight pan animation if desired */
  animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(27, 58, 42, 0.6) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
  color: var(--color-beige);
}

.hero h1 {
  color: var(--color-white);
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Features Section (Glassmorphism) */
.features {
  background-color: var(--color-beige-light);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -50px; left: 0; width: 100%; height: 100px;
  background: var(--color-beige-light);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.9);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--color-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-green-dark);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Location Section */
.location {
  background-color: var(--color-white);
}

.location-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.location-content {
  flex: 1;
}

.location-image {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.location-image img {
  width: 100%;
  display: block;
  border-radius: 20px;
  transition: transform 0.8s ease;
}

.location-image:hover img {
  transform: scale(1.05);
}

.location-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.bullet-list {
  list-style: none;
  margin-top: 1.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-green-medium);
  font-weight: bold;
}

/* Maps Section */
.maps {
  background-color: var(--color-beige-light);
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.map-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
  transition: var(--transition-slow);
  border: 1px solid rgba(0,0,0,0.05);
}

.map-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.map-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.map-caption {
  text-align: center;
  padding: 1.5rem;
  font-weight: 500;
  color: var(--color-green-dark);
  margin-bottom: 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Target Audience */
.audience {
  background-color: var(--color-green-dark);
  color: var(--color-white);
}

.audience h2 {
  color: var(--color-white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.audience-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.audience-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.audience-card h3 {
  color: var(--color-beige);
}

/* FAQ Section */
.faq {
  background-color: var(--color-beige);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-green-dark);
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-green-medium);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-green-dark);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; transition: transform 0.3s ease; }

.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
  background: var(--color-white);
}

.faq-item.active .faq-answer {
  padding: 0 2rem 1.5rem;
  max-height: 500px; /* arbitrary height for animation */
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-medium) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--color-beige);
}

.phone-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 3rem;
  display: inline-block;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.phone-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}

.phone-label {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.phone-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem); /* Zmniejszono font size */
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  white-space: nowrap; /* Zapobiega przełamywaniu numeru do nowej linii */
}

.phone-number svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

/* Footer */
footer {
  background-color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--color-beige);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green-dark);
  margin-bottom: 1rem;
  display: inline-block;
}

footer p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .location-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }
  
  .feature-card {
    padding: 2rem 1.5rem;
  }
  
  .phone-card {
    padding: 2rem 1rem;
  }
}


.hidden-mobile {
  display: block;
}

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

  .map-img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container,
  .nav-container,
  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header {
    padding: 1rem 0;
  }

  header.scrolled {
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero {
    min-height: 680px;
    height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
    line-height: 1.1;
  }

  .hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .btn,
  .btn-primary {
    width: 100%;
    max-width: 100%;
    padding: 0.95rem 1.25rem;
  }

  .hidden-mobile {
    display: none;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .features-grid,
  .audience-grid,
  .maps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card,
  .audience-card,
  .map-card {
    border-radius: 16px;
  }

  .audience-card {
    padding: 1.75rem;
  }

  .map-img {
    height: 300px;
  }

  .map-caption {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-question {
    padding: 1.1rem 1rem;
    gap: 1rem;
    align-items: flex-start;
    font-size: 1.05rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1.1rem;
  }

  .faq-icon {
    flex: 0 0 24px;
    margin-top: 0.15rem;
  }

  .cta {
    padding: 5rem 0;
  }

  .cta p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .phone-card {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .phone-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .phone-number {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
    gap: 0.65rem;
    flex-wrap: wrap;
    white-space: normal;
  }

  .phone-number svg {
    width: 34px;
    height: 34px;
  }

  footer {
    padding: 2rem 0;
  }

  footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 620px;
    padding-top: 6.5rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero p,
  p {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }

  .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .feature-card h3,
  .audience-card h3 {
    font-size: 1.2rem;
  }

  .map-img {
    height: 240px;
  }

  .cta h2 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
}



.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--color-green-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-green-medium);
  text-decoration: underline;
}

.privacy-page {
  background-color: var(--color-beige-light);
}

.privacy-content {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.privacy-content h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p,
.privacy-content li {
  font-size: 1rem;
  color: var(--color-text-main);
}

.privacy-content ul {
  margin: 0 0 1rem 1.25rem;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 1.5rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

