/* -----------------------------
   CSS RESET & BASE
----------------------------- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F5F0;
  color: #222;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
a {
  color: #1A4D2E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7CC576;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Box-sizing for all */
*, *:before, *:after {
  box-sizing: inherit;
}

/* -----------------------------
   BRAND FONTS
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #1A4D2E;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.15;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 9px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.subtitle {
  font-family: 'Lato', Arial, sans-serif;
  color: #7CC576;
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
p {
  margin-bottom: 14px;
  color: #222;
}

strong {
  color: #265e39;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}

/* -----------------------------
   CONTAINER
----------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}
.text-section {
  padding-top: 16px;
  padding-bottom: 10px;
}

/* -----------------------------
   SECTIONS & FLEX LAYOUTS
----------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 24px 0 rgba(30, 169, 90, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 270px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 38px 0 rgba(30, 169, 90, 0.16);
}
.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: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(30, 169, 90, 0.09);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 245px;
  transition: box-shadow .23s;
  border-left: 7px solid #7CC576;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #1A4D2E;
  line-height: 1.5;
  margin-bottom: 3px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #265e39;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* -----------------------------
   HEADER & NAVIGATION
----------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(122, 197, 118, 0.08);
  position: relative;
  z-index: 100;
  margin-bottom: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}
.logo img {
  height: 58px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: #1A4D2E;
  font-family: 'Lato', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background .16s, color .18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e1f4e5;
  color: #7CC576;
}
.btn-primary {
  background: #7CC576;
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 16px;
  box-shadow: 0 0 0 rgba(122, 197, 118, 0);
  transition: background .17s, box-shadow .17s, color .17s, transform .14s;
  font-size: 1.12rem;
  outline: none;
  border: none;
  display: inline-block;
  margin-left: 16px;
  letter-spacing: 0.04em;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1A4D2E;
  color: #7CC576;
  box-shadow: 0 8px 32px 0 rgba(30, 169, 90, 0.20);
  transform: translateY(-2px) scale(1.035);
}

/* -----------------------------
   PLAYFUL & DYNAMIC DECORATIONS
----------------------------- */
section {
  position: relative;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFDA6C;
  opacity: 0.19;
  top: 14px;
  right: -26px;
  z-index: 1;
  pointer-events: none;
  animation: blob-move 6s ease-in-out infinite alternate;
}
@keyframes blob-move {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(10px) scale(1.15); }
}

/* Bouncy button effect */
.btn-primary:active {
  transform: scale(0.98) translateY(2px);
}

/* Fun hover on testimonial cards */
.testimonial-card:hover {
  box-shadow: 0 6px 36px 0 rgba(122, 197, 118, 0.21);
  border-left-color: #FFDA6C;
  transition: box-shadow .21s, border-left-color .18s;
}

/* Fun icons for cards / features */
.card img, .feature-item img, .content-wrapper ul img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
  animation: icon-pop 1.9s infinite alternate cubic-bezier(.32,1.51,.58,1);
}
@keyframes icon-pop {
  from { transform: scale(1) rotate(-6deg); }
  to { transform: scale(1.08) rotate(4deg); }
}

/* -----------------------------
    CUSTOM CLASSES FOR LISTS
----------------------------- */
.content-wrapper ul, .text-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}
.content-wrapper ul li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(30, 169, 90, 0.06);
  padding: 18px 18px 14px 18px;
  margin-bottom: 8px;
  font-size: 1.01rem;
  color: #1A4D2E;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 222px;
  transition: box-shadow .17s, background .18s;
}
.content-wrapper ul li:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 169, 90, 0.17);
  background: #e1f4e5;
}
.text-section ul {
  flex-direction: column;
  gap: 10px;
}
.text-section ul li {
  background: none;
  box-shadow: none;
  padding: 0 0 0 18px;
  font-size: 1rem;
  color: #265e39;
  border-radius: 0;
  margin-bottom: 10px;
  position: relative;
}
.text-section ul li::before {
  content: '•';
  color: #7CC576;
  font-size: 1.16em;
  margin-right: 9px;
  position: absolute;
  left: 0;
  top: 0;
}

