/* CSS Reset & Normalize */
/* Box sizing and remove default padding/margin */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; }

/* Brand Variables (fallback included) */
:root {
  --primary: #245259;
  --secondary: #84A98C;
  --accent: #F7F7F7;
  --text: #1A1A1A;
  --bg: #FFFFFF;
  --shadow: 0 2px 16px rgba(36, 82, 89, 0.07);
  --radius: 14px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 16px;
  font-weight: 600;
}
h1 { font-size: 2.5rem; margin-bottom: 26px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }

p, li, a, blockquote { font-size: 1rem; color: var(--text); }
strong { color: var(--primary); font-weight: 600; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* Spacing Rules & Patterns */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Card Patterns */
.card-container, .inspiration-grid, .services-list, .services-grid, .product-categories-grid, .product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card, .service-card, .inspiration-card, .product-category-card, .product-card {
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  min-width: 240px;
  flex: 1 1 250px;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover, .service-card:hover, .inspiration-card:hover, .product-category-card:hover, .product-card:hover {
  box-shadow: 0 4px 24px rgba(36, 82, 89, 0.13);
  background: #fff;
}

/* Visual hierarchy for hero */
.hero-section {
  background: var(--accent);
  border-radius: var(--radius);
  margin-bottom: 50px;
  padding: 60px 0 50px 0;
  box-shadow: 0 6px 40px rgba(36,82,89,0.05);
}
.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.hero-section p {
  font-size: 1.17rem;
  margin-bottom: 24px;
}

/* Buttons • minimal, modern with brand color */
.cta-button, .quick-buy-button {
  display: inline-flex;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(36,82,89,0.09);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus, .quick-buy-button:hover, .quick-buy-button:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(36,82,89,0.13);
  transform: translateY(-1px) scale(1.015);
}

.price {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 500;
  margin-top: 14px;
}

/* Testimonial cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(36,82,89,0.08);
  margin-bottom: 20px;
  min-width: 240px;
}
.testimonial-card blockquote {
  font-size: 1.09rem;
  color: var(--primary);
  font-style: italic;
  margin: 0 0 10px 0;
}
.testimonial-author {
  font-size: .96rem;
  color: var(--text);
  font-weight: 400;
  font-style: normal;
  margin-left: auto;
  letter-spacing: 0.01em;
}

/* Footer Styles */
footer {
  margin-top: 80px;
  background: var(--accent);
  padding: 36px 0 18px 0;
  box-shadow: 0 -2px 30px rgba(36,82,89,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  font-size: .94rem;
  color: var(--primary);
  transition: color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.contact-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-footer img {
  width: 46px;
  height: auto;
}
.contact-footer .text-section {
  gap: 7px;
}
.contact-footer .text-section p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .96rem;
}
.copyright {
  font-size: .93rem;
  color: #939393;
  text-align: center;
  margin-top: 14px;
}

/* Mobile Main Navigation / Burger */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  padding: 24px 0 20px 0;
  position: relative;
  z-index: 11;
}
.main-nav > a img {
  width: 155px;
}
.main-nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav ul li a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .14s, color .14s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--secondary);
  color: #fff;
}
.main-nav .cta-button {
  margin-left: 18px;
  font-size: .98rem;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1002;
  transition: box-shadow .18s, background .18s;
  box-shadow: 0 2px 16px rgba(36,82,89,.10);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #fff;
  outline: none;
}

/* Mobile off-canvas menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,247,247,0.98);
  box-shadow: 0 2px 36px rgba(36,82,89,0.13);
  transform: translateX(100vw);
  transition: transform .42s cubic-bezier(.77,0,.18,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  margin: 0 0 24px 20px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  display: flex;
  z-index: 30;
  transition: background .19s, color .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-left: 24px;
  margin-right: 24px;
}
.mobile-nav a {
  background: #fff;
  color: var(--primary);
  padding: 15px;
  border-radius: var(--radius);
  font-size: 1.11rem;
  font-family: var(--font-display);
  margin-bottom: 4px;
  box-shadow: 0 1px 5px rgba(36,82,89,0.06);
  transition: background .14s,color .14s;
  min-width: 180px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* HIDE/SHOW MAIN NAV VS BURGER BASED ON SCREEN */
