/* ----------------------------------------------------------
   CSS Reset and 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background-color: #F5F8FD;
  color: #234154;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0 0 1.5em 1.6em;
}
li + li {
  margin-top: 8px;
}
hof, ul, menu, ol { padding: 0; }
a {
  color: #234154;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #65BB74;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   Font Imports
---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1.12;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.325rem; margin-bottom: 10px; font-weight: 600; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 6px; }
p, li, ul, ol, blockquote { font-size: 1rem; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px 0 rgba(40,80,50,0.07);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}
.text-section {
  background: transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

/* ----------------------------------------------------------
   Cards and Feature Components
---------------------------------------------------------- */
.card-container, .card-grid, .service-cards, .feature-grid, .before-after-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .service-card, .tips-highlight, .webinars-teaser, .newsletter-signup, .feature-grid>div, .before-after-highlights {
  background: #fafbfd;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(80,120,80,0.08);
  padding: 28px 22px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #e2eddc;
}

.feature-grid>div {
  align-items: flex-start;
  flex: 1 1 240px;
  min-width: 210px;
  gap: 10px;
  border: none;
}

.service-cards {
  justify-content: flex-start;
}
.service-card {
  flex: 1 1 240px;
  min-width: 220px;
  border: 1px solid #cee4d6;
  background: #f6faf5;
  transition: box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(101,187,116,0.05);
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(35,65,84,0.12);
  transform: translateY(-3px) scale(1.012);
}

.card {
  flex: 1 1 210px;
  min-width: 200px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

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

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.tips-highlight, .webinars-teaser, .newsletter-signup {
  background: #f7fdf8;
  border-left: 5px solid #65BB74;
  border-radius: 12px;
  padding: 22px 22px;
  margin-bottom: 4px;
}

/* ----------------------------------------------------------
   Testimonial Cards
---------------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 20px 28px 20px 24px;
  background: #fff;
  border-radius: 14px;
  border-left: 5px solid #65BB74;
  box-shadow: 0 2px 16px 0 rgba(40,60,30,0.08);
  transition: border-color 0.2s;
}
.testimonial-card:hover {
  border-color: #234154;
  box-shadow: 0 7px 22px 0 rgba(34,65,84,0.17);
}
.testimonial-card blockquote {
  color: #234154;
  font-size: 1.08rem;
  line-height: 1.6;
  margin-bottom: 5px;
  font-style: italic;
  background: transparent;
  border-left: none;
  padding: 0;
}
.testimonial-card p strong {
  color: #3e5f47;
  font-weight: 600;
}

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */
.cta-primary, .cta-secondary, .cookie-banner .btn, .cookie-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 30px;
  padding: 11px 32px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 8px 0 rgba(101,187,116,0.11);
  margin-top: 10px;
  margin-bottom: 8px;
  transition: background 0.18s,color 0.18s,box-shadow 0.18s,transform 0.18s;
}
.cta-primary {
  background: #65BB74;
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #234154;
  color: #fff;
  box-shadow: 0 3px 18px 0 rgba(35,65,84,0.10);
  transform: scale(1.04);
}
.cta-secondary {
  background: #234154;
  color: #fff;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #65BB74;
  color: #fff;
  box-shadow: 0 3px 18px 0 rgba(101,187,116,0.11);
  transform: scale(1.04);
}

a.cta-primary, a.cta-secondary {
  text-decoration: none;
}