/* -----------------------------
   FOOTER
----------------------------- */
footer {
  background: #1A4D2E;
  color: #fff;
  padding: 35px 0 15px 0;
  position: relative;
  z-index: 6;
  box-shadow: 0 -6px 26px 0 rgba(30, 169, 90, 0.09);
  margin-top: 22px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.footer-nav a {
  color: #fff;
  opacity: 0.81;
  font-size: 0.97rem;
  font-family: 'Lato', sans-serif;
  transition: color .15s, opacity .16s;
  padding: 2px 7px;
  border-radius: 10px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #365d3c;
  color: #FFDA6C;
  opacity: 1;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 13px;
}
.footer-branding img {
  height: 38px;
}
.footer-branding p {
  color: #FFDA6C;
  font-size: 1rem;
  opacity: 0.93;
}

/* -----------------------------
   MOBILE NAVIGATION
----------------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 2.5rem;
  color: #1A4D2E;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 30px 0 rgba(122,197,118,0.17);
  align-items: center;
  justify-content: center;
  z-index: 1011;
  border: none;
  cursor: pointer;
  transition: box-shadow .17s, background .18s;
}
.mobile-menu-toggle:active {
  background: #e1f4e5;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(30,169,90,0);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.54,1.42,.47,.88);
  overflow-y: auto;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 39px 0 rgba(30, 169, 90, 0.21);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: none;
  color: #1A4D2E;
  margin: 22px 22px 8px 0;
  border-radius: 8px;
  transition: background .17s, color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e1f4e5;
  color: #7CC576;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  width: 100%;
  align-items: flex-start;
  padding: 22px 32px 32px 32px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #1A4D2E;
  background: none;
  border-radius: 12px;
  padding: 10px 14px;
  display: block;
  transition: background .13s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e1f4e5;
  color: #7CC576;
}
/* Hide main nav & show mobile on mobile */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Mobile menu overlay animation */
.mobile-menu {
  will-change: transform;
}


/* -----------------------------
   RESPONSIVE & FLEX Direction
----------------------------- */
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  header .container {
    flex-direction: row;
    height: 68px;
    gap: 2px;
  }
  .logo img {
    height: 38px;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 8px 20px;
    margin-left: 6px;
    border-radius: 12px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 34px;
  }
  .content-wrapper ul {
    flex-direction: column;
    gap: 10px;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    min-width: 90%;
    padding: 16px;
    border-radius: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
  width: 8px;
  background: #e1f4e5;
}
.mobile-menu::-webkit-scrollbar-thumb {
  background: #7CC576;
  border-radius: 12px;
}

/* -----------------------------
   COOKIE CONSENT BANNER
----------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe3;
  color: #1A4D2E;
  box-shadow: 0 -5px 31px 0 rgba(122, 197, 118, 0.085);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 8px 18px 8px;
  border-top: 3px solid #7CC576;
  gap: 13px;
  animation: cookie-banner-in 0.65s cubic-bezier(.41,1.12,.27,1.01);
  font-size: 1rem;
}
@keyframes cookie-banner-in {
  0% { transform: translateY(180px); opacity: 0; }
  65% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Lato', Arial, sans-serif;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  margin: 0 4px;
  cursor: pointer;
  background: #7CC576;
  color: #fff;
  box-shadow: 0 1px 8px 0 rgba(122,197,118,0.09);
  transition: background .15s, color .16s, box-shadow .16s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #1A4D2E;
  color: #FFDA6C;
  box-shadow: 0 6px 21px 0 rgba(30, 169, 90, 0.13);
}
.cookie-banner .cookie-settings-btn {
  background: #fffbe3;
  color: #1A4D2E;
  border: 1.7px solid #7CC576;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #7CC576;
  color: #fff;
}

/* COOKIE CHOICES MODAL */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10000;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 38px 0 rgba(122,197,118,0.21);
  padding: 32px 24px 24px 24px;
  min-width: 325px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: cookie-modal-in 0.4s cubic-bezier(.38,1.17,.27,1.04);
}
@keyframes cookie-modal-in {
  0% { transform: translateY(240px); opacity: 0; }
  90% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #1A4D2E;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
  font-size: 1.05rem;
  color: #1A4D2E;
  font-weight: 600;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #7CC576;
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-actions button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 12px;
  background: #7CC576;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Lato', Arial, sans-serif;
  transition: background .13s, color .15s, box-shadow .14s;
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  background: #1A4D2E;
  color: #FFDA6C;
  box-shadow: 0 6px 21px 0 rgba(30, 169, 90, 0.15);
}

/* Dimming page when modal open */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right:0; bottom:0;
  background: rgba(26, 77, 46, 0.29);
  width: 100vw; height: 100vh;
  animation: fadein .17s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -----------------------------
   COLOR & CONTRAST CLASSES
