/* ========================================================
   CSS RESET & BASELINE
   ======================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: #264116;
  background: #FFFFFF;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #264116;
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { margin-bottom: 8px; font-weight: 600; }
p, ul, ol, li {
  font-size: 1rem;
  color: #264116;
  margin-bottom: 12px;
  margin-top: 0;
}
ul, ol { padding-left: 22px; }
ul ul, ol ol, ul ol, ol ul { margin-bottom: 0; }
a {
  color: #3B5B2A;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #A06A00;
}
strong { font-weight: 600; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
figure { margin: 0; }
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
}
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
header {
  background: #F5F5F1;
  box-shadow: 0 2px 8px rgba(60,66,40,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 78px;
  gap: 0;
}
header a img {
  height: 45px;
  width: auto;
  margin: 12px 0;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 0;
  color: #264116;
  border-radius: 4px;
  transition: background .12s, color .16s;
  font-weight: 500;
  letter-spacing: 0.02em;
  outline: none;
}
nav a:not(.cta-button):hover, nav a:not(.cta-button):focus {
  background: #EAEAE6;
  color: #3B5B2A;
}
.cta-button {
  background: #3B5B2A;
  color: #FFFFFF !important;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 24px;
  margin-left: 16px;
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(60,66,40,0.06);
  transition: background .18s, color .2s, box-shadow .2s;
  cursor: pointer;
  outline: none;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-button:hover, .cta-button:focus {
  background: #A06A00;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(60,66,40,0.07);
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #3B5B2A;
  cursor: pointer;
  margin-left: 12px;
  outline: none;
  z-index: 1099;
  transition: color .2s;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { color: #A06A00; background: #EAEAE6; }

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(60,66,40,0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform .39s cubic-bezier(0.65,0,0.35,1);
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.2rem;
  position: absolute;
  right: 24px;
  top: 24px;
  cursor: pointer;
  z-index: 1250;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s, color .2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { background: #3B5B2A; color: #A06A00; }
.mobile-menu nav.mobile-nav {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.mobile-nav a {
  color: #FFFFFF;
  font-size: 1.25rem;
  padding: 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .03em;
  width: 220px;
  border-radius: 4px;
  transition: background .14s, color .18s;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #3B5B2A;
  color: #A06A00;
}

@media (max-width: 1024px) {
  nav { gap: 12px; }
  .cta-button { margin-left: 10px; }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 0;
    padding: 0 12px;
  }
  nav { gap: 7px; }
  .cta-button { margin-left: 6px; padding: 8px 15px; font-size: .98em;}
}
@media (max-width: 768px) {
  header .container { padding: 0 8px; min-height: 72px; }
  nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  header img { height: 37px; }
}

/* ========================================================
   MAIN LAYOUT & FLEXBOX PATTERNS
   ======================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(60,66,40,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px rgba(60,66,40,0.09);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F5F1;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(60,66,40,0.04);
  color: #264116;
  margin-bottom: 20px;
  font-size: 1.1em;
  min-width: 260px;
  justify-content: flex-start;
  flex-direction: column;
  max-width: 700px;
  transition: box-shadow .16s;
}
.testimonial-card:hover {
  box-shadow: 0 2px 22px rgba(60,66,40,0.08);
}
.testimonial-card span {
  color: #3B5B2A;
  font-weight: 600;
  margin-top: 8px;
  font-size: 1em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.case-study {
  background: #F5F5F1;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(60,66,40,0.05);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-study h3 { margin-bottom: 10px; }

/* ================== FORMATTING OTHER HTML ELEMENTS ================== */
main section ul,
main section ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 24px;
}
main section ul li, main section ol li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #264116;
}
main section ul li img, main section ol li img {
  height: 1.35em;
  width: auto;
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 2px;
}

/* Button styling in lists */
ul li .cta-button, ol li .cta-button {
  margin-left: 0;
  margin-top: 8px;
}

