/* --- CSS Reset & Box sizing --- */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFF;
  color: #3D4F3A;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
ul, ol {
  margin-left: 20px;
}
a {
  color: #3D4F3A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,a:hover {
  color: #73906E;
  outline: none;
}
strong {
  font-weight: 600;
}

/* --- Brand Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #3D4F3A;
  margin-bottom: 12px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  color: #6E705D;
  margin-bottom: 2rem;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Header Navigation --- */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #3D4F3A;
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #73906E;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #C5BFA8;
  transition: width 0.2s;
  margin-top: 2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 28px;
  min-width: 164px;
  font-size: 1rem;
  background: #3D4F3A;
  color: #FFF;
  border: none;
  border-radius: 30px;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(61, 79, 58, 0.06);
  transition: background .2s, box-shadow .19s, color .19s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6E705D;
  color: #FFF;
  box-shadow: 0 6px 24px rgba(61,79,58,0.13);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  background: none;
  color: #3D4F3A;
  border: none;
  font-size: 2.2rem;
  display: none;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  padding: 0 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #73906E;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 245, 240, .98);
  z-index: 4010;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.2s, transform 0.33s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #3D4F3A;
  align-self: flex-end;
  margin: 18px 22px 6px 0;
  cursor: pointer;
  transition: color .21s;
  z-index: 4100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A7A28C;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 28px;
}
.mobile-nav a {
  width: 100%;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #3D4F3A;
  padding: 10px 0 7px 3px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFEFE7;
  color: #73906E;
}

/* --- Hero Section --- */
.hero, .hero-thank {
  background: #FFEFE7;
  padding: 68px 0 48px 0;
  border-bottom: 1px solid #EFEDE6;
}
.hero .content-wrapper, .hero-thank .content-wrapper {
  align-items: flex-start;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  gap: 22px;
}

/* --- Feature Section --- */
.features {
  background: #FFF;
  padding-top: 50px;
  padding-bottom: 50px;
}
.features h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 16px;
  justify-content: space-between;
}
.feature-col {
  flex: 1 1 210px;
  min-width: 210px;
  background: #FAF9F5;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 2px 16px rgba(197,191,168,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .22s, transform .2s;
}
.feature-col:hover, .feature-col:focus-within {
  box-shadow: 0 6px 32px rgba(61,79,58,0.14);
  transform: translateY(-3px) scale(1.02);
}
.feature-col img {
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 0;
}

/* --- About / General Text Sections --- */
.about-home, .about-philosophy, .portfolio-projects, .services-list, .product-categories, .blog-list, .contact-details, .legal-section {
  background: #FFF;
  padding-top: 44px;
  padding-bottom: 44px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: none;
}
.text-section h3 {
  margin-bottom: 4px;
  font-size: 1.13rem;
  font-family: 'Playfair Display', serif;
}
.info-section {
  margin-top: 16px;
  color: #555;
  font-size: 1rem;
}

/* --- Portfolio, Team & Blogs List Layouts --- */
.team-list, .project-list, .blog-post-list, .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.team-list > .text-section, .project-list > .text-section, .blog-post-list > .text-section, .category-list > .text-section {
  flex: 1 1 210px;
  min-width: 210px;
  background: #FAF9F5;
  border-radius: 14px;
  padding: 22px 17px;
  box-shadow: 0 2px 12px rgba(197,191,168,0.07);
  transition: box-shadow .2s;
}
.team-list > .text-section:hover, .project-list > .text-section:hover, .category-list > .text-section:hover {
  box-shadow: 0 6px 26px rgba(61,79,58,0.12);
}