----------------------------- */
.bg-primary { background: #1A4D2E; color: #fff; }
.bg-accent { background: #7CC576; color: #fff; }
.text-primary { color: #1A4D2E; }
.text-accent { color: #7CC576; }
.text-secondary { color: #265e39; }

/* -----------------------------
   OTHER UTILITY CLASSES
----------------------------- */
.hide { display: none !important; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.mt-3 { margin-top: 20px; }
.mb-3 { margin-bottom: 20px; }
.rounded { border-radius: 16px; }
.shadow { box-shadow: 0 2px 18px 0 rgba(122, 197, 118, 0.11); }

/* -----------------------------
   PLAYFUL TYPOGRAPHY/ANIMATION
----------------------------- */
@media (max-width: 400px) {
  .cookie-modal { min-width: 99vw; }
}

/*********************************
 SPECIAL: Playful dynamic titles
*********************************/
h1, h2, .subtitle {
  animation: title-playful 2.2s cubic-bezier(.46,1.55,.7,1) 0.09s both;
}
@keyframes title-playful {
  0% { opacity: 0; transform: scale(0.97) rotate(-2deg) translateY(14px); letter-spacing: 8px; }
  55% { opacity: .7; }
  70% { opacity: 1; transform: scale(1.04) rotate(1.5deg) translateY(0); letter-spacing: 0; }
  100% { opacity: 1; transform: none; letter-spacing: 0; }
}

/*********************************
   CARD HOVER EFFECTS & SPACING
*********************************/
.card, .content-wrapper ul li {
  transition: box-shadow 0.23s, background 0.2s, transform 0.16s;
}
.card:active, .content-wrapper ul li:active {
  transform: scale(0.985);
}

/*********************************
    FORMS (contact.html)
*********************************/
input, textarea, select {
  border-radius: 10px;
  border: 1.6px solid #a5ddb8;
  padding: 11px 12px;
  font-size: 1.04em;
  margin-bottom: 16px;
  font-family: 'Lato', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #7CC576;
  box-shadow: 0 0 0 3px #e1f4e5;
}
label {
  color: #1A4D2E;
  font-weight: 600;
}

/*********************************
   MISC
*********************************/
hr {
  border: none;
  border-top: 2px solid #7CC576;
  margin: 24px 0 18px 0;
}
blockquote {
  margin: 16px 0;
  padding: 18px 24px;
  border-left: 7px solid #7CC576;
  background: #fff;
  border-radius: 12px;
  color: #1A4D2E;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.13em;
  font-style: italic;
  box-shadow: 0 2px 18px 0 rgba(122, 197, 118, 0.06);
}

/*********************************
   Table (e.g. for cookies or terms)
*********************************/
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(122,197,118,.07);
  margin: 18px 0 20px 0;
  font-size: 1rem;
}
th, td {
  border: 1px solid #edece4;
  padding: 11px 9px;
}
th { background: #e1f4e5; color: #1A4D2E; font-weight: 700; }
td { color: #222; }

/*********************************
  Error/Success Messages
*********************************/
.alert-success {
  background: #e6fbe3;
  color: #186727;
  border-radius: 12px;
  padding: 16px 19px;
  margin: 14px 0;
}
.alert-error {
  background: #ffe8e6;
  color: #A41212;
  border-radius: 12px;
  padding: 16px 19px;
  margin: 14px 0;
}

/*------------------------------*/
/* FORCED: Ensure minimum card/section gap everywhere */
/*------------------------------*/
.card, .testimonial-card, .feature-item, .section, .content-wrapper ul li {
  margin-bottom: 20px !important;
}
.card-container, .content-grid, .text-image-section, .content-wrapper ul {
  gap: 20px !important;
}
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}

/*********************************
  Accessibility: Focus Outline
*********************************/
a:focus, button:focus, .btn:focus {
  outline: 2.5px solid #FFDA6C;
  outline-offset: 2px;
}

/*********************************
  Playful Touch: Hover Wobble Animation
*********************************/
.card:hover, .content-wrapper ul li:hover {
  animation: card-wobble 0.18s 1 cubic-bezier(.37,1.60,.49,.98);
}
@keyframes card-wobble {
  0% { transform: scale(1); }
  40% { transform: rotate(-2deg) scale(1.03); }
  100% { transform: rotate(0) scale(1.01); }
}

/*********************************
  PRINT FRIENDLY
*********************************/
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-backdrop, footer, header {
    display: none !important;
  }
  main, .container, section, .content-wrapper {
    background: #fff !important;
    color: #222 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  a:after { content: ' (' attr(href) ')'; }
}
