/* ===================================================
   RESET & BASE STYLES
=================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  color: #225E3B;
  background-color: #F9FAF6;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
footer li {
  color: white !important;
}
a {
  color: #225E3B;
  text-decoration: none;
  transition: color .2s cubic-bezier(.77,.2,.05,1);
}
a:focus,
a:hover {
  color: #68B684;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.2em;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #225E3B;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 12px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.confirmation-message {
  background: #ffffffAA;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(34,94,59,0.06);
  padding: 40px 30px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #225E3B;
}

/* ===================================================
   HEADER & NAVIGATION
=================================================== */
header {
  width: 100%;
  background: #F9FAF6;
  box-shadow: 0 4px 24px 0 rgba(34,94,59,0.06);
  z-index: 30;
  position: sticky;
  top: 0;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 16px 20px;
  gap: 22px;
}
.header-wrapper > a img {
  height:40px;
  width:auto;
  display:block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.main-nav > a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #225E3B;
  position: relative;
  padding: 4px 0 2px 0;
  transition: color .22s cubic-bezier(.77,.2,.05,1);
}
.main-nav > a:after {
  display:block;
  content: '';
  height: 2px;
  width: 0%;
  background: #68B684;
  transition: width .24s;
  position: absolute;
  left: 0;
  bottom: -2px;
  border-radius: 3px;
}
.main-nav > a:hover:after,
.main-nav > a:focus:after {
  width: 100%;
}
.main-nav > a.active,
.main-nav > a[aria-current="page"] {
  color: #68B684;
}
.cta-primary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: #68B684;
  color: #fff;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 11px 26px 11px 28px;
  border-radius: 28px;
  box-shadow: 0 2px 10px 0 rgba(34,94,59,0.07);
  border: none;
  letter-spacing: 0.05em;
  margin-left: 8px;
  margin-top: 2px;
  transition: background 0.24s cubic-bezier(.77,.2,.05,1), box-shadow 0.24s;
  cursor: pointer;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #225E3B;
  box-shadow: 0 6px 22px 0 rgba(34,94,59,0.14);
  color: #fff;
}
.cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #225E3B;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 10px 24px;
  border-radius: 25px;
  border: 2px solid #68B684;
  margin-top: 10px;
  box-shadow: 0 0px 8px 0 rgba(34,94,59,0.07);
  transition: background 0.19s, color 0.19s, box-shadow 0.21s;
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #68B684;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(34,94,59,0.10);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #225E3B;
  display: none;
  cursor: pointer;
  z-index: 51;
  padding: 6px 12px;
  margin-left: 6px;
  transition: background 0.17s,color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #68B684;
  background: #00000007;
}

/* ========================
   MOBILE MENU
======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,94,59,0.94);
  z-index: 1000;
  transform: translateX(100vw);
  transition: transform .44s cubic-bezier(.8,-0.08,.11,1.13);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 34px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  position: absolute;
  top: 18px; right: 30px;
  cursor: pointer;
  z-index: 1011;
  transition: color 0.2s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #68B684;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 74px;
  align-items: flex-start;
  padding-left: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: bold;
  padding: 10px 0;
  transition: color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #68B684;
  text-decoration: underline;
}

/* Hide main navigation, show hamburger on small screens */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}


