/* 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;
}
/* 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;
  background: #F8FBF8;
  color: #232323;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* FONTS ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #33665B;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 12px; }
h4 { font-size: 1rem; }
p, li {
  font-size: 1rem;
  color: #232323;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* CONTAINER & LAYOUT ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2vw;
  box-sizing: border-box;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX-GAP COMPONENTS ---------------------------------------------- */
.card-container {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(51,102,91,0.07),0 1px 1px 0 rgba(51,102,91,0.02);
  margin-bottom: 20px; position: relative;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(51,102,91,0.18), 0 4px 10px 0 rgba(51,102,91,0.07);
  transform: translateY(-4px) scale(1.012);
}
.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: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(44,102,91,0.10);
  border-radius: 18px;
  margin-bottom: 20px;
}
.testimonial-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem;
  color: #33665B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE GRID ---------------------------------------------------- */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 240px;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(51,102,91,0.08);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 22px 0 rgba(51,102,91,0.15);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img {
  width: 44px; height: 44px;
  margin-bottom: 8px;
}

/* HERO SECTION ---------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, #D8F3E5 0%, #fff 100%);
  border-radius: 0 0 40px 40px;
  padding: 48px 0 56px 0;
  margin-bottom: 50px;
  box-shadow: 0 10px 60px rgba(52,110,80,0.06);
}
.hero h1,
.hero h2 {
  color: #33665B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}
.hero p {
  font-size: 1.18rem;
  color: #33665B;
  line-height: 1.8;
}
.hero .button-primary {
  margin-top: 24px;
}

/* BUTTONS --------------------------------------------------------- */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #33665B 40%, #E4B87E 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  border: none;
  padding: 12px 32px;
  font-size: 1.1rem;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(51,102,91,0.13);
  transition: background 0.4s, box-shadow 0.3s, transform 0.25s;
  cursor: pointer;
  margin-top: 10px;
  gap: 10px;
}
.button-primary:hover,
.button-primary:focus {
  background: linear-gradient(90deg, #33665B 0%, #E1A950 100%);
  box-shadow: 0 8px 30px rgba(51,102,91,0.23);
  transform: translateY(-2px) scale(1.026);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #33665B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: 2px solid #E4B87E;
  padding: 10px 26px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.26s, color 0.26s;
}
.button-secondary:hover {
  background: #33665B;
  color: #fff;
  border-color: #33665B;
}

/* NAVIGATION ------------------------------------------------------ */
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: #33665B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #D8F3E5;
  color: #E1A950;
}
.logo-link img {
  height: 44px;
  width: auto;
  display: block;
}

