/* ========================================================
   CSS 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, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #f8fbf7;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #18435A;
  background: #f5f8f4;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: #18435A;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #6D9878;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  outline: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ========================================================
   Variables (with color fallback)
======================================================== */
:root {
  --color-primary: #18435A;
  --color-secondary: #6D9878;
  --color-accent: #E1ECE8;
  --color-bg: #f5f8f4;
  --color-text: #18435A;
  --color-success: #3b653e;
  --color-warning: #bda154;
  --color-neutral: #d1cfc6;
  --color-card: #FFFFFF;
}

/* ========================================================
   Typography
======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #18435A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
p, li, span, em, strong {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
p, ul, ol, li {
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: #18435A;
}
em {
  font-style: italic;
}

.text-section {
  max-width: 750px;
  color: #2D4733;
}

/* ========================================================
   Top-Level Layout
======================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}

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

/* ========================================================
   Header & Navigation
======================================================== */
header {
  background: #e7efe1;
  box-shadow: 0 2px 12px 0 rgba(60,127,80,0.05), 0 1.5px 0 #cadac1 inset;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 52px;
  margin-right: 24px;
}
.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  color: #18435A;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #dfeee1;
  color: #3b653e;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6D9878;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 10px 30px;
  border-radius: 38px 36px 41px 32px/33px 42px 36px 40px; /* Organic shape */
  box-shadow: 0 2px 12px 0 rgba(60,127,80,0.05);
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: #18435A;
  color: #e7efe1;
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: #6D9878;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
  transition: background 0.2s, transform 0.15s;
  z-index: 300;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #18435A;
  color: #e1ece8;
  outline: 2px solid #6D9878;
  outline-offset: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: #f5f8f4;
  box-shadow: 0 2px 32px 0 rgba(30,53,23,0.11);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 28px;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #18435A;
  background: #e1ece8;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-bottom: 18px;
  box-shadow: 0 0.5px 6px 0 rgba(98,130,110,0.06);
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #6D9878;
  color: #f5f8f4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: #18435A;
  padding: 18px 0 5px 4px;
  border-radius: 11px;
  transition: color 0.16s, background 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e1ece8;
  color: #3B653E;
}

/* Hide nav by default on mobile */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cta-btn { margin-left: 5px; }
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ========================================================
   Sections & Content Structure
======================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
  border-radius: 40px 78px 55px 38px/50px 45px 38px 58px;
}

/* Card & Content Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 28px 33px 23px 41px/38px 31px 45px 29px;
  box-shadow: 0 4px 20px 0 rgba(60, 127, 80, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 270px;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px 20px 20px;
  background: #E1ECE8;
  border-radius: 22px 27px 18px 33px/27px 22px 29px 20px;
  box-shadow: 0 1px 10px 0 rgba(41,105,51,0.07);
  margin-bottom: 20px;
  color: #18435A;
  font-size: 1.05rem;
  max-width: 480px;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 8px;
  color: #18435A;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #2d4733;
}
.testimonial-card div {
  color: #6D9878;
  font-size: 1.18rem;
  letter-spacing: 2px;
}

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

/****** Lists with Icons ******/
ul li {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #18435A;
  line-height: 1.65;
}
ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #e1ece8;
  padding: 3px;
  margin-right: 0;
}

/***** Utilities - Organic Accents *****/
.organic-accent {
  background: #E1ECE8;
  border-radius: 60px 80px 46px 33px/40px 53px 77px 67px;
}

/***** Content focus *****/
.text-section ul {
  margin-bottom: 18px;
}
.text-section a {
  color: #3B653E;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.13s;
}
.text-section a:hover {
  color: #18435A;
}

/***** Emphasized Prices *****/
em, .price {
  font-weight: 500;
  color: #18435A;
  background: #E1ECE8;
  border-radius: 7px;
  padding: 2px 9px;
  font-style: normal;
  font-size: 1.04em;
}

/***** Hero padding fix for mobile/desktop *****/
@media (min-width: 600px) {
  .section, section { padding: 64px 0; }
  .container { padding: 0 38px; }
}

