/* ====== Pristine Bloom Nieruchomości - style.css ====== */
/* --- CSS RESET AND BASELINE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F4F6F8;
  color: #22324D;
  min-height: 100vh;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #29A199;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22324D;
  outline: none;
}
ul, ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  color: #22324D;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1rem; }
p { margin-top: 0; margin-bottom: 18px; }
strong { font-weight: bold; }

/* --- CONTAINER & LAYOUT STRUCTURE --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(34,50,77,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 44px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 7px;
  color: #22324D;
  position: relative;
  border-radius: 5px;
  transition: background 0.15s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #29A199;
  color: #fff;
}
.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: #29A199;
  color: #fff !important;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 40px;
  border: none;
  text-transform: uppercase;
  box-shadow: 0 6px 24px 0 rgba(41,161,153,0.13);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #22324D;
  color: #fff !important;
  box-shadow: 0 10px 40px 0 rgba(34,50,77,0.13);
  outline: none;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #22324D;
  cursor: pointer;
  margin-left: 10px;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #29A199;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #fff;
  z-index: 130;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
  box-shadow: 0 4px 32px rgba(34, 50, 77, 0.18);
  padding-top: 42px;
  padding-bottom: 56px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #22324D;
  cursor: pointer;
  z-index: 150;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #29A199;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 10vw 0 10vw;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #22324D;
  background: transparent;
  border-radius: 7px;
  padding: 11px 12px;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #29A199;
  color: #fff;
}

/* --- MOBILE NAV VISIBLE --- */
@media (max-width: 1024px) {
  header nav, header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN SECTION STYLES --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 32px 0 rgba(34,50,77,0.10);
}
section .container {
  padding: 0;
}

@media (max-width: 1024px) {
  section {
    margin-bottom: 40px;
    padding: 32px 6vw;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  section {
    margin-bottom: 32px;
    padding: 26px 2vw;
    border-radius: 14px;
  }
}

/* --- SPACING AND FLEXBOX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(34,50,77,0.09);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
  flex: 1 1 340px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F6F8;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(34,50,77,0.07);
  margin-bottom: 20px;
  font-size: 1.125rem;
  flex: 1 1 350px;
  min-width: 260px;
  max-width: 650px;
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  color: #22324D;
}
.testimonial-card p {
  margin: 0 0 0 12px;
  font-size: 1rem;
  color: #29A199;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTONS --- */
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #29A199;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 12px 28px;
  box-shadow: 0 4px 18px 0 rgba(41,161,153,0.14);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.16s, transform 0.16s, color 0.14s;
  text-transform: uppercase;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #22324D;
  color: #fff;
}

/* --- VISUAL ACCENTS & GEOMETRIC SHAPES --- */
.section-accent {
  background: #29A199;
  color: #fff;
  border-radius: 32px 32px 10px 10px;
  box-shadow: 0 6px 40px 0 rgba(41,161,153,0.14);
  padding: 50px 25px;
}

/* --- CARDS & LISTS --- */
ul, ol {
  padding-left: 24px;
  margin-bottom: 0;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1rem;
}
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card-list .card {
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 420px;
}

/* --- FORMS AND FIELDS --- */
input, textarea {
  font-size: 1rem;
  border-radius: 9px;
  border: 2px solid #e2e6ea;
  padding: 12px 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  width: 100%;
  transition: border 0.16s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #29A199;
}

/* --- FOOTER --- */
footer {
  background: #22324D;
  color: #fff;
  padding: 48px 0 26px 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -2px 32px 0 rgba(34,50,77,0.10);
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #29A199;
}
.social-links img {
  width: 48px;
  height: 48px;
}
address {
  font-style: normal;
  font-size: 0.97rem;
  color: #F4F6F8;
  margin: 0;
}
.legal {
  font-size: 0.89rem;
  color: #B7BCC5;
  margin-top: 8px;
}

/* --- RESPONSIVE FONT SIZE & LAYOUTS --- */
@media (max-width: 600px) {
  h1 { font-size: 1.77rem; }
  h2 { font-size: 1.28rem; }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  footer {
    border-radius: 20px 20px 0 0;
    padding: 24px 0 18px 0;
    font-size: 0.97rem;
  }
  section {
    border-radius: 9px;
  }
}
@media (max-width: 430px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 17px 7px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 3px;
    align-items: center;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: #22324D;
  color: #fff;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 14px 22px 14px;
  box-shadow: 0 -4px 30px 0 rgba(34,50,77,0.22);
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.35s, opacity 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  gap: 20px;
  margin-top: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  background: #29A199;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.10s, color 0.10s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #fff;
  color: #22324D;
}
.cookie-btn.secondary {
  background: #fff;
  color: #22324D;
  border: 2px solid #29A199;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #29A199;
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,50,77,0.55);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-dialog {
  background: #fff;
  color: #22324D;
  border-radius: 28px;
  box-shadow: 0 12px 40px 0 rgba(41,161,153,0.17);
  max-width: 430px;
  width: 90vw;
  padding: 32px 23px 18px 23px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 23px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #22324D;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #29A199;
}
.cookie-pref-list {
  width: 100%;
  margin: 13px 0 19px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-pref-label {
  font-size: 1.02rem;
  font-weight: 600;
}
.cookie-pref-desc {
  font-size: 0.96rem;
  color: #29A199;
  margin-left: 11px;
}
.cookie-pref-toggle {
  appearance: none;
  width: 46px;
  height: 24px;
  background: #e2e6ea;
  border-radius: 22px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-pref-toggle:checked {
  background: #29A199;
}
.cookie-pref-toggle:before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3px rgba(0,0,0,0.06);
  transition: transform 0.18s;
}
.cookie-pref-toggle:checked:before {
  transform: translateX(22px);
}

/* --- VISUAL HIERARCHY, SHADOWS, HOVER STATES --- */
.card, .testimonial-card, section {
  box-shadow: 0 3px 22px 0 rgba(34,50,77,0.11);
}
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(41,161,153,0.13);
  transform: translateY(-3px) scale(1.018);
}

/* --- UTILITIES --- */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.flex {
  display: flex !important;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-20 {
  gap: 20px;
}
.gap-32 {
  gap: 32px;
}

/* --- TYPOGRAPHY EMPHASIS --- */
h1, h2, .cta-primary, .footer-nav a, .mobile-nav a, .card-title, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* --- Z-INDEX LAYERS --- */
header { z-index: 100; }
.mobile-menu { z-index: 130; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 10100; }

/* --- Selection color --- */
::selection {
  background: #29A199;
  color: #fff;
}

/* --- Accessibility: Focus styles --- */
:focus-visible {
  outline: 2px solid #29A199;
  outline-offset: 2px;
}

/* Hide focus for mouse users, show for keyboard */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

/* --- Hide visually but keep accessible --- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* --- Animations & Microinteractions --- */
.cta-primary, .button, .card, .footer-nav a, .mobile-nav a, .cookie-btn {
  transition: background 0.20s, color 0.16s, box-shadow 0.20s, transform 0.16s;
}
.card, .testimonial-card {
  transition: box-shadow 0.20s, transform 0.17s;
}

/* --- Hide scroll on mobile nav open --- */
body.menu-open {
  overflow: hidden;
}

/* --- END --- */