/* =========================
   RESET & BASE STYLES
   ========================= */
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;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(135deg,#ECECEC 0%,#FFF 100%);
  color: #173948;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
*, *:before, *:after { box-sizing: border-box; }
img, svg { max-width: 100%; display: block; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #157940;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 18px; }
h4 { font-size: 1.25rem; }
p, li, address {
  color: #173948;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: #157940;
}
a {
  color: #157940;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,.2,.2,1);
}
a:hover, a:focus {
  color: #F29E2E;
}
ul, ol { list-style: none; }

/* =========================
   CONTAINER & BASE LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 6px 28px 0 rgba(23, 57, 72, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23,57,72,0.10);
  position: relative;
  padding: 32px 24px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.20s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(23, 57, 72, 0.16);
}
.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: 24px 24px 20px 24px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(23,57,72,0.09);
  margin-bottom: 20px;
  border: 1px solid #ECECEC;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(22, 121, 64, 0.14);
}
.testimonial-card p {
  color: #173948;
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card > div strong {
  color: #157940;
  font-size: 1.06rem;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: linear-gradient(85deg, #FFF 60%, #ECECEC 100%);
  box-shadow: 0 2px 14px 0 rgba(23, 57, 72, 0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 12px 0;
  flex-wrap: wrap;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav ul li {
  display: flex;
  align-items: center;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: #157940;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 0.20s,color 0.2s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #F6FAF7;
  color: #F29E2E;
}
nav > a img {
  height: 38px;
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(93deg,#157940 60%,#29B476 100%);
  color: #FFF;
  font-weight: 700;
  border: none;
  padding: 10px 28px;
  border-radius: 28px;
  font-size: 1.10rem;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(22,121,64,0.07);
  transition: background .22s,box-shadow .17s, color .18s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(93deg,#29B476 70%,#F29E2E 120%);
  color: #173948;
  box-shadow: 0 4px 20px 0 rgba(22,121,64,0.12);
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #173948;
  color: #FFF;
  padding: 24px 0 12px 0;
  margin-top: 40px;
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  gap: 12px;
}
footer nav {
  flex-wrap: wrap;
  gap: 10px;
  color: #FFF;
  font-size: 0.97rem;
}
footer nav a {
  color: #FFF;
  opacity: 0.9;
  transition: color 0.18s,opacity 0.2s;
}
footer nav a:hover {
  color: #F29E2E;
  opacity: 1;
}
footer address {
  color: #FFF;
  font-style: normal;
  font-size: 0.97rem;
}
footer div[role="contentinfo"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
footer img {
  height: 24px;
  width: 24px;
  margin-left: 4px;
  display: inline;
}

/* =========================
   LIST FEATURES/CARDS
   ========================= */
.section ul, .content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.section ul li, .content-wrapper ul li {
  background: #F6FAF7;
  border-radius: 13px;
  padding: 18px 16px 14px 16px;
  color: #173948;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  box-shadow: 0 1px 4px 0 rgba(22,121,64,0.06);
}
.section ul li img {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

/* =========================
   RESPONSIVE & FLEX RULES
   ========================= */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .section { padding: 27px 8px; }
  nav ul { gap: 10px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 22px 4px; border-radius: 16px; margin-bottom: 32px; }
  .content-wrapper, .text-section, .card-container, .content-grid {
    gap: 13px;
  }
  .section ul, .content-wrapper ul { gap: 10px; }
  .testimonial-card { padding: 14px 10px;}
  .card { padding: 18px 12px; border-radius: 13px; }
  nav { gap: 10px; }
}
@media (max-width: 580px) {
  html { font-size: 14px; }
  .container { padding-left: 2px; padding-right: 2px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* FLEXBOX-ENFORCED: No CSS Grid. All wrappers already are flex as required. */

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #157940;
  cursor: pointer;
  z-index: 255;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F6FAF7;
  color: #F29E2E;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  box-shadow: 0 8px 32px 0 rgba(22,121,64,0.13);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.6,.04,.62,.98);
  padding-top: 38px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 17px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #157940;
  cursor: pointer;
  line-height: 1;
  z-index: 100000;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F29E2E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 33px 24px 20px 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #157940;
  background: #F6FAF7;
  width: 100%;
  font-size: 1.18rem;
  border-radius: 9px;
  padding: 14px 12px;
  font-weight: 550;
  transition: background 0.16s, color 0.16s;
  margin-bottom: 3px;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F29E2E;
  color: #FFF;
}
@media (max-width: 950px) {
  nav ul, nav .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* =========================
   BUTTONS & FORMS
   ========================= */
button, .cta-btn {
  transition: background-color 0.2s, color 0.14s, box-shadow 0.23s;
  cursor: pointer;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #F29E2E;
  outline-offset: 2px;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #FFF;
  color: #173948;
  box-shadow: 0 -2px 24px 0 rgba(23,57,72,0.11);
  border-top: 2px solid #29B476;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 20px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: popUpCookie 0.4s cubic-bezier(.7,0,.6,1);
}
@keyframes popUpCookie {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 220px;
  margin-bottom: 11px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFF;
  background: #157940;
  border: none;
  border-radius: 19px;
  padding: 8px 24px;
  font-size: 1rem;
  margin-right: 2px;
  box-shadow: 0 1.5px 7px 0 rgba(22,121,64,0.11);
  font-weight: 600;
  transition: background 0.14s,color 0.18s;
}
.cookie-btn.reject {
  background: #E2E2E2;
  color: #173948;
}
.cookie-btn.settings {
  background: #F29E2E;
  color: #173948;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #29B476;
  color: #FFF;
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #ECECEC;
  color: #157940;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: #173948;
  color: #FFF;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 7px 14px 7px;
    gap: 9px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,57,72,0.49);
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.28s cubic-bezier(.85,0,.6,1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 8px 48px 0 rgba(23,57,72,0.21);
  padding: 36px 32px 26px 32px;
  max-width: 440px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.37rem;
  margin-bottom: 6px;
  color: #157940;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: #173948;
  margin-bottom: 8px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F6FAF7;
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 6px;
}
.cookie-modal-content .cookie-category input[type="checkbox"] {
  width: 24px;
  height: 24px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 21px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #157940;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #F29E2E; }

@media (max-width: 520px) {
  .cookie-modal-content { padding: 20px 7px 16px 7px; }
}

/* =========================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================= */
.section, .testimonial-card, .card {
  transition: box-shadow 0.22s, background 0.23s;
}
.cta-btn, .cookie-btn, nav ul li a, .mobile-nav a {
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(22,121,64,0.18);
  background: #F6FAF7;
}

/* =========================
   MISCELLANEOUS
   ========================= */
::-webkit-input-placeholder { color: #A3B3BB; }
::-moz-placeholder { color: #A3B3BB; }
:-ms-input-placeholder { color: #A3B3BB; }
::placeholder { color: #A3B3BB; }

hr {
  border: none;
  border-top: 1px solid #ECECEC;
  margin: 40px 0;
}

a:active, button:active { outline: none; }

/* Remove scroll jumps from anchor links offset by sticky header */
:target::before {
  content: "";
  display: block;
  height: 100px;
  margin-top: -100px;
}

/* =========================
   PRINT OPTIMIZATION
   ========================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #FFF; color: #173948; }
  .container, .content-wrapper, .section { padding: 0 !important; box-shadow: none !important; background: none !important; }
}

/* =========================
   VISUAL HIERARCHY & MODERNITY
   ========================= */
.section > h2, .content-wrapper > h2 {
  background: linear-gradient(92deg, #157940 55%, #29B476 100%);
  color: #FFF;
  padding: 12px 30px;
  margin: -40px -20px 18px -20px;
  border-radius: 0 0 18px 0;
  box-shadow: 0 1px 7px 0 rgba(22,121,64,0.13);
  font-weight: 700;
  font-size: 1.59rem;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .section > h2, .content-wrapper > h2 {
    font-size: 1.12rem;
    padding: 9px 11px;
    margin: -22px -4px 10px -4px;
    border-radius: 0 0 11px 0;
  }
}

/* =========================
   SPECIAL MOBILE/TABLET LISTS
   ========================= */
@media (max-width: 500px) {
  .section ul, .content-wrapper ul {
    flex-direction: column;
    gap: 7px;
  }
}
