/* ========================================================================
   CSS RESET & NORMALIZE | Modern Bold Style for 'Smaki Świata Domu'
   ======================================================================== */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
button {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
input, textarea, select {
  font: inherit;
  outline: none;
}

/* ========================================================================
   ROOT BRAND VARIABLES (with fallback)
   ======================================================================== */
:root {
  --color-primary: #364A2C; /* Deep forest green */
  --color-secondary: #EDAA4D; /* Bold warm orange-yellow */
  --color-accent: #F6F3EE; /* Soft light background */
  --color-text-dark: #1a2821;
  --color-text: #232323;
  --color-card-bg: #fff;
  --color-success: #33b864;
  --color-error: #EF3C3C;

  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* Font fallbacks */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: local('Merriweather Bold'), local('Merriweather-Bold');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'), local('OpenSans-Regular');
}

body {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 0;
}

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

/* ========================================================================
   TYPOGRAPHY - Hierarchy & Scale (modern_bold)
   ======================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(54,74,44,0.08);
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.3;
}
p, li, blockquote {
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 400;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--color-secondary);
}
blockquote {
  font-size: 1.1rem;
  padding-left: 24px;
  border-left: 4px solid var(--color-secondary);
  margin-bottom: 12px;
  color: var(--color-text-dark);
  font-style: italic;
}
ul, ol {
  margin-bottom: 12px;
}
.text-section {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   LAYOUTS - FLEXBOX ONLY, MODERN SPACING (section, features, cards)
   ======================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(54,74,44,0.10);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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: #fff;
  color: var(--color-primary);
  border-left: 8px solid var(--color-secondary);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(54,74,44,0.08);
  margin-bottom: 20px;
  padding: 20px 28px;
  min-width: 260px;
  max-width: 750px;
}

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

/* --- Feature Grid (for home and many others) --- */
.feature-grid, .feature-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature-grid li,
.feature-list li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(54,74,44,0.09);
  padding: 24px 18px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  border-left: 4px solid var(--color-primary);
  transition: box-shadow 0.2s, transform 0.2s, border-left 0.2s;
}
.feature-grid li:hover,
.feature-list li:hover {
  box-shadow: 0 8px 30px rgba(237,170,77,0.21);
  border-left: 4px solid var(--color-secondary);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img,
.feature-list img {
  width: 43px;
  height: 43px;
  margin-bottom: 6px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(54,74,44,0.10));
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-list > li, .service-list > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(54,74,44,0.09);
  padding: 24px 22px 20px;
  flex: 1 1 310px;
  min-width: 220px;
  max-width: 390px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-bottom: 5px solid var(--color-secondary);
  transition: box-shadow 0.2s, transform 0.2s, border-bottom 0.2s;
}
.service-list > li:hover, .service-list > div:hover {
  box-shadow: 0 8px 30px rgba(54,74,44,0.11);
  border-bottom: 5px solid var(--color-primary);
  transform: translateY(-2px) scale(1.025);
}

/* ----------------------------------------------------------------------
   Header/Nav - Modern Bold, Flex, Responsive
   ---------------------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(54,74,44,0.07);
  position: sticky;
  top: 0;
  z-index: 1020;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
}
.main-nav a,
.main-nav .btn-primary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .17s, background .22s;
  line-height: 1.1;
  display: flex;
  align-items: center;
}
.main-nav a.active,
.main-nav a:hover:not(.btn-primary) {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav img {
  height: 44px;
  margin-right: 8px;
}

/* ===================================================================
   BUTTONS - Primary, Secondary, Cookie Banner
   =================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: 12px;
  padding: 15px 28px;
  margin-top: 6px;
  margin-bottom: 10px;
  box-shadow: 0 3px 16px rgba(237,170,77,0.12),0 2px 6px rgba(54,74,44,0.07);
  transition: background .2s, box-shadow .23s, color .18s, transform .13s;
  cursor: pointer;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(54,74,44,0.19);
  transform: scale(1.022);
  outline: none;
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 11px 22px;
  box-shadow: 0 2px 10px rgba(54,74,44,0.08);
  font-size: 0.95rem;
  font-weight: 700;
  transition: background .18s, color .19s;
}
.btn-secondary:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ====================================================================
   MOBILE NAVIGATION - Hamburger, Overlay, Responsive
   ==================================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 2.12rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  transition: background .17s, color .16s, box-shadow .18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 12px 32px rgba(54,74,44,0.16);
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.67,.12,.38,1.17);
  z-index: 2022;
  padding: 32px 24px 24px 32px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform .43s cubic-bezier(.13,1.12,.57,1.2), opacity .2s;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background .15s, color .14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 14px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
  padding: 12px 0 12px 10px;
  border-radius: 8px;
  transition: background .18s, color .15s;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1050px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav .btn-primary {
    padding: 11px 14px;
    font-size: 0.99rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    min-height: 60px;
  }
}
/* ========================================================================
   SECTIONS, SPACING, STRUCTURE - Modern & Bold
   ======================================================================== */