@media (max-width: 1023px) {
  .main-nav ul, .main-nav .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width:1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
/*  End Mobile Nav  */

/* Responsive Flex Patterns */
@media (max-width: 900px) {
  .card-container, .services-list, .services-grid, .inspiration-grid, .product-categories-grid, .product-cards, .footer-nav ul,
  .content-wrapper, .contact-footer {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-section {
    padding: 32px 0 32px 0;
  }
}
@media (max-width: 768px) {
  section, .section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 16px;
    padding: 0 4px;
  }
  .card, .service-card, .inspiration-card, .product-category-card, .product-card {
    min-width: 92vw;
    padding: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .footer-nav ul {
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }
  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .hero-section h1 {
    font-size: 1.65rem;
    margin-bottom: 18px;
  }
  .hero-section p {
    font-size: .96rem;
    margin-bottom: 16px;
  }
}

/* Unique Section Spacing Patterns */
.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: 16px;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Confirmation message */
.confirmation-message {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(36,82,89,.10);
  padding: 22px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.confirmation-message ul {
  list-style: disc inside;
  color: var(--secondary);
  margin-left: 0;
  gap: 9px;
  display: flex;
  flex-direction: column;
}

/* Text/ul styling */
ul, ol {
  list-style: none;
}
.content-wrapper ul, .text-section ul {
  padding-left: 0;
  gap: 10px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
}
.content-wrapper ul li, .text-section ul li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: var(--text);
  padding: 7px 0;
}
.content-wrapper ul li img, .text-section ul li img {
  width: 26px;
  height: 26px;
  display: inline;
}

/* Accessibility: focus outlines */
a, button {
  outline: none;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* SVG images alignment */
img[alt^='Adres'], img[alt^='Telefon'], img[alt^='E-mail'], img[alt^='Godziny'],
img[alt*='icon-'], img[alt*='mark'] {
  width: 23px;
  height: 23px;
  margin-right: 6px;
  display: inline;
}

/* Subtle micro-interactions */
.card, .service-card, .inspiration-card, .product-category-card, .product-card,
.cta-button, .quick-buy-button, .mobile-nav a {
  transition: box-shadow .18s, background .18s, transform .14s, color .13s;
}

/* Cookie consent banner (fixed bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  border-top: 2.5px solid var(--secondary);
  box-shadow: 0 -2px 22px rgba(36,82,89,0.06);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 9px 15px 9px;
  transition: transform .39s cubic-bezier(.77,0,.18,1), opacity .2s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin: 7px 0 0 0;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 28px;
  font-size: 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-display);
  border: 0;
  box-shadow: 0 2px 8px rgba(36,82,89,.07);
}
.cookie-accept {
  background: var(--primary);
  color: #fff;
  transition: background .14s, color .14s;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--secondary);
}
.cookie-reject {
  background: var(--secondary);
  color: #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #fff;
  color: var(--primary);
  border: 1.3px solid var(--primary);
}
.cookie-settings {
  background: transparent;
  color: var(--primary);
  border: 1.3px solid var(--primary);
  transition: background .17s, color .13s;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
  border: 1.3px solid var(--secondary);
}

/* Cookie modal popup */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36,82,89,.20);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5000;
  transition: opacity .27s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -2px 32px rgba(36,82,89,0.13);
  padding: 34px 20px 24px 20px;
  width: 100vw;
  max-width: 430px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(100%);
  animation: cookieModalSlideIn .46s cubic-bezier(.77,0,.18,1) forwards;
  z-index: 7000;
}
@keyframes cookieModalSlideIn {
  to { transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-toggle {
  width: 42px;
  height: 26px;
  border-radius: 16px;
  background: var(--accent);
  border: 1.2px solid var(--secondary);
  position: relative;
  transition: background .13s;
  margin-left: auto;
  display: flex;
  align-items: center;
}
.cookie-toggle input {
  opacity: 0; display: none;
}
.cookie-toggle span {
  display: block;
  width: 20px; height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  top: 2.2px; left: 2.2px;
  transition: left .19s, background .14s;
}
.cookie-toggle input:checked + span {
  left: 19px;
  background: var(--primary);
}
.cookie-category .hint {
  font-size: .93em;
  margin-left: 8px;
  color: #b5b5b5;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 9px;
}
.cookie-modal button {
  padding: 10px 32px;
  font-size: 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  transition: background .14s, color .14s;
}
.cookie-modal .cookie-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .cookie-accept:hover, .cookie-modal .cookie-accept:focus {
  background: var(--secondary);
}
.cookie-modal .cookie-cancel {
  background: #fff;
  color: var(--primary);
  border: 1.1px solid var(--primary);
}
.cookie-modal .cookie-cancel:hover, .cookie-modal .cookie-cancel:focus {
  background: var(--secondary);
  color: #fff;
  border: 1.1px solid var(--secondary);
}

/* End Cookie banner */

/* Hide scroll for background when modal open */
body.no-scroll {
  overflow: hidden;
}

/* Scrollbar styling - minimal */
::-webkit-scrollbar {
  width: 9px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}

/* Remove underline on all links */
a:hover, a:focus {
  text-decoration: none;
  color: var(--secondary);
}

/* Section background alternate */
section:nth-of-type(even) {
  background: #f9fafb;
}

/* Hide visually on screen only */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; white-space: nowrap;
  border: 0; clip: rect(0,0,0,0);
  clip-path: inset(50%);
}

/* Font Import (local fallback) */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Montserrat-Regular'),
    url('https://fonts.gstatic.com/s/montserrat/v25/JTUQjIg1_i6t8kCHKm45_Qph.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: 'Open Sans';
  src: local('Open Sans'), local('OpenSans-Regular'),
    url('https://fonts.gstatic.com/s/opensans/v34/mem8YaGs126MiZpBA-UFWp0e.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
}
