/* CSS RESET & BASELINE  --------------------------------------------------- */
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; /* border-box everywhere */
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: #F8FCEF;
  color: #244033;
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.6;
  overflow-x: hidden;
}

/* FONTS */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  color: #295132;
  line-height: 1.2;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: #20573D;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: #387E4A;
}
h4 {
  font-size: 1.05rem;
  color: #457B9D;
}
p {
  margin-bottom: 14px;
  color: #313D2B;
}
strong {
  font-weight: 700;
  color: #24523C;
}
a {
  color: #387E4A;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #1D3557;
  text-decoration: underline;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}
dt {
  font-weight: bold;
  margin-top: 18px;
  color: #387E4A;
}
dd {
  margin-left: 0;
  color: #244033;
  margin-bottom: 6px;
}

/* BRAND & ORGANIC COLORS */
:root {
  --brand-primary: #1D3557;
  --brand-secondary: #457B9D;
  --brand-accent: #F1FAEE;
  --nature-deep-green: #295132;
  --nature-light-green: #B5D1B1;
  --nature-earth-brown: #9D8B70;
  --nature-light-beige: #F8FCEF;
  --nature-shadow: rgba(51, 72, 54, .11);
  --nature-bg-card: #F6F8F2;
  --nature-organic-line: #E6E2C2;
  --nature-cta: #387E4A;
}

/* LAYOUT & CONTAINERS ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ORGANIC SHAPES (decorative) */
.organic-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.13;
  z-index: 0;
}

/* FLEX LAYOUTS ------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 260px;
  background: var(--nature-bg-card);
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--nature-shadow);
  padding: 28px 24px;
  min-width: 240px;
  max-width: 400px;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1px solid var(--nature-organic-line);
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 22px rgba(51, 72, 54, .15);
  transform: translateY(-3px) scale(1.014);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--nature-shadow);
  border-left: 6px solid var(--nature-cta);
  max-width: 430px;
  min-width: 220px;
  min-height: 120px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(56,126,74,.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HOMEPAGE: Key Features & Testimonials 
--------------------------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: var(--nature-bg-card);
  border-radius: 19px;
  box-shadow: 0 2px 12px var(--nature-shadow);
  padding: 32px 24px 24px 24px;
  min-width: 235px;
  flex: 1 1 260px;
  border: 1px solid var(--nature-organic-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.15s, translate 0.2s;
  margin-bottom: 24px;
}
.feature-grid > div img {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px rgba(41,81,50,.13);
  transform: translateY(-2px) scale(1.012);
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 20px;
}
.service-cards > div {
  background: var(--nature-light-beige);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--nature-shadow);
  padding: 24px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 235px;
  margin-bottom: 20px;
  border: 1px solid #DDE6CA;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.13s, transform 0.18s;
}
.service-cards > div:hover {
  box-shadow: 0 4px 17px rgba(70,123,157,.13);
  transform: translateY(-2px) scale(1.01);
}
.service-cards h3 {
  margin-bottom: 9px;
  color: #295132;
}
.price {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #457B9D;
  margin-bottom: 12px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #254C35;
}
.testimonial-client {
  font-size: 0.95rem;
  color: #20573D;
  font-weight: 600;
}
.testimonial-rating {
  font-size: 1.2rem;
  color: #457B9D;
}

/* HERO */
section .btn-primary {
  margin-top: 20px;
}

/* BUTTONS ----------------------------------------------------- */
.btn-primary,
.btn-secondary,
.mobile-nav a.btn-primary,
.mobile-nav a.btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  line-height: 1.22;
  background: var(--nature-cta);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(41,81,50,.08);
  transition: background 0.18s, box-shadow 0.16s, transform 0.16s;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(29,53,87,.12);
  outline: none;
  transform: translateY(-2px) scale(1.045);
}
.btn-secondary {
  background: #fff;
  color: var(--nature-cta);
  border: 1.5px solid var(--nature-cta);
  box-shadow: 0 1px 5px rgba(41,81,50,.06);
  transition: background 0.18s, color 0.18s, border 0.13s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--nature-cta);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* NAVIGATION -------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1.5px solid var(--nature-organic-line);
  box-shadow: 0 1px 10px rgba(41,81,50,0.08);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 70;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
