/* ================================================== */
/* CSS RESET & BASE NORMALIZATION                     */
/* ================================================== */

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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #FAFAFA;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: #27653A;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover,
a:focus {
  color: #7AB938;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin: 0 0 16px 24px;
}
li + li {
  margin-top: 10px;
}
strong, b {
  font-weight: bold;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16281f;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem;    margin-bottom: 20px; }
h3 { font-size: 1.4rem;  margin-bottom: 16px; }
h4 { font-size: 1.1rem;  margin-bottom: 10px; }
p {
  margin-bottom: 16px;
  color: #222;
  font-size: 1rem;
}

/* Utility Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section {
  background: #fff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40,80,52,0.06);
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

/* ================================================== */
/* HEADER & MAIN NAVIGATION                           */
/* ================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
  padding: 0;

}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16281f;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 3px 4px;
}
.main-nav a::after {
  content: '';
  display: block;
  margin: auto;
  height: 2px;
  width: 0%;
  background: #7AB938;
  transition: width 0.2s;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

/* CTA Button */
.cta-primary {
  background: #27653A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 28px;
  padding: 10px 32px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(39,101,58,0.10);
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow 0.19s, transform 0.13s;
  display: inline-block;
  outline: none;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #7AB938;
  color: #1e3523;
  box-shadow: 0 6px 22px rgba(87,191,56,0.10);
  transform: translateY(-2px) scale(1.03);
}

/* Hide hamburger menu on desktop */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #16281f;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 102;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #7AB938;
}
@media (max-width: 1024px) {
  .main-nav,
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: space-between;
  }
}

/* ================================================== */
/* MOBILE SLIDE-IN MENU                               */
/* ================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90vw;
  max-width: 390px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  box-shadow: -2px 0 18px rgba(39,101,58,0.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #27653A;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #7AB938;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.mobile-nav a {
  color: #16281f;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 2px;
  border-radius: 4px;
  transition: background 0.12s, color 0.10s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F1F7F3;
  color: #7AB938;
}
/* Overlay for mobile menu */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(22, 40, 31, 0.33);
  z-index: 998;
}
@media (min-width:1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================================================== */
/* HERO SECTION / INTRO BANNERS                       */
/* ================================================== */
.hero {
  background: #F1F7F3;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 4px 35px rgba(39,101,58,0.07);
  padding: 48px 0 60px 0;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
}
.hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #27653A;
}
.hero p {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 24px;
}
.hero .cta-primary {
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero { padding: 32px 0 32px 0; margin-bottom: 36px; }
  .hero h1{ font-size: 1.45rem; }
  .hero p{ font-size: 1rem; }
}

/* ================================================== */
/* FEATURES, CARDS, CONTENT BLOCKS                    */
/* ================================================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.features-grid > div {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(39,101,58,0.07);
  padding: 28px 20px;
  min-width: 210px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.15s, transform 0.14s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 28px rgba(122,185,56,0.12);
  transform: translateY(-5px) scale(1.03);
}
.features-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 2px;
}
.features-grid h3 {
  font-size: 1.18rem;
  color: #27653A;
  margin-bottom: 5px;
}
.features-grid p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 0;
}
@media (max-width: 920px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    width: 100%;
    min-width: unset;
    padding: 18px 10px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 20px rgba(39,101,58, 0.066);
  margin-bottom: 20px;
  padding: 26px 24px;
  position: relative;
  min-width: 220px;
  flex: 1 1 320px;
  transition: box-shadow 0.13s, transform 0.13s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(122,185,56,0.10);
  transform: translateY(-3px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================================================== */
/* TESTIMONIALS                                       */
/* ================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fdf7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(39,101,58,0.045);
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: box-shadow 0.14s, background 0.14s;
}
.testimonial-card:hover {
  background: #f1f7f3;
  box-shadow: 0 10px 26px rgba(122,185,56,0.11);
}
.testimonial-card p {
  color: #16281f;
  font-style: italic;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #27653A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-left: auto;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 14px;
  }
  .testimonial-card span {
    margin-left: 0;
  }
}

/* Impact Statements (Projects page) */
.impact-statements ul {
  list-style: disc inside;
  padding-left: 18px;
  margin: 18px 0 0 0;
}
.impact-statements li {
  font-size: 1.05rem;
  color: #27653A;
  margin-bottom: 10px;
}

