/* =========================================================
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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #E9EEF6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #29436C;
  min-height: 100vh;
}
*, *:before, *:after { box-sizing: inherit; }
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

/* =========================================================
TYPOGRAPHY & COLORS (Playful Dynamic)
========================================================= */
:root {
  --primary: #29436C;
  --secondary: #F6B042;
  --accent: #E9EEF6;
  --white: #fff;
  --dark: #232B43;
  --pink: #FF63C3;
  --cyan: #38D2F5;
  --lime: #8DF25B;
  --gray: #A4ACB4;
}
body {
  font-size: 16px;
  background-color: var(--accent);
  color: var(--primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 5px var(--lime), 0 0 0 var(--secondary);
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--secondary);
  text-shadow: 1px 2px var(--primary);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--pink);
  font-weight: 700;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* Fun font for playful labels */
.fun-label {
  font-family: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  background: var(--lime);
  padding: 2px 12px;
  border-radius: 12px;
  color: var(--dark);
  font-size: 0.92rem;
  margin-right: 10px;
  box-shadow: 1px 2px 0 var(--secondary);
}

/* =========================================================
LAYOUT & CONTAINER CLASSES
========================================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 32px;
  box-shadow: 0 6px 24px rgba(41, 67, 108, 0.09);
  position: relative;
  transition: box-shadow 0.2s;
}
/* Utility Flex Containers */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--white); border-radius: 24px; box-shadow: 0 2px 10px rgba(41,67,108,0.08); }
.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; border-radius: 24px; background: var(--accent); box-shadow: 0 2px 10px rgba(41,67,108,0.07); border-left: 8px solid var(--secondary); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 8px 0; }

/* Spacing for default elements */
section { margin-bottom: 60px; padding: 40px 0; }
main > section:last-child { margin-bottom: 0; }

/* Card Grid Example (for future expansions) */
.card-grid { display: flex; flex-wrap: wrap; gap: 28px; }

/* =========================================================
HEADER / NAVIGATION
========================================================= */
header {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(41,67,108,0.045);
  z-index: 50;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 16px;
  color: var(--primary);
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
  position: relative;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 1px 3px 0 var(--pink);
}
.main-nav > a.btn-primary {
  margin-left: auto;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 18px;
  padding: 10px 26px;
  box-shadow: 0 3px 16px rgba(246, 176, 66, 0.21);
  border: 2px solid var(--secondary);
  transition: background 0.18s, color 0.16s, box-shadow 0.22s, border 0.15s;
  position: relative;
}
.main-nav > a.btn-primary:hover, .main-nav > a.btn-primary:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--pink);
  box-shadow: 1px 5px 0 var(--lime);
}
.mobile-menu-toggle {
  display: none;
  background: var(--lime);
  border: none;
  border-radius: 50%;
  padding: 10px 17px;
  font-size: 2rem;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(141,242,91,0.12);
  color: var(--primary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 102;
}
.mobile-menu-toggle:active {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(0.94);
}

/* 
MOBILE MENU OVERLAY & ANIMATION 
*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--primary);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.81,.01,.15,1.04);
  z-index: 999;
  box-shadow: -2px 0 32px 2px var(--secondary);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--pink);
  border: none;
  color: var(--white);
  font-size: 2.1rem;
  border-radius: 50%;
  margin: 18px 18px 0 0;
  padding: 4px 11px;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(255,99,195,0.15);
  transition: background 0.22s, transform 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  transform: rotate(-13deg) scale(1.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 28px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--white);
  background: transparent;
  border-radius: 16px;
  padding: 12px 8px;
  transition: background 0.14s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--lime);
  color: var(--primary);
}
.mobile-nav a.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 20px;
  padding: 13px 24px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 1.5px 6px rgba(246, 176, 66, 0.16);
}
.mobile-nav a.btn-primary:hover, .mobile-nav a.btn-primary:focus {
  background: var(--primary);
  color: var(--white);
}

/* Hide nav on mobile, show burger */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* =========================================================
HERO
 
section:first-of-type p {
  font-size: 1.18rem;
  margin-bottom: 10px;
  font-weight: 500;
}
section:first-of-type .btn-primary {
  margin-top: 18px;
}

/* =========================================================
BUTTONS & LINKS
========================================================= */
.btn-primary, a.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 22px;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 4px 20px 0 rgba(246, 176, 66, 0.14);
  cursor: pointer;
  display: inline-block;
  transition: background 0.18s, color 0.17s, box-shadow 0.19s, border 0.18s, transform 0.12s;
  text-align: center;
  outline: 0;
  border: 2px solid var(--secondary);
  position: relative;
  z-index: 1;
}
.btn-primary:active, .btn-primary:focus,
a.btn-primary:active, a.btn-primary:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 1px 3px 0 var(--lime);
  border-color: var(--primary);
  transform: scale(0.97);
}
.btn-primary:hover,
a.btn-primary:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--lime);
  box-shadow: 2px 8px 0 var(--cyan);
  transform: scale(1.04) rotate(-1.5deg);
}

