/* ====================================================================
   CSS RESET & BASELINE NORMALIZATION
   ==================================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F9FBFF;
  color: #2F332B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #27796A;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #47AF9A;
}
ul, ol {
  list-style: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #dbe3dc;
  font-size: 1rem;
  text-align: left;
}
th {
  background-color: #e7f3ee;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #225542;
}

/* ====================================================================
   ROOT COLORS & TYPOGRAPHY (nature_organic palette)
   ==================================================================== */
:root {
  --primary: #283D6E;
  --primary-light: #3E5278;
  --secondary: #F9FBFF;
  --background: #F8F7F3;
  --white: #FFFFFF;
  --accent: #27796A;
  --accent-light: #47AF9A;
  --earth-1: #E9E5D7;
  --earth-2: #B6A081;
  --earth-3: #b4c7a0;
  --shadow: 0 2px 16px 0 rgba(40, 61, 110, 0.07), 0 1.5px 6px 0 rgba(39, 121, 106, 0.04);
  --radius-main: 20px;
  --radius-card: 18px 30px 24px 18px;
  --max-width: 1152px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #225542;
  margin: 0 0 24px 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.22; }
h3 { font-size: 1.4rem; line-height: 1.35; }
h4 { font-size: 1.2rem; line-height: 1.4; }
p, ul li, ol li {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong, b {
  color: #283D6E;
  font-weight: 700;
}

/* ====================================================================
   GLOBAL LAYOUT
   ==================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* FLEXBOX LAYOUT HELPERS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  min-width: 220px;
  max-width: 340px;
}
.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;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f7faf8;
  border: 1.5px solid #E9E5D7;
  border-radius: 18px 30px 24px 18px;
  box-shadow: 0 2px 6px 0 rgba(39,121,106,0.08);
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  background: #f3f7f4;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

/* FORCE 20PX MINIMUM GAP BETWEEN CARDS/SECTIONS */
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* ====================================================================
   HEADER & NAVIGATION
   ==================================================================== */
header {
  background: var(--white);
  box-shadow: 0 4px 24px 0 rgba(40,61,110,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  position: relative;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #27796A;
  padding: 7px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E9E5D7;
  color: var(--primary);
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--white);
  background: var(--accent);
  border: none;
  border-radius: 26px 40px 28px 26px;
  font-weight: 700;
  padding: 12px 35px;
  box-shadow: 0 2px 10px rgba(39,121,106,0.07);
  letter-spacing: 0.02em;
  transition: background 0.25s, box-shadow 0.25s, transform 0.1s;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 22px;
  margin-top: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(39,121,106,0.13);
}

/* LOGO height responsively controlled */
header a img {
  height: 48px;
  width: auto;
}

/* ====================================================================
   MOBILE BURGER MENU
   ==================================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 26px;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  cursor: pointer;
  z-index: 121;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(249,251,255,0.98);
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(0.74,0.15,0.41,0.96);
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  align-self: flex-end;
  margin: 22px 18px 8px 0;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(39,121,106,0.09);
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E9E5D7;
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 30px;
  width: 85vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 600;
  padding: 13px 0 13px 7px;
  border-radius: 10px;
  transition: background 0.23s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e2f3ea;
  color: var(--accent);
}

/* ====================================================================
   HERO, CORE SECTIONS, CARDS
   ==================================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.section {
  background: #f3f7f4;
}
.content-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.card, .feature-item, .testimonial-card {
  box-shadow: var(--shadow);
}
.card {
  background: #fffdfa;
  border-radius: var(--radius-card);
  padding: 28px 24px 26px 30px;
  border-left: 6px solid var(--accent);
}

/* Lists inside features/services */
ul li {
  margin-bottom: 13px;
  padding-left: 0;
  position: relative;
  line-height: 1.6;
}
ul li b {
  color: #225542;
}

/* CTA center text */
.section .btn-primary {
  align-self: flex-start;
  margin-top: 16px;
}

/* ====================================================================
   TESTIMONIALS (mnenja)
   ==================================================================== */
.testimonial-card {
  box-shadow: 0 2px 12px 0 rgba(34,85,66,0.13);
  padding: 28px 28px 22px 32px;
  background: #f8fff8;
  border-left: 5px solid #b4c7a0;
  margin-bottom: 24px;
  font-size: 1.09em;
  color: #222f23;
  font-style: italic;
  align-items: flex-start;
  position: relative;
}
.testimonial-card span {
  display: block;
  margin-top: 9px;
  font-style: normal;
  font-size: 1rem;
  color: #27796a;
}
.testimonial-card b {
  color: #225542;
}

/* Star icons */
.testimonial-card span[aria-label] {
  color: #bfc44C;
  font-size: 1.08em;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-left: 3px;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
footer {
  background: #e2f3ea;
  padding: 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 20px 24px 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.footer-brand img {
  width: 46px;
  height: auto;
}
.footer-brand p {
  color: #27796A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  opacity: 0.84;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: #27796A;
  font-size: 1rem;
  opacity: 0.94;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #225542;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: #1b4639;
}
.footer-contact a {
  color: #225542;
  word-break: break-all;
}

/* ====================================================================
   FORMS & INPUTS (blog search, etc.)
   ==================================================================== */
input[type="search"] {
  width: 100%;
  max-width: 370px;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 15px;
  border: 1.5px solid #b4c7a0;
  background: #f7faf8;
  outline: none;
  margin-top: 10px;
  transition: border-color 0.2s;
  color: #283D6E;
}
input[type="search"]:focus {
  border-color: #27796A;
  background: #fff;
}

/* ====================================================================
   TABLE (cenik.html)
   ==================================================================== */
table {
  background: #f8fff8;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}
th, td {
  border-bottom: 1px solid #e3e8e0;
}
thead th {
  background: #b4c7a0;
  color: #283D6E;
  letter-spacing: 0.03em;
}
tbody tr:last-child td {
  border-bottom: none;
}
td {
  color: #225542;
}

/* ====================================================================
   COOKIE CONSENT BANNER
   ==================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #e4edd4;
  border-top: 2px solid #bfc44C;
  box-shadow: 0 -2px 22px 2px rgba(34,85,66,0.07);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 28px;
  min-height: 72px;
  font-size: 1em;
  transition: transform 0.5s;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner p {
  color: #254d31;
  font-size: 1.02em;
  margin-right: 18px;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  font: 600 1em 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  border-radius: 16px;
  cursor: pointer;
  padding: 9px 24px;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn.accept {
  background: #27796A;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #225542;
}
.cookie-btn.reject {
  background: #E9E5D7;
  color: #225542;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d7e1d0;
  color: #27796A;
}
.cookie-settings-btn {
  background: none;
  color: #27796A;
  padding: 9px 15px;
  text-decoration: underline;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  color: #225542;
}

/* COOKIE PREFS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 61, 110, 0.22);
  z-index: 2002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.26s;
}
.cookie-modal {
  background: #fffdfa;
  border-radius: 26px 38px 28px 22px;
  box-shadow: 0 4px 38px 2px rgba(34,85,66,0.10);
  max-width: 420px;
  width: 95vw;
  padding: 34px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  font-size: 1.02em;
  align-items: flex-start;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 8px;
  color: #27796A;
}
.cookie-modal-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-weight: 600;
  color: #225542;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #27796A;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.cookie-modal .essential {
  font-style: italic;
  color: #888;
  opacity: .75;
}
.cookie-modal .cookie-actions {
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #27796A;
  cursor: pointer;
}
.cookie-modal .close-cookie-modal:hover {
  color: #225542;
}

/* ====================================================================
   RESPONSIVE DESIGN & MOBILE ADJUSTMENTS (flex-only)
   ==================================================================== */
@media (max-width: 1160px) {
  .container {
    max-width: 96vw;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 36px 14px 22px 14px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 12px 10px 12px;
  }
  .main-nav {
    order: 2;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 7px;
    align-items: flex-start;
    display: none;
  }
  .btn-primary {
    order: 3;
    margin-top: 12px;
    margin-left: 0;
  }
  header .container a img {
    margin-bottom: 8px;
  }
  .mobile-menu-toggle {
    display: block;
    right: 20px;
    top: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  section, .section {
    padding: 26px 0 32px 0;
    margin-bottom: 34px;
    border-radius: 0;
    box-shadow: none;
  }
  .testimonial-card, .card {
    padding: 21px 12px 18px 16px;
    border-radius: 12px 22px 16px 12px;
  }
  .content-wrapper, .card-container, .content-grid, .text-section, .feature-item {
    gap: 13px;
    padding: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-brand img {
    width: 37px;
  }
  .footer-contact, .footer-nav {
    font-size: 0.95rem;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
    margin: 12px 0 0;
    padding: 12px 0;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.12rem; }

  .footer-brand p, .footer-contact {
    font-size: 0.89rem;
  }
  .footer-nav a {
    font-size: 0.92rem;
  }
  .testimonial-card, .card {
    font-size: 1rem;
    padding: 14px 6px 14px 10px;
  }
}

/* ====================================================================
   MICRO-INTERACTIONS & ANIMATIONS
   ==================================================================== */
.btn-primary, .cookie-btn, .cookie-settings-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.22s, color 0.22s, box-shadow 0.19s, transform 0.13s;
}
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(39,121,106,0.15);
  transform: translateY(-2px) scale(1.012);
}

/* Organic shape accent for cards (optional, subtle) */
.card::before {
  content: '';
  position: absolute;
  top: -35px; right: -50px;
  width: 110px; height: 90px;
  background: #b4c7a0;
  opacity: 0.12;
  border-radius: 78% 64% 80% 72% / 80% 56% 90% 80%;
  z-index: 1;
  pointer-events: none;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  bottom: -25px; left: -35px;
  width: 80px; height: 54px;
  background: #e9e5d7;
  opacity: 0.16;
  border-radius: 62% 87% 62% 77% / 83% 60% 94% 90%;
  z-index: 1;
}

/* ====================================================================
   PRINT (minimal, preserve readability)
   ==================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner { display: none !important; }
  section, .container, .content-wrapper { padding: 0 !important; box-shadow: none !important; }
}

/* ====================================================================
   UTILITIES
   ==================================================================== */
.hide { display: none !important; }

/* ====================================================================
   FONT LOAD (You should include Google Fonts in <head>, but fallback below)
   ==================================================================== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'),
       url('https://fonts.gstatic.com/s/montserrat/v25/JTUSjIg1_i6t8kCHKm459Wdhyw.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'),
       url('https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxM.woff2') format('woff2');
}