/* --- Card Containers --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  background: #FAF9F5;
  box-shadow: 0 2px 12px rgba(197,191,168,0.05);
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .21s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(61,79,58,0.13);
}

.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Services (Usługi) --- */
.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.service-box {
  flex: 1 1 240px;
  min-width: 210px;
  background: #FAF9F5;
  border-radius: 12px;
  padding: 22px 14px;
  box-shadow: 0 2px 10px rgba(197,191,168,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .19s;
}
.service-box:hover, .service-box:focus-within {
  box-shadow: 0 6px 24px rgba(61,79,58,0.13);
}

/* --- Testimonials --- */
.testimonials {
  background: #F6F4F1;
  padding-top: 42px;
  padding-bottom: 42px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #FFF;
  border-radius: 14px;
  padding: 20px 24px 18px 20px;
  min-width: 220px;
  box-shadow: 0 2px 20px rgba(197,191,168,0.09);
  color: #3D4F3A;
  text-align: left;
  font-size: 1rem;
  transition: box-shadow .22s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(61,79,58,0.14);
  transform: translateY(-3px);
}
.testimonial-card strong {
  font-size: 1rem;
  color: #816F54;
}

/* --- Call To Action --- */
.cta-final, .cta-services, .cta-shop, .cta-contact {
  background: #FAF9F5;
  padding-top: 45px;
  padding-bottom: 45px;
}
.cta-final .btn-primary {
  margin-top: 16px;
}
.cta-block {
  margin-top: 24px;
}

/* --- Footer --- */
footer {
  background: #3D4F3A;
  padding: 36px 0;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border-top: 1px solid #EFEDE6;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
footer a, .footer-nav a {
  color: #FAF9F5;
  font-weight: 500;
  font-size: 1rem;
  transition: color .2s;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #C5BFA8;
}
.footer-contact {
  font-size: 0.97rem;
  color: #E3E0D8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer img {
  width: 58px;
  height: auto;
  filter: brightness(98%);
}

/* --- Legal Pages --- */
.legal-section .text-section {
  background: #FEFAF4;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(197,191,168,0.05);
  padding: 28px 21px;
  margin-top: 22px;
  gap: 20px;
}
.legal-section h2 {
  font-size: 1.25rem;
  color: #4A6047;
  margin-bottom: 8px;
  margin-top: 20px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #F6F4F1;
  color: #3D4F3A;
  box-shadow: 0 -2px 16px rgba(61, 79, 58, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px 20px;
  z-index: 5000;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s, transform 0.34s cubic-bezier(.74,0,.16,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__text {
  flex: 1 1 340px;
  max-width: 450px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-banner .btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 1rem;
  background: #C5BFA8;
  color: #3D4F3A;
  cursor: pointer;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFEFE7;
  color: #6E705D;
}
.cookie-btn.accept {
  background: #3D4F3A;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #73906E;
  color: #fff;
}

/* --- Cookie Settings Modal --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(61, 79, 58, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6400;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition: opacity .24s, transform .26s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}
.cookie-modal__content {
  background: #FFF;
  border-radius: 20px;
  padding: 40px 28px 32px 28px;
  max-width: 420px;
  min-width: 280px;
  box-shadow: 0 10px 60px rgba(61, 79, 58, 0.14);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #3D4F3A;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  color: #816F54;
}
.cookie-modal__title {
  font-family: 'Playfair Display', serif;
  color: #3D4F3A;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #EFEDE6;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category-label {
  flex: 1;
  color: #3D4F3A;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #F6F4F1;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background .14s;
}
.cookie-toggle[aria-checked="true"] {
  background: #C5BFA8;
}
.cookie-toggle[disabled], .cookie-toggle[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
}
.cookie-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(61,79,58,0.13);
  transition: left .21s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 20px;
}
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* --- Responsive Design - Mobile First --- */
@media (max-width: 1060px) {
  .main-nav {
    gap: 16px;
  }
  .footer-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .team-list, .project-list, .blog-post-list, .category-list, .service-items, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .section, .features, .about-home, .about-philosophy, .portfolio-projects, .services-list, .product-categories, .blog-list, .contact-details, .legal-section, .cta-final, .cta-services, .cta-shop, .cta-contact {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 36px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero, .hero-thank {
    padding-top: 44px;
    padding-bottom: 24px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.375rem;
  }
  .btn-primary {
    padding: 10px 18px;
    min-width: 124px;
    font-size: 0.97rem;
  }
  .cookie-modal__content {
    padding: 22px 8px 17px 8px;
    max-width: 88vw;
  }
}
@media (max-width: 520px) {
  .mobile-nav {
    padding: 8px 8px;
    gap: 14px;
  }
  .content-wrapper, .feature-col, .card, .testimonial-card {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    padding: 18px 9px;
  }
}

/* --- Accessibility --- */
:focus {
  outline: 2px solid #C5BFA8;
  outline-offset: 2px;
}

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

/* --- Custom Scrollbar for Light Scandinavian Aesthetic --- */
::-webkit-scrollbar {
  width: 10px;
  background: #FAF9F5;
}
::-webkit-scrollbar-thumb {
  background: #C5BFA8;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B0A888;
}
