/* RESET & NORMALIZE */
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, section, article, aside, footer, header, nav, main, figure, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: 100%;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  background: #F5FAF1;
  color: #22536C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
*, *:before, *:after { box-sizing: inherit; }
img, svg { max-width: 100%; display: block; height: auto; }
a { color: #6CAD26; text-decoration: none; transition: color 0.2s cubic-bezier(.55,1.35,.54,1); }
a:hover, a:focus { color: #22536C; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; outline: none; transition: background 0.2s, color 0.2s; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Rubik:700,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, .h1 {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 2.75rem;
  color: #22536C;
  letter-spacing: -1px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.17;
}
h2, .h2 {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 2rem;
  color: #22536C;
  font-weight: 700;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.35rem;
  color: #22536C;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, .h4, h5, .h5, h6, .h6 {
  font-family: 'Rubik', Arial, sans-serif;
}
p, li, label, span, input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #22536C;
  font-size: 1rem;
  line-height: 1.6;
}
p.subheadline {
  font-size: 1.25rem;
  color: #6CAD26;
  font-weight: 600;
  font-family: 'Rubik', Arial, sans-serif;
  margin-bottom: 14px;
}
strong { font-weight: 700; }

/* CONTAINER + SECTION SPACING */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 26px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 26px 0;
  }
}

