/* --- CSS RESET & NORMALIZATION --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F4F3F0;
  color: #25391d;
  min-height: 100vh;
  scroll-behavior: smooth;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: #205087;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #5FB85F;
  text-decoration: underline;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #E6E3DD;
  font-size: 16px;
}
th {
  background-color: #EFF6EF;
  font-weight: 600;
  color: #205087;
}

/* --- BRAND FONT FACE --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #205087;
  letter-spacing: -0.5px;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, li {
  font-size: 1rem;
  color: #30512b;
}
strong {
  color: #205087;
}

/* --- LAYOUT CONTAINERS & SECTIONS --- */
.container {
  width: 100%;
  max-width: 1040px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffbe9;
  border-radius: 32px 52px 40px 28px/42px 24px 46px 44px;
  box-shadow: 0 4px 24px 0 rgba(86,126,89,0.07);
  position: relative;
}
.main {
  flex: 1 0 auto;
}

/* --- BUTTONS --- */
.button-primary {
  background: #5FB85F;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 50px 30px 40px 36px/38px 54px 32px 48px;
  padding: 14px 36px;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(42,83,52,0.11);
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
  margin-top: 20px;
  outline: none;
  display: inline-block;
  line-height: 1.1;
}
.button-primary:hover, .button-primary:focus {
  background: #206533;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px 2px rgba(95,184,95,0.13);
}
.button-secondary {
  background: #205087;
  color: #fff;
  border-radius: 40px 32px 48px 30px/52px 28px 34px 41px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.18s, box-shadow 0.14s, transform 0.12s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #246740;
  color: #fff;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 12px 0 rgba(32,80,135,0.09);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #F9F8F3;
  box-shadow: 0 1px 8px 0 rgba(97, 108, 107, 0.033);
  border-bottom-left-radius: 28px 24px;
  border-bottom-right-radius: 50px 32px;
  margin-bottom: 8px;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #205087;
  padding: 8px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a:focus {
  color: #41793b;
  border-bottom: 2px solid #5FB85F;
}
header img {
  height: 44px;
}
.button-primary {
  margin-left: 18px;
}

/* --- MOBILE HEADER NAV --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1041;
  font-size: 2.1rem;
  background: #5FB85F;
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 18px 40px 25px 32px / 41px 28px 33px 36px;
  cursor: pointer;
  box-shadow: 0 6px 24px 0 rgba(95,184,95,0.15);
  transition: background 0.12s, box-shadow 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #206533;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  position: fixed;
  top: 0;
  right: 0;
  width: 84vw;
  max-width: 340px;
  height: 100vh;
  background: #EFF5EE;
  z-index: 2000;
  box-shadow: -2px 0 20px 0 rgba(79,120,72,0.10);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.73, 0.14, 0.48, 0.97);
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 20px 8px 0;
  background: transparent;
  color: #205087;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #5FB85F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  padding: 18px 28px;
}
.mobile-nav a {
  color: #205087;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 22px 26px 20px 22px / 23px 28px 24px 18px;
  margin-bottom: 3px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3F3DF;
  color: #206533;
}

/* Hide desktop nav and button on mobile */
@media (max-width: 1020px) {
  header nav, header .button-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- SECTION & FLEX CONTAINERS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 28px 52px 34px 30px / 42px 24px 46px 44px;
  box-shadow: 0 4px 18px 0 rgba(32,80,135,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  min-width: 260px;
  flex: 1 1 300px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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: #F2F2F2;
  border-radius: 32px 18px 42px 22px;
  box-shadow: 0 2px 11px 0 rgba(32,80,135,0.04);
  max-width: 620px;
  color: #294420;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card p {
  flex: 1;
  color: #294420;
}
.testimonial-card strong {
  flex: none;
  margin-left: 12px;
  color: #205087;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7FCEB;
  border-radius: 22px 33px 28px 23px / 28px 41px 36px 33px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 7px 0 rgba(90,130,65,0.04);
}

/* Specific features-grid for index page */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
}
.features-grid > div {
  background: #F7FCEB;
  border-radius: 20px 34px 18px 24px / 22px 36px 22px 34px;
  box-shadow: 0 2px 7px 0 rgba(90,130,65,0.10);
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 320px;
  padding: 22px 18px;
  margin-bottom: 20px;
  color: #30512b;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Roboto', Arial, sans-serif;
  gap: 8px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(95,184,95,0.13);
  transform: translateY(-2px) scale(1.03);
}
.features-grid span {
  font-size: 2rem;
}

/* --- TABLE STYLING --- */
table {
  border-radius: 18px 18px 34px 30px/27px 22px 19px 34px;
  overflow: hidden;
  margin: 24px 0;
  background: #fff;
  box-shadow: 0 3px 16px 0 rgba(41,81,43,0.07);
}

/* --- FOOTER --- */
footer {
  background: #EDF2ED;
  border-top-left-radius: 52px 42px;
  border-top-right-radius: 38px 24px;
  margin-top: 40px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #25391d;
  font-size: 1rem;
  box-shadow: 0 -1px 13px 0 rgba(86,126,89,0.10);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 28px;
  padding: 38px 22px 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #205087;
}
.footer-brand img {
  height: 36px;
}
.footer-nav, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}
.footer-nav a {
  color: #205087;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #5FB85F;
}
.footer-contact p {
  color: #25391d;
  font-size: 0.97rem;
}
.footer-social span {
  font-size: 0.92rem;
  color: #30512b;
  margin-bottom: 4px;
}
.footer-social img {
  height: 30px;
  display: inline-block;
  margin-right: 6px;
}

