/* ----------------------------- CSS RESET & NORMALIZE ----------------------------- */
* { box-sizing: border-box; padding: 0; margin: 0; }
html, body { height: 100%; }
body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color .2s; }
button { background: none; border: none; cursor: pointer; }
:root {
  --primary: #335C3B;
  --secondary: #A3C586;
  --accent: #F9F8F4;
  --yellow: #FFD600;
  --magenta: #FF5BF2;
  --cyan: #2DD8D8;
  --red: #FF6961;
  --blue: #49B6FF;
  --shadow: 0 4px 32px 0 rgba(51,92,59,0.08);
  --radius-card: 24px;
  --radius-btn: 32px;
  --transition: 0.25s cubic-bezier(.53,1.59,.54,.83);
}

/* ----------------------------- TYPOGRAPHY ----------------------------- */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
  background: var(--accent);
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.13;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 13px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, ul, ol, .text-section { font-size: 1rem; color: var(--primary); line-height: 1.6; }
p { margin-bottom: 12px; }
strong { color: var(--yellow); font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}

/* ----------------------------- LAYOUT CONTAINERS ----------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  transition: transform 0.25s cubic-bezier(.53,1.59,.54,.83), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1.5deg);
  box-shadow: 0 6px 38px 0 rgba(80, 181, 86, 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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .content-grid { flex-direction: column; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 16px 0 rgba(51,92,59,0.13);
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 5px solid var(--blue);
}
.testimonial-card p {
  color: #23351f;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-left: auto;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(255, 91, 242, 0.10), 0 8px 32px 0 rgba(80, 181, 86, 0.09);
  transform: skew(-2deg,1deg) scale(1.01);
}

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

/* List icons in features */
ul > li > img, ul > li > strong {
  vertical-align: middle;
}
ul > li > img { margin-right: 10px; height: 32px; width: 32px; display: inline-block; }

ul, ol { margin-bottom: 16px; margin-left: 0; }
ul > li, ol > li {
  padding-left: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
ul > li:last-child, ol > li:last-child { margin-bottom: 0; }

/* ----------------------------- HEADER & NAVIGATION ----------------------------- */
header {
  width: 100%;
  background: var(--primary);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(51,92,59,0.06);
}
header > a img {
  height: 44px;
  margin-right: 18px;
  vertical-align: middle;
}
header nav {
  display: flex;
  gap: 17px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: var(--yellow);
  color: var(--primary);
}
header nav .cta {
  background: var(--yellow);
  color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(255, 214, 0, 0.22);
  margin-left: 12px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  font-weight: 900;
  letter-spacing: 0.015em;
}
header nav .cta:hover,
header nav .cta:focus {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(255, 91, 242, 0.25);
}

.mobile-menu-toggle {
  display: none;
  background: var(--yellow);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 18px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(255,214,0,0.15);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover { background: var(--magenta); color: #fff; }

@media (max-width: 950px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ----------------------------- MOBILE MENU ----------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--primary);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 0;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.57,1.6,.44,.87);
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(.57,1.6,.44,.87);
}
.mobile-menu-close {
  display: flex;
  margin-left: auto;
  margin-right: 32px;
  margin-bottom: 28px;
  background: var(--magenta);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px 0 rgba(255,91,242,0.15);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: var(--yellow); color: var(--primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  margin-top: 16px;
  padding-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  padding: 12px 0;
  border-radius: 18px;
  width: 100%;
  display: block;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--yellow);
  color: var(--primary);
}
.mobile-nav .cta {
  background: var(--yellow);
  color: var(--primary);
  font-weight: bold;
  padding-left: 16px;
}

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

/* Disable scrolling when mobile menu is open (class should be set via JS) */
body.menu-open { overflow: hidden; }

/* ----------------------------- MAIN & SECTIONS ----------------------------- */
main { width: 100%; margin-top: 12px; }
section { width: 100%; margin-bottom: 60px; padding: 40px 20px; } /* CRITICAL SPACING */
section:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  section { padding: 28px 8px; }
}

.text-section {
  background: transparent;
  color: var(--primary);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0;
}