/* ========================================================
   Footer
======================================================== */
footer {
  background: #18435A;
  padding: 48px 0 32px 0;
  color: #f4fbf5;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.footer-nav a {
  color: #E1ECE8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6D9878;
  text-decoration: underline;
}
.brand-footer img {
  height: 33px;
  width: auto;
  display: block;
  margin-left: 16px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .footer-nav { flex-wrap: wrap; gap: 12px 20px; }
}

/* ========================================================
   Responsive Design & Flex Direction
======================================================== */
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section, section { padding: 25px 0; }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 15px 14px 15px 10px;
    min-width: 0;
    max-width: 100%;
  }
  .card {
    padding: 22px 13px 15px;
    min-width: 0;
    max-width: 100%;
  }
  .main-nav,
  .cta-btn {
    font-size: 0.95rem;
    padding: 8px 14px;
  }
}

/* Make sure no elements overlap and all have breathing room */
.card, .testimonial-card, .feature-item, .content-wrapper > * {
  margin-bottom: 20px;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* ========================================================
   Animations & Microinteractions
======================================================== */
.cta-btn, .mobile-menu-toggle, .main-nav a, .mobile-nav a {
  transition: background 0.21s, color 0.17s, box-shadow 0.18s, transform 0.14s;
}
.card, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(41,98,51,0.14);
  transform: translateY(-2px) scale(1.01);
}
ul li img {
  transition: background 0.18s, box-shadow 0.14s;
}
ul li:hover img {
  background: #6D9878;
  box-shadow: 0 2px 7px 0 rgba(41,105,51,0.17);
}

