/* ------------------
  CSS 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;
}

html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F8FAF5;
  color: #172820;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: #22613D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #17462B;
  outline: none;
}

ul, ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}
li {
  margin-bottom: 0.35em;
}

/* --------------
  TYPOGRAPHY
----------------*/
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #22613D;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #22613D;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1D5030;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #22513D;
  margin-bottom: 8px;
}

p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #172820;
}
strong, b {
  font-weight: 700;
  color: #22613D;
}


/* -------------------
  LAYOUT STRUCTURE
---------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.card-container,
.card-grid,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(34,97,61,0.07), 0 1.5px 4px rgba(56,78,61,0.045);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 230px;
  flex: 1 1 250px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(34,97,61,0.12), 0 3px 12px rgba(56,78,61,0.08);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}

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


/* ------------------
  HEADER & NAVIGATION
------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E2ECE6;
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 0;
}
.header-main > a img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover:not(.cta), nav a:focus:not(.cta) {
  background: #f2f8f4;
  color: #17462B;
}
nav a.cta {
  background: #22613D;
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(34,97,61,0.07);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  border: none;
  outline: none;
}
nav a.cta:hover,
nav a.cta:focus {
  background: #17462B;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #22613D;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 99;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E8F3EC;
  outline: none;
}


/* -----------------------------
  MOBILE MENU OVERLAY & ANIMATION
------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 130;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.46,.03,.52,.96);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #22613D;
  margin: 22px 20px 12px 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E8F3EC;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 0 40px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
}
.mobile-nav a {
  padding: 12px 0;
  color: #22613D;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E8F3EC;
  color: #17462B;
}
.mobile-nav a.cta {
  background: #22613D;
  color: #fff;
  padding: 12px 26px;
  border-radius: 28px;
  margin-top: 18px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(34,97,61,0.09);
  transition: background 0.2s, transform 0.12s;
}
.mobile-nav a.cta:hover, .mobile-nav a.cta:focus {
  background: #17462B;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}


/* ------------------
  MAIN CONTENT LAYOUT
------------------- */
main {
  width: 100%;
  margin-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ------------------
  CARDS, TESTIMONIALS
------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #E2ECE6;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34,97,61,0.07);
  margin-bottom: 20px;
  max-width: 540px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #17462B;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #22613D;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 20px rgba(34,97,61,0.11);
  border-color: #C2D5C9;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.team-grid > div {
  flex: 1 1 250px;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,97,61,0.05);
  padding: 24px 18px 18px 18px;
  margin-bottom: 20px;
}

.quote-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}


/* ------------------
  ICONIZED LISTS (Index page)
------------------- */
.content-wrapper ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  margin: 0 0 22px 0;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: #172820;
}
.content-wrapper ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}