/* ----------------------------------------------------------
   Header & Navigation
---------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1.2px solid #e6eae3;
  box-shadow: 0 1px 6px 0 rgba(34,65,84,0.04);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  min-height: 68px;
}
.logo img {
  height: 49px;
  width: auto;
  border-radius: 5px;
  box-shadow: 0 2px 6px 0 rgba(101,187,116,0.04);
}

.desktop-nav {
  display: flex;
  gap: 20px;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #234154;
  border-radius: 18px;
  padding: 7px 17px;
  transition: background 0.18s, color 0.18s;
}
.desktop-nav a:hover, .desktop-nav a.active, .desktop-nav a:focus {
  background: #65BB74;
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #234154;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e8f6eb;
}

/* -------- Mobile Menu Overlay -------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,65,84,0.93);
  z-index: 2002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.73,.01,.29,.99);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  margin: 18px 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #65BB74;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.24rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 7px 0;
  margin: 3px 0;
  border-radius: 10px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a.active, .mobile-nav a:focus {
  background: #65BB74;
  color: #234154;
  padding-left: 14px;
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    z-index: 22;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-close {
    display: none !important;
  }
}

/* ----------------------------------------------------------
   Main & Responsive Sections
---------------------------------------------------------- */
main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 37px;
    padding: 26px 0 0 0;
  }
  .card-container, .card-grid, .service-cards, .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid>div {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .service-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .container {
    padding: 0 8px;
  }
}

/* -------- Responsive Text-image Section -------- */
.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* ----------------------------------------------------------
   Tables/Lists (for Service Comparison etc.)
