/* =====================
   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, 
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  display: block;
  max-width: 100%;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

/* ================
   BRAND VARIABLES
   ================ */
:root {
  --primary: #286673;
  --primary-light: #4ca6bf;
  --secondary: #ffffff;
  --secondary-dark: #D6CEB2;
  --accent: #4D7A36;
  --accent2: #85B577;
  --danger: #D62246;
  --warning: #F0A202;
  --info: #3F88C5;
  --background: #FEFFF5;
  --text-primary: #222;
  --text-secondary: #286673;
  --white: #fff;
  --black: #1a2222;
  --font-display: 'Montserrat', 'Comic Sans MS', sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-md: 0 6px 24px rgba(70,80,60,0.10), 0 1.5px 4px rgba(70,80,60,0.13);
  --shadow-hover: 0 8px 32px rgba(40,102,115,0.13);
  --shadow-card: 0 3px 14px rgba(133,181,119,0.14);
  --shadow-nav: 0 1px 12px rgba(70,80,60,0.08);
  --transition: 0.18s cubic-bezier(.42,0,.58,1);
}

/* ====================
   TYPOGRAPHY
   ==================== */
h1, h2, h3, .cta-button {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.15;
}
h3 {
  font-size: 1.4rem;
  color: var(--accent2);
  margin-bottom: 10px;
  line-height: 1.2;
}
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
}
strong {
  color: var(--primary);
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.21rem;
  }
  h3 {
    font-size: 1.02rem;
  }
}

/* Fun headline micro-animation */
h1, h2, h3 {
  animation: floatUp 0.8s both cubic-bezier(.61,-0.21,.94,.71);
}
@keyframes floatUp {
  from { opacity:0; transform: translateY(16px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ==================
   LAYOUT CONTAINERS
   ================== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============
   HEADER & NAV
   ============ */
header {
  background: var(--secondary);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}
header img {
  width: 130px;
  height: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 0;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
nav a:hover, nav a:focus {
  color: var(--accent2);
  background: var(--secondary-dark);
}

.cta-button {
  display: inline-block;
  background: var(--accent2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  margin-left: 16px;
  box-shadow: var(--shadow-md);
  border: 2.5px solid var(--accent);
  transition: background 0.18s, color 0.18s, box-shadow .2s;
  cursor: pointer;
  text-align:center;
  letter-spacing:0.01em;
  outline: none;
  position: relative;
  z-index:1;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}

/* Burger - Hide desktop, show on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 2.0rem;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  z-index: 1500;
  min-width: 54px;
  min-height: 54px;
  transition: background .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent2);
}

@media (max-width: 991px) {
  header .container {
    flex-wrap: wrap;
  }
  nav {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .cta-button {
    padding: 10px 18px;
    font-size: 0.96rem;
    margin-left: 6px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header img {
    width: 112px;
  }
}

/* =========
   MOBILE MENU
   ========= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.73,0,.54,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  box-shadow: 0 0 620px rgba(40,102,115,0.07) inset;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 0 0;
  background: var(--danger);
  color: var(--white);
  font-size: 2.2rem;
  padding: 5px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{
  background: var(--accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.6rem;
  gap: 18px;
  padding: 0 34px;
}
.mobile-nav a {
  padding: 15px 0;
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--primary);
  font-weight: 500;
  border-bottom: 2px solid var(--accent2);
  margin-bottom: 0.5rem;
  width: 100%;
  border-radius: var(--radius-sm);
  transition: color .14s, background .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: var(--secondary-dark);
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}

/* ================
   SECTIONS & SPACING
   ================ */
section {
  width: 100%;
  background: var(--secondary);
  border-radius: var(--radius-lg);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: floatUp .8s;
}
@media (max-width: 768px) {
  section {
    padding: 24px 5px;
    margin-bottom: 38px;
  }
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Cards & Grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--secondary-dark);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  min-width: 260px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.028) translateY(-4px) rotate(-2deg);
}

/* Content Grid */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* Features */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--secondary-dark);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe1;
  color: var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  min-width: 230px;
  box-shadow: 0 2px 16px rgba(40,102,115,0.14);
  position: relative;
  font-family: var(--font-body);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: var(--primary);
  margin-bottom: 3px;
}
.testimonial-card span {
  font-family: var(--font-display);
  color: var(--accent2);
  font-size: 1rem;
}
.testimonial-card div {
  color: #FFD700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .testimonial-card {
    font-size: 0.97rem;
    padding: 14px 7px;
    min-width: 0;
  }
}

