/* ------------------------
   Scandinavian Clean - Domowy Geniusz
   Complete CSS for all pages and UI elements
   Only Flexbox layouts, no CSS grid/columns
------------------------ */

/* CSS RESET and BASELINE NORMALIZER */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background-color: #F4F4F6;
  color: #173658;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}
a {
  color: #173658;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #43B685;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}

/*-------- TYPOGRAPHY ---------*/
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #173658;
  letter-spacing: -0.02em;
}
@media (min-width: 641px) {
  h1, .h1 { font-size: 3rem; }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #173658;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #173658;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #173658;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
b, strong {
  font-weight: 600;
}
.text-section {
  font-size: 1.075rem;
}

/*-------- CONTAINER & LAYOUT --------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .content-wrapper {
    gap: 32px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 540px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
}

/*-------- HEADER & NAVIGATION --------*/
header {
  background: #fff;
  border-bottom: 1px solid #E6E8EC;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 102;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 64px;
}
header img {
  height: 42px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.13s, color 0.13s;
}
nav a:hover, nav a:focus {
  background: #F4F4F6;
  color: #43B685;
}
.btn-primary {
  background: #43B685;
  color: #fff;
  border-radius: 6px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(67,182,133,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.20s, color 0.14s, box-shadow 0.18s;
  margin-left: 10px;
  display: inline-block;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #339e6c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(67,182,133,0.13);
}

/* -------- MOBILE MENU ---------*/
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 2rem;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #E6E8EC;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 18px;
  color: #173658;
  transition: background 0.13s, box-shadow 0.13s;
  z-index: 110;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F4F4F6;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 0 24px rgba(23,54,88,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.3,.85), opacity 0.24s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #173658;
  align-self: flex-end;
  margin: 20px 26px 6px 0;
  cursor: pointer;
  padding: 0 10px;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #43B685;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 32px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  color: #173658;
  background: none;
  border-radius: 6px;
  padding: 12px 0;
  min-width: 150px;
  width: 100%;
  display: block;
  margin-bottom: 0;
  transition: color 0.14s, background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4F4F6;
  color: #43B685;
}

@media (min-width: 1100px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  header nav { display: flex !important; }
}
@media (max-width: 1099px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/*-------- HERO SECTION --------*/
.hero {
  min-height: 290px;
  display: flex;
  background: #fff;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 30px rgba(67,182,133, 0.04);
  margin-bottom: 32px;
  padding: 48px 0 36px 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.hero h1 {
  color: #173658;
  margin-bottom: 16px;
}
.hero p {
  color: #344554;
  font-size: 1.17rem;
  margin-bottom: 18px;
}
.hero .btn-primary {
  margin-top: 8px;
}

/*-------- FLEX REUSABLE PATTERNS --------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 18px rgba(23,54,88,0.05);
  padding: 24px;
  flex: 1 1 240px;
  min-width: 220px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(67,182,133,0.11);
  transform: translateY(-3px) scale(1.015);
}

.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: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23,54,88,0.06);
  margin-bottom: 20px;
  font-size: 1.13rem;
  color: #173658;
  line-height: 1.45;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive text-image-section */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/*-------- FEATURES/ABOUT/CTA --------*/
.features,
.features-list,
.about-short,
.about-full {
  background: #F4F4F6;
  border-radius: 22px;
  margin-bottom: 48px;
  padding: 40px 20px;
}
.features h2, .about-short h2, .about-full h2, .features-list h2 {
  margin-bottom: 10px;
}
.features ul, .features-list ul, .about-full ul {
  margin-top: 12px;
  margin-left: 24px;
  list-style-type: disc;
  color: #173658;
  font-size: 1.07rem;
  line-height: 1.7;
}
.features ul li, .features-list ul li, .about-full ul li {
  margin-bottom: 12px;
  padding-left: 0;
}

/*-------- OFFER & SERVICES CARDS --------*/
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23,54,88,0.06);
  flex: 1 1 230px;
  min-width: 180px;
  padding: 22px 20px 20px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.19s, transform 0.17s;
}
.service-card:hover {
  box-shadow: 0 6px 28px rgba(67,182,133,0.13);
  transform: translateY(-3px) scale(1.012);
}
.service-card h3 {
  margin-bottom: 7px;
  font-size: 1.23rem;
}
.service-card p {
  margin-bottom: 5px;
  color: #344554;
  font-size: 1rem;
}
.service-price,
.service-card b {
  color: #43B685;
  font-weight: 600;
}

/*-------- CTA FINAL, NEWSLETTER --------*/
.cta-final, .newsletter-signup {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(23,54,88,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 48px;
  padding: 36px 20px;
}
.cta-final h2, .newsletter-signup h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}
.cta-final .btn-primary, .newsletter-signup .btn-primary {
  margin-top: 10px;
}

/*-------- TESTIMONIALS --------*/
.testimonials, .testimonials-highlights, .testimonial-homeowners {
  background: #F4F4F6;
  border-radius: 22px;
  padding: 40px 20px;
  margin-bottom: 48px;
}
.testimonials h2, .testimonials-highlights h2, .testimonial-homeowners h2 {
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(67,182,133,0.10);
  margin-bottom: 20px;
  min-width: 0;
  font-style: italic;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #173658;
  margin: 0 12px 0 0;
}
.testimonial-card b {
  color: #173658;
  font-weight: 700;
  font-size: 1rem;
  font-style: normal;
  margin-top: 4px;
}

/*-------- PROJECT SHOWCASE --------*/
.projects-showcase ul {
  margin-top: 12px;
  margin-left: 24px;
  list-style-type: disc;
  color: #173658;
  font-size: 1.08rem;
  line-height: 1.7;
}

/*-------- BLOG, CATEGORY FILTERS --------*/
.category-filters {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.category-filters span {
  font-weight: 600;
  color: #173658;
}
.category-filters a {
  background: #F4F4F6;
  border-radius: 6px;
  color: #173658;
  font-size: 0.98rem;
  padding: 6px 13px;
  transition: background 0.12s, color 0.12s;
  margin-left: 2px;
}
.category-filters a:hover, .category-filters a:focus {
  background: #43B685;
  color: #fff;
}

/*-------- CONTACT/MAP ------*/
.map-placeholder {
  max-width: 440px;
  margin-top: 22px;
  border-radius: 14px;
  overflow: hidden;
  background: #E6E8EC;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

/*-------- FOOTER --------*/
footer {
  background-color: #fff;
  border-top: 1px solid #E6E8EC;
  padding: 40px 0 36px 0;
  margin-top: 32px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  flex-direction: row;
  width: 100%;
}
.footer-brand {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.footer-brand img {
  height: 54px;
  width: auto;
  border-radius: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.footer-links a {
  color: #173658;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 0;
}
.footer-links a:hover, .footer-links a:focus {
  color: #43B685;
}
.footer-contact {
  font-size: 1rem;
  color: #344554;
  min-width: 180px;
  line-height: 1.6;
}
.footer-contact b {
  color: #173658;
  font-weight: 700;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  padding: 5px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #F4F4F6;
  transition: background 0.12s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #43B685;
}
.footer-social img {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 660px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    gap: 14px;
  }
}

/*-------- LEGAL/THANK YOU SECTION --------*/
.legal, .thank-you {
  background: #fff;
  border-radius: 18px;
  padding: 40px 24px;
  margin-bottom: 44px;
  box-shadow: 0 2px 16px rgba(23,54,88,0.03);
}
.legal h1, .thank-you h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/*-------- MISC / UTILITY --------*/
@media (max-width: 660px) {
  .container {
    padding: 0 7px;
  }
  .service-cards, .features-list, .projects-showcase {
    gap: 14px;
  }
}

/* ----------- RESPONSIVE FLEX -----------*/
@media (max-width: 900px) {
  .service-cards {
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .service-card {
    min-width: 90vw;
  }
  .features, .features-list, .testimonials, .testimonial-homeowners, .cta-final, .newsletter-signup, .about-short, .about-full, .projects-showcase {
    border-radius: 9px;
    padding: 22px 6px;
    margin-bottom: 26px;
  }
}

/* ----------- COOKIES BANNER ------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5001;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(23,54,88,0.07);
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  transition: transform 0.38s, opacity 0.25s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%);
}
.cookie-banner p {
  font-size: 1.05rem;
  color: #173658;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #F4F4F6;
  color: #173658;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.12s;
  box-shadow: 0 1px 4px rgba(67,182,133,0.04);
}
.cookie-btn.accept {
  background: #43B685;
  color: #fff;
  font-weight: 600;
}
.cookie-btn.reject {
  background: #173658;
  color: #fff;
  font-weight: 600;
}
.cookie-btn.settings {
  background: #F4F4F6;
  color: #173658;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #339e6c;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #345;
  color: #fff;
}

/* --------- COOKIES MODAL ---------*/
.cookie-modal-backdrop {
  position: fixed;
  z-index: 5200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,54,88,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.29s;
  opacity: 1;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 9px 44px rgba(23,54,88,0.13);
  max-width: 420px;
  width: 100%;
  margin: 28px;
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  color: #173658;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
  text-align: left;
}
.cookie-modal-section {
  margin-bottom: 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cookie-modal-section label {
  font-size: 1.06rem;
  color: #173658;
  font-weight: 500;
  margin-right: 8px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  min-width: 34px;
}
.cookie-modal .cookie-btn {
  width: 100%;
  margin-top: 13px;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 1.7rem;
  color: #173658;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s;
  padding: 0px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #43B685; }

/* Cookie toggle style (custom switch) */
.cookie-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #E6E8EC;
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #43B685;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s;
  box-shadow: 0 1px 4px rgba(23,54,88,0.08);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}

.cookie-modal-section.disabled label {
  color: #b3b5b9;
}
.cookie-modal-section.disabled .cookie-switch {
  pointer-events: none;
  opacity: 0.6;
}

@media (max-width: 490px) {
  .cookie-modal {
    padding: 16px 2vw 18px 2vw;
    gap: 14px;
  }
}

/* ----------- ANIMATIONS & TRANSITIONS ----------*/
.card, .service-card, .btn-primary, .cookie-btn, .footer-social a {
  transition: box-shadow 0.21s, background 0.13s, color 0.13s, transform 0.16s;
}
.mobile-menu, .mobile-menu-close {
  transition: color 0.14s, background 0.14s, transform 0.31s, opacity 0.15s;
}
@media (hover: hover) {
  .service-card:hover,
  .card:hover,
  .footer-social a:hover,
  .btn-primary:hover,
  nav a:hover,
  .cookie-btn:hover {
    filter: brightness(0.98);
    outline: none;
  }
}

/* ----------- GENERAL RESPONSIVE TWEAKS -----------*/
@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.33rem; }
  h3 { font-size: 1.11rem; }
  .btn-primary, .cookie-btn { font-size: 1rem; padding: 9px 18px; }
  .hero { padding: 28px 0 14px 0; min-height: 160px; }
}

/* Accessibility helpers */
:focus { outline: 2px solid #43B685AA; outline-offset: 2px; }

/* Hide arrows for number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance:textfield; }

/* --- END --- */