/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 920px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    padding: 28px 16px 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
    border-radius: 23px 33px 21px 18px / 22px 23px 30px 24px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    font-size: 1rem;
  }
  .card {
    min-width: unset;
    padding: 18px 11px;
  }
  .feature-item {
    padding: 16px 9px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.10rem; }
  h3 { font-size: 1rem; }
}

/* --- FORMS & INPUTS --- */
input, textarea, select, button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  border-radius: 15px 25px 13px 19px/19px 19px 14px 14px;
}
input, textarea, select {
  border: 1.5px solid #D7E5D7;
  padding: 10px 14px;
  margin-bottom: 18px;
  background: #FBFDFB;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #5FB85F;
  background: #F6FDE9;
}

/* --- UTILITY CLASSES & ELEMENTS --- */
.text-section {
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: #294420;
  line-height: 1.6;
}
.text-section strong {
  color: #205087;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 4000;
  background: #1E3126;
  color: #F2F2F2;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding: 16px 8px;
  box-shadow: 0 -2px 12px 0 rgba(37,57,29,0.11);
  font-size: 0.98rem;
  animation: banner-slideup 0.38s cubic-bezier(.69,.18,.53,1.01);
}
@keyframes banner-slideup {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity:1; transform:translateY(0); }
}
.cookie-banner .cookie-btn {
  margin-left: 6px;
  margin-right: 6px;
  font-size: 1rem;
  padding: 8px 21px;
  border: none;
  border-radius: 20px 33px 20px 27px / 19px 17px 32px 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #5FB85F;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 2.5px 8px 0 rgba(140,168,109,0.13);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #206533;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #205087;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #16365a;
}
/* Hide banner when closed */
.cookie-banner[aria-hidden="true"] {
  display: none !important;
  opacity: 0;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0; top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4050;
  background: rgba(59, 76, 50, 0.47);
  overflow: auto;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s, pointer-events 0.12s;
  animation: modal-fadein 0.29s;
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  display: none;
}
.cookie-modal-dialog {
  background: #f8f9f2;
  color: #294420;
  max-width: 430px;
  width: 95%;
  border-radius: 30px 19px 29px 23px / 22px 28px 24px 26px;
  box-shadow: 0 9px 64px rgba(32,80,135,0.13);
  padding: 36px 30px 30px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cookie-modal-dialog h2 {
  font-size: 1.27rem;
  margin-bottom: 8px;
  color: #205087;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: transparent;
  border: none;
  color: #205087;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.16s;
  line-height: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #5FB85F;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1em;
  color: #294420;
  flex: 1;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #5FB85F;
}
.cookie-info {
  font-size: 0.97rem;
  color: #294420;
  line-height: 1.45;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal-actions .cookie-btn {
  min-width: 120px;
}

@media (max-width: 520px) {
  .cookie-modal-dialog {
    padding: 19px 7vw 16px 7vw;
  }
  .cookie-modal-close {
    right: 9vw;
  }
}

/* --- ANIMATIONS & MICROINTERACTIONS --- */
.button-primary, .button-secondary, .features-grid > div, .testimonial-card, .card {
  transition: box-shadow 0.17s, background 0.13s, transform 0.11s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(32,80,135,0.11);
  transform: translateY(-2px) scale(1.02);
}

/* --- VISUAL ORGANIC DECORATIVE SHAPES (for pseudo-elements) --- */
.section::after, .card::after {
  content: '';
  position: absolute;
  border-radius: 500px 400px 410px 320px/400px 410px 500px 330px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background: #5FB85F;
  width: 128px;
  height: 86px;
  left: 8px;
  bottom: -18px;
  filter: blur(14px);
  display: block;
}
.card::after {
  left: auto;
  right: 9px;
  bottom: -20px;
  width: 44px;
  height: 44px;
}
@media (max-width: 600px) {
  .section::after {
    width: 60px; height: 36px;
  }
  .card::after {
    width: 22px; height: 22px;
    right: 3px;
  }
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #D9E7CF;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #F8F9F5;
}

/* --- PAGE-SPECIFIC/SEMANTIC CLASSES --- */
ol li, ul li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #30512b;
  position: relative;
  padding-left: 0;
}
ol {
  padding-left: 16px;
}
ol li::before {
  content: '';
  display: none;
}
ul {
  padding-left: 13px;
}

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