/* RESET & 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,
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #273A2F;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1786C1;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22703A;
  text-decoration: underline;
}

ul, ol {
  margin-left: 20px;
}
li {
  margin-bottom: 8px;
}

/* FONT FACES */
@import url('https://fonts.googleapis.com/css?family=Montserrat:800,700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-weight: 800;
  color: #22703A;
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
  font-size: 2.75rem;
  color: #1786C1;
}
h2 {
  font-size: 2rem;
  color: #22703A;
}
h3 {
  font-size: 1.35rem;
}
h4 {
  font-size: 1.12rem;
  font-weight: 600;
}
p, ul, ol, li, span {
  color: #273A2F;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}
sub { font-size: .84em; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero {
  background: #E3F7D6;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 45px;
  padding: 50px 0 40px 0;
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  color: #1786C1;
  font-size: 2.3rem;
  text-shadow: 0 3px 0 #ACE187;
  margin-bottom: 0;
}
.hero .subheadline {
  color: #22703A;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Button styles */
.btn-primary, .btn-secondary {
  font-family: 'Montserrat', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .04em;
  transition: background .18s, color .18s, box-shadow .3s, transform .18s;
  cursor: pointer;
  margin: 8px 0;
  position: relative;
  z-index: 1;
  outline: none;
  border: none;
  box-shadow: 0 2px 12px 0 #BCD5B8AA;
}
.btn-primary {
  background: #1786C1;
  color: #fff;
  border: 2px solid #1786C1;
}
.btn-primary:hover, .btn-primary:focus {
  background: #22703A;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 24px 0 #B9F6CB55;
}
.btn-secondary {
  background: #fff;
  color: #1786C1;
  border: 2px solid #1786C1;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #1786C1;
  color: #fff;
  box-shadow: 0 4px 20px 0 #ACE18755;
  transform: scale(1.04);
}

/* Header & Navigation */
header {
  background: #fff;
  border-bottom: 3px solid #ACE187;
  box-shadow: 0 2px 8px 0 #E3F7D6A0;
  position: sticky;
  top: 0;
  z-index: 80;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #1786C1;
  padding: 10px 0 6px 0;
  border-bottom: 3px solid transparent;
  border-radius: 2px;
  position: relative;
  transition: color .18s, border-bottom-color .28s, background .25s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #22703A;
  border-bottom: 3px solid #ACE187;
  background: #E3F7D6;
}

.header-flex img {
  max-height: 48px;
  margin-right: 14px;
}

.mobile-menu-toggle {
  display: none;
  background: #1786C1;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 110;
  box-shadow: 0 3px 12px 0 #B9F6CB22;
  transition: background .2s;
  cursor: pointer;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #22703A;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 340px;
  background: #fff;
  padding: 32px 22px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.33,1.02,.63,1);
  z-index: 200;
  box-shadow: -4px 0 24px 0 #1786C144;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #1786C1;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #22703A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.mobile-nav a {
  color: #22703A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  transition: background .24s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3F7D6;
  color: #1786C1;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .header-flex {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  header {
    padding-right: 0;
  }
}

/* Cookie Consent Styles */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #22703A;
  box-shadow: 0 -2px 14px 0 #B9F6CB44;
  border-top: 4px solid #1786C1;
  padding: 22px 20px 18px 20px;
  z-index: 365;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  animation: bannerIn 0.44s cubic-bezier(.21,1,.41,1.09);
}
@keyframes bannerIn {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.cookie-btn {
  min-width: 100px;
  padding: 10px 22px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 4px;
  transition: background .15s, color .15s;
}
.cookie-btn.accept {
  background: #22703A;
  color: #fff;
}
.cookie-btn.reject {
  background: #1786C1;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #1786C1;
  border: 2px solid #1786C1;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1786C1;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #22703A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ACE187;
  color: #22703A;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 370;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39, 58, 47, 0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .3s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 50px 0 #1786C144;
  padding: 32px 32px 24px 32px;
  max-width: 440px;
  width: 94vw;
  position: relative;
  animation: popInModal .35s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@keyframes popInModal {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 18px;
}
.cookie-modal ul {
  margin-left: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  color: #22703A;
  font-weight: 600;
}
.cookie-category-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #ACE187;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .22s;
}
.cookie-category-toggle:checked {
  background: #22703A;
}
.cookie-category-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-category-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #1786C1;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #22703A;
}