header img[alt="PivieInter Konzultácie"] {
  height: 46px;
  width: auto;
  margin-right: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #30542D;
  padding: 8px 14px;
  border-radius: 17px;
  transition: background 0.12s, color 0.13s;
}
.main-nav .btn-primary {
  margin-left: 16px;
  padding: 9px 22px;
  font-size: 1.05rem;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--nature-light-green);
  color: #1D3557;
}


/* MOBILE NAVIGATION ------------------------------------------- */
.mobile-menu-toggle {
  padding: 5px 18px 5px 8px;
  font-size: 2.2rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--nature-deep-green);
  border-radius: 14px;
  cursor: pointer;
  outline: none;
  display: inline-block;
  margin-left: 22px;
  z-index: 101;
  transition: background 0.19s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--nature-light-green);
  color: #295132;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(41,81,50,.98);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.77, 0, .18, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  margin: 32px 22px 16px 0;
  align-self: flex-end;
  cursor: pointer;
  line-height: 1;
  z-index: 121;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #F1FAEE;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 8px;
  margin-bottom: 0;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  margin-top: 12px;
  padding: 12px 26px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(119, 207, 151, 0.07);
}
.mobile-nav a.btn-primary:hover {
  background: #295132;
  color: #fff;
}

/* Hide desktop navigation on mobile, show burger */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 981px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN SECTIONS & FLEX CARDS ---------------------------------- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.team-member {
  background: var(--nature-bg-card);
  border-radius: 16px;
  box-shadow: 0 1px 7px var(--nature-shadow);
  padding: 20px 18px 17px 18px;
  min-width: 180px;
  flex: 1 1 210px;
  border: 1px solid #E6E2C2;
  margin-bottom: 20px;
}
.team-member h3 {
  color: #1D3557;
  font-size: 1.12rem;
  margin-bottom: 7px;
}

.client-expectations {
  margin-top: 22px;
}
.client-expectations ul {
  list-style: disc outside;
  margin-left: 20px;
}
.privacy-notice {
  font-size: 0.98rem;
  margin-top: 15px;
  background: #F8FCEF;
  border-radius: 11px;
  padding: 14px 19px;
  color: #367941;
  border: 1px solid #E6E2C2;
}

.trust-signals {
  border-top: 1.5px solid #DBEDD4;
  font-size: 1.03rem;
  color: #50895C;
  margin-top: 19px;
  padding-top: 9px;
}

.step-guide {
  margin-top: 16px;
  background: #F6F8F2;
  border-left: 4px solid var(--nature-cta);
  border-radius: 8px;
  padding: 12px 15px 11px 19px;
}
.step-guide ul {
  margin-left: 12px;
}