/* HEADER & NAV */
header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 12px 0 rgba(54,120,200,0.07);
  position: sticky;
  top: 0;
  z-index: 31;
}
header .container { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 36px;
}
nav > a img { height: 44px; margin-right: 20px; }
nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-right: 12px;
}
nav ul li {
  margin-bottom: 0;
}
nav ul li a {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.06rem;
  color: #22536C;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #F5FAF1;
  color: #6CAD26;
}
.cta-primary {
  display: inline-block;
  font-family: 'Rubik', Arial, sans-serif;
  background: #6CAD26;
  color: #fff;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 8px 0 rgba(90,210,50,0.13);
  letter-spacing: 0.04em;
  margin-left: 26px;
  transition: background 0.2s, transform 0.15s cubic-bezier(.61,2.07,.54,.85);
  cursor: pointer;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #22536C;
  color: #fff;
  transform: translateY(-2px) scale(1.05) rotate(-2deg);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 2.2rem;
  line-height: 1;
  background: #6CAD26;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  z-index: 120;
  box-shadow: 0 2px 12px 0 rgba(108,173,38,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.18s, transform 0.2s;
}
.mobile-menu-toggle:active { transform: scale(0.95); }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.6,1.25,.53,.93);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 0 0 0;
  width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #22536C;
  color: #fff;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 50%;
  z-index: 220;
  box-shadow: 0 2px 10px rgba(30,70,120,0.09);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #22536C;
  padding: 12px 0;
  display: block;
  border-radius: 8px;
  width: 90%;
  margin-bottom: 2px;
  transition: background 0.1s, color 0.2s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5FAF1;
  color: #6CAD26;
}
@media (max-width: 1023px) {
  nav ul,.cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO SECTION */
.hero {
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
  position: relative;
  background: #F5FAF1;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}
.hero h1 {
  color: #22536C;
}

/* CTA SECTION (STRIPE) */
.cta-stripe {
  background: #6CAD26;
  color: #fff;
  border-radius: 22px;
  margin-bottom: 60px;
  padding: 38px 0 32px 0;
  box-shadow: 0 6px 24px 0 rgba(108, 173, 38,0.13);
  position: relative;
  animation: popUp 1s cubic-bezier(.18,.89,.41,1) .2s backwards;
}
.cta-stripe h2,
.cta-stripe p {
  color: #fff;
}
.cta-stripe .cta-primary {
  background: #fff;
  color: #6CAD26;
  border-radius: 30px;
  margin-left: 0;
  margin-top: 18px;
}
.cta-stripe .cta-primary:hover {
  background: #22536C;
  color: #fff;
}

/* FEATURES / GRID CARDS */
.features, .feature-grid, .service-grid, .post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid li, .service-grid li, .post-grid li {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(32,83,108,0.09);
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 370px;
  padding: 32px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.26s cubic-bezier(.52,1.02,.34,1.12), box-shadow 0.22s;
  cursor: pointer;
}
.feature-grid li:hover, .service-grid li:hover, .post-grid li:hover {
  transform: translateY(-6px) scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(55,170,80,0.14);
}
.feature-grid li img, .service-grid li img {
  height: 41px;
  width: 41px;
  margin-bottom: 13px;
}

/* TESTIMONIALS */
.testimonials {
  background: #fff;
  border-radius: 16px;
  padding: 32px 0;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  gap: 26px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #F5FAF1;
  box-shadow: 0 2px 10px 0 rgba(32,83,108,0.07);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  max-width: 730px;
  font-size: 1.05rem;
  color: #22536C;
  transition: box-shadow 0.2s, transform 0.18s cubic-bezier(.44,1.22,.28,1.09);
}
.testimonial-card p {
  font-style: italic;
  color: #22536C;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #6CAD26;
  font-weight: 600;
  font-size: 0.99rem;
  margin-left: 12px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(55,170,80,0.18);
  transform: scale(1.03) rotate(1deg);
}

/* BLOG TAGS */
.tags {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 0.98rem;
  background: #E8FAE2;
  color: #6CAD26;
  padding: 4px 12px;
  border-radius: 18px;
  font-weight: 500;
  margin-top: 10px;
}

/* NEWSLETTER */
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.signup-form input[type="email"] {
  border-radius: 20px;
  border: 1.5px solid #6CAD26;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-right: 10px;
  outline: none;
  min-width: 180px;
  background: #fff;
  transition: box-shadow 0.16s;
}
.signup-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px #E8FAE2;
}
.signup-form button {
  background: #6CAD26;
  color: #fff;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 12px 26px;
  border: none;
  transition: background 0.18s, transform 0.12s, color 0.13s;
}
.signup-form button:hover {
  background: #22536C;
  color: #fff;
  transform: scale(1.05);
}

/* SEARCH & FILTER */
.search-filter {
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
}
.search-filter input[type="text"] {
  border-radius: 16px;
  border: 1.5px solid #6CAD26;
  padding: 10px 16px;
  font-size: 1rem;
  outline: none;
  width: 100%;
}
.search-filter input[type="text"]:focus {
  box-shadow: 0 0 0 3px #E8FAE2;
}

/* LEGAL SECTIONS  */
.legal-section { background: #FBFFF7; border-radius: 15px; margin-bottom: 40px; padding: 40px 16px; }

/* ADDRESS BLOCK & FOOTER */
footer {
  width: 100%;
  background: #22536C;
  color: #fff;
  padding: 46px 0 20px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -6px 24px 0 rgba(34,83,108,0.09);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content a img {
  height: 38px;
  margin-bottom: 17px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
}
footer nav a {
  color: #fff;
  padding: 5px 5px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.12s;
}
footer nav a:hover {
  background: #6CAD26;
  color: #fff;
}
footer .address-block {
  margin-top: 11px;
  font-size: 0.96rem;
  line-height: 1.5;
}
footer .address-block img {
  vertical-align: middle;
  margin-right: 6px;
  height: 18px;
}

/* CARDS, FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(32,83,108,0.09);
  padding: 30px 22px;
  transition: box-shadow 0.16s, transform 0.2s cubic-bezier(.55,1.34,.59,1);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(55,170,80,0.13);
  transform: scale(1.03);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5FAF1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FORMS */
input, textarea {
  padding: 10px 14px;
  border: 1.5px solid #6CAD26;
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: box-shadow 0.14s;
}
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px #E8FAE2;
}
button[type="submit"]:active {
  transform: scale(0.98);
}

/* ANIMATION: PLAYFUL BOUNCE & FADE */
@keyframes popUp {
  from { opacity: 0; transform: scale(0.88) translateY(44px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wiggle {
  0% { transform: rotate(-2deg); }
  30% { transform: rotate(1deg); }
  60% { transform: rotate(-1.5deg); }
  80% { transform: rotate(2deg); }
  100% { transform: rotate(0); }
}
.cta-primary:hover, .card:hover, .feature-grid li:hover, .service-grid li:hover, .post-grid li:hover {
  animation: wiggle 0.48s 1;
}

/* PLAYFUL ELEMENTS */
.feature-grid li:after, .service-grid li:after, .post-grid li:after {
  content: '';
  display: block;
  position: absolute;
  top: -12px; right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E8FAE2;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
  transition: background 0.2s;
}
.feature-grid li:hover:after, .service-grid li:hover:after, .post-grid li:hover:after {
  background: #F5FAF1;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #22536C;
  box-shadow: 0 -4px 20px rgba(85,200,100,0.13);
  z-index: 9999;
  padding: 30px 14px 20px 14px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: popUp 0.6s cubic-bezier(.22,1.22,.44,1) 0s backwards;
}
.cookie-banner p {
  font-size: 1.02rem;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  border: none;
  border-radius: 22px;
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 28px;
  box-shadow: 0 2px 8px 0 rgba(108,173,38,0.08);
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.cookie-btn.accept {
  background: #6CAD26;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #22536C;
}
.cookie-btn.reject {
  background: #fff;
  color: #6CAD26;
  border: 2px solid #6CAD26;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F5FAF1;
}
.cookie-btn.settings {
  background: #F5FAF1;
  color: #22536C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #6CAD26;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 22px 8px 14px 8px;
    font-size: 0.99rem;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,83,108,0.18);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .18s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 40px 0 rgba(55,120,210,0.14);
  max-width: 430px;
  padding: 34px 23px 27px 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  animation: popUp 0.25s;
}
.cookie-modal h3 {
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 19px;
  color: #6CAD26;
}
.cookie-modal label {
  font-size: 1rem;
  color: #22536C;
  margin-bottom: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.cookie-modal input[type="checkbox"]:disabled + span {
  color: #aca4a4;
  font-style: italic;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: #22536C;
  color: #fff;
  font-size: 1.6rem;
  width: 38px; height: 38px;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: none;
  transition: background .17s;
}
.cookie-modal .cookie-modal-close:hover {
  background: #6CAD26;
}

/* CONFIRMATION, SUCCESS */
.confirmation {
  background: #E8FAE2;
  border-radius: 22px;
  text-align: center;
  padding: 70px 20px 80px 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 18px 0 rgba(108,173,38,0.09);
  animation: popUp .6s;
}
.confirmation h1 { color: #6CAD26; margin-bottom: 14px; }
.confirmation .cta-primary {
  margin-top: 27px;
}

/* RESPONSIVE FLEX & MOBILE-ADAPTIVE RULES */
@media (max-width: 1023px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}
@media (max-width: 980px) {
  .feature-grid, .service-grid, .post-grid, .card-container, .content-grid, .footer-content {
    gap: 18px;
  }
  .feature-grid li, .service-grid li, .post-grid li {
    padding: 26px 12px 26px 12px;
    min-width: 160px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .features, .feature-grid, .service-grid, .post-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .section, .cta-stripe {
    border-radius: 14px;
    margin-bottom: 24px;
    padding: 22px 4px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 16px 13px;
    margin-bottom: 13px;
  }
  .hero .container {
    min-height: 190px;
  }
  .content-wrapper { gap: 13px; }
  .about-intro ul, .about-history ul, .about-team ul, .about-values ul, .services-overview ul, .case-studies ul, .impact-metrics ul, .contact-info ul {
    padding-left: 18px;
  }
}
@media (max-width: 570px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .signup-form,
  .search-filter {
    flex-direction: column;
    gap: 5px;
  }
  .cookie-modal, .cookie-banner {
    padding: 19px 4px 14px 4px;
    font-size: 0.97rem;
    width: 98vw;
  }
  .hero, .cta-stripe { padding: 18px 0 14px 0; }
}

/* UTILITIES */
.hide { display: none !important; }
.visible { display: block !important; }

/* PLAYFUL: ENERGETIC SHADOW GLOW ON HOVER */
.cta-primary:hover, .cta-primary:focus, .signup-form button:hover, .cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 6px 28px 0 rgba(90,210,50,0.18);
}

/* PLAYFUL FOCUS STATES */
a:focus, button:focus, input:focus {
  outline: 2px solid #6CAD26;
  outline-offset: 2px;
  z-index: 4;
}

/* VISUAL FOCUS FOR ACCESSIBILITY */
:focus-visible {
  outline: 2px solid #6CAD26;
  outline-offset: 2px;
}
