/* ==== RESET & BASE ==== */
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.5;
  background: #F2F2F2;
  color: #1A263A;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
img {
  max-width: 100%;
  border: none;
  display: block;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2A8B49;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.875rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; }
p, li, blockquote {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #1A263A;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
blockquote {
  font-style: italic;
  font-weight: 600;
  color: #1A263A;
  background: #F2F2F2;
  border-left: 6px solid #2A8B49;
  padding: 16px 24px;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
  color: #2A8B49;
}

/* ==== GENERAL LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 rgba(42,139,73,0.08);
  position: relative;
  transition: box-shadow 0.3s;
}
.section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==== HEADER ==== */
header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 24px 0 rgba(26,38,58,0.10);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 20px;
}
nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 32px;
}
nav > a img {
  height: 42px;
  margin-right: 36px;
  transition: transform 0.2s;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-right: auto;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1A263A;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #2A8B49;
  color: #fff;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  background: #2A8B49;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 13px 36px;
  margin-left: 28px;
  box-shadow: 0 4px 16px 0 rgba(42,139,73,0.13);
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  text-align: center;
  transition: background 0.18s, transform 0.16s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #256F3D;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(42,139,73,0.20);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  background: #2A8B49;
  color: #fff;
  border: none;
  border-radius: 10px;
  z-index: 110;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px 0 rgba(42,139,73,0.21);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #256F3D;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #1A263A;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.7,.2,.2,1), box-shadow 0.2s;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 24px;
  box-shadow: rgba(42,139,73,0.20) 12px 0 24px 4px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  z-index: 220;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 72px;
  gap: 18px;
  padding: 0 40px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  padding: 11px 0 11px 4px;
  width: 100%;
  border-radius: 8px;
  transition: background 0.2s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2A8B49;
  color: #fff;
}