/* Blog cards (represented as ul > li) */
.content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-wrapper > ul > li {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 8px rgba(41,81,50,.08);
  border: 1px solid #E6E2C2;
  padding: 21px 18px 16px 21px;
  min-width: 200px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper > ul > li h3 {
  font-size: 1.09rem;
  color: #457B9D;
}

/* FOOTER ---------------------------------------------- */
footer {
  background: #295132;
  color: #F1FAEE;
  font-size: 1.01rem;
  padding: 38px 0 16px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 0 5px 0;
}
.footer-nav a {
  color: #F1FAEE;
  font-size: 0.97rem;
  font-weight: 500;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: var(--nature-light-green);
}
footer address {
  font-style: normal;
  color: #DBEDD4;
  font-size: 0.99rem;
  text-align: center;
}
footer a {
  color: #E3F6D5;
  text-decoration: underline;
}
.footer-copy {
  margin-top: 12px;
  color: #ACE0B5;
  font-size: 0.94rem;
}

/* COOKIE BANNER -------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #20573D;
  color: #F1FAEE;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 9999;
  padding: 18px 22px 18px 22px;
  box-shadow: 0 -2px 17px rgba(41,81,50,0.12);
  animation: fadeInBottom 0.27s cubic-bezier(.45,0,.4,1);
}
@keyframes fadeInBottom {
  from {transform: translateY(90%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  flex: 1 1 200px;
  font-size: 1rem;
  margin: 0 0 7px 0;
  color: #F1FAEE;
}
.cookie-banner .btn-group {
  gap: 9px;
}
.cookie-banner button, .cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  font-size: 1rem;
  padding: 8px 17px;
  border-radius: 30px;
  border: none;
  margin-right: 0;
  margin-bottom: 0;
  cursor: pointer;
  outline: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .btn-primary {
  background: var(--nature-cta);
  color: #fff;
}
.cookie-banner .btn-primary:hover {
  background: #1D3557;
}
.cookie-banner .btn-secondary {
  background: #fff;
  color: var(--nature-cta);
  border: 1px solid var(--nature-cta);
}
.cookie-banner .btn-secondary:hover {
  background: #B5D1B1;
  color: #20573D;
}
.cookie-settings {
  background: #fff;
  color: var(--nature-cta);
  border: 1px solid #AED7C2;
}
.cookie-settings:hover {
  background: #B5D1B1;
  color: #295132;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,53,52,0.63);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.22s;
  opacity: 1;
  animation: fadeInModal .25s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #F7F9EF;
  color: #254C35;
  padding: 32px 26px 26px 26px;
  border-radius: 20px;
  min-width: 300px;
  max-width: 94vw;
  box-shadow: 0 4px 32px rgba(41,81,50,0.19);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal-close {
  font-size: 1.7rem;
  border: none;
  background: none;
  color: #244033;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 9px;
  transition: color 0.12s;
}
.cookie-modal-close:hover {
  color: #1D3557;
}
.cookie-modal-content h2 {
  margin-bottom: 18px;
  font-size: 1.18rem;
  color: #244033;
}
.cookie-modal-content label {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.cookie-modal-content .cookie-category {
  margin-bottom: 14px;
}
.cookie-modal-content input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #387E4A;
}

/* ICON STYLING */
.container ul img, .container ul li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 22px;
  height: 22px;
}


/* MEDIA QUERIES & RESPONSIVE --------------------------------- */
@media (max-width: 1100px) {
 .container {
    max-width: 950px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 770px;
  }
}
@media (max-width: 820px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
  .feature-grid, .service-cards, .testimonial-list, .card-container, .content-wrapper > ul, .team-list {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  h1 {font-size: 1.7rem;}
  h2 {font-size: 1.22rem;}
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
  .feature-grid, .service-cards, .testimonial-list, .card-container, .team-list, .content-wrapper > ul {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-cards > div, .testimonial-card, .team-member, .content-wrapper > ul > li {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-list {
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .container {
    padding: 0 3vw;
  }
  .testimonial-card { padding: 15px; }
  .feature-grid > div, .service-cards > div, .card {
    padding: 15px 9px 13px 11px;
  }
  .section {
    padding: 17px 2vw;
  }
  .testimonial-list {
    gap: 10px;
  }
}
@media (max-width: 460px) {
  body { font-size: 1em; }
  h1 { font-size: 1.20rem; }
}

/* UTILITIES & EFFECTS ----------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #F1FAEE;
}
::-webkit-scrollbar-thumb {
  background: #B5D1B1;
  border-radius: 3px;
}
a:focus {
  outline: 1.8px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Micro-interactions */
.card, .feature-grid > div, .service-cards > div, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow 0.18s, transform 0.16s, background 0.2s;
}

/* REMOVE ABSOLUTE FROM CONTENT! Only .organic-deco uses absolute. */

/* Z-INDEX FOR MENUS AND COOKIES */
.mobile-menu {z-index:120;}
.mobile-menu-toggle {z-index:101;}
.cookie-banner {z-index:9999;}
.cookie-modal {z-index:10000;}

/* HELPERS ----------------------------------------- */
.mt-2 {margin-top:13px;}
.mt-4 {margin-top:24px;}
.mb-2 {margin-bottom:13px;}
.mb-4 {margin-bottom:24px;}
.gap-2 {gap:13px;}
.gap-4 {gap:24px;}

/* END */
