/*
Theme Name: Rezydencje przy Wesołej
Theme URI: https://jtdevelopment.pl
Author: Adimo.pl
Author URI: https://adimo.pl
Version: 1.0.0
Requires PHP: 7.4
Text Domain: rezydencje-wesola
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest: #2B4C30;
  --forest-deep: #1A3320;
  --forest-light: #3A6340;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --gold-dark: #A8872E;
  --cream: #F5F1EA;
  --cream-dark: #E8E0D0;
  --white: #FEFDFB;
  --charcoal: #2A2A28;
  --text: #3D3D3B;
  --text-light: #6B6B68;
  --shadow: rgba(26, 51, 32, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); color: var(--forest-deep); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ── LOGO ── */
.logo {
  display: inline-block;
  text-decoration: none;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.footer .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  background: rgba(254,253,251,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 0.6rem 2.5rem;
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 2px 20px var(--shadow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--forest); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--forest-deep);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

/* ── HERO / SLIDER ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,51,32,0.75) 0%, rgba(26,51,32,0.3) 50%, rgba(26,51,32,0.1) 100%);
}
.hero-slide:nth-child(1) { background-image: url('assets/img/0.jpg'); }
.hero-slide:nth-child(2) { background-image: url('assets/img/1.jpg'); }
.hero-slide:nth-child(3) { background-image: url('assets/img/2.jpg'); }
.hero-slide:nth-child(4) { background-image: url('assets/img/3.jpg'); }
.hero-slide:nth-child(5) { background-image: url('assets/img/4.jpg'); }

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6%;
  max-width: 800px;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 0.6rem;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-dot.active {
  background: var(--gold);
  width: 32px;
  border-radius: 5px;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-hint span {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ── ADVANTAGES BAR ── */
.advantages-bar {
  background: var(--forest-deep);
  overflow: hidden;
  position: relative;
}
.advantages-track {
  display: flex;
  animation: scrollTrack 25s linear infinite;
}
.advantage-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 2.5rem;
  color: var(--cream);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.advantage-item svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
.advantage-item .adv-text {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
.section { padding: 6rem 6%; }
.section-narrow { max-width: 1280px; margin: 0 auto; }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-images .img-box {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.about-images .img-box:hover { transform: scale(1.03); }
.about-images .img-box:nth-child(1) { background-image: url('assets/img/5.jpg'); }
.about-images .img-box:nth-child(2) { background-image: url('assets/img/6.jpg'); grid-row: 1 / 3; aspect-ratio: auto; }
.about-images .img-box:nth-child(3) { background-image: url('assets/img/7.jpg'); }

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── ATTUTY / FEATURES ── */
.features-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(43,76,48,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.features-header p {
  color: var(--text-light);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.feature-card:hover::before { height: 100%; }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-icon svg {
  width: 26px; height: 26px;
  stroke: var(--forest);
  fill: none;
  stroke-width: 1.5;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--forest-deep);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── SITE PLAN ── */
.siteplan-section {
  background: var(--forest-deep);
  color: var(--white);
  text-align: center;
  position: relative;
}
.siteplan-section h2 { color: var(--white); }
.siteplan-section .section-label { color: var(--gold-light); }
.siteplan-section > p {
  color: rgba(255,255,255,0.65);
  max-width: 550px;
  margin: 0.5rem auto 2.5rem;
}
.siteplan-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.siteplan-img {
  width: 100%;
  display: block;
  background-image: url('assets/img/site-plan.jpg');
  background-size: cover;
  background-position: center;
  aspect-ratio: 16/9;
  position: relative;
}
.house-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.house-shape { text-decoration: none; cursor: pointer; }
.house-shape polygon {
  fill: rgba(201,168,76,0);
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: round;
  transition: fill 0.25s ease, stroke-width 0.25s;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.6));
}
.house-shape:hover polygon {
  fill: rgba(201,168,76,0.28);
  stroke-width: 4.5;
}
.house-shape.sold polygon { stroke: #bbb; }
.house-shape.sold:hover polygon { fill: rgba(150,150,150,0.2); }
.house-shape .dom-label {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  fill: var(--gold);
  paint-order: stroke;
  stroke: rgba(0,0,0,0.7);
  stroke-width: 4px;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.house-shape.sold .dom-label { fill: #ddd; }

.siteplan-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
}
.legend-dot.available { background: var(--gold); }
.legend-dot.reserved { background: var(--text-light); }

/* ── INFO BOXES ── */
.info-section { background: var(--white); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: 2rem auto 0;
}
.info-box {
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.info-box:hover { transform: translateY(-3px); }
.info-box.dark {
  background: var(--forest-deep);
  color: var(--white);
}
.info-box.light {
  background: var(--cream);
  color: var(--text);
}
.info-box.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--forest-deep);
}
.info-box .box-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.info-box.dark .box-number { color: var(--gold); }
.info-box.gold .box-number { color: var(--forest-deep); }
.info-box .box-unit {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
}
.info-box .box-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
  opacity: 0.7;
}
.info-box .box-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  opacity: 0.85;
}
.info-box.wide { grid-column: span 2; }

/* ── HOUSES CARDS ── */
.houses-list {
  max-width: 1100px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.house-row {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  display: grid;
  grid-template-columns: 130px 1.3fr 1fr 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}
.house-thumb {
  width: 100%;
  height: 78px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.house-row .house-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.15;
}
.house-row .house-price-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}
.house-row .house-price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest-deep);
}
.house-row .house-price-m2 {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}
.house-specs {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.house-specs strong { color: var(--text); font-weight: 600; }
.btn-house {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s;
}
.btn-house:hover { background: var(--forest-deep); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status-pill.dostepne { background: rgba(34,139,69,0.15); color: #1f7a3d; }
.status-pill.dostepne::before { background: #2bA84e; }
.status-pill.rezerwacja { background: rgba(230,180,30,0.18); color: #9c7a0a; }
.status-pill.rezerwacja::before { background: #E6B41E; }
.status-pill.niedostepny { background: rgba(200,50,45,0.13); color: #C8322D; }
.status-pill.niedostepny::before { background: #C8322D; }

@media (max-width: 980px) {
  .house-row {
    grid-template-columns: 90px 1fr;
    grid-template-areas:
      "thumb name"
      "thumb price"
      "specs1 specs1"
      "status status"
      "btn btn";
    row-gap: 0.6rem;
  }
  .house-thumb { grid-area: thumb; height: 100%; min-height: 80px; }
  .house-row .house-name-wrap { grid-area: name; }
  .house-row .house-price-wrap { grid-area: price; }
  .house-row .house-specs { grid-area: specs1; }
  .house-row .house-status-wrap { grid-area: status; }
  .btn-house { grid-area: btn; width: 100%; }
}

/* ── LOKALIZACJA / MAP ── */
.location-section { background: var(--white); }
.location-map-wrap {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--shadow);
}
#locationMap {
  width: 100%;
  height: 460px;
  background: #f7f5f1;
}
.map-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.map-legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-legend-dot.home { background: var(--gold); }
.map-legend-dot.shop { background: #C97A3D; }
.map-legend-dot.wkd { background: var(--forest); }
.map-legend-dot.school { background: #3E7FB0; }
.map-legend-dot.kindergarten { background: #5F9E5C; }
.map-legend-dot.park { background: #2E7D5B; }
.map-legend-dot.gym { background: #8B5FBF; }
.map-legend-dot.pharmacy { background: #B0414A; }
.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { font-family: 'Outfit', sans-serif; font-size: 0.85rem; margin: 0.6rem 0.8rem; }
.leaflet-popup-content strong { color: var(--forest-deep); }
.map-pin {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.map-pin svg { width: 22px; height: 22px; fill: #fff; }
.map-pin-home {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 0 0 6px rgba(201,168,76,0.3), 0 2px 10px rgba(0,0,0,0.4);
}

/* ── FINANSOWANIE ── */
.finance-section { background: var(--white); }
.finance-intro {
  max-width: 760px;
  margin: 1.5rem auto 3rem;
  text-align: center;
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.8;
}
.finance-advisors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 4rem;
}
.advisor-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem;
}
.advisor-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--forest-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.advisor-photo svg { width: 30px; height: 30px; }
.advisor-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--forest-deep);
  margin-bottom: 0.2rem;
}
.advisor-info a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}
.advisor-info a:hover { color: var(--gold-dark); }

.finance-benefits-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.finance-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.finance-benefit {
  text-align: center;
  padding: 0 0.5rem;
}
.finance-benefit-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.finance-benefit-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.finance-benefit-icon svg { width: 26px; height: 26px; stroke: var(--forest); fill: none; stroke-width: 1.5; }
.finance-benefit p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .finance-advisors { grid-template-columns: 1fr; }
  .finance-benefits-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── GALLERY STRIP ── */
.gallery-strip {
  display: flex;
  height: 400px;
  overflow: hidden;
}
.gallery-strip .gs-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: flex 0.6s ease;
  position: relative;
  cursor: pointer;
}
.gallery-strip .gs-item:hover { flex: 2.5; }
.gallery-strip .gs-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,51,32,0.4) 0%, transparent 50%);
}
.gallery-strip .gs-item:nth-child(1) { background-image: url('assets/img/g1.jpg'); }
.gallery-strip .gs-item:nth-child(2) { background-image: url('assets/img/g2.jpg'); }
.gallery-strip .gs-item:nth-child(3) { background-image: url('assets/img/g3.jpg'); }
.gallery-strip .gs-item:nth-child(4) { background-image: url('assets/img/g4.jpg'); }
.gallery-strip .gs-item:nth-child(5) { background-image: url('assets/img/g5.jpg'); }
.gallery-strip .gs-item:nth-child(6) { background-image: url('assets/img/g6.jpg'); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--forest);
  padding: 5rem 6%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 50%);
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}
.cta-banner .btn { position: relative; }

/* ── CONTACT SECTION ── */
.contact-section {
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 2rem auto 0;
  align-items: start;
}
.contact-info h3 {
  color: var(--forest-deep);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-detail svg {
  width: 22px; height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail .cd-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}
.contact-detail .cd-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--shadow);
}
.contact-form h3 {
  color: var(--forest-deep);
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .btn { width: 100%; justify-content: center; padding: 1rem; font-size: 0.95rem; }

/* ── FOOTER ── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 4rem 6% 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.footer-contact-item svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── MOBILE MENU ── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--forest-deep);
  margin: 6px auto;
  transition: all 0.3s;
}

/* ── MOBILE OVERLAY ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  flex-direction: column;
}
.mobile-overlay.open {
  display: flex;
}
.mobile-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}
.mobile-overlay-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.mobile-overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--forest-deep);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}
.mobile-overlay-close:hover { background: rgba(0,0,0,0.06); }
.mobile-overlay-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  gap: 0;
  overflow-y: auto;
}
.mobile-overlay-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--forest-deep);
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: color 0.2s, padding-left 0.2s;
  letter-spacing: 0.02em;
}
.mobile-overlay-nav a:last-child { border-bottom: none; }
.mobile-overlay-nav a:hover { color: var(--gold); padding-left: 0.5rem; }
.mobile-overlay-cta {
  display: block !important;
  margin-top: 1.2rem;
  background: var(--forest) !important;
  color: #fff !important;
  padding: 0.85rem 2rem !important;
  border-radius: 4px;
  font-size: 0.95rem !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.mobile-overlay-cta:hover {
  background: var(--forest-deep) !important;
  padding-left: 0 !important;
  color: #fff !important;
}
.mobile-overlay-footer {
  flex-shrink: 0;
  padding: 1.4rem 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.mobile-overlay-phone {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--forest-deep);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-overlay-phone svg { color: var(--gold); flex-shrink: 0; }
.mobile-overlay-phone:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-box.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1140px) {
  .navbar { padding: 0.8rem 1.2rem; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
  }
  .nav-links.open a { font-size: 1.2rem; }
  .section { padding: 3.5rem 5%; }
  .hero-content { padding: 0 5%; }
  .features-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-strip { height: 250px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
/* ── CONTACT FORM 7 — DOPASOWANIE DO PROJEKTU ── */
.contact-form .wpcf7-form p { margin-bottom: 0; }
.contact-form .wpcf7-form-control-wrap { display: block; margin-bottom: 1.2rem; }
.contact-form .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .cf7-row .wpcf7-form-control-wrap { margin-bottom: 0; }
.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form input[type="submit"] {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  background: var(--gold);
  color: var(--forest-deep);
}
.contact-form input[type="submit"]:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}
.contact-form .wpcf7-not-valid-tip {
  color: #C8322D;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: block;
}
.contact-form .wpcf7-response-output {
  margin-top: 1.2rem !important;
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 0.8rem 1rem !important;
}
@media (max-width: 600px) {
  .contact-form .cf7-row { grid-template-columns: 1fr; }
}

/* ── WORDPRESS CORE STYLES ── */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px; height: 1px; overflow: hidden;
}
img { max-width: 100%; height: auto; }
.custom-logo { display: block; }