/* --- FLEX Patterns as Required --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 24px 0 0 0;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border: 2.5px solid #E3F7D6;
  border-radius: 22px;
  box-shadow: 0 4px 28px 0 #22703A1A;
  padding: 28px 22px 24px 22px;
  min-width: 225px;
  min-height: 225px;
  transition: transform .23s, box-shadow .33s;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}
.feature-item img {
  max-width: 48px; max-height: 48px;
  margin-bottom: 10px;
  margin-top: -10px;
  transition: transform .18s, filter .2s;
}
.feature-item:hover, .feature-item:focus {
  transform: translateY(-6px) scale(1.04) rotate(-2deg);
  box-shadow: 0 10px 54px 0 #1786C114;
  border-color: #ACE187;
}
.feature-item:hover img, .feature-item:focus img {
  filter: brightness(1.08) drop-shadow(0 2px 2px #ACE187);
  transform: scale(1.18);
}

.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 18px 0 #ACE18726;
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .card:focus {
  box-shadow: 0 7px 32px 0 #1786C126;
  transform: scale(1.025) rotate(-1.5deg);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 14px 0;
}

.benefit-grid, .feature-icons, .benefit-list, .contact-info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 18px 0 0 0;
  padding: 0;
}
.benefit-grid li, .feature-icons li, .benefit-list li, .contact-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #E3F7D6;
  padding: 12px 17px;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 #22703A14;
  font-size: 1rem;
  min-width: 180px;
  color: #22703A;
  font-weight: 600;
}
.feature-icons li img, .benefit-grid li img, .contact-info-list li img {
  width: 28px;
  height: 28px;
}

/* --- Testimonial Cards --- */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  background: #fff;
  border: 2.2px solid #ACE187;
  border-radius: 18px;
  box-shadow: 0 5px 24px 0 #1786C11A;
  font-size: 1.04rem;
  margin-bottom: 24px;
  max-width: 400px;
  min-width: 220px;
  position: relative;
  transition: box-shadow .16s, border-color .17s;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: #22703A;
}
.testimonial-card .testimonial-meta {
  font-size: 0.95rem;
  color: #1786C1;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: right;
  margin-left: auto;
  letter-spacing: .01em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 12px 50px 0 #ACE18744;
  border-color: #1786C1;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.client-logos img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #E3F7D6;
  padding: 5px;
}

/* --- Blog List --- */
.blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-list li {
  padding: 18px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 14px 0 #22703A0F;
  border: 1.5px solid #E3F7D6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .18s, border-color .16s, transform .15s;
}
.blog-list li:hover, .blog-list li:focus {
  box-shadow: 0 6px 22px 0 #ACE18744;
  border-color: #1786C1;
  transform: scale(1.015) rotate(-1deg);
}
.blog-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.blog-list a {
  color: #1786C1;
  font-weight: 800;
}
.blog-list a:hover, .blog-list a:focus {
  color: #22703A;
}
.blog-list span {
  font-size: .97rem;
  color: #22703A;
  font-weight: 600;
}

/***** Footer *****/
footer {
  background: #E3F7D6;
  padding: 48px 0 0 0;
  margin-top: 60px;
  color: #22703A;
  box-shadow: 0 -2px 24px 0 #1786C108;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
}
.footer-flex > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
  max-width: 310px;
}
footer h4 {
  color: #1786C1;
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-weight: 800;
}
footer nav a {
  display: block;
  padding: 5px 0;
  color: #22703A;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color .18s, background .14s;
  border-radius: 6px;
}
footer nav a:hover, footer nav a:focus {
  color: #1786C1;
  background: #fff;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-links a {
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px 0 #1786C116;
  transition: background .19s;
}
.social-links a:hover, .social-links a:focus {
  background: #ACE187;
}
.footer-bottom {
  margin-top: 22px;
  padding: 16px 0 10px 0;
  text-align: center;
  color: #22703A;
  font-size: .96rem;
  border-top: 1.5px solid #B9F6CB;
}

