/* ============================ */
/* RESET & BASE STYLES          */
/* ============================ */
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-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #245446;
  background: #FCFFF9;
}
body {
  min-height: 100vh;
  background: #FCFFF9;
  overflow-x: hidden;
}
main {
  flex: 1;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #245446;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #99CC22;
  outline: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ============================ */
/* VARIABLES & HELPERS          */
/* ============================ */
:root {
  --primary: #245446;
  --secondary: #DAE9E3;
  --accent: #99CC22;
  --bg-light: #FCFFF9;
  --gray: #ebebeb;
  --danger: #FF3981;
  --brand-shadow: 0 4px 16px 0 rgba(36, 84, 70, 0.09);
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --section-gap: 60px;
  --section-padding: 40px 20px;
  --fun-1: #F9D567;
  --fun-2: #23BFFD;
  --fun-3: #F9793A;
}

/* Fun, energetic font imports */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600&display=swap');


/* ============================ */
/* TYPOGRAPHY                   */
/* ============================ */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 1px 2px 0 var(--accent), 0 2px 16px rgba(36,84,70,0.09);
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fun-1);
  margin-bottom: 24px;
  line-height: 1.15;
  text-shadow: 1px 2px 0 var(--fun-3), 0 1px 8px rgba(36,84,70,0.06);
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fun-2);
  margin-bottom: 12px;
}
p, li, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--accent);
}
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--primary);
  background: var(--fun-1);
  border-left: 8px solid var(--fun-2);
  margin: 0 0 12px 0;
  padding: 22px 18px;
  border-radius: var(--radius-md);
  font-style: italic;
}
cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  color: var(--fun-3);
  margin-top: 6px;
  padding-left: 18px;
  font-weight: 700;
}