/* ================== PAGE-SPECIFIC LAYOUTS ================== */
@media (max-width: 1024px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .text-image-section, .content-grid, .card-container {
    gap: 16px;
  }
  .card { padding: 18px 12px; }
  .case-study { padding: 16px 10px; }
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .container { padding: 0 6px; }
  .testimonial-card, .case-study, .card {
    padding: 16px 10px;
    min-width: 0;
  }
  .text-image-section, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    gap: 10px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.2rem; }
  .section { padding: 18px 3px; }
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
  background: #F5F5F1;
  padding: 0;
  border-top: 1px solid #E4E4E0;
}
footer .container {
  flex-direction: row;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 20px 18px 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #264116;
}
.footer-brand img {
  height: 35px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #264116;
  font-size: .97em;
  font-family: 'Roboto', Arial, sans-serif;
  transition: color .15s;
}
.footer-nav a:focus, .footer-nav a:hover { color: #A06A00; }
.footer-contact {
  font-size: .97em;
  color: #264116;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 3px;
}
.footer-contact img {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 6px 10px 6px;}
  .footer-nav { flex-direction: row; gap: 12px; flex-wrap: wrap; }
}

/* ========================================================
   COOKIES CONSENT BANNER & MODAL
   ======================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F5F5F1;
  color: #264116;
  font-size: 1rem;
  box-shadow: 0 -2px 16px rgba(60,66,40,0.09);
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  z-index: 2000;
  justify-content: space-between;
  transition: transform .35s cubic-bezier(0.45,0,0.55,1), opacity .23s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 680px;
  line-height: 1.55;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 13px;
  flex-shrink: 0;
}
.cookie-btn {
  background: #3B5B2A;
  color: #FFFFFF;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  padding: 7px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: background .16s, color .17s, box-shadow .18s;
  outline: none;
  box-shadow: 0 2px 8px rgba(60,66,40,0.05);
}
.cookie-btn:focus, .cookie-btn:hover { background: #A06A00; color: #FFFFFF; }
.cookie-btn.settings {
  background: #FFFFFF;
  color: #3B5B2A;
  border: 1px solid #3B5B2A;
  box-shadow: none;
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover { background: #F5F5F1; color: #A06A00; border-color: #A06A00; }
@media (max-width: 700px) {
  .cookie-banner {
    padding: 14px 4px;
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-btns {
    flex-wrap: wrap;
    gap: 9px;
  }
}

.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(60,66,40,0.33);
  z-index: 2220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .24s;
}
.cookie-modal-overlay.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal {
  background: #FFFFFF;
  border-radius: 14px;
  max-width: 420px;
  width: 93vw;
  box-shadow: 0 8px 40px rgba(60,66,40,0.16);
  padding: 34px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: transform .33s cubic-bezier(0.65,0,0.35,1);
  transform: translateY(0);
  position: relative;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: #3B5B2A;
  font-size: 2rem;
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background .13s, color .17s;
  outline: none;
}
.cookie-modal .modal-close:focus, .cookie-modal .modal-close:hover {
  background: #F5F5F1; color: #A06A00;
}
.cookie-pref-category {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-pref-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.cookie-switch {
  position: relative;
  width: 34px;
  height: 18px;
  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-color: #E7E7E7;
  border-radius: 18px;
  transition: background-color .18s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #3B5B2A;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 4px rgba(60,66,40,.11);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-pref-label {
  font-weight: 500;
  font-size: 1em;
  color: #264116;
}
.cookie-pref-desc {
  color: #737373;
  font-size: .98em;
  margin-top: 1px;
}
.cookie-pref-category .cookie-pref-toggle[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 500px) {
  .cookie-modal { padding: 18px 6px 14px 10px; }
  .cookie-modal h2 { font-size: 1rem; }
}

/* ========================================================
   MISCELLANEOUS / UTILITIES
   ======================================================== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-20 { margin-bottom: 20px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

hr {
  border: none;
  border-top: 1px solid #E4E4E0;
  margin: 32px 0;
}

::-webkit-input-placeholder { color: #868686; opacity:.95; }
::-moz-placeholder { color: #868686; opacity:.95; }
:-ms-input-placeholder { color: #868686; opacity:.95; }
::placeholder { color: #868686; opacity:.95; }

/* ========================================================
   ANIMATIONS
   ======================================================== */
.card, .testimonial-card, .case-study, .cookie-modal, .cookie-banner {
  transition: box-shadow .2s, transform .24s;
}
.cta-button, .cookie-btn {
  transition: background .16s, color .18s, box-shadow .19s, transform .18s;
}
.mobile-menu,
.cookie-modal-overlay, .cookie-banner {
  will-change: transform, opacity;
}

/* ========================================================
   FOCUS STYLES
   ======================================================== */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus {
  outline: 2px dashed #A06A00 !important;
  outline-offset: 2px;
  z-index: 12;
}

/* ========================================================
   PRINT MINIMALISM
   ======================================================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none!important; }
  body { background: #FFFFFF; color: #000; }
  section { background: none; box-shadow: none; }
}
