/* ------------------- CSS RESET & NORMALIZE ------------------- */
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,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  background: #f8f9fa;
  color: #1A4F37;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
::-webkit-scrollbar {
  width: 8px;
  background: #EAEAEA;
}
::-webkit-scrollbar-thumb {
  background: #C7E5B3;
  border-radius: 4px;
}

/* -------------- LUXURY & PREMIUM COLOR PALETTE -------------- */
:root {
  --color-primary: #1A4F37;
  --color-secondary: #C7E5B3;
  --color-accent: #FFFFFF;
  --color-gold: #C3912D;
  --color-premium-bg: #F8F9FA;
  --color-dark: #19281D;
  --color-neutral: #FAFAF6;
  --color-grey: #DDDCD7;
  --color-shadow: rgba(26, 79, 55, 0.10);
}

/* -------------- LAYOUT CONTAINERS -------------- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-premium-bg);
  border-radius: 20px;
  box-shadow: 0 4px 32px var(--color-shadow);
}
.text-section {
  align-items: center;
  text-align: center;
  background: var(--color-accent);
}

/* ------------------- TYPOGRAPHY ------------------ */
h1 {
  font-size: 2.6rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 9px;
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* -------------- BUTTONS & CTAS -------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 14px 36px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 32px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 2px solid var(--color-gold);
  transition: background .2s, color .2s, box-shadow .25s, border-color .2s;
  position: relative;
  margin-top: 6px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-gold);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px var(--color-shadow);
}
button, .btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--color-gold);
  color: var(--color-accent);
  border-radius: 24px;
  padding: 12px 28px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover, button:hover, button:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 4px 12px var(--color-shadow);
}

/* -------------- HEADER & NAVIGATION -------------- */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 0;
  z-index: 12;
  position: relative;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}
header img {
  height: 52px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 16px;
  transition: background .2s, color .2s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: var(--color-gold);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-gold);
  color: var(--color-accent);
  border-radius: 999px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background .2s, color .2s;
  margin-left: 10px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-gold);
}

/* -------------- MOBILE MENU -------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-accent);
  box-shadow: 0 2px 24px var(--color-shadow);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.77,0,.18,1), opacity .3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-gold);
  color: var(--color-accent);
  font-size: 2.5rem;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  border: none;
  position: absolute;
  right: 22px;
  top: 18px;
  transition: background .2s, color .2s;
  z-index: 101;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-primary);
  color: var(--color-gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 90px;
  padding: 30px 28px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  color: var(--color-primary);
  border-radius: 14px;
  padding: 12px 18px;
  margin: 2px 0;
  width: 100%;
  transition: background .15s, color .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-gold);
}

/* Hide regular nav, show burger on mobile */
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------- CARDS, GRIDS & FLEX SPACING -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: var(--color-accent);
  box-shadow: 0 4px 20px var(--color-shadow);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow .18s;
  border: 1.5px solid var(--color-gold);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px var(--color-shadow);
}

.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;
  background: #FFFDF5;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid on index/about/products/dla-domu/dla-ogrodu */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 8px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--color-neutral);
  flex: 1 1 280px;
  border-radius: 14px;
  border: 1.5px solid var(--color-gold);
  padding: 20px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow .17s, border-color .17s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.feature-grid > div img {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px var(--color-shadow);
}

/* Product grid (products.html, dla-domu.html, dla-ogrodu.html) */
.product-grid, .inspirations-grid, .inspiration-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}
.product-grid > div, .inspirations-grid > div, .inspiration-teasers > div {
  flex: 1 1 260px;
  background: var(--color-accent);
  border-radius: 14px;
  border: 1.2px solid var(--color-gold);
  padding: 18px 16px 18px 16px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  gap: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: box-shadow .18s, border-color .2s;
}
.product-grid > div:hover, .inspirations-grid > div:hover, .inspiration-teasers > div:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px var(--color-shadow);
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.category-list a {
  color: var(--color-gold);
  font-size: 1.1rem;
  font-weight: 700;
  transition: color .2s;
}
.category-list a:hover {
  color: var(--color-primary);
}

.product-filters {
  margin-top: 10px;
  margin-bottom: 17px;
  color: var(--color-primary);
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  background: var(--color-secondary);
  border-radius: 14px;
  padding: 8px 18px;
  box-shadow: 0 1.5px 6px var(--color-shadow);
  font-size: 1rem;
  display: inline-flex;
}

/* -------------- TESTIMONIALS SECTION -------------- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #2b2e2d;
  font-size: 1.13rem;
  margin: 0;
}
.testimonial-card span {
  color: var(--color-gold);
  font-size: 1rem;
}

/* -------------- CONTACT DETAILS -------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--color-primary);
}
.contact-details img {
  width: 22px;
  height: 22px;
}
.location-map {
  margin-bottom: 17px;
  background: var(--color-neutral);
  border-radius: 10px;
  padding: 13px 17px;
  color: var(--color-primary);
  font-size: 1rem;
}

/* -------------- FOOTER -------------- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  padding: 38px 0 28px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 14px;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  text-decoration: underline dotted var(--color-gold) 1.5px;
  transition: color .2s, text-decoration-color .2s;
}
.footer-nav a:hover {
  color: var(--color-gold);
  text-decoration-color: var(--color-accent);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: filter .14s;
  filter: grayscale(45%) brightness(1.05) contrast(1.07);
}
.footer-social img:hover {
  filter: none;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  opacity: 0.92;
}
.footer-brand img {
  width: 62px;
  height: 62px;
}
.footer-brand span {
  font-size: 0.93rem;
  color: var(--color-secondary);
}

/* -------------- MISC SECTIONS -------------- */
ul, ol {
  margin-bottom: 13px;
  margin-left: 16px;
}
ul li, ol li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--color-dark);
  padding-left: 2px;
  position: relative;
}
ul li:before {
  content: '•';
  color: var(--color-gold);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 1.1em;
}

