/* CSS RESET & BASE STYLES */
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,
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, 
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F9F9;
  color: #222;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #17567A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #36AA68;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #17567A;
  line-height: 1.13;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.33rem;
}
h4 {
  font-size: 1.15rem;
}

p, ul, ol, li, span, table, th, td {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #222;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}

/* CONTAINER SYSTEM */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER & NAVIGATION */
header {
  background: linear-gradient(90deg, #17567A 0%, #36AA68 100%);
  color: #fff;
  padding: 0;
  box-shadow: 0 4px 40px 0 rgba(23,86,122,0.05);
  position: sticky;
  top: 0;
  z-index: 29;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
header img[alt="Uniknos Para Czystości"] {
  height: 42px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  padding: 7px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.cta-button {
  background: linear-gradient(90deg, #36AA68 0%, #17567A 100%);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 32px;
  padding: 14px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 16px rgba(23, 86, 122, 0.10);
  cursor: pointer;
  margin-left: 14px;
  transition: background 0.3s, transform 0.08s;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(-90deg, #36AA68 0%, #17567A 100%);
  transform: translateY(-2px) scale(1.04);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 70;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(23,86,122,0.16);
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  color: #17567A;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:active {
  background: #f0f0f0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 24px 0 rgba(23,86,122,0.18);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.7,.3,.32,1);
  padding: 24px 32px 32px 24px;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #F9F9F9;
  color: #17567A;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin-right: -8px;
  margin-top: -8px;
  padding: 8px 12px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(23,86,122,0.07);
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:active {
  background: #e0e0e0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  color: #17567A;
  padding: 12px 4px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 700;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1F9F7;
  color: #36AA68;
}

@media (max-width: 992px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-button {
    margin-left: 0;
  }
}

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

/* HERO SECTION & SECTIONS */
.hero {
  background: linear-gradient(120deg, #F9F9F9 60%, #d6f3e2 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 48px 0 24px 0;
}
.hero .container,
.section .container,
.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(23, 86, 122, 0.07);
}
@media (max-width: 800px) {
  .section {
    margin-bottom: 38px;
    padding: 28px 8px;
  }
}

.cta-banner {
  margin-top: 40px;
  margin-bottom: 0;
  padding: 0;
  background: linear-gradient(90deg, #36AA68 0%, #17567A 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(23,86,122,0.07);
}
.cta-banner .content-wrapper {
  color: #fff;
  align-items: center;
  text-align: center;
}
.cta-banner h2, .cta-banner p {
  color: #fff;
}

/* FLEX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #F8FBFC;
  border-radius: 15px;
  box-shadow: 0 2px 14px rgba(23,86,122,0.06);
  transition: box-shadow 0.19s, transform 0.13s;
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(23,86,122,0.15);
  transform: translateY(-2px) scale(1.024);
}

.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: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(23,86,122,0.13);
  min-width: 265px;
  max-width: 380px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.12s;
  border-left: 6px solid #36AA68;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(23,86,122,.20);
  transform: translateY(-3px) scale(1.025);
}
/* Ensure testimonial text is high contrast */
.testimonial-card p, 
.testimonial-card span {
  color: #222 !important;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F9F9;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(23,86,122,0.07);
}

/* SPECIAL CARDS / BLOCKS */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.service-cards > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(23,86,122,.06);
  padding: 20px 26px;
  min-width: 240px;
  max-width: 315px;
  flex: 1 1 225px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s, transform 0.12s;
}
.service-cards > div:hover {
  box-shadow: 0 8px 30px rgba(23,86,122,.10);
  transform: translateY(-2px) scale(1.023);
}

.icon-descriptions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 20px 0;
}
.icon-descriptions > div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: #187045;
}

.quality-assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #17567A;
}

/* BLOG - CARDS AND CATEGORIES */
.blog-highlighted-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 14px 0 0 0;
  justify-content: center;
}
.blog-highlighted-posts > div {
  background: #e6f2ee;
  border-radius: 10px;
  padding: 20px 20px;
  min-width: 210px;
  box-shadow: 0 2px 12px rgba(23,86,122,0.07);
  transition: box-shadow 0.19s, transform 0.13s;
}
.blog-highlighted-posts > div:hover {
  box-shadow: 0 8px 26px rgba(23,86,122,.09);
  transform: scale(1.02);
}

.blog-excerpts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 18px 0;
  justify-content: flex-start;
}
.blog-excerpts article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(23,86,122,0.06);
  padding: 18px 22px;
  min-width: 250px;
  flex: 1 1 220px;
  margin-bottom: 15px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.blog-excerpts article:hover {
  box-shadow: 0 8px 26px rgba(23,86,122,0.11);
  transform: translateY(-1px) scale(1.011);
}
.categories {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0 0 0;
}
.categories span {
  background: #eafbef;
  padding: 4px 15px;
  border-radius: 12px;
  color: #187045;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 4px;
}
input[type=search] {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #d4e9dc;
  font-size: 1rem;
  margin-top: 12px;
  outline: none;
  transition: border 0.18s;
}
input[type=search]:focus {
  border-color: #36AA68;
}

/* STAR RATING & TESTIMONIAL SLIDER */
.star-rating, .ratings-summary {
  display: flex;
  align-items: center;
  font-size: 1.13rem;
  color: #17567A;
  font-weight: 600;
  gap: 6px;
  margin: 8px 0;
}
.star-rating img, .ratings-summary img {
  height: 24px;
  width: 24px;
  filter: drop-shadow(0 0 1px #fff);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  justify-content: flex-start;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  justify-content: flex-start;
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px 0;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1.5px solid #ececec;
}
th {
  background: #36AA68;
  color: #fff;
  font-weight: 700;
  font-size: 1.07rem;
  border-radius: 6px 6px 0 0;
}
tr:nth-child(even) td {
  background: #f3fafe;
}
tr:hover td {
  background: #eafbef;
}

/* FORMS & INPUTS */
input, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #d4e9dc;
  padding: 13px 15px;
  outline: none;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: #36AA68;
  background: #f1f7f5;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, #17567A 0%, #36AA68 100%);
  color: #fff;
  margin-top: 48px;
  padding: 0;
  box-shadow: 0 -2px 24px 0 rgba(23,86,122,0.07);
}
footer .container {
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 38px 0 22px 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}
footer nav a {
  color: #fff;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: background 0.2s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: rgba(255,255,255,0.17);
  color: #F9F9F9;
}
footer .footer-social {
  display: flex;
  gap: 16px;
  margin: 6px 0;
}
footer .footer-social a {
  display: flex;
  align-items: center;
  border-radius: 50%;
  background: #fff;
  width: 32px;
  height: 32px;
  justify-content: center;
  transition: background 0.18s;
}
footer .footer-social a:hover {
  background: #36AA68;
}
footer .footer-social img {
  width: 20px;
  height: 20px;
  filter: grayscale(0) brightness(0.28) invert(0);
  transition: filter 0.18s;
}
footer .footer-social a:hover img {
  filter: none;
}
footer .footer-copyright {
  margin-top: 18px;
  font-size: 0.98rem;
  text-align: center;
  color: #e2e2e2;
}
footer a, footer a:visited { color: #fff; }

/* CONTACT INFO IN FOOTER */
footer div > span img, footer a img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin: 0 4px 0 0;
}

/* SECTION & CONTENT SPACING RULES */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li img, ol li img {
  width: 33px;
  margin-right: 8px;
}
.text-section {
  margin-bottom: 18px;
}
.company-location {
  display: flex;
  align-items: center;
  background: #e6f2ee;
  color: #36AA68;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  gap: 10px;
  margin: 16px 0 8px 0;
}
.company-location img {
  height: 21px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .service-cards, .testimonial-slider, .testimonial-grid, .content-grid, .card-container, .blog-highlighted-posts, .blog-excerpts {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 6px; }
  .content-wrapper, .section, .cta-banner .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .service-cards > div, .blog-highlighted-posts > div, .blog-excerpts article, .testimonial-card {
    min-width: 140px;
    max-width: 100vw;
    width: 100%;
    padding: 18px 8px;
  }
  footer .content-wrapper { padding: 18px 0 13px 0; }
}
@media (max-width: 540px) {
  .container { padding: 0 4px; }
  .section, .section .container, .cta-banner .container {
    padding: 15px 0;
    margin-bottom: 25px;
  }
  .cta-banner .container { padding: 0; }
  .testimonial-card { padding: 12px; min-width: unset; width: 100%; }
  .service-cards > div, .blog-highlighted-posts > div, .blog-excerpts article { padding: 12px 3px;}
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #fff 80%, #36AA68 100%);
  color: #222;
  padding: 22px 10vw 20px 16vw;
  box-shadow: 0 -3px 24px rgba(23,86,122,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  z-index: 120;
  transition: transform 0.32s cubic-bezier(.7,.31,.32,1);
}
@media (max-width: 750px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 14px 8px;
    gap: 12px;
  }
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner-text {
  font-size: 1rem;
  color: #17567A;
  margin-bottom: 4px;
  max-width: 430px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 21px;
  padding: 9px 23px;
  font-weight: 600;
  border: none;
  box-shadow: 0 1px 5px rgba(23,86,122,0.07);
  margin: 0 7px 0 0;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #36AA68 0%, #17567A 93%);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: linear-gradient(-90deg, #36AA68 0%, #17567A 93%);
}
.cookie-btn.reject {
  background: #fff;
  color: #17567A;
  border: 1.6px solid #36AA68;
}
.cookie-btn.reject:hover {
  background: #36AA68;
  color: #fff;
}
.cookie-btn.settings {
  background: #F9F9F9;
  color: #17567A;
  border: 1.6px solid #17567A;
}
.cookie-btn.settings:hover {
  background: #e6f2ee;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 98vw;
  max-width: 420px;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 8px 60px rgba(23,86,122,0.22);
  z-index: 300;
  transform: translate(-50%, -52%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s, transform 0.18s;
  padding: 36px 22px 28px 22px;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 17px;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: #17567A;
  cursor: pointer;
}
.cookie-modal h2 {
  color: #17567A;
  font-size: 1.22rem;
  margin-bottom: 16px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
}
.cookie-category strong {
  color: #187045;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e0eae6;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #36AA68;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s;
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-btn {
  margin: 0 6px 6px 0;
  min-width: 90px;
}

/* HIDE UNNECESSARY SCROLL */
body.modal-open {
  overflow: hidden;
}

/* MISCELLANEOUS */
::-webkit-scrollbar {
  width: 9px;
  background: #f3faee;
}
::-webkit-scrollbar-thumb {
  background: #d6f3e2;
  border-radius: 6px;
}

/* ACCESSIBILITY FOCUS OUTLINE */
a:focus, button:focus, input:focus, .cta-button:focus, .cookie-btn:focus
{
  outline: 2.5px solid #36AA68;
  outline-offset: 1.5px;
}

/* PRINT OPTIMIZATION */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu {
    display: none !important;
  }
}
