/* CSS Reset & Normalize */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  background-color: #F9F8F4;
  color: #232415;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
a { text-decoration: none; color: #11306B; transition: color .2s; }
a:hover, a:focus { color: #1b6f51; }
ul, ol { margin-left: 24px; margin-bottom: 20px; }
li { margin-bottom: 10px; }
strong { font-weight: bold; }
blockquote { font-style: italic; color: #38663f; margin: 24px 0; padding-left: 23px; border-left: 5px solid #BFD5B6; }
address { font-style: normal; color: #40514e; margin-bottom: 20px; }

:root {
  --primary: #11306B;
  --secondary: #ED8400;
  --accent: #F3F7FA;
  --earth-green: #426B41;
  --leaf-green: #71A674;
  --earth-brown: #CAB896;
  --light-sand: #F9F8F4;
  --organic-bg-1: #F9F8F4;
  --organic-bg-2: #F3F7FA;
  --organic-card: #F7F5ED;
  --organic-card-dark: #eceae2;
  --organic-shadow: 0 2px 10px rgba(40,80,40,0.08);
  --border-radius-big: 32px;
  --border-radius-med: 20px;
  --border-radius-small: 9px;
  --focus: #ED8400;
  --text-dark: #232415;
  --text-light: #fff;
  --box-gap: 24px;
}

/* Container & Layout */
.container {
  width: 100%;
  padding: 0 20px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--organic-bg-1);
  border-radius: var(--border-radius-med);
}
@media (max-width:768px) {
  .section { padding: 28px 8px; margin-bottom: 30px; }
  .container { padding: 0 10px; }
}

.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section { gap: 20px; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card {
  background: var(--organic-card);
  border-radius: var(--border-radius-med);
  box-shadow: var(--organic-shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(66,107,65,0.15);
  transform: translateY(-4px) scale(1.02);
}

/* Flex Patterns */
.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;
}
@media (max-width:768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
h1 { font-size: 2.6rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 10px; }
h3 { font-size: 1.4rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; }
p, ul, ol, address { font-size: 1.05rem; }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
}

.btn-primary, .btn-secondary, .btn-link {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 13px 30px;
  font-size: 1.09rem;
  border-radius: var(--border-radius-small);
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s, transform .18s;
  min-width: 135px;
  display: inline-block;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 1px 5px rgba(66,107,65,.06);
  margin-right: 12px;
  margin-bottom: 10px;
}
.btn-primary {
  background: var(--earth-green);
  color: var(--text-light);
  box-shadow: 0 2px 7px rgba(66,107,65,0.12);
  border: 1px solid #629158;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1a8347;
  box-shadow: 0 3px 15px rgba(66,107,65,0.18);
  color: #fff;
  outline: 2px solid var(--focus);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--text-light);
  border: 1px solid #d16e00;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #bb7300;
  color: #fff;
  outline: 2px solid var(--earth-green);
}
.btn-link {
  background: none;
  color: var(--earth-green);
  padding: 0;
  margin-right: 0;
  font-weight: 600;
  text-decoration: underline;
}
.btn-link:hover, .btn-link:focus { color: var(--secondary); outline: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
@media (max-width:600px){ .cta-row { flex-direction: column; gap: 12px; } }

/* Feature Grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 0 24px 0;
}
.feature-grid li {
  display: flex; align-items: center; gap: 14px;
  background: var(--organic-card);
  border-radius: var(--border-radius-small);
  padding: 12px 20px;
  font-size: 1rem;
  min-width: 210px;
  box-shadow: 0 1px 7px rgba(66,107,65,0.06);
}
.feature-grid img { width: 28px; height: 28px; }
@media (max-width:700px){
  .feature-grid { flex-direction: column; gap: 12px; }
  .feature-grid li { min-width: unset; width: 100%; }
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  border-radius: var(--border-radius-big);
  box-shadow: 0 4px 24px rgba(66,107,65,0.09);
  color: #204025;
  margin-bottom: 20px;
  border-left: 7px solid var(--earth-green);
  flex: 1 1 250px;
  max-width: 680px;
  min-width: 0;
  font-size: 1.05rem;
  transition: box-shadow .18s, transform .18s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 30px rgba(113,166,116,0.17);
  transform: scale(1.015);
}
.testimonial-card p {
  margin-bottom: 0;
  color: #344c32;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #273a21;
  font-style: italic;
  opacity: .82;
}
@media (max-width:600px) {
  .testimonial-card {
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 16px 12px; border-radius: var(--border-radius-med);
  }
}

/* Blog, Tag Filters */
.blog-list { display: flex; flex-wrap: wrap; gap: 24px; }
.blog-list article {
  background: var(--organic-card-dark);
  border-radius: var(--border-radius-med);
  box-shadow: var(--organic-shadow);
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 330px;
  padding: 24px 20px 19px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
}
.blog-list article h2 {
  font-size: 1.19rem; margin-bottom: 7px; color: var(--earth-green);
}
.tag-filters {
  margin-top: 10px; color: #426B41; font-weight: 500; font-size: 0.97rem;
  letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: 6px;
}
.tag-filters span {
  display: inline-block; background: #e3e9df; border-radius: 18px;
  padding: 3px 14px; color: #283d2c; }


/* Client Logos & Mini Cases */
.client-logos { display: flex; align-items: center; gap: 34px; margin: 18px 0 12px 0; }
.client-logos span { background: #F3F7FA; padding: 14px 22px; border-radius: 20px; box-shadow: 0 2px 12px rgba(111,135,105,.09);}
.mini-case-studies { display: flex; flex-wrap: wrap; gap: 28px; margin: 10px 0 0 0; }
.mini-case-studies .text-section {
  background: #F7F5ED;  border-radius: var(--border-radius-small);
  box-shadow: 0 1px 5px rgba(180,178,137,.09);
  padding: 22px 18px;
  max-width: 420px; flex: 1 1 320px;
  color: #24403b;
}
@media (max-width:800px){
  .client-logos, .mini-case-studies { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Accordion FAQ */
.faq-accordion h3 { cursor: pointer; margin: 20px 0 7px 0; }
.faq-accordion p { margin-bottom: 14px; }

/* Footer */
footer {
  background: var(--earth-brown);
  color: #2e3520;
  padding: 44px 0 22px 0;
  letter-spacing: 0.01em;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
}
.footer-menu, .footer-contact { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-menu a {
  color: #3f602b;
  margin-right: 8px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color .20s;
}
.footer-menu a:hover, .footer-menu a:focus { color: var(--earth-green); }
.footer-tagline {
  margin-top: 14px; color: #38663f; font-size: 1.09rem;
  font-style: italic; font-weight: 500;
}
@media (max-width: 700px){
  .footer-menu, .footer-contact { flex-direction: column; gap: 10px;}
  footer { border-radius: 26px 26px 0 0; padding: 26px 0 14px 0; }
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 4px 24px rgba(66,107,65,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container { flex-direction: row; align-items: center; gap: 0; justify-content: space-between; padding: 18px 20px 12px 20px; }
header img { max-height: 45px; }
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  color: var(--primary);
  font-size: 1.01rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  transition: color .18s;
  font-weight: 500;
  margin-bottom: 0;
  position: relative;
  padding: 3px 2px;
}
nav a::after {
  content: ""; display: block; width: 0;
  height: 2px; background: var(--earth-green);
  transition: width .18s; position: absolute; bottom: -3px; left: 0;
}
nav a:hover::after, nav a:focus::after { width: 100%; }
nav .btn-primary { margin-left: 16px; }

@media (max-width: 1020px){ header .container { flex-direction: column; gap: 8px; } nav { flex-wrap: wrap; gap: 14px 0; } }

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: var(--earth-green);
  position: absolute;
  top: 22px; right: 22px;
  z-index: 110;
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  transition: background .16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus { background: #e0eddd; outline: 2px solid var(--secondary); }
.mobile-menu,
.mobile-menu.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: #eff4f1; box-shadow: 0 4px 32px rgba(66,107,65,0.18); z-index: 999; transform: translateX(100%); transition: transform .34s cubic-bezier(0.74,0.02,0.27,1.01); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--earth-green);
  font-size: 2.1rem;
  position: absolute;
  top: 24px; right: 28px;
  z-index: 1001;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #e5efde; outline: 2px solid var(--secondary); }
.mobile-nav {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 90px;
  align-items: flex-start;
  padding-left: 38px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.mobile-nav a {
  font-size: 1.28rem;
  padding: 10px 0;
  color: var(--earth-green);
  font-weight: 700;
  transition: color .16s, background .15s;
  border-radius: 9px;
  min-width: 210px;
  width: 90%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus { background: #D2EDC6; color: #11306B; outline: none; }
@media (max-width: 900px) {
  nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu.open { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 2000;
  background: #FFF;
  border-top: 4px solid var(--earth-green);
  box-shadow: 0 -2px 32px rgba(66,107,65,0.07);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 1.03rem;
}
.cookie-consent-banner p { color: #223a19; margin-bottom: 0; flex: 1 1 280px; }
.cookie-btn-group {
  display: flex; gap: 13px; flex-wrap: wrap;
}
.cookie-consent-banner .btn-primary, .cookie-consent-banner .btn-secondary {
  min-width: 120px;
  font-size: 1rem;
  padding: 10px 24px;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 10px 8px;
    flex-direction: column; align-items: flex-start; gap: 10px;
  }
  .cookie-btn-group { width: 100%; justify-content: flex-end; }
}
/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(34,68,22,0.13);
  z-index: 2100; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.cookie-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  padding: 32px 26px 20px 26px;
  border-radius: 22px;
  box-shadow: 0 6px 38px rgba(66,107,65,0.15);
  min-width: 320px;
  max-width: 94vw;
  color: #263319;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 { font-size: 1.29rem; margin-bottom: 3px; color: var(--earth-green); }
.cookie-modal .cookie-settings-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.cookie-modal .toggle-switch {
  width: 36px; height: 21px;
  border-radius: 12px;
  background: #e0efe2;
  cursor: pointer; position: relative;
  appearance: none; outline: none;
  margin-right: 6px;
  transition: background .18s;
  border: 1.3px solid #a8cf9c;
}
.cookie-modal .toggle-switch:checked {
  background: var(--leaf-green);
}
.cookie-modal .toggle-switch:before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 15px; height: 15px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 2px #b8b8b8;
  transition: transform .21s;
}
.cookie-modal .toggle-switch:checked:before {
  transform: translateX(14px);
}
.cookie-modal .btn-group {
  display: flex; gap: 13px; margin-top: 7px; justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  min-width: 100px; font-size: 1rem; padding: 9px 19px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--earth-green);
  font-size: 1.7rem;
  position: absolute; top: 14px; right: 19px;
  cursor: pointer;
  border-radius: 50%; width: 36px; height: 36px;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #e0eddd; outline: 2px solid var(--secondary); }

/* Animations */
@keyframes menu-slide-in { 0% { transform: translateX(100%);} 100% { transform: translateX(0);} }
@keyframes menu-slide-out { 0% { transform: translateX(0);} 100% { transform: translateX(100%);} }

/* Decorative Organic Shapes (Example, can be adjusted further as desired) */
.section::after, .section::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  border-radius: 70% 56% 80% 74% / 64% 68% 78% 72%;
}
.section::after {
  width: 170px; height: 140px;
  right: -60px; top: -50px;
  background: var(--earth-green);
}
.section::before {
  width: 120px; height: 90px;
  left: -45px; bottom: -30px;
  background: var(--secondary);
}
@media (max-width:500px) {
  .section::after, .section::before { display: none; }
}

/* Accessibility: Focus States */
:focus-visible { outline: 2.5px dashed var(--secondary) !important; outline-offset: 2px; }

/* Utility helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 24px !important; }

/* Spacing for section between cards */
.card + .card, .testimonial-card + .testimonial-card, .content-wrapper > * + * {
  margin-top: 20px !important;
}

/* Remove unwanted margin overlaps */
main > section:first-child { margin-top: 36px; }
@media (max-width:600px){ main > section:first-child { margin-top: 18px; } }

/* Responsive images in content */
.content-wrapper img, .feature-grid img, .footer-contact img, .client-logos img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 7px;
}

/* Hide unused elements on mobile if needed */
@media (max-width:600px){
  .footer-tagline { font-size: 0.97rem; }
}

/* End of CSS */