/* ============
   LISTS & ICONS
   ============ */
ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.04rem;
  position: relative;
  line-height: 1.48;
  transition: filter .18s;
}
ul li img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 4px rgba(70,170,120,0.15));
  margin-right: 7px;
  transition: transform .18s;
}
ul li:hover img {
  transform: rotate(-8deg) scale(1.13);
}
ol {
  margin-left: 1.5em;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============
   FOOTER
   ============ */
footer {
  background: var(--primary);
  color: var(--secondary);
  width: 100%;
  padding: 0;
  margin: 0;
  box-shadow: 0 -1.5px 16px rgba(44,70,106,0.06) inset;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 16px;
  flex-wrap: wrap;
}
footer img {
  width: 76px;
  margin-bottom: 5px;
}
footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
footer nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  opacity:0.86;
  margin-bottom: 5px;
  transition: color .13s, opacity .13s;
}
footer nav a:hover {
  color: var(--accent2);
  opacity:1;
}
footer div > span {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
  font-size: 0.97rem;
  color: var(--secondary);
  opacity:0.85;
}
footer div > span img {
  width: 21px;
  vertical-align: middle;
  margin-right: 4px;
  filter: brightness(1.15) drop-shadow(0 1px 2px rgba(255,255,255,.13));
}
@media (max-width: 820px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4999;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -4px 22px 0 rgba(40,102,115,0.15);
  border-top: 4.5px solid var(--accent2);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 21px 10px 21px 10px;
  font-size: 1.02rem;
  animation: popUp 0.7s cubic-bezier(.67,0,.22,.82) both;
}
@keyframes popUp {
  0% {opacity:0; transform: translateY(28px) scale(.96);}
  100% {opacity:1; transform: translateY(0) scale(1);}
}
#cookie-banner p {
  max-width: 360px;
  margin-right: 12px;
  font-family: var(--font-body);
}
#cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0 5px;
  border-radius: 24px;
  padding: 9px 22px;
  border: none;
  background: var(--accent2);
  color: var(--white);
  box-shadow: 0 1px 8px rgba(133,181,119,0.08);
  transition: background .19s, color .17s, transform .15s;
}
#cookie-banner .cookie-btn:hover, #cookie-banner .cookie-btn:focus {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
}
#cookie-banner .settings-btn {
  background: var(--primary-light);
  color: var(--white);
}
#cookie-banner .settings-btn:hover { background: var(--primary); }
#cookie-banner .reject-btn {
  background: var(--danger);
}
#cookie-banner .reject-btn:hover { background: #a10d2a; }

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  z-index: 5000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(40,102,115,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s;
}
#cookie-modal .modal-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px 22px 24px;
  min-width: 300px;
  max-width: 98vw;
  box-shadow: 0 8px 32px rgba(40,102,115,0.19);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 18px;
  outline: none;
  animation: popUp .5s both;
}
#cookie-modal h3 {
  color: var(--primary);
  font-size: 1.32rem;
  margin-bottom: 6px;
}
#cookie-modal label {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.03rem;
  margin-bottom: 10px;
}
#cookie-modal .cookie-toggle {
  accent-color: var(--accent2);
  width: 22px;
  height: 22px;
  margin: 0 4px;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
#cookie-modal .modal-actions .cookie-btn {
  min-width: 100px;
}
#cookie-modal .close-modal-btn {
  background: var(--danger);
  color: var(--white);
  border-radius: 19px;
  font-size: 1.12rem;
  padding: 5px 16px;
  align-self: flex-end;
  margin-left: auto;
  margin-top: -20px;
  margin-bottom: 4px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
