/* =========================================================
   Flicker Crest Nieruchomości – Scandinavian Clean style
   Modern Flexbox CSS: No Grid, No Columns, only Flexbox
   ========================================================= */

/* ---- CSS RESET & NORMALIZE ---- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background-color: #F7F8F9;
  color: #20323D;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #234B6C;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; }

p, ul, ol, dl { font-size: 1rem; margin-bottom: 1.2em; color: #2C3C4A; }
strong { font-weight: 700; color: #234B6C; }
a { color: #234B6C; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FDB813; outline: none; }

img { max-width: 100%; display: block; }
li { margin-bottom: 8px; }
ul, ol { padding-left: 24px; }

button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: #234B6C;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 1px 3px rgba(30,45,70,0.08);
  margin-top: 16px;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus, button:hover, button:focus  {
  background: #FDB813;
  color: #234B6C;
}

/* ---- LAYOUT CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.text-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ---- SECTIONS ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(30,45,70,0.07);
}
main > section:not(:last-child) {
  margin-bottom: 60px;
}

/* ---- FLEX CONTAINER UTILS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(30,45,70,0.06);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F7F9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(30,45,70,0.08);
  margin-bottom: 20px;
  color: #234B6C;
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  min-width: 250px;
  flex: 1 1 270px;
  box-shadow: 0 2px 8px rgba(30,45,70,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 4px 16px rgba(35,75,108,0.15);
  transform: translateY(-4px) scale(1.015);
}

/* ---- SERVICE CARDS (services page) ---- */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.service-card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 5px rgba(30,45,70,0.09);
  padding: 26px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1px solid #F1F2F6;
}
.service-card:hover { box-shadow: 0 3px 14px rgba(35,75,108,0.14); transform: translateY(-4px); }
.service-card img {
  width: 40px;
  margin-bottom: 12px;
}
.service-card h3 {
  margin-bottom: 10px;
  color: #234B6C;
  font-size: 1.15rem;
}
.service-card p {
  flex: 1;
  color: #295073;
}
.service-card .price {
  font-weight: 700;
  color: #FDB813;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ---- FEATURE GRIDS (index) ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.feature-item img { width: 38px; margin-bottom: 6px; }
.feature-item h3 { font-size: 1.09rem; color: #234B6C; }
.feature-item .price {
  color: #FDB813;
  font-weight: 700;
  font-size: 1.02rem;
}


/* ---- ARTICLES (poradnik) ---- */
.articles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-teaser {
  background: #F6F7F9;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(35,75,108,0.08);
  padding: 20px 16px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.article-teaser:hover {
  box-shadow: 0 4px 20px rgba(35,75,108,0.15);
  transform: translateY(-2px);
}
.article-teaser h3 { color: #234B6C; font-size: 1.03rem; margin-bottom: 10px; }

/* ---- FAQ ACCORDION (poradnik) ---- */
.faq-accordion {
  width: 100%;
}
.faq-accordion dt {
  font-weight: 600;
  background: #E7EBEF;
  color: #234B6C;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.18s;
}
.faq-accordion dt:hover {
  background: #D4E2ED;
}
.faq-accordion dd {
  padding: 12px 18px 18px 30px;
  background: #F6F7F9;
  border-radius: 0 0 8px 8px;
  margin-bottom: 14px;
  color: #3A4E62;
}

/* ---- FOOTER ---- */
footer {
  background: #E2E2E2;
  padding: 40px 0 20px 0;
  border-top: 1px solid #dadddf;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-links a {
  color: #234B6C;
  opacity: 0.92;
  font-size: 0.96rem;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.16s, color 0.18s;
}
.footer-links a:hover {
  background: #FDB813;
  color: #234B6C;
  opacity: 1;
}
.footer-links img {
  height: 36px;
  margin-left: 12px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
  color: #646C72;
  font-size: 0.93rem;
  opacity: 0.95;
}

/* ---- HEADER + NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,75,108,0.04);
  z-index: 990;
  position: relative;
}
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 0 0 0;
}
nav a {
  color: #234B6C;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.90;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.14s, color 0.15s;
}
nav a.cta-btn {
  background: #FDB813;
  color: #234B6C;
  font-weight: 700;
  margin-left: 20px;
  padding: 10px 32px;
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: #234B6C;
  color: #FDB813;
}
nav a:hover:not(.cta-btn), nav a:focus:not(.cta-btn) {
  background: #F3E9D1;
  color: #FDB813;
}
nav img {
  height: 42px;
  vertical-align: middle;
  margin-right: 10px;
}

/* ---- MOBILE NAVIGATION ---- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #234B6C;
  z-index: 1013;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #FDB813;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.42,.11,.32,1.23);
  z-index: 1030;
  box-shadow: 2px 0 24px rgba(35,75,108,0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 10px 0;
  background: none;
  color: #234B6C;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FDB813;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 30px;
}
.mobile-nav a {
  color: #234B6C;
  font-size: 1.15rem;
  padding: 10px 4px;
  border-radius: 9px;
  width: 100%;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  background: none;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FDB813;
  color: #234B6C;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 26px rgba(35,75,108,0.13);
  border-top: 1px solid #E2E2E2;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 18px 18px;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(.61,.11,.35,1.14);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 22px;
  font-family: inherit;
  border: none;
  background: #234B6C;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.15s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FDB813;
  color: #234B6C;
}
.cookie-banner button.settings {
  background: #E2E2E2;
  color: #234B6C;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #FDB813;
  color: #234B6C;
}

/* ---- COOKIE CONSENT MODAL ---- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  color: #234B6C;
  border-radius: 16px;
  padding: 40px 26px 28px 26px;
  box-shadow: 0 6px 32px rgba(35,75,108,0.17);
  z-index: 1300;
  max-width: 95vw;
  min-width: 320px;
  width: 100%;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.3s;
  opacity: 1;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(0.97); }
.cookie-modal h2 {
  text-align: left;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #234B6C;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 1rem;
}
.cookie-modal .switch {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #E2E2E2;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-modal .switch:checked {
  background: #234B6C;
}
.cookie-modal .switch::before {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.13s cubic-bezier(.55,.05,.67,.18);
}
.cookie-modal .switch:checked::before {
  left: 19px;
}
.cookie-modal .switch[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal button {
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  background: #234B6C;
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 700;
  transition: background 0.14s, color 0.13s, box-shadow 0.14s;
  cursor: pointer;
}
.cookie-modal button.cancel {
  background: #E2E2E2;
  color: #234B6C;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #FDB813;
  color: #234B6C;
}

/* ---- CONTACT DETAILS ---- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-radius: 9px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(35,75,108,0.06);
  font-size: 1.05rem;
  color: #234B6C;
}

/* ---- PRICING & ACCENTS ---- */
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FDB813;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 0.5px;
}

/* ---- OL/UL RESET AND PRESENTATION ---- */
ol {
  list-style: decimal inside;
  margin-bottom: 24px;
}
ul {
  list-style: disc inside;
  margin-bottom: 24px;
}

/* ---- GENERAL CARD/BOX SHADOWS & RADIUS ---- */
.card, .service-card, .feature-item, .article-teaser, .testimonial-card {
  border-radius: 9px;
  box-shadow: 0 1px 7px rgba(30,45,70,0.06);
  background: #fff;
}

/* ---- TESTIMONIAL STARS ---- */
.testimonial-card span:last-child {
  color: #FDB813;
  font-size: 1.18em;
  padding-left: 10px;
  letter-spacing: 1px;
  font-weight: 700;
}

/* ---- SUBTLE HOVER ANIMATIONS ---- */
a, button, .cta-btn, .feature-item, .service-card, .article-teaser {
  transition: box-shadow 0.17s, transform 0.13s, color 0.15s, background 0.18s;
}

/* ---- MOBILE-FIRST RESPONSIVE ---- */
@media (max-width: 1180px) {
  .container { max-width: 980px; padding: 0 8px; }
}
@media (max-width: 950px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { max-width: 98vw; }
  nav { gap: 12px; }
  .section { padding: 36px 10px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 100vw; padding: 0 4vw; }
  nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section {
    padding: 28px 4vw;
    margin-bottom: 34px;
    border-radius: 12px;
  }
  .feature-grid, .card-container, .content-grid, .services-list, .articles-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .service-card, .article-teaser {
    min-width: unset;
    flex: 1 1 100%;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-links, .footer-legal {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 19px 10px 14px 10px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 8px; width: 100%; }
  .cookie-modal { min-width: 88vw; padding: 22px 7vw 16px 7vw; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  .container { max-width: 100vw; padding: 0 2vw; }
  .section { padding: 13px 3vw; margin-bottom: 22px; }
  .feature-item, .service-card, .testimonial-card, .article-teaser {
    padding: 16px 7px;
  }
}

/* --- MICROINTERACTIONS & FOCUS STATES --- */
a:focus, .cta-btn:focus, button:focus {
  outline: 2px solid #FDB813;
  outline-offset: 2px;
}

/* ---- HIDING ---- */
.hide { display: none !important; }

/* ---- Z-INDEX LAYERING ---- */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 200;
}
.cookie-modal { z-index: 1900; }

/* ---- ACCESSIBLE VISUALLY HIDDEN UTILS (for JS interaction or accessibility) ---- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; /* added line */
  border: 0;
}

/* ---- END ---- */