/* Animated underline for normal links */
a:not([class*='btn']) {
  position: relative;
  transition: color 0.18s;
}
a:not([class*='btn']):hover::after,
a:not([class*='btn']):focus::after {
  width: 100%;
  left: 0;
}
a:not([class*='btn'])::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  border-radius: 3px;
  transition: width 0.18s ease;
}
a:not([class*='btn']):hover,
a:not([class*='btn']):focus {
  color: var(--secondary);
}

/* =========================================================
PLAYFUL LISTS & ICONS
========================================================= */
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(1px 2px 0 var(--lime));
}
ul {
  padding-left: 0;
}

/* Fun bullets for non-icon lists */
ul li:not(:has(img)):before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px 80% 12px 4px;
  margin-right: 8px;
  background: linear-gradient(90deg, var(--lime), var(--pink) 70%);
  vertical-align: middle;
  position: relative;
  left: 0;
  top: 2px;
}

/* =========================================================
CARDS & MICRO-INTERACTIONS
========================================================= */
.card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(41,67,108,0.08);
  padding: 28px 26px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  min-width: 250px;
  max-width: 370px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 1px var(--lime);
  transform: translateY(-6px) scale(1.018);
  z-index: 2;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(246,176,66,0.11), 0 0 0 #fff;
  border-radius: 22px;
  border-left: 7px solid var(--secondary);
  padding: 26px 22px;
  margin-bottom: 20px;
  font-size: 1.12rem;
  color: var(--primary);
  transition: box-shadow 0.17s, transform 0.16s;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px 0 var(--lime);
  transform: scale(1.02);
  z-index: 1;
}
.testimonial-card strong { color: var(--primary); }
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--primary);
  opacity: 0.88;
  font-style: italic;
}

/* =========================================================
SECTIONS & ANIMATED ELEMENTS
========================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 32px;
  box-shadow: 0 6px 24px rgba(41, 67, 108, 0.09);
  position: relative;
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.section:hover {
  box-shadow: 0 12px 48px 0 var(--lime);
}

/* Fun Decorative Shapes */
.section:before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -50px;
  right: -60px;
  width: 160px;
  height: 140px;
  background: var(--lime);
  opacity: 0.08;
  border-radius: 64% 26% 29% 61%/49% 74% 11% 91%;
  transform: rotate(15deg);
  pointer-events: none;
}
.section:after {
  content: '';
  position: absolute;
  z-index: 0;
  left: -50px; bottom: -70px;
  width: 110px; height: 86px;
  background: var(--cyan);
  opacity: 0.15;
  border-radius: 80% 30% 70% 40%;
  transform: rotate(-11deg);
  pointer-events: none;
}

/* =========================================================
FOOTER
========================================================= */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 0 0 40px 0;
  margin-top: 70px;
}
footer .container {
  padding-top: 36px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  padding: 0 0 22px 0;
  margin: 0 auto 14px auto;
  border-bottom: 1.5px dashed rgba(233,238,246,0.13);
}
footer a, footer a:visited {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.17s;
  margin-right: 12px;
}
footer a:hover,footer a:focus {
  color: var(--lime);
  text-shadow: 1.6px 3px 3px var(--secondary);
}
footer img {
  filter: none;
}
footer span, footer p, footer small {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--accent);
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer small {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--accent);
  opacity: 0.91;
}
footer .content-wrapper > div:last-child {
  display: flex;
  align-items: center;
  gap: 13px;
}
footer .content-wrapper > div > a {
  background: var(--lime);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(141, 242, 91, 0.12);
  margin-right: 7px;
  transition: transform 0.20s;
}
footer .content-wrapper > div > a:hover {
  background: var(--pink);
  transform: scale(1.1) rotate(-6deg);
}