/* ========================================================
   Cookie Consent Banner & Modal
======================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #ffffff;
  border-radius: 24px 24px 0 0/22px 22px 0 0;
  box-shadow: 0 -2px 18px 0 rgba(60, 127, 80, 0.11);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px 17px 22px;
  font-size: 1.05rem;
  color: #18435A;
  animation: cookieSlideUp 0.7s cubic-bezier(.6,0,.29,1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(180px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 60%;
  margin-right: 18px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 auto;
}
.cookie-btn {
  background: #6D9878;
  color: #fff;
  border: none;
  padding: 7px 22px;
  border-radius: 29px 22px 30px 25px/23px 24px 25px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 2px 8px 0 rgba(41, 105, 51, 0.06);
  transition: background 0.16s, color 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus { background: #18435A; color: #e1ece8; }
.cookie-btn.reject {
  background: #bda154;
  color: #fff;
}
.cookie-btn.reject:hover { background: #967941; }
.cookie-btn.settings {
  background: #E1ECE8;
  color: #18435A;
  border: 1.5px solid #6D9878;
}
.cookie-btn.settings:hover { background: #6D9878; color: #fff; }

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 8px 13px 10px;
    font-size: 0.98rem;
  }
  .cookie-actions { gap: 7px; flex-wrap: wrap; }
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 60, 20, 0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.18s;
}
.cookie-modal.open {
  opacity: 1; visibility: visible;
}
.cookie-modal-dialog {
  background: #f5f8f4;
  border-radius: 32px 39px 28px 30px/27px 37px 23px 38px;
  box-shadow: 0 3px 36px 0 rgba(60,127,80,0.16);
  max-width: 360px;
  width: 92vw;
  padding: 34px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: modalPopIn 0.45s cubic-bezier(.56,0,.29,1);
}
@keyframes modalPopIn {
  from { transform: scale(0.85) translateY(70px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-dialog h2, .cookie-modal-dialog h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600; color: #18435A;
}
/* Cookie toggles */
.cookie-switch {
  width: 38px; height: 22px;
  border-radius: 12px;
  background: #e1ece8;
  position: relative;
  margin-left: 9px;
  vertical-align: middle;
  transition: background 0.18s;
}
.cookie-switch input {
  opacity: 0;
  width: 38px; height: 22px;
  position: absolute; left: 0; top: 0;
  margin: 0;
  cursor: pointer;
}
.cookie-switch span {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #6D9878;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
/* Checked */
.cookie-switch input:checked + span {
  left: 19px; background: #18435A;
}
.cookie-category .always {
  background: #a3aea9;
  color: #f9fcf7;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 0.97em;
  margin-left: 12px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 10px;
}
.cookie-close {
  background: #bda154;
  color: #fff;
  border-radius: 13px;
  padding: 7px 16px;
  font-size: 1.1rem;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.14s, color 0.10s;
}
.cookie-close:hover, .cookie-close:focus {
  background: #967941;
}

/* ========================================================
   Organic/Nature-Inspired Design Effects
======================================================== */
/* Cards and sections get soft-earthy box-shadow & gentle radius */
.card, .testimonial-card, .section, section {
  border-radius: 40px 78px 55px 38px/50px 45px 38px 58px;
  box-shadow: 0 2px 14px 0 rgba(119,160,136,0.08);
}

/* Use earthy backgrounds in sections */
section:nth-child(odd) {
  background: #e7efe1;
}
section:nth-child(even) {
  background: #f5f8f4;
}

/* Subtle texture for depth */
body {
  background-image: url('data:image/svg+xml;utf8,<svg width="1440" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10 Q360 32 720 12 Q1080 -8 1440 10" fill="none" stroke="%23e1ece8" stroke-width="2"/></svg>');
  background-repeat: repeat-x;
  background-position: top left;
}

/****** Organic Card hover effect ******/
.card:hover {
  outline: 1.5px solid #6D9878;
}
.testimonial-card:hover {
  outline: 1.5px solid #6D9878;
}

/* Semi-organic separators */
.section:not(:last-of-type)::after {
  content: '';
  display: block;
  width: 180px;
  height: 9px;
  margin: 42px auto 0 auto;
  background: #e1ece8;
  border-radius: 12px 30px 22px 13px;
}

@media (max-width: 500px) {
  .section:not(:last-of-type)::after {
    width: 88px; height: 7px; margin-top: 25px;
  }
}

/* ========================================================
   Miscellaneous & Accessibility
======================================================== */
::selection {
  background: #E1ECE8;
  color: #18435A;
}
::-webkit-scrollbar {
  width: 12px;
  background: #e1ece8;
}
::-webkit-scrollbar-thumb {
  background: #6D9878;
  border-radius: 6px;
}

/* High-contrast for testimonials (CRITICAL) */
.testimonial-card {
  color: #18435A;
  background: #E1ECE8;
  border: 1px solid #bddaca;
}

/* Inputs - if any (contact forms) */
input, textarea, select {
  border-radius: 13px 21px 17px 12px/11px 24px 17px 13px;
  background: #fff;
  border: 1.5px solid #e1ece8;
  padding: 9px 14px;
  font-size: 1rem;
  color: #18435A;
  box-shadow: 0 2px 7px 0 rgba(41,105,51,0.04);
  margin-bottom: 12px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #6D9878;
  outline: none;
}

/* Buttons - generic fallback */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 23px 19px 21px 19px/19px 23px 17px 11px;
  padding: 10px 28px;
  font-size: 1rem;
  background: #6D9878;
  color: #fff;
  border: none;
  box-shadow: 0 1px 7px 0 rgba(41,105,51,0.06);
  transition: background 0.15s, color 0.11s;
}
button:hover, .btn:hover, .btn:focus {
  background: #18435A;
  color: #E1ECE8;
}

/* Hide visually but keep for screenreaders */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Custom spacing for main content */
main {
  margin-top: 35px;
  min-height: 45vh;
}
@media (max-width: 500px){
  main { margin-top: 22px; }
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  hyphens: auto;
}

/* Cards in a flex wrap with gap */
.content-wrapper, .content-grid, .card-container {
  flex-wrap: wrap;
  gap: 24px;
}
/******
 To ensure content sections/cards never overlap, always have at least 20px margin and 20px gap between cards/sections.
*****/
.card, .testimonial-card, .feature-item, .section {
  margin-bottom: 20px;
}
/**** Make sure card children don't overlap ****/
.card > * { margin-bottom: 10px; }
.card > *:last-child { margin-bottom: 0; }

/******* CONTACT PREVIEW fix ********/
.text-section ul li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}
.text-section ul {
  margin-bottom: 11px;
}
@media (max-width:600px) {
  .footer-nav { flex-wrap: wrap; gap: 6px 12px; justify-content: center; }
  .brand-footer img { margin: 0; display: block; margin-top: 8px; }
}

/************** THANK YOU PAGE BUTTON ************/
.thank-you .cta-btn {
  margin-top: 18px;
}
}