/* Timeline (About) */
.milestones-timeline ul {
  margin-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.milestones-timeline li {
  font-size: 1rem;
  color: #222;
  padding-left: 0.5em;
}

/* Misc Utility Classes */
.text-section {
  margin-bottom: 24px;
}

.opening-hours {
  margin-top: 22px;
}
.opening-hours h3 {
  font-size: 1.1rem;
  color: #27653A;
  margin-bottom: 8px;
}
.opening-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.opening-hours li {
  color: #222;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ================================================== */
/* FOOTER                                             */
/* ================================================== */
footer {
  background: #fff;
  padding: 28px 0 22px 0;
  border-top: 1px solid #e8e8e8;
  margin-top: 48px;
  box-shadow: 0 0 40px rgba(39,101,58,0.015);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
  flex-wrap: wrap;
}
footer img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.footer-nav a {
  color: #27653A;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 0;
  transition: color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #7AB938;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98rem;
  color: #444;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* ================================================== */
/* COOKIE CONSENT BANNER                              */
/* ================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #F1F7F3;
  border: 1px solid #e4efe1;
  box-shadow: 0 6px 32px rgba(39,101,58,0.09);
  border-radius: 16px;
  padding: 22px 28px 18px 28px;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-width: 280px;
  max-width: 96vw;
  animation: showCookieBanner 0.6s cubic-bezier(0.6,0.8,.22,1);
}
@keyframes showCookieBanner {
  0% {opacity:0; transform: translateX(-50%) translateY(50px);}
  100%{opacity:1; transform: translateX(-50%) translateY(0);}
}
.cookie-banner p {
  margin-bottom: 8px;
  color: #16281f;
  font-size: 1rem;
  line-height: 1.45;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  border: none;
  border-radius: 22px;
  padding: 8px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, color 0.11s;
  box-shadow: 0 2px 8px rgba(39,101,58,0.07);
  outline: none;
}
.cookie-banner .accept {
  background: #27653A;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #7AB938;
  color: #15471f;
}
.cookie-banner .reject {
  background: #fff;
  color: #27653A;
  border: 1px solid #d8eadd;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #dbeee5;
}
.cookie-banner .settings {
  background: #7AB938;
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #27653A;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px 10px 8px;
    min-width: unset;
    max-width: 99vw;
  }
  .cookie-banner .cookie-btns {
    gap: 6px;
    flex-wrap: wrap;
  }
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(22, 40, 31, 0.30);
  z-index: 1200;
  animation: fadein 0.24s;
}
@keyframes fadein {from{opacity:0}to{opacity:1}}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 10px 56px rgba(39,101,58,0.14);
  padding: 38px 28px 32px 28px;
  z-index: 1202;
  min-width: 290px;
  width: 95vw;
  max-width: 440px;
  animation: modalIn 0.26s cubic-bezier(.62,0,.22,1);
}
@keyframes modalIn {
  0%{opacity:0;transform: translate(-50%,-40%) scale(0.95);}
  100%{opacity:1;transform: translate(-50%,-50%) scale(1);}
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #27653A;
  margin-bottom: 18px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 20px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: #222;
}
.cookie-category input[type='checkbox'] {
  width: 24px; height:24px;
  accent-color: #27653A;
}
.cookie-category input:disabled {
  accent-color: #B1B1B1;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 22px;
  border: none;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.11s;
  outline: none;
}
.cookie-modal .save {
  background: #27653A;
  color: #fff;
}
.cookie-modal .save:hover,.cookie-modal .save:focus{
  background:#7AB938;
  color: #fff;
}
.cookie-modal .cancel {
  background: #fff;
  border: 1px solid #d8eadd;
  color: #27653A;
}
.cookie-modal .cancel:hover,.cookie-modal .cancel:focus{
  background:#dbeee5;
  color: #15471f;
}
@media (max-width: 480px) {
  .cookie-modal {padding: 12px 6px 14px 6px;}
}

/* ================================================== */
/* RESPONSIVE QUERIES, FLEXBOX ADAPTIONS              */
/* ================================================== */
@media (max-width: 640px) {
  h1 {font-size: 1.35rem;}
  h2 {font-size: 1.1rem;}
}

/* Button focus ring for accessibility */
button:focus, .cta-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #7AB938;
  outline-offset: 2px;
}

/* ============================ */
/* CUSTOM SCROLLBAR (subtle)    */
/* ============================ */
::-webkit-scrollbar {
  width: 10px;
  background: #FAFAFA;
}
::-webkit-scrollbar-thumb {
  background: #E4EFE1;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D3E5D0;
}

/* =========================== */
/* FONTFACE FALLBACKS          */
/* =========================== */
@font-face {
  font-family: 'Montserrat';
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular'),
    url('https://fonts.gstatic.com/s/montserrat/v24/JTUQjIg1_i6t8kCHKm459WxRxC7m0dR9kA.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans-Regular'),
    url('https://fonts.gstatic.com/s/opensans/v27/mem8YaGs126MiZpBA-U1UpcaXcl0Aw.ttf') format('truetype');
  font-display: swap;
}

/* ============================ */
/* MISC ELEMENTS & OVERRIDES   */
/* ============================ */
::selection {
  background: #c2f9ab;
  color: #27653A;
}
hr {
  border: none;
  border-top: 1px solid #ddebd9;
  margin: 30px 0 30px 0;
}
table {
  border-collapse: collapse;
  margin-bottom: 18px;
}
th, td {
  padding: 8px 13px;
  border: 1px solid #e7eada;
}

/* Fieldset/labels for forms */
fieldset {
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 20px 10px;
  margin-bottom: 20px;
}
label {
  color: #27653A;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}
input, textarea {
  border: 1px solid #d4e2d2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
  color: #222;
  background: #FAFAFA;
}
input:focus, textarea:focus {
  border-color: #7AB938;
  outline: none;
  background: #f1f7f3;
}

/* ===================== */
/* SPACING UTILITIES     */
/* ===================== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ====================== */
/* PRINT OPTIMIZATIONS    */
/* ====================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay, .cookie-modal {display:none !important;}
  .section, .container { box-shadow: none !important; background: #fff !important; }
}