/* ------------------
  FOOTER
------------------- */
footer {
  background: #fff;
  border-top: 1px solid #E2ECE6;
  padding: 32px 0;
  margin-top: 30px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.footer-main > a img {
  width: 52px;
  height: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
footer nav a {
  color: #22513D;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  padding: 0 4px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #28754C;
  background: #E8F3EC;
}
.footer-contact {
  color: #628477;
  font-size: .95rem;
  margin-top: 6px;
}
.footer-contact p {
  margin-bottom: 6px;
}


/* -------------------
  BUTTONS & CTA
---------------------*/
.cta, button, .cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #22613D;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34,97,61,0.09);
  transition: background 0.21s, box-shadow 0.16s, transform 0.12s;
  outline: none;
  text-align: center;
  min-width: 120px;
}
.cta:hover, .cta:focus, button:hover, button:focus, .cookie-banner button:hover, .cookie-banner button:focus {
  background: #17462B;
  color: #fff;
  box-shadow: 0 4px 18px rgba(34,97,61,0.17);
  transform: translateY(-2px) scale(1.02);
}


/* ------------------
  COOKIE CONSENT BANNER
------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(120px);
  min-width: 340px;
  max-width: 98vw;
  z-index: 10000;
  background: #fff;
  color: #1D5030;
  border: 1px solid #E2ECE6;
  box-shadow: 0 2px 14px rgba(34,97,61,0.08);
  border-radius: 16px;
  padding: 28px 20px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.37s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cookie-banner-text {
  font-size: 1rem;
  color: #22613D;
  margin-bottom: 8px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  min-width: 110px;
  padding: 9px 24px;
  border-radius: 20px;
  font-size: 1rem;
}
.cookie-banner .cookie-settings-btn {
  background: #D1E7DB;
  color: #22613D;
  font-weight: 600;
  border: none;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #ABE0C3;
  color: #17462B;
}
.cookie-banner .reject-btn {
  background: #fff;
  color: #22613D;
  border: 1px solid #22613D;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #E8F3EC;
  color: #17462B;
}

/* -- Cookie Modal -- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 14000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,97,61,0.21);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  padding: 36px 30px 26px 30px;
  box-shadow: 0 6px 32px rgba(34,97,61,0.16);
  width: 92vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: popin 0.32s cubic-bezier(.46,.03,.52,.96);
}
@keyframes popin {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(90px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cookie-modal .modal-title {
  font-size: 1.3rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: #22613D;
  margin-bottom: 14px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #22613D;
  cursor: pointer;
  border-radius: 7px;
  padding: 6px;
  transition: background 0.18s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #E8F3EC;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cookie-category-label {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
  color: #22613D;
}
.cookie-category-desc {
  font-size: 0.97rem;
  color: #22613D;
}
.switch {
  position: relative;
  width: 46px;
  height: 24px;
  display: inline-block;
}
.switch input {display:none;}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D1E7DB;
  border-radius: 24px;
  transition: background 0.22s;
}
.switch input:checked + .switch-slider {
  background-color: #22613D;
}
.switch-slider:before {
  position: absolute;
  content: '';
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
}
.switch input:checked + .switch-slider:before {
  transform: translateX(22px);
}
.switch[disabled], .switch input:disabled + .switch-slider {
  opacity: 0.65;
  filter: grayscale(0.65);
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 18px;
}

.cookie-modal-actions button {
  min-width: 98px;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.98rem;
  font-weight: 600;
}


/* ------------------
  MEDIA QUERIES
------------------- */
@media (max-width: 1120px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 992px) {
  .footer-main {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .team-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .header-main nav {
    gap: 18px;
  }
}
@media (max-width: 799px) {
  h1, .h1 { font-size: 2.09rem; }
  h2, .h2 { font-size: 1.42rem; }
  .container { padding-left: 14px; padding-right: 14px; }
  .card, .team-grid > div { min-width: 140px; padding: 18px 8px; }
  .section, section { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 768px) {
  .header-main nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid,
  .card-container,
  .card-grid,
  .features,
  .team-grid,
  .quote-slider {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card,
  .card,
  .team-grid > div {
    max-width: 100%;
    margin-bottom: 16px;
  }
  .footer-main {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-wrapper {
    gap: 16px;
  }
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.12rem; }
}
@media (max-width: 480px) {
  .cookie-banner {
    padding: 18px 8px 12px 10px;
    min-width: max-content;
    font-size: .99rem;
  }
  .cookie-modal {
    padding: 22px 8px 10px 8px;
  }
  .container {
    padding-left: 4px; padding-right: 4px;
  }
}

/* ------------------
  MICRO-INTERACTIONS & TRANSITIONS
------------------- */
section, .section, .card, .team-grid > div, .testimonial-card, .cta, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.21s, background 0.21s, border-color 0.18s;
}

/* ---------------------------
  VISUAL MINIMALIST ENHANCEMENTS
----------------------------- */
.card, .team-grid > div, .testimonial-card {
  border: 1px solid #E2ECE6;
}
.card, .team-grid > div, .testimonial-card {
  border-radius: 14px;
  background: #fff;
}

/* Extra: Hide empty element margin */
.content-wrapper > :last-child {
  margin-bottom: 0;
}

/******
OVERRIDES FOR DEFAULT HTML ELEMENTS
******/
::selection {
  background: #D1E7DB;
}
:focus {
  outline: 2px solid #ABE0C3;
  outline-offset: 2px;
}

/******
ENSURE NO OVERLAPPING & MINIMUM SPACING
******/
.card:not(:last-child), .testimonial-card:not(:last-child), .team-grid > div:not(:last-child) {
  margin-bottom: 20px;
}

/* Utility: visually hidden for accessibility */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