@media (max-width: 1023px) {
  nav ul { display: none; }
  .cta-primary {
    margin-left: 0;
    margin-top: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== MAIN SECTIONS ==== */
main {
  padding-top: 30px;
}

/* Section general spacing */
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== GRID & FLEX LAYOUTS (FLAT FLEX ONLY) ==== */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(42,139,73,0.08);
  margin-bottom: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: box-shadow .21s, transform .19s;
}
.card:hover { box-shadow: 0 8px 28px 0 rgba(42,139,73,0.17); transform: translateY(-3px) scale(1.015); }
.content-grid {
  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;
  background: #F2F2F2;
  border-radius: 19px;
  margin-bottom: 20px;
  box-shadow: 0 1px 10px 0 rgba(26,38,58,0.05);
}
.testimonial-card p {
  color: #1A263A;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid > div {
  background: #F2F2F2;
  border-radius: 18px;
  padding: 28px 18px 22px 18px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 0 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 3px 12px 0 rgba(42,139,73,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform .18s;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 24px 0 rgba(42,139,73,0.14);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img {
  height: 46px;
  width: 46px;
  margin-bottom: 10px;
  background: #2A8B49;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px 0 rgba(42,139,73,0.18);
}
.feature-grid h3 {
  color: #1A263A;
  font-weight: 700;
  font-size: 1.19rem;
  margin-bottom: 8px;
}
.feature-grid p {
  color: #1A263A;
  font-size: 1rem;
  font-weight: 500;
}

/* ==== FORMS, TABLES (IF USED) ==== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 2px solid #E5E5E5;
  border-radius: 8px;
  outline: none;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.15s;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: #2A8B49;
}
button, input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  background: #2A8B49;
  color: #fff;
  border: none;
  padding: 11px 32px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(42,139,73,0.10);
  transition: background 0.15s, transform 0.15s, box-shadow 0.14s;
}
button:hover, button:focus, input[type=submit]:hover, input[type=submit]:focus {
  background: #256F3D;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 20px 0 rgba(42,139,73,0.17);
}

/* ==== FOOTER ==== */
footer {
  width: 100%;
  background: #1A263A;
  color: #fff;
  padding: 44px 0 24px 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 30px 0 rgba(42,139,73,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 38px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
}
footer a img {
  height: 42px;
  margin-bottom: 10px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav ul li a {
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  transition: background 0.16s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  background: #2A8B49;
}
footer .contact-details p, footer .contact-details a {
  color: #F2F2F2;
  font-size: 0.97rem;
  margin-bottom: 8px;
}
footer .contact-details a {
  text-decoration: underline;
  color: #F2F2F2;
  font-weight: 600;
}

/* ==== RESPONSIVE MEDIA QUERIES ==== */
@media (max-width: 1280px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 1024px) {
  .feature-grid, .card-container, .content-grid {
    justify-content: flex-start;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div { max-width: 100%; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  main { padding-top: 12px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.45rem; }
  .section, main > section {
    padding: 20px 6vw;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 12px;
  }
  .text-image-section { flex-direction: column; align-items: stretch; gap: 16px; }
  nav ul { display: none; }
  header .container { flex-direction: row; }
  .cta-primary { margin-left: 0; margin-top: 6px; width: 100%; min-width: 0; }
  footer .container { gap: 20px; }
  footer .content-wrapper { gap: 20px; flex-direction: column; align-items: flex-start; }
  footer nav ul { gap: 12px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.13rem; }
  p, li, blockquote, .feature-grid p { font-size: 0.96rem; }
  .section, main > section { padding: 10px 2vw; margin-bottom: 30px; }
  .feature-grid > div { padding: 18px 8px 16px 8px; }
  .testimonial-card { padding: 13px; }
}

/* ==== MICRO-INTERACTIONS ==== */
.feature-grid > div, .card {
  transition: box-shadow .18s, transform .12s;
}
.feature-grid > div:active, .card:active {
  transform: scale(0.98);
  box-shadow: 0 0 12px 0 rgba(42,139,73,0.10);
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1A263A;
  color: #fff;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw 18px 8vw;
  gap: 20px;
  font-size: 1rem;
  box-shadow: 0 -2px 44px 0 rgba(42,139,73,0.17);
  animation: slidein-bot 0.39s cubic-bezier(.5,.2,.5,1) 1;
}
@keyframes slidein-bot {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 0;
  flex: 1 1 340px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 9px;
  padding: 9px 25px;
  margin: 0 2px;
  cursor: pointer;
  background: #2A8B49;
  color: #fff;
  transition: background 0.13s, transform 0.11s;
  box-shadow: 0 2px 12px 0 rgba(42,139,73,0.06);
}
.cookie-btn.reject {
  background: #E84545;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #2A8B49;
  border: 2px solid #2A8B49;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #256F3D;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #B62828;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F2F2F2;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 7vw;
    font-size: 0.96rem;
    gap: 12px;
  }
  .cookie-banner .cookie-actions { width: 100%; justify-content: flex-end; }
  .cookie-btn { flex: 1 1 auto; width: 100%; }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,38,58,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-bg 0.23s;
}
@keyframes fadein-bg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #1A263A;
  border-radius: 24px;
  box-shadow: 0 8px 64px 0 rgba(42,139,73,0.17);
  padding: 36px 34px 28px 34px;
  max-width: 94vw;
  width: 410px;
  position: relative;
  animation: slide-modal 0.29s cubic-bezier(.7,.3,0,1.1);
}
@keyframes slide-modal {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.21rem;
  margin-bottom: 10px;
  color: #2A8B49;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 13px 0;
  gap: 16px;
  border-bottom: 1px solid #F2F2F2;
}
.cookie-modal .cookie-category:last-child { border-bottom: none; }
.cookie-modal .toggle {
  margin-top: 6px;
  appearance: none;
  width: 40px;
  height: 22px;
  background: #E4E4E4;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .toggle:checked {
  background: #2A8B49;
}
.cookie-modal .toggle:before {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.13s;
  box-shadow: 0 2px 8px 0 rgba(42,139,73,0.09);
}
.cookie-modal .toggle:checked:before {
  left: 22px;
}
.cookie-modal .toggle:disabled,
.cookie-modal .toggle[disabled] {
  opacity: 0.6;
  cursor: default;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  font-size: 1.7rem;
  border: none;
  color: #1A263A;
  cursor: pointer;
  font-family: inherit;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 20px 8px; width: 93vw; }
}

/* ==== UTILS ==== */
.hide { display: none !important; }
.show { display: flex !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ==== VISUAL HIERARCHY AND EFFECTS ==== */
hr {
  border: none;
  border-top: 2px solid #F2F2F2;
  margin: 24px 0;
}

/* ==== ACCESSIBILITY: FOCUS STYLES ==== */
a:focus, button:focus, .cta-primary:focus, input:focus, .cookie-btn:focus {
  outline: 3px solid #2A8B49;
  outline-offset: 1px;
  z-index: 250;
}

/* ===== CUSTOM SCROLLBAR ==== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #2A8B49; border-radius: 7px; }
::-webkit-scrollbar-track { background: #F2F2F2; }

/* ===== PRINT FRIENDLY ==== */
@media print {
  header, footer, .cookie-banner, .cookie-modal-backdrop, .mobile-menu { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  body, .section, main { background: #fff !important; }
}