---------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
th, td {
  border: 1px solid #e2eddc;
  padding: 10px 15px;
  font-size: 1rem;
  text-align: left;
}
th {
  background: #e8f4ec;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #234154;
}
tr:nth-child(even) td {
  background: #f7fdf8;
}
tr td {
  background: #fff;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
footer {
  width: 100%;
  background: #234154;
  color: #fff;
  padding: 42px 0 16px 0;
}
footer .container {
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.footer-nav a {
  color: #65BB74;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 12px;
  transition: color 0.16s, background 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #234154;
}
.footer-contact {
  flex-direction: column;
  gap: 8px;
  color: #e0ffe5;
}
.footer-logo img {
  height: 40px;
  width: auto;
}
.footer-credit {
  font-size: 0.99rem;
  color: #bde3c9;
  margin-top: 10px;
}

/* ----------------------------------------------------------
   Organic/Nature Visual Accents
---------------------------------------------------------- */
section, .service-card, .feature-grid > div, .testimonial-card, .card, .tips-highlight, .webinars-teaser, .newsletter-signup, .before-after-highlights {
  border-radius: 14px 50px 18px 14px/18px 32px 50px 14px;
  /* Subtle irregular shape for organic aesthetic */
}

hr {
  border: none;
  border-top: 1.4px solid #cee4d6;
  margin: 32px 0;
}

/* ----------------------------------------------------------
   Tagline/Tag visual highlight
---------------------------------------------------------- */
.tagline {
  display: inline-block;
  padding: 6px 16px;
  background: #e8f6eb;
  color: #3e6951;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  font-weight: 500;
  font-size: 1.07rem;
}

/* ----------------------------------------------------------
   Social Links
---------------------------------------------------------- */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}
.social-links a {
  background: #e8f6eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: background 0.15s, transform 0.12s;
}
.social-links a:hover, .social-links a:focus {
  background: #65BB74;
  transform: scale(1.1);
}
.social-links img {
  width: 22px; height: 22px;
}

/* ----------------------------------------------------------
   Cookie Consent Banner + Modal
---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left:0; right:0;
  z-index: 2099;
  width: 100vw;
  background: #f7fdf8;
  color: #234154;
  box-shadow: 0 -2px 24px 0 rgba(35,65,84,0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 18px 18px 24px;
  font-size: 0.99rem;
  border-top: 1.8px solid #cee4d6;
  transition: transform 0.34s cubic-bezier(.73,.01,.29,.99);
  transform: translateY(101%);
}
.cookie-banner.active {
  transform: translateY(0%);
}
.cookie-banner .btn {
  margin: 0 7px;
  min-width: 110px;
  font-size: 0.98rem;
  background: #65BB74;
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.18s;
}
.cookie-banner .btn.reject {
  background: #c2c3b9;
  color: #234154;
}
.cookie-banner .btn.settings {
  background: transparent;
  color: #234154;
  border: 1.4px solid #234154;
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  background: #234154;
  color: #fff;
}
.cookie-banner .btn.reject:hover, .cookie-banner .btn.reject:focus {
  background: #7e886c;
  color: #fff;
}
.cookie-banner .btn.settings:hover, .cookie-banner .btn.settings:focus {
  background: #e8f6eb;
  color: #234154;
}

/* -------- Cookie Modal -------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(35,65,84,0.7);
  z-index:2100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.20s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #234154;
  padding: 38px 26px 28px 26px;
  border-radius: 19px 54px 22px 21px/17px 39px 48px 14px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 10px 40px rgba(35,65,84,0.24);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 18px;
  background: transparent;
  border: none;
  color: #234154;
  font-size: 1.9rem;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  margin-bottom: 18px;
  padding-left: 6px;
  font-size: 1.02rem;
}
.cookie-modal label {
  margin-left: 9px;
}
.cookie-modal .btn {
  margin-top: 12px;
  min-width: 110px;
  background: #65BB74;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 22px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  transition: background 0.18s;
}
.cookie-modal .btn:hover, .cookie-modal .btn:focus {
  background: #234154;
  color: #fff;
}

/* Essential switch on modal */
.cookie-modal input[type="checkbox"], .cookie-modal input[type="radio"] {
  accent-color: #65BB74;
}

@media (max-width: 510px) {
  .cookie-modal {
    padding: 17px 7px 14px 7px;
    min-width: 0;
  }
}

/* ----------------------------------------------------------
   Miscellaneous
---------------------------------------------------------- */
blockquote {
  quotes: "\201C" "\201D" "\2018" "\2019";
}
blockquote:before {
  color: #65BB74;
  content: open-quote;
  font-size: 2.2em;
  vertical-align: -0.4em;
  margin-right: 8px;
  font-family: serif;
}
blockquote:after { content: close-quote; }

::-webkit-input-placeholder { color:#898787; opacity:1; }
::-moz-placeholder { color:#898787; opacity:1; }
:-ms-input-placeholder { color:#898787; opacity:1; }
::placeholder { color:#898787; opacity:1; }

input:focus, textarea:focus, select:focus, button:focus {
  outline: 2px solid #65BB74;
  outline-offset: 2px;
  background: #e8f6eb;
}

/* ----------------------------------------------------------
   Utility: Hide/Show
---------------------------------------------------------- */
.hide { display: none !important; }

/* ----------------------------------------------------------
  Accessibility and Contrast
---------------------------------------------------------- */
.testimonial-card,
blockquote {
  color: #234154;
  background: #fff;
}

/* Ensure all interactive elements have visible focus for accessibility */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus,
.cookie-banner .btn:focus, .cookie-modal .btn:focus {
  box-shadow: 0 0 0 3px #ace9c7;
  outline: none;
}

/* ----------------------------------------------------------
  Scrollbar Styling (for Brand personality)
---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #e8f6eb;
}
::-webkit-scrollbar-thumb {
  background: #b3e2c3;
  border-radius: 5px;
}

/* ----------------------------------------------------------
  Responsive Font Sizes
---------------------------------------------------------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  main .container, .container {
    padding: 0 5px;
  }
  h1, .tagline {
    font-size: 1.27rem !important;
  }
  h2 {
    font-size: 1.08rem;
  }
  .service-card, .card, .testimonial-card {
    padding: 13px 7px;
  }
}

/* ----------------------------------------------------------
  Organic/Nature micro-interactions
---------------------------------------------------------- */
.feature-grid>div:hover {
  background: #e8f6eb;
  box-shadow: 0 4px 18px 0 rgba(101,187,116,0.11);
}
.feature-grid>div img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px #b3e2c3);
}

/* ----------------------------------------------------------
  List styling for organic feel
---------------------------------------------------------- */
ul {
  list-style: disc inside;
}
ol {
  list-style: decimal inside;
}

/* Ensure adequate bottom spacing for all sections */
section:last-child, main section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 20px;
}

/* ----------------------------------------------------------
  Custom Responsive Tweaks
---------------------------------------------------------- */
@media (max-width: 420px) {
  .feature-grid>div img, .service-card img {
    width: 32px;
    height: 32px;
  }
  .footer-logo img {
    height: 25px;
  }
  .tagline {
    font-size: 0.92rem !important;
  }
}