/* ===================================================
   HERO & CONTENT STYLES
=================================================== */
section:first-of-type {
  background: linear-gradient(115deg, #F9FAF6 70%, #68B68417 100%);
  min-height: 320px;
  border-radius: 0 0 70px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.feature-list,
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.feature-list li, .service-list li {
  flex: 1 1 230px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 22px 26px 22px;
  box-shadow: 0 4px 20px 0 rgba(34,94,59,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border-left: 6px solid #68B684;
  position: relative;
  transition: box-shadow 0.23s;
}
.feature-list li img, .service-list li img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
  opacity: .95;
}
.feature-list li:hover,
.feature-list li:focus-within,
.service-list li:hover,
.service-list li:focus-within {
  box-shadow: 0 10px 28px 0 rgba(34,94,59,0.13);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.service-card {
  flex: 1 1 270px;
  background: #fff;
  border-radius: 18px;
  border-left: 6px solid #225E3B;
  box-shadow: 0 1.5px 18px 0 rgba(34,94,59,0.10);
  padding: 22px 20px 24px 28px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card span {
  font-weight: 600;
  color: #68B684;
  font-size: 1rem;
  margin-top: 6px;
}
.service-card:hover,
.service-card:focus-within {
  box-shadow: 0 6px 30px 0 rgba(34,94,59,0.14);
}
.solution-tiles,
.grant-preview-grid,
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.solution-tiles > .text-section,
.grant-preview-grid > .text-section,
.team-bios > .text-section {
  background: #fff;
  border-left: 5px solid #68B684;
  border-radius: 16px;
  padding: 24px 16px 22px 20px;
  margin-bottom: 0;
  flex: 1 1 290px;
  box-shadow: 0 2px 16px 0 rgba(34,94,59, 0.07);
  transition: box-shadow 0.16s;
  position: relative;
}
.solution-tiles > .text-section:hover,
.team-bios > .text-section:hover,
.grant-preview-grid > .text-section:hover {
  box-shadow: 0 10px 32px 0 rgba(34,94,59,0.16);
}
.timeline {
  background: #68B68411;
  border-radius: 18px;
  padding: 30px;
  font-style: italic;
  color: #225E3B;
  margin-bottom: 16px;
}

/* Text-image and grid container defaults */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(34,94,59,0.10);
}
.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;
  margin-bottom: 22px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 22px 0 rgba(34,94,59,0.08);
  position: relative;
  margin-bottom: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ===================================================
   TESTIMONIALS & SLIDERS
=================================================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 320px;
  max-width: 460px;
  background: #fff;
  color: #225E3B;
  border-left: 6px solid #68B684;
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
  position: relative;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(34,94,59,0.19);
}
.testimonial-card p {
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-card span {
  font-size: .98rem;
  color: #68B684;
  font-weight: 700;
}


/* ===================================================
   CONTACT & FOOTER STYLES
=================================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 0;
}
.contact-info ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.contact-info li,
.footer-contact li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #225E3B;
  gap: 10px;
}
.contact-info li img,
.footer-contact li img {
  height: 22px;
  width: 22px;
  min-width: 22px;
  opacity: .93;
}
footer {
  width: 100%;
  background: #225E3B;
  color: #fff;
  padding: 48px 0 24px 0;
  margin-top: 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 20px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex: 1 1 230px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 1.02rem;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 200px;
}
.footer-nav a {
  color: #68B684;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  transition: color .16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  flex: 1 1 250px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 30px;
}
.footer-social a img {
  height: 28px;
  width: 28px;
  filter: grayscale(0);
  transition: filter .18s, transform .18s;
}
.footer-social a:hover img {
  filter: brightness(1.16) saturate(1.5);
  transform: scale(1.12);
}

/* ===================================================
   COOKIE CONSENT BANNER & MODAL
=================================================== */
#cookie-banner,
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #225E3B;
  box-shadow: 0 -3px 16px 2px rgba(34,94,59,0.12);
  z-index: 9999;
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: bannerSlideIn .8s cubic-bezier(.18,1.47,.85,1.08) forwards;
}
@keyframes bannerSlideIn {
  0% { opacity:0; transform:translateY(80px); }
  100% { opacity:1; transform:translateY(0); }
}
.cookie-banner p {
  margin: 0;
  font-size: 1.04rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  cursor: pointer;
  background: #68B684;
  color: #fff;
  transition: background 0.19s, color 0.19s;
}
.cookie-btn.reject {
  background: #ffffff;
  color: #225E3B;
  border: 2px solid #68B684;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #68B684;
  color: #fff;
}
.cookie-btn.settings {
  background: #F9FAF6;
  color: #225E3B;
  border: 1.5px solid #68B684;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #68B684;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #225E3B;
  color: #fff;
}
.cookie-modal-bg {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  z-index: 10021;
  background: rgba(34,94,59,0.3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #fff;
  color: #225E3B;
  box-shadow: 0 4px 36px 0 rgba(34,94,59,0.16);
  border-radius: 22px 22px 0 0;
  max-width: 530px;
  width: 100%;
  padding: 36px 26px 22px 26px;
  margin-bottom: 0;
  animation: modalIn .42s cubic-bezier(.65,1,.37,1.34) forwards;
}
@keyframes modalIn {
  0% { opacity:0; transform:translateY(160px); }
  100% { opacity:1; transform:translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.6rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  color: #225E3B;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}
.cookie-category input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: #68B684;
}
.cookie-category .always-on {
  background: #225E3B;
  color: #fff;
  font-size: .88rem;
  border-radius: 10px;
  padding: 2px 8px;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 30px;
}
.cookie-modal .cookie-btn {
  font-size: 1.03rem;
  min-width: 130px;
}

/* Hide cookie banner on small screens initially for illustration; can adjust */
@media (max-width: 600px) {
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 8px 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-actions {
    gap: 10px;
  }
  .cookie-modal {
    padding: 28px 8px 16px 10px;
    max-width: 99vw;
    border-radius: 16px 16px 0 0;
  }
}

/* ===================================================
   ANIMATIONS & MICRO-INTERACTIONS
=================================================== */
.cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.22s cubic-bezier(.7,.25,.17,1), box-shadow 0.23s, color 0.16s;
}
.card, .feature-list li, .service-card, .testimonial-card, .team-bios > .text-section {
  transition: box-shadow 0.23s cubic-bezier(.7,.25,.17,1), transform 0.23s;
}
.card:hover, .service-card:hover, .feature-list li:hover, .testimonial-card:hover, .team-bios > .text-section:hover {
  box-shadow: 0 8px 42px 0 rgba(34,94,59,0.19);
  transform: translateY(-6px) scale(1.03);
}

/* Subtle hover ripple on buttons */
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.97);
}

/* ===================================================
   RESPONSIVE DESIGN
=================================================== */
@media (max-width: 1200px) {
  .container, .header-wrapper, .footer-wrapper {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  .feature-list, .service-cards, .solution-tiles, .grant-preview-grid, .team-bios, .testimonial-slider, .content-grid, .card-container { flex-direction: column; gap: 18px; }
  .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 30px; }
  .footer-nav, .footer-contact, .footer-brand, .footer-social { flex: 1 1 100%; align-items:flex-start; }
}
@media (max-width: 768px) {
  .content-wrapper { gap:18px; }
  section {
    padding:28px 7px;
    margin-bottom: 34px;
    border-radius: 0;
  }
  h1 {font-size:1.55rem;}
  h2 {font-size:1.23rem;}
  h3 {font-size:1.08rem;}
  .feature-list li, .service-list li, .service-card, .solution-tiles > .text-section, .grant-preview-grid > .text-section, .team-bios > .text-section {
    padding: 18px 10px 17px 13px;
    font-size: 0.97rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .main-nav { display: none; }
  .footer-wrapper {
    padding: 0 7px;
    gap: 24px;
  }
  .card-container, .content-grid { gap: 13px; }
}
@media (max-width: 480px) {
  h1{font-size:1.18rem;}
  h2{font-size:1.05rem;}
  p, li {font-size:0.97rem;}
  .feature-list li,.service-list li,.service-card,.confirmation-message,
  .solution-tiles > .text-section, .grant-preview-grid > .text-section, .team-bios > .text-section { padding:9px 6px 8px 8px; }
}

/* ===================================================
   ARTISTIC/DECORATIVE FLOURISHES
=================================================== */
section:before {
  content:'';
  display:block;
  position:absolute;
  top:-32px; left: -32px;
  width:88px; height:54px;
  background: #68B68418;
  z-index:0;
  border-radius: 130px 44px 90px 0;
  transform: rotate(-5deg);
}
section:after {
  content:'';
  display:block;
  position:absolute;
  bottom:-26px; right:-32px;
  width:60px; height:40px;
  background: #225E3B13;
  z-index:0;
  border-radius: 90px 130px 0 19px;
  transform: rotate(10deg);
}
section:first-of-type:before,section:first-of-type:after {background:none;}
@media (max-width: 768px) {
  section:before, section:after {display:none;}
}


/* ===================================================
   PRINT/ACCESSIBILITY
=================================================== */
@media print {
  *, *:before, *:after {background: #fff !important; color: #000 !important; box-shadow:none!important;}
  .header-wrapper, .footer-wrapper, .mobile-menu, .cookie-banner {display:none!important;}
  section, main {box-shadow:none!important;}
}

/* Extra Typographic Artistic Touches */
h1, h2 { text-shadow: 0 3px 12px #68B68419; }
.testimonial-card p { position: relative; }
.testimonial-card p:before, .testimonial-card p:after {
  font-family: serif;
  color: #68B684c9;
  font-size: 2.3rem;
  position: absolute;
  font-weight: 700;
}
.testimonial-card p:before {
  content: '“';
  left: -28px; top: -14px;
}
.testimonial-card p:after {
  content: '”';
  right: -22px; bottom: -6px;
}

/* ==========================
   UNIQUE ELEMENTS
========================== */
/* Artistic underline for h2 */
h2 {
  position: relative;
}
h2:after {
  content: '';
  position: absolute;
  left: 0; bottom: -9px;
  height: 5px;
  width: 54px;
  background: #68B684;
  border-radius: 4px;
  opacity: 0.20;
}
/* Artistic shadow on cards */
.card,.service-card,.testimonial-card,.feature-list li {
  box-shadow: 0 3.5px 22px 0 rgba(34,94,59,0.10);
}

/* End of CSS */