#cookie-modal .close-modal-btn:hover { background: #a10d2a; }

/* ============
   ANIMATIONS & MICROINTERACTIONS
   ============ */
a, .cta-button, .card, .feature-item, .testimonial-card, nav a, .mobile-menu-toggle, .mobile-menu-close {
  transition: all var(--transition);
}

.card, .feature-item, .section, section, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), transform .15s;
}
.card:hover, .feature-item:hover {
  box-shadow: var(--shadow-hover);
  background: #eefdde;
  transform: scale(1.026) rotate(-1.5deg);
}
.cta-button:active, .card:active, .feature-item:active {
  transform: scale(0.97) rotate(-2deg);
}

/* Fun shine on buttons */
.cta-button {
  position: relative;
  overflow: hidden;
}
.cta-button::after {
  content: '';
  display: block;
  position: absolute;
  left: -75%;
  top: 0;
  height: 100%;
  width: 45%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-30deg);
  transition: opacity .45s, left .45s;
}
.cta-button:hover::after {
  left: 120%;
  opacity: 0;
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 991px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 3px;
    max-width: 100vw;
  }
  nav,
  footer .container {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
}

/* Ensure 20px+ margin between content cards/sections */
section, .section, .card, .feature-item, .testimonial-card {
  margin-bottom: 24px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* Prevents overlap, ensure spaces at all sizes */
.card, .feature-item, .testimonial-card {
  min-width: 0;
  word-break: break-word;
}

/* Ensure adequate touch target for all links (esp. mobile menu) */
a, .mobile-nav a, button {
  min-height: 44px;
}

/* =========================
   PLAYFUL & DYNAMIC EXTRAS
   ========================= */
/* Fun font fallback on display text lamps up playfulness */
h1, h2, h3 {
  font-family: var(--font-display), 'Comic Sans MS', cursive, sans-serif;
}
/* Bright colorful backgrounds in icon sections or headings */
section:not(:nth-of-type(even)), .section:not(:nth-of-type(even)) {
  background: #eefee8;
}
/* Accent border accentuates dynamic section rhythm */
section h2, .section h2 {
  border-bottom: 3px solid var(--accent2);
  display: inline-block;
  padding-bottom: 2px;
  border-radius: 8px;
  margin-bottom: 18px;
}

/* Decorative playful colored dots for energetic feel */
.section::before,
section::before {
  content: '';
  display: block;
  position: absolute;
  top: -36px; left: -37px;
  width: 60px; height: 60px;
  background: var(--accent2);
  border-radius: 100%;
  opacity:0.16;
  z-index: 0;
  pointer-events: none;
  animation: wiggle 2.1s infinite alternate ease-in-out;
}
@keyframes wiggle {
  from { transform: scale(.97) translateY(0); }
  to { transform: scale(1.11) translateY(35px) rotate(-9deg);}
}

.section::after,
section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -30px; right: -26px;
  width: 47px; height: 47px;
  background: var(--primary);
  border-radius: 100%;
  opacity:0.10;
  z-index: 0;
  pointer-events: none;
  animation: wiggle2 2.98s infinite alternate cubic-bezier(.53,.02,.11,.96);
}
@keyframes wiggle2 {
  from { transform: scale(.96) translateY(0); }
  to { transform: scale(1.13) translateY(-25px) rotate(6deg);}
}

/* Playful underline on nav/call links */
nav a, .mobile-nav a {
  position: relative;
}
nav a::after, .mobile-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--accent2);
  border-radius: 7px;
  transform: scaleX(0);
  transition: transform 0.19s cubic-bezier(.9,0,.11,1);
  opacity: .86;
}
nav a:hover::after, nav a:focus::after, .mobile-nav a:hover::after, .mobile-nav a:focus::after {
  transform: scaleX(0.65);
}

/* ===============
   PRINT-SAFE
   =============== */
@media print {
  header, footer, .mobile-menu, #cookie-banner, #cookie-modal { display: none !important;}
  section, .section { box-shadow: none; border: none; margin:0; padding:0;}
  body {background: #fff; color: #000}
}