/* =========================================================
FORMS
========================================================= */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
input, textarea, select {
  border: 1.5px solid var(--gray);
  padding: 11px 15px;
  border-radius: 16px;
  transition: border 0.15s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--pink);
  box-shadow: 0 2px 10px rgba(255,99,195,0.11);
}

button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform .13s;
}
button:active {
  transform: scale(0.97);
}

/* =========================================================
COOKIE CONSENT BANNER
========================================================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--white);
  border-top: 4px solid var(--lime);
  box-shadow: 0 -2px 32px 0 rgba(41,67,108,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 18px 18px 18px;
  z-index: 9999;
  animation: slideInBanner 0.49s cubic-bezier(.62,1.50,.23,.93);
}
.cookie-banner__text {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.08rem;
  text-align: center;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 16px;
  padding: 8px 18px;
  border: 2px solid var(--secondary);
  background: var(--lime);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 7px;
  box-shadow: 0 1px 6px rgba(141,242,91,0.12);
  transition: background 0.18s, color 0.19s, border 0.14s;
}
.cookie-btn.accept {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--pink);
  border-color: var(--pink);
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--primary);
  border-color: var(--cyan);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--pink);
  color: var(--white);
  border-color: var(--lime);
}
@keyframes slideInBanner {
  from { transform: translateY(90%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 93vw;
  max-width: 390px;
  background: var(--white);
  border-radius: 29px;
  box-shadow: 0 8px 56px 0 var(--lime), 0 1.5px 18px 0 var(--secondary);
  z-index: 10001;
  transform: translate(-50%, -50%) scale(0.94);
  animation: fadeScaleIn 0.36s cubic-bezier(0.44,1.58,0.22,1.02);
  padding: 38px 25px 24px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal__categories {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal__cat {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--accent);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal__cat input[type='checkbox'] {
  width: 22px; height: 22px;
  accent-color: var(--pink);
}
.cookie-modal__cat input[disabled] {
  accent-color: var(--lime);
  opacity: 0.85;
}
.cookie-modal__actions {
  display: flex;
  gap: 19px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  background: var(--secondary);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  top: 12px; right: 20px;
  border-radius: 50%;
  width: 32px; height: 32px;
  line-height: 30px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal__close:hover {
  background: var(--pink);
}
@keyframes fadeScaleIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Modal overlay background */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(41,67,108,.41);
  z-index: 9999;
  animation: fadeInBackdrop 0.24s;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
ANIMATIONS, MICRO-INTERACTIONS, MISC
========================================================= */
.btn-primary, .main-nav > a.btn-primary, .cookie-btn {
  will-change: background, color, box-shadow, transform;
}

/* Fun bounce for call-to-action on hover */
.btn-primary:hover {
  animation: bouncePop .27s;
}
@keyframes bouncePop {
  0% { transform: scale(1.04) rotate(-1.5deg); }
  50% { transform: scale(1.08) rotate(-3deg); }
  100% { transform: scale(1.04) rotate(-1.5deg); }
}

/* Delicate pulses for icon images */
img[alt*='icon'], svg[alt*='icon'] {
  animation: iconPulse 3.6s infinite alternate linear;
  will-change: filter, transform;
}
@keyframes iconPulse {
  0% { filter: drop-shadow(0 1px 0 var(--lime)); transform: scale(1) rotate(-1deg); }
  80% { filter: drop-shadow(0 4px 0 var(--pink)); transform: scale(1.12) rotate(2.5deg); }
  100% { filter: drop-shadow(0 3px 0 var(--lime)); transform: scale(1.07) rotate(-2deg); }
}

/* =========================================================
RESPONSIVE (MOBILE-FIRST)
========================================================= */
@media (max-width: 900px) {
  .content-wrapper,
  .footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    padding: 0;
  }
  .main-nav > a.btn-primary {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .container { padding: 0 9px; }
  section, .section {
    padding: 27px 0 18px 0;
    margin-bottom: 36px;
    border-radius: 22px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .content-wrapper { gap: 17px; }
  .testimonial-card,
  .card {
    padding: 19px 12px;
    border-radius: 16px;
    font-size: 1.01rem;
  }
  .section:before,.section:after { display: none; }
  .footer .content-wrapper { gap: 17px; }
  .card-container, .card-grid, .content-grid,
  .testimonial-card, .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  .feature-item {
    gap: 7px;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.07rem; }
  .container,
  .section { padding-left: 0; padding-right: 0; }
  .section,
  section { margin-bottom: 28px; }
}