/* ============================ */
/* LAYOUT CLASSES & CONTAINERS  */
/* ============================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: var(--section-gap);
  padding: var(--section-padding);
  background: var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--brand-shadow);
  position: relative;
  animation: sectionFadeIn 0.8s cubic-bezier(.42,.8,.45,1.25);
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--brand-shadow);
  padding: 28px 20px 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 220px;
  max-width: 330px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(36, 84, 70, 0.15);
  transform: translateY(-4px) scale(1.02) rotate(-1.5deg);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  margin-bottom: 20px;
  background: #fffbe9;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 18px 0 rgba(36, 84, 70, 0.09);
  flex-direction: column;
  min-width: 240px;
  max-width: 450px;
  border: 2px solid var(--fun-1);
  animation: testimonialPop 0.75s cubic-bezier(.42,1.16,.4,1.015);
}
@keyframes testimonialPop {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================ */
/* HEADER & NAVIGATION          */
/* ============================ */
header {
  background: var(--bg-light);
  box-shadow: 0 2px 14px 0 rgba(36,84,70,0.04);
  z-index: 40;
  position: sticky;
  top: 0; /* Keeps header on top scroll */
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 28px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: none;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
nav a:hover, nav a:focus {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 10px var(--fun-2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  padding: 14px 36px;
  border: none;
  box-shadow: 0 1px 12px 0 rgba(153,204,34,0.13);
  margin-left: 12px;
  transition: background 0.17s, transform 0.13s, color 0.15s;
  outline: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px #fffbe9;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--fun-2);
  color: #fff;
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 5px 24px 0 rgba(36,84,70,0.13);
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: inline-flex;
  background: var(--accent);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 50%;
  border: none;
  padding: 8px 15px;
  margin-left: 18px;
  box-shadow: 0 2px 6px rgba(153,204,34,0.09);
  transition: background 0.15s, transform 0.13s;
  z-index: 80;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--fun-3);
  color: #fff;
  transform: scale(1.18) rotate(4deg);
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ============================ */
/* MOBILE MENU OVERLAY          */
/* ============================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #f9fff3;
  box-shadow: 0 6px 40px 0 rgba(36,84,70,0.14);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: inherit;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.5rem;
  background: none;
  color: var(--danger);
  padding: 12px 20px;
  border-radius: 50%;
  margin: 10px 16px 0 0;
  transition: background 0.13s, transform 0.12s;
  border: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fbe7f1;
  color: #fff;
  transform: rotate(10deg) scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 0 32px;
  gap: 25px;
  padding-top: 20px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  background: var(--secondary);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  margin-left: 0;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.2;
  box-shadow: 0 1px 8px rgba(153,204,34,0.07);
  transition: background 0.15s, color 0.12s, transform 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fun-1);
  color: var(--fun-3);
  transform: scale(1.03) rotate(-1deg);
}

@media (min-width: 1000px) {
  .mobile-menu { display: none !important; }
  nav { display: flex !important; }
}
@media (max-width: 999px) {
  header nav { display: none !important; }
  .btn-primary { margin-left: 0; }
}

/* ============================ */
/* SECTIONS, CARDS, FEATURES    */
/* ============================ */
section {
  margin-bottom: var(--section-gap);
  padding: var(--section-padding);
  background: #fcfff9;
  border-radius: var(--radius-lg);
  box-shadow: var(--brand-shadow);
  position: relative;
  overflow: hidden;
}
section:nth-child(even) {
  background: var(--secondary);
}
section .container > h2 {
  margin-bottom: 18px;
}
section ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 0 0;
}
section ul li {
  font-size: 1.09rem;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  min-height: 36px;
  color: var(--primary);
  background: #fafeee;
  transition: background 0.2s, color 0.16s;
}
section ul li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
section ul li:hover, section ul li:focus {
  background: var(--accent);
  color: #fff;
}
.text-section {
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.feature-item strong {
  font-size: 1.12rem;
  color: var(--fun-2);
}

/* Cards for playful effect */
.card {
  border-left: 6px solid var(--fun-2);
  animation: cardSlideIn 0.65s cubic-bezier(.22,1.12,.66,1.03);
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(32px) rotate(-4deg); }
  to   { opacity: 1; transform: none; }
}

/* ============================ */
/* TESTIMONIALS                 */
/* ============================ */
.testimonial-card {
  background: #fffbe8;
  border: 2px solid var(--fun-1);
  color: #1A2A1E;
  box-shadow: 0 1px 24px rgba(36, 84, 70, 0.11);
}
.testimonial-card blockquote {
  background: none;
  border-left: 8px solid var(--accent);
  color: var(--primary);
}

/* ============================ */
/* FOOTER                       */
/* ============================ */
footer {
  background: var(--primary);
  color: #fff;
  padding: 45px 0 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
  padding-bottom: 18px;
}
footer img {
  width: 70px;
  height: auto;
  margin-bottom: 10px;
}
footer p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
footer nav {
  flex-direction: column;
  gap: 8px;
  margin-right: 22px;
}
footer nav a {
  color: #FFF !important;
  background: none;
  font-size: 0.97rem;
  padding: 4px 2px 4px 0;
  border-radius: 0;
  transition: color 0.15s;
}
footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
footer .container > div {
  min-width: 180px;
  flex: 1;
}

@media (max-width: 999px) {
  .container {
    flex-direction: column;
    gap: 18px;
    padding-left: 9px;
    padding-right: 9px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ============================ */
/* RESPONSIVE FLEX LAYOUTS      */
/* ============================ */
@media (max-width: 768px) {
  .text-image-section, .content-grid, .container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .section,
  section {
    padding: 24px 6px;
    margin-bottom: 30px;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: unset;
    padding: 18px;
  }
  .card-container, .content-grid {
    gap: 10px;
  }
  .card {
    min-width: 95vw;
    max-width: 100vw;
    padding: 18px 7px 16px 13px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .btn-primary { font-size: 1rem; padding: 10px 16px; }
  footer .container { gap: 12px; }
}
@media (max-width: 500px) {
  h1, .h1 { font-size: 1.18rem; }
  h2, .h2 { font-size: 1.05rem; }
  .btn-primary { font-size: 0.93rem; padding: 8px 10px; }
}

/* ============================ */
/* ANIMATIONS & MICRO-EFFECTS   */
/* ============================ */
section, .section, .card, .testimonial-card {
  will-change: transform, opacity, box-shadow;
}
.card, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.18s;
}
section h2, h2 {
  transition: color 0.2s;
}
section:hover h2, .section:hover h2 {
  color: var(--fun-3);
}
li img, .feature-item img {
  filter: drop-shadow(0 2px 6px #23BFFD33);
  animation: iconBounce 1.6s infinite cubic-bezier(.37,.67,.62,1.68);
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-11px) rotate(-9deg); }
  70% { transform: scale(1.09) translateY(2px) rotate(9deg); }
}
.btn-primary {
  animation: btnPopIn 1.1s cubic-bezier(.51,1.25,.29,.93);
}
@keyframes btnPopIn {
  0% {transform: scale(0.88) rotate(-6deg); opacity:0;} 60% {transform: scale(1.1) rotate(2deg); opacity:1;} 100%{transform: scale(1) rotate(0); opacity:1;}
}

/* ============================ */
/* COOKIE CONSENT BANNER        */
/* ============================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--secondary);
  color: var(--primary);
  z-index: 1001;
  box-shadow: 0 -3px 24px 0 rgba(36, 84, 70, 0.12);
  padding: 24px 12px 22px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  animation: cookieFadeIn 0.9s cubic-bezier(.51,1.19,.24,.99);
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner p {
  font-size: 0.98rem;
  flex: 3;
  margin-bottom: 0;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: var(--fun-1);
  color: var(--primary);
  border-radius: var(--radius-md);
  padding: 13px 22px;
  border: none;
  margin-left: 10px;
  transition: background 0.17s, color 0.12s, transform 0.13s;
  box-shadow: 0 1px 7px 0 rgba(249,213,103,0.07);
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.07) rotate(-2deg);
}
.cookie-btn.reject {
  background: var(--danger);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #bb2b5a;
}
.cookie-btn.settings {
  background: var(--fun-2);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #19a3da;
  color: #fff;
}
@media (max-width: 700px){
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 2px 18px 2px;
  }
  .cookie-btn { margin-left: 0; margin-top: 7px; }
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1100;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,84,70,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  animation: overlayPop 0.29s cubic-bezier(.51,1.12,.33,.97);
}
@keyframes overlayPop {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fffbe9;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 38px 0 rgba(36,84,70,0.17);
  max-width: 380px;
  width: 90vw;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.37s cubic-bezier(.53,1.23,.35,.99);
}
@keyframes modalScaleIn {
  from { opacity:0; transform: scale(0.9); } to { opacity:1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.cookie-modal label {
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal input[type='checkbox'] {
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
  border-radius: 5px;
  margin-right: 9px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 11px;
  right: 22px;
  font-size: 2.0rem;
  background: none;
  color: var(--danger);
  border: none;
  padding: 5px 9px;
  border-radius: 50%;
  transition: background 0.13s, color 0.10s, transform 0.13s;
}
.cookie-modal .modal-close:hover {
  color: #fff;
  background: #ff3981;
  transform: scale(1.18);
}

/* ============================================= */
/* GENERAL UTILITIES AND MISCELLANEOUS           */
/* ============================================= */
::-webkit-scrollbar {
  width: 10px;
  background: var(--gray);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--fun-2);
  border-radius: 10px;
}
::-webkit-input-placeholder { color: #99CC22; }
::-moz-placeholder { color: #99CC22; }
:-ms-input-placeholder { color: #99CC22; }
::placeholder { color: #99CC22; }

/* For fun touch: floating accent decorative circle */
.section::after {
  content: '';
  display: block;
  position: absolute;
  top: -38px;
  right: -48px;
  width: 98px;
  height: 98px;
  background: var(--fun-2);
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: floatDecor 8s linear infinite alternate;
}
@keyframes floatDecor {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(30px) scale(1.08); }
}

/* =============================== */
/* VARIOUS FIXES AND ENHANCEMENTS  */
/* =============================== */
@media (max-width: 400px) {
  .cookie-banner { padding: 10px 1px 10px 1px; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.12rem; }
  .footer .container { gap: 6px; }
}

/* Custom accessibility focus */
*:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}