/* -------------- COOKIE CONSENT BANNER & POPUP -------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1203;
  background: #fffbe6;
  border-top: 2.5px solid var(--color-gold);
  box-shadow: 0 -2px 18px var(--color-shadow);
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  animation: banner-fadein .7s .07s both;
}
@keyframes banner-fadein {
  from { opacity: 0; transform: translateY(64px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 7px;
}
.cookie-banner .cookie-btn {
  background: var(--color-gold);
  color: var(--color-accent);
  border-radius: 18px;
  padding: 11px 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  margin: 0 2px;
  transition: background .18s, color .14s, box-shadow .2s;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-gold);
  border: 1.2px solid var(--color-gold);
}
.cookie-banner .cookie-btn:focus,
.cookie-banner .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 4px 14px var(--color-shadow);
  outline: none;
}
.cookie-banner .cookie-btn.settings:focus,
.cookie-banner .cookie-btn.settings:hover {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,79,55,0.45);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-content {
  background: #fffbe6;
  border-radius: 22px;
  box-shadow: 0 8px 42px var(--color-shadow);
  max-width: 420px;
  width: 92vw;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modal-pop .4s .1s both;
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.cookie-modal .modal-close {
  background: var(--color-gold);
  color: var(--color-accent);
  border-radius: 50%;
  width: 38px; height: 38px;
  align-self: flex-end;
  border: none;
  font-size: 1.45rem;
  margin-bottom: 11px;
  transition: background .2s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--color-primary);
  color: var(--color-gold);
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.03rem;
}
.cookie-modal .category-label {
  color: var(--color-dark);
  font-weight: 500;
}
.cookie-modal .category-toggle {
  width: 46px;
  height: 22px;
  border-radius: 18px;
  background: var(--color-grey);
  position: relative;
  transition: background .17s;
  cursor: pointer;
}
.cookie-modal .category-toggle input[type="checkbox"] {
  appearance: none;
  width: 100%; height: 100%;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal .category-toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s, background .12s;
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-modal .category-toggle input:checked ~ .slider {
  left: 26px;
  background: var(--color-gold);
}
.cookie-modal .category-toggle input:checked ~ .slider {
  background: var(--color-gold);
}
.cookie-modal .category-toggle input:checked ~ .slider,
.cookie-modal .category-toggle input:disabled ~ .slider {
  background: var(--color-gold);
}
.cookie-modal .category-toggle input:disabled, .cookie-modal .category-toggle input[disabled] {
  cursor: not-allowed;
}
.cookie-modal .category-label.essential {
  color: var(--color-gold);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 23px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  background: var(--color-gold);
  color: var(--color-accent);
  border-radius: 14px;
  padding: 11px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background .16s, color .14s, box-shadow .18s;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-gold);
  box-shadow: 0 4px 14px var(--color-shadow);
  outline: none;
}

/* -------------- RESPONSIVE DESIGN -------------- */
@media (max-width: 1100px) {
  .container { max-width: 99vw; }
  .feature-grid, .product-grid, .inspirations-grid, .inspiration-teasers {
      flex-direction: column;
      gap: 22px;
  }
  .card-container, .testimonials, .content-grid {
      flex-direction: column;
      gap: 20px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .footer-nav, .footer-social {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 36px;
    border-radius: 13px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }
  .feature-grid, .product-grid, .inpirations-grid, .inspiration-teasers {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .testimonials {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-brand img {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 540px) {
  .section {
    padding: 11px 2px;
  }
  .container {
    padding-left: 2px; padding-right: 2px;
  }
  footer {
    padding: 21px 0 8px 0;
  }
}

/* -------------- UTILITIES & MICRO-INTERACTIONS -------------- */
.card, .feature-grid > div, .product-grid > div, .inspirations-grid > div, .inspiration-teasers > div, .testimonial-card {
  transition: box-shadow .19s, border-color .18s, transform .10s;
}
.card:active, .feature-grid > div:active, .product-grid > div:active, .inspirations-grid > div:active, .testimonial-card:active {
  transform: scale(.98);
}
.cta-btn:active {
  transform: scale(.99);
}
.footer-brand img, .footer-social img {
  transition: filter .17s, transform .08s;
}
.footer-brand img:hover, .footer-social img:active {
  transform: scale(1.05);
}

/* ------------- ACCESSIBLE FOCUS STATES ------------- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .modal-close:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ------------- Z-INDEX SAFETY ------------- */
header {
  z-index: 12;
}
.mobile-menu {
  z-index: 101;
}
.cookie-banner {
  z-index: 1203;
}
.cookie-modal {
  z-index: 1300;
}

/* ------------- NO GRID, NO ABSOLUTE ON CONTENT BLOCKS ------------- */
/* no use of grid, columns, or absolute positioning on cards
   (only on mobile-menu-close and modal-close as per requirements) */

/* ------------- END OF STYLE.CSS ------------- */