/* ----------------------------- ANIMATIONS & PLAYFUL EFFECTS ----------------------------- */
@keyframes bounce-in {
  0%   { opacity: 0; transform: scale(.7) translateY(50px); }
  65%  { opacity: 1; transform: scale(1.03) translateY(-10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.section, .card, .testimonial-card {
  animation: bounce-in .7s cubic-bezier(.53,1.59,.54,.83);
}
.cta, button, .mobile-menu-toggle, .mobile-menu-close {
  transition: all var(--transition);
}

/* Decorative accent dots (playful) */
.section::after {
  content: '';
  display: block;
  position: absolute;
  top: 12px; right: 24px;
  width: 36px; height: 36px;
  background: var(--magenta);
  border-radius: 50%;
  opacity: 0.13;
  z-index: 1;
}
.section:nth-child(even)::after {
  background: var(--yellow);
  right: auto; left: 22px; top: 14px;
}
@media (max-width: 600px) {
  .section::after { width: 20px; height: 20px; top: 8px; right: 8px; }
}

/* ----------------------------- BUTTONS ----------------------------- */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  background: var(--magenta);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 14px 0 rgba(255,91,242,0.16);
  margin-top: 10px;
  margin-bottom: 10px;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cta:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -10px; right: -16px;
  width: 18px; height: 18px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.32;
}
.cta:hover, .cta:focus,
.btn:hover, .btn:focus {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 22px 0 rgba(49,182,255,0.19);
  transform: scale(1.05) rotate(-2deg);
}
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover, .btn-danger:focus { background: #ff2323; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: #fff;
}

/* ------------------ ICONS & INLINE ICONS ------------------ */
.text-section img, .card img, nav img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  height: 24px;
}

/* ----------------------------- FOOTER ----------------------------- */
footer {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 42px 0 30px 0;
  margin-top: 38px;
}
footer .container { max-width: 1200px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer img { height: 56px; margin-bottom: 12px; }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  border-radius: 18px;
  padding: 5px 12px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover,
footer nav a:focus {
  background: var(--yellow);
  color: var(--primary);
}
footer .text-section {
  font-size: 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer .text-section span {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; align-items: center; gap: 22px; text-align: center; }
}

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 950px) {
  .container { max-width: 96vw; }
}
@media (max-width:600px) {
  .card, .section {
    padding: 18px 8px;
    border-radius: 14px;
  }
  .card-container { gap: 13px; }
}

@media (max-width: 540px) {
  body, p, ul, ol, .text-section { font-size: 15px !important; }
}

/* ------------------- COOKIE CONSENT BANNER & MODAL ------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -4px 24px 0 rgba(51, 92, 59, 0.10);
  padding: 24px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  animation: bounce-in .55s;
}
.cookie-banner p {
  margin-bottom: 0;
  flex: 1 0 220px;
  color: var(--primary);
}
.cookie-banner .btn, .cookie-banner .btn-danger, .cookie-banner .btn-outline {
  margin: 0 7px;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 5px 0 rgba(51,92,59,0.09);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    padding: 14px 6px;
    gap: 12px;
  }
}

/* Modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 5000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(51,92,59,0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-in .3s;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 20px;
  box-shadow: 0 6px 32px 0 rgba(51,92,59,0.19);
  padding: 36px 24px 26px 24px;
  width: 90vw;
  max-width: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: bounce-in .6s;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--magenta);
}
.cookie-modal label {
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal .cookie-category {
  background: var(--accent);
  border-radius: 12px;
  padding: 11px 10px;
  margin-bottom: 8px;
}
.cookie-modal .btn-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .btn {
  padding: 8px 22px;
  font-size: 1rem;
}

/* Essential cookies locked */
.cookie-modal input[type=checkbox][disabled] {
  accent-color: var(--secondary);
  background: var(--secondary);
  cursor: not-allowed;
}

/* ----------------------------- ACCESSIBILITY FOCUS ----------------------------- */
a:focus, button:focus, .btn:focus, .cta:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
  z-index: 10;
}

/* ----------------------------- MISC HELPER CLASSES ----------------------------- */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-4 { margin-bottom: 32px !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.bg-accent { background: var(--accent); }
.bg-secondary { background: var(--secondary); color: #1e3321; }
.bg-yellow { background: var(--yellow); }
.bg-magenta { background: var(--magenta); color: #fff; }

/* ----------------------------- PLAYFUL/DYNAMIC STYLE HIGHLIGHTS ----------------------------- */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .01em;
  color: var(--primary);
  font-weight: 900;
}
h1 {
  background: linear-gradient(90deg, var(--yellow) 3%, var(--magenta) 89%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
          text-fill-color: transparent;
}
h2 {
  color: var(--blue);
}
h3 {
  color: var(--magenta);
  font-weight: 800;
}
.card, .section, .testimonial-card { border: 2px solid var(--accent); }

/* Fun font for catch words */
.cta, .btn, header nav .cta, .mobile-nav .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .025em;
}

/* ----------------------------- END OF CSS ----------------------------- */