section {
  padding: 50px 0 40px 0;
  margin-bottom: 0;
  position: relative;
}
@media (max-width: 768px) {
  section {
    padding: 30px 0 16px 0;
  }
}
/* Card, Feature, Testimonial, Service Margin Standardization */
.card-container, .content-grid, .feature-list, .feature-grid, .testimonial-card, .service-list {
  margin-bottom: 28px;
}
.card, .feature-grid li, .feature-list li, .service-list > li, .service-list > div, .testimonial-card {
  margin-bottom: 20px;
}

/* ========================================================================
   FOOTER - Spacing, Flexbox, Visual Contrast
   ======================================================================== */
footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 60px;
  padding: 38px 0 30px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 0;
}
.footer-menu {
  display: flex;
  gap: 22px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 160px;
}
.footer-menu a {
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
  transition: background .14s, color .15s;
}
.footer-menu a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 340px;
}
.brand-info img {
  height: 38px;
  margin-bottom: 5px;
}
.brand-info p, .brand-info span {
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin: 0;
  color: #fff;
}
.contact-information {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.contact-information ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.contact-information li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 10px;
  color: #fff;
  opacity: 0.92;
}
.contact-information img {
  width: 22px;
  height: 22px;
}
@media (max-width: 1100px) {
  footer .content-wrapper {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ========================================================================
   RESPONSIVE (Mobile-first to Desktop UP)
   Modern Bold - Flex direction & gaps
   ======================================================================== */
@media (max-width: 850px) {
  .feature-grid, .service-list, .feature-list {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid, .feature-grid, .feature-list, .service-list {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 14px;
    min-width: 0;
    max-width: 100vw;
    word-break: break-word;
  }
  .feature-grid li, .feature-list li, .service-list > li, .service-list > div {
    min-width: 0;
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 6px;
  }
  .brand-info img {
    height: 32px;
  }
}

/* Text-image sections flex column on mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Prevent horizontal scroll overshoot for flex-wrap on mobile */
@media (max-width: 600px) {
  .feature-grid, .feature-list, .service-list {
    gap: 14px;
  }
}

/* ========================================================================
   VISUALS & MICROINTERACTIONS
   ======================================================================== */
.card, .feature-grid li, .feature-list li, .service-list > li, .service-list > div, .testimonial-card {
  box-shadow: 0 2px 7px rgba(54,74,44,0.08);
  transition: box-shadow .25s, transform .17s;
}
.card:hover, .feature-grid li:focus-within, .service-list > div:focus-within {
  box-shadow: 0 8px 30px rgba(54,74,44,0.13), 0 1px 16px rgba(237,170,77,0.07);
}

.feature-grid li, .feature-list li {
  cursor: pointer;
}

/* List/check visuals for features */
.feature-list img {
  filter: none;
  border-radius: 0;
  background: none;
}

/* Category accent highlights */
.feature-grid li:nth-child(odd) {
  border-left-color: var(--color-primary);
}
.feature-grid li:nth-child(even) {
  border-left-color: var(--color-secondary);
}

/* ========================================================================
   COOKIE CONSENT BANNER, MODAL, & ANIMATIONS
   ======================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -4px 22px rgba(54,74,44,0.15);
  padding: 24px 16px 20px 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  animation: cookiein .36s cubic-bezier(.74,-0.31,.61,1.7);
}
@keyframes cookiein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: var(--color-text-dark);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-banner button {
  font-family: var(--font-body);
  font-weight: 700;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 8px;
  margin: 0;
  border: none;
  box-shadow: 0 1px 7px rgba(54,74,44,0.08);
}
.cookie-banner .accept {
  background: var(--color-success);
  color: #fff;
  transition: background .17s, color .17s;
}
.cookie-banner .accept:hover {
  background: #27A354;
}
.cookie-banner .reject {
  background: var(--color-error);
  color: #fff;
  transition: background .17s, color .17s;
}
.cookie-banner .reject:hover {
  background: #ad2531;
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background .17s, color .16s;
}
.cookie-banner .settings:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(54,74,44,0.34);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(54,74,44,0.18);
  max-width: 410px;
  min-width: 280px;
  padding: 34px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modal-in .36s cubic-bezier(.75,-0.06,.53,1.34);
  position: relative;
}
@keyframes modal-in {
  from { transform: translateY(45%) scale(0.7); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  accent-color: var(--color-secondary);
}
.cookie-category .essential {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal button {
  min-width: 80px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1.2rem;
  opacity: 0.7;
  cursor: pointer;
  transition: color .16s, opacity .13s;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  color: var(--color-error);
  opacity: 1;
}
@media (max-width: 600px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 20px 8px 15px;
  }
}

/* ========================================================================
   UTILS, ACCESSIBILITY, TRANSITIONS, ETC.
   ======================================================================== */
:focus {
  outline: 2px solid var(--color-secondary) !important;
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}

/* Accent for forms (optional for thank you/contact) */
input, textarea, select {
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 1rem;
  background: #fff;
  transition: border .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
}

/* Misc Util classes (for any custom) */
.mb-24 { margin-bottom: 24px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ========================================================================
   PRINT OPTIMIZATION
   ======================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