/* FOOTER ---------------------------------------------------------- */
footer {
  background: linear-gradient(145deg, #33665B 0%, #D8F3E5 120%);
  padding: 40px 0 14px 0;
  color: #fff;
  border-radius: 40px 40px 0 0;
  margin-top: 60px;
  box-shadow: 0 -6px 32px rgba(51,102,91,0.10);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 6px 13px;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  transition: background 0.22s, color 0.22s;
}
.footer-nav a:hover {
  background: #fff;
  color: #33665B;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-contact ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 1rem;
}
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.footer-logo img {
  height: 38px;
  display: block;
}
footer p {
  text-align: center;
  font-size: 0.99rem;
  color: #fff;
  opacity: 0.92;
  margin-bottom: 2px;
}

/* LISTS ----------------------------------------------------------- */
ul, ol {
  margin-bottom: 14px;
  padding-left: 2px;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 11px;
  vertical-align: middle;
  background: linear-gradient(132deg, #E4B87E, #33665B 80%);
  border-radius: 50%;
}
ul li {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* TESTIMONIALS ---------------------------------------------------- */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(51,102,91,0.10);
  margin-bottom: 20px;
  padding: 23px 20px;
  color: #232323;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #232323;
  margin-bottom: 10px;
}
.testimonial-meta {
  color: #33665B;
}

/* COOKIE BANNER & MODAL ------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #fff 70%, #D8F3E5 100%);
  border-top: 1px solid #E1A950;
  box-shadow: 0 -4px 28px rgba(51,102,91,0.08);
  padding: 22px 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1rem;
  animation: cookieFadeIn 0.5s ease;
  left: 0;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #33665B;
  background: #E4B87E;
  border: none;
  transition: background 0.28s, color 0.18s;
}
.cookie-banner .accept {
  background: #33665B;
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #E1A950; color: #33665B;
}
.cookie-banner .reject {
  background: #fff;
  border: 2px solid #E4B87E;
  color: #33665B;
}
.cookie-banner .reject:hover {
  background: #E4B87E;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  border: 2px solid #33665B;
  color: #33665B;
}
.cookie-banner .settings:hover {
  background: #33665B; color: #fff;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(51,102,91,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.35s;
}
@keyframes modalFadeIn { from {opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 400px;
  width: 95%;
  padding: 38px 24px 24px 24px;
  box-shadow: 0 8px 48px rgba(51,102,91,0.21);
  color: #232323;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalRise 0.44s cubic-bezier(.52,1.3,.7,1.01);
}
@keyframes modalRise { from {transform:translateY(60px); opacity:0;} to {transform:none;opacity:1;} }
.cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  color: #33665B;
}
.cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category span {
  font-size: 1.01rem;
}
.cookie-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EEE;
  border-radius: 14px;
  transition: background 0.34s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #33665B;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.34s, background 0.2s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
  background: #E4B87E;
}
.cookie-modal .modal-btn-row {
  display: flex; gap: 14px; margin-top: 20px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 7px 19px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #33665B;
  background: #E4B87E;
  border: none;
  transition: background 0.23s, color 0.17s;
}
.cookie-modal .save {
  background: #33665B; color: #fff;
}
.cookie-modal .save:hover { background: #E1A950; color: #33665B; }
.cookie-modal .cancel {
  background: #fff; border: 2px solid #E4B87E; color: #33665B;
}
.cookie-modal .cancel:hover { background: #E4B87E; color: #fff; }
.cookie-modal .close-modal {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 1.35rem;
  background: none;
  border: none;
  color: #33665B;
  cursor: pointer;
  transition: color 0.21s;
}
.cookie-modal .close-modal:hover { color: #E1A950; }

/* MOBILE MENU ----------------------------------------------------- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #33665B;
  padding: 4px 10px;
  display: none;
  z-index: 4500;
  cursor: pointer;
  transition: color 0.22s, background 0.19s;
  border-radius: 20px;
}
.mobile-menu-toggle:hover {
  background: #D8F3E5;
  color: #E1A950;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(90deg, #D8F3E5 70%, #33665B 120%);
  z-index: 4000;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.67,1.24,0.56,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 24px 24px;
  box-shadow: 0 16px 90px rgba(51,102,91,0.22);
  font-size: 1.16rem;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #33665B;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.24s;
}
.mobile-menu-close:hover {
  color: #E1A950;
}
.mobile-nav {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #33665B;
  background: #fff;
  padding: 13px 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(51,102,91,0.07);
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: #E4B87E;
  color: #fff;
}

/* UTILS & MISC ---------------------------------------------------- */
strong { font-weight: 700; color: #33665B; }

/* MEDIA QUERIES --------------------------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 96vw; }
  .feature-grid > div { min-width: 180px; padding: 23px 14px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px; }
  .header-flex { gap: 18px; }
  .hero { padding: 42px 0 38px 0; }
}
@media (max-width: 768px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .header-flex { flex-direction: row; gap: 12px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div { min-width: 0; width: 100%; margin: 0; }
  .footer-nav { flex-direction: column; gap: 8px; }
  .footer-contact ul { flex-direction: column; gap: 6px; }
  .section { padding: 30px 8px; margin-bottom: 38px; }
  .hero { padding: 28px 0 28px 0; margin-bottom: 28px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.03rem; }
  .card { padding: 20px 10px; margin-bottom: 16px; }
  .testimonial-card { padding: 14px 8px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 500px) {
  .hero { padding: 16px 0 14px 0; }
  .section { padding: 16px 3vw; }
  .footer-logo img { height: 28px; }
}

/* SCROLLBAR ------------------------------------------------------- */
::-webkit-scrollbar { width: 7px; background: #E4B87E11; }
::-webkit-scrollbar-thumb { background: #E4B87E55; border-radius: 8px; }

/* MICRO-ANIMATIONS ----------------------------------------------- */
a, .button-primary, .button-secondary, .main-nav a, .footer-nav a, .card, .feature-grid > div, .mobile-nav a, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.25s, color 0.19s, box-shadow 0.25s, transform 0.22s;
}

/* ACCESIBILITY CONTRAST ------------------------------------------- */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-meta {
  background: #fff;
  color: #232323;
}

/* SPACING ENFORCEMENT --------------------------------------------- */
.card, .testimonial-card, .feature-grid > div, .section, .content-wrapper {
  margin-bottom: 20px;
}

/* NATIVE FORM ELEMENTS (for kontakt.html and future forms) -------- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #D8F3E5;
  padding: 12px 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  background: #FAFCFB;
  color: #232323;
  transition: border 0.19s, box-shadow 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border: 1.5px solid #E4B87E;
  box-shadow: 0 0 0 2px #E4B87E22;
}
textarea { min-height: 95px; resize: vertical; }

/* Hide visually (for a11y switches in cookies) -------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Z-INDEX for overlays -------------------------------------------- */
.mobile-menu,
.mobile-menu.open {
  z-index: 4000 !important;
}

/* END OF CSS ------------------------------------------------------ */