/***** Spacing Patterns *****/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** Utility *****/
.thank-you-text {
  font-size: 1.2rem;
  color: #22703A;
  background: #ACE18744;
  padding: 20px 18px;
  border-radius: 18px;
  margin: 18px auto 20px auto;
  box-shadow: 0 2px 14px 0 #1786C118;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}

.key-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 18px auto 0 auto;
}
.key-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #1786C1;
  background: #E3F7D6;
  border-radius: 14px;
  min-width: 100px;
  padding: 14px 18px;
  box-shadow: 0 2px 12px 0 #1786C13B;
  font-weight: 700;
  border: 1.5px solid #22703A21;
  margin-bottom: 10px;
}
.key-stats strong {
  font-size: 2.1rem;
  color: #22703A;
}

/* Animations and Playfulness */
/* Fun animation for hero headline */
.hero h1 {
  animation: floatHero 2.2s cubic-bezier(.45,1.45,.53,1) 0.25s both;
}
@keyframes floatHero {
  0% { transform: scale(.97) translateY(14px); opacity: 0.3; }
  60% { transform: scale(1.07) translateY(-4px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.btn-primary, .btn-secondary {
  animation: popBtn 0.9s cubic-bezier(.21,1.44,.41,1.09) both;
}
@keyframes popBtn {
  from { transform: scale(0.65); opacity: 0.08; }
  80% { transform: scale(1.08); opacity: 1; }
  to   { transform: scale(1); }
}

.feature-item img {
  animation: bounceInIcon 1s cubic-bezier(.21,1.37,.41,1.09) both;
}
@keyframes bounceInIcon {
  from { transform: scale(.5) rotate(-17deg); opacity: 0.05; }
  60% { transform: scale(1.18) rotate(7deg); opacity: 1; }
  to { transform: scale(1); rotate: 0; opacity: 1; }
}

/***************** RESPONSIVE ******************/
@media (max-width: 1200px) {
  .container { max-width: 980px; }
}
@media (max-width: 990px) {
  .container { max-width: 98vw; }
  .footer-flex { gap: 20px; }
}
@media (max-width: 900px) {
  .content-wrapper,
  .hero .content-wrapper {
    align-items: center;
    text-align: center;
  }
  .features-grid {
    gap: 18px;
  }
  .benefit-grid, .feature-icons, .benefit-list, .contact-info-list {
    gap: 12px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 18px 0;
    min-height: 180px;
  }
  .container {
    padding: 0 6px;
  }
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
  }
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .client-logos {
    gap: 10px;
    margin-top: 10px;
  }
  .key-stats {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-flex > div {
    min-width: 0; max-width: 100%;
  }
  .card {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.05rem; }
  .section { padding: 24px 2px; }
  .feature-item, .testimonial-card, .key-stats > div {
    padding: 12px 8px !important;
  }
  .footer-flex { gap: 18px; }
  .footer-bottom { font-size: .85rem; }
}

/* Playful touches */
.feature-item:before {
  content: " ";
  display: block;
  position: absolute;
  left: -24px;
  top: -14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E3F7D6;
  opacity: .39;
  z-index: 0;
  animation: floatDot 3s infinite alternate ease-in-out;
}
@keyframes floatDot {
  0% { transform: scale(.7) translateY(0); }
  100% { transform: scale(1.20) translateY(12px); }
}
.feature-item:hover:before, .feature-item:focus:before {
  background: #ACE187;
  opacity: .51;
}

/***** ARIA & FOCUS *****/
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus {
  outline: 2.5px dashed #1786C1;
  outline-offset: 2.5px;
  background: #B9F6CB38;
}

/***** Print Friendly ******/
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
