/* ========================
  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,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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F7F9;
  color: #232E38;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
a:focus-visible {
  outline: 2px dashed #FFD452;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  color: #232E38;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
p, li, span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #232E38;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: #28BECB;
}

/* ===============
   COLOR SYSTEM
=================*/
:root {
  --brand-primary: #232E38;
  --brand-secondary: #89C7B6;
  --brand-accent: #F6F7F9;
  --brand-fun1: #FDE15A;  /* playful pop yellow */
  --brand-fun2: #FFA5B4;  /* playful pink */
  --brand-fun3: #6BC3F7;  /* playful blue */
  --brand-fun4: #AFE19C;  /* playful green */
  --brand-btn: #28BECB;   /* energetic button turquoise */
  --brand-btn-alt: #FF7B54;
  --brand-btn-hover: #FFD452;
}

/* ================== NAVIGATION ======================= */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0px 4px 18px 0 rgba(146,179,217,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8vw 16px 8vw;
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header > a > img {
  height: 44px;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  padding: 10px 8px;
  border-radius: 8px;
  position: relative;
  transition: color .2s, background .2s, box-shadow .15s;
}
nav a:not(.btn-primary):hover {
  background: var(--brand-fun3);
  color: #fff;
  box-shadow: 0 2px 10px 0 rgba(107,195,247,0.07);
}
nav .btn-primary {
  margin-left: 14px;
}

/* Hide nav and show burger on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--brand-btn);
}

/* =================== MOBILE MENU ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.265,1.55);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 22px 0 0;
  font-size: 2.3rem;
  color: var(--brand-btn-alt);
  background: var(--brand-fun2);
  border-radius: 8px;
  padding: 2px 12px 2px 12px;
  transition: background .2s;
}
.mobile-menu-close:hover {
  background: var(--brand-btn-hover);
  color: var(--brand-primary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 36px 32px;
}
.mobile-nav a {
  font-size: 1.21rem;
  padding: 14px 0;
  width: 100%;
  border-radius: 8px;
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover {
  background: var(--brand-fun3);
  color: #fff;
}

/* =================== BUTTONS ==================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  border-radius: 32px;
  border: none;
  outline: none;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 0;
  text-align: center;
  transition: background 0.22s, color .18s, box-shadow .17s, transform .14s;
  box-shadow: 0 2px 18px 0 rgba(40,190,203,0.07);
}
.btn-primary {
  background: var(--brand-btn);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-btn-hover);
  color: var(--brand-primary);
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 30px 0 rgba(252,210,87,0.21);
}
.btn-secondary {
  background: var(--brand-fun2);
  color: var(--brand-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--brand-fun4);
  color: var(--brand-primary);
  transform: translateY(-1px) scale(1.035);
}

/* ===================== CONTAINERS & LAYOUTS ========================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* == Section mechanics as per requirements == */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 30px 0 rgba(146,179,217,0.07);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(40px);}
  100% {opacity: 1; transform: none;}
}

/* ===================== FLEXBOX CARD CONTAINERS ===================== */
.card-container, .product-grid, .testimonial-row, .features-list, .topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.product-grid, .testimonial-row, .features-list {
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
}
.topic-tags {
  gap: 14px;
}

.card, .product-card, .testimonial-card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: var(--brand-accent);
  box-shadow: 0 4px 22px 0 rgba(251,224,130,0.07);
  padding: 28px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-width: 245px;
  max-width: 320px;
  transition: box-shadow .17s, transform .13s;
}
.product-card:hover, .card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 32px -6px rgba(251,224,130,0.13);
  transform: translateY(-8px) scale(1.02);
}

/* Adjusted Testimonial Styles for Contrast */
.testimonial-card {
  background: #fffbea;
  border: 2.5px solid var(--brand-fun1);
  color: #232E38;
  min-width: 260px;
  font-size: 1.03rem;
  position: relative;
}
.testimonial-row {
  gap: 24px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.testimonial-info {
  display: flex;
  gap: 10px;
  font-size: 1rem;
  align-items: center;
  margin-top: 8px;
  color: #232E38;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-list > div {
  background: var(--brand-fun4);
  border-radius: 16px;
  padding: 16px 12px;
  min-width: 180px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .18s, transform .13s;
}
.features-list > div:hover {
  box-shadow: 0 6px 18px 0 rgba(107,195,247,0.14);
  transform: scale(1.05);
}

/* ===================== SPACING ===================== */
ul, ol {
  padding-left: 26px;
  margin-bottom: 0;
  margin-top: 0;
  line-height: 1.8;
  gap: 12px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  list-style-type: disc;
  position: relative;
}
ul li img, ol li img {
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

/* == Newsletter, tags, etc == */
.topic-tags span {
  font-size: 0.98rem;
  background: var(--brand-fun3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 12px 18px 10px 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===================== TYPOGRAPHY ===================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

body, p, li, a, button, span, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #232E38;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--brand-primary);
}
section h1, section h2, section h3 { letter-spacing: -0.01em; }

/* ===================== ANIMATED ELEMENTS ===================== */
a, .btn-primary, .btn-secondary, .product-card, .card, .testimonial-card, .mobile-menu, .cookie-consent, .cookie-modal {
  transition: all .23s cubic-bezier(.53,.21,.29,.93);
}
.product-card:hover h3, .card:hover h3 {
  color: var(--brand-fun2);
}

/* Add energetic fun bounce for cta button */
.btn-primary {
  animation: btnDance 3s infinite ease-in-out alternate;
}
@keyframes btnDance {
  0% {box-shadow: 0 2px 22px 0 rgba(40,190,203,.10);}
  11% {box-shadow: 0 4px 32px 0 #FFD45233;}
  22% {transform: scale(1.06);}
  33% {transform: scale(1.03);}
  44% {box-shadow: 0 1px 10px 0 #FFD45222;}
  100% {box-shadow: 0 2px 22px 0 rgba(40,190,203,.10);  transform: scale(1);}
}

/* =================== CTA BANNER ===================== */
section:last-of-type {
  background: var(--brand-fun1);
  color: var(--brand-primary);
  box-shadow: 0 4px 18px 0 #FFD45233;
  border: 2.5px solid var(--brand-btn);
}
section:last-of-type .btn-primary {
  background: var(--brand-btn-alt);
}

/* =================== PRODUCT PRICES ================= */
.product-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-fun2);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 6px 0 2px 0;
}

/* ========== FOOTER ========== */
footer {
  background: #232E38;
  color: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 60px;
  padding: 48px 8vw 32px 8vw;
  display: flex;
  flex-direction: column;
  gap: 38px;
  box-shadow: 0 -6px 32px 0 rgba(50,46,56,0.08);
}
.footer-nav, .footer-contact, .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav {
  gap: 26px;
}
.footer-nav a {
  color: var(--brand-fun3);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color .12s, background .13s;
  padding: 6px 12px;
  border-radius: 9px;
}
.footer-nav a:hover {
  color: var(--brand-fun2);
  background: #374b5a;
}
.footer-contact img {
  height: 34px;
  margin-right: 13px;
}
.footer-contact span {
  font-family: 'Roboto', Arial, sans-serif;
  color: #ffe;
  margin-right: 14px;
}
.footer-social img {
  margin-right: 7px;
  height: 22px;
  border-radius: 5px;
  background: #fff;
  transition: transform .18s;
}
.footer-social img:hover {
  transform: scale(1.18) rotate(-8deg);
}
.footer-social span {
  font-size: 1rem;
  color: var(--brand-fun1);
  margin-left: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}

/* ====== COOKIE CONSENT BANNER + MODAL ======== */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbea;
  color: #232E38;
  z-index: 3100;
  box-shadow: 0 -6px 24px 0 #FFD45211;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 22px 6vw 20px 6vw;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  animation: fadeInUp 0.7s cubic-bezier(.23,1,.32,1) both;
}
.cookie-consent .cookie-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  margin-left: 18px;
}
.cookie-consent button {
  border-radius: 16px;
  padding: 10px 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 4px;
  transition: background .18s, color .18s, transform .13s;
}
.cookie-consent .cookie-accept {
  background: var(--brand-btn);
  color: #fff;
}
.cookie-consent .cookie-reject {
  background: var(--brand-fun2);
  color: var(--brand-primary);
}
.cookie-consent .cookie-settings {
  background: #fff;
  border: 2px solid var(--brand-fun3);
  color: var(--brand-primary);
}
.cookie-consent button:hover {
  background: var(--brand-btn-hover);
  color: var(--brand-primary);
  transform: scale(1.03);
}
/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0; top: 0;
  z-index: 3200;
  background: rgba(35,46,56,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.6s cubic-bezier(.33,1.05,.36,1) both;
}
.cookie-modal-inner {
  background: #fffbea;
  color: #232E38;
  border-radius: 20px;
  padding: 32px 32px 26px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 40px 0 #FFD45233;
}
.cookie-modal-inner h3 {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-inner .categories {
  margin: 12px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.cookie-modal-inner .category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-inner .category label {
  font-weight: 600;
  line-height: 1;
}
.cookie-modal-inner .modal-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-inner button {
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  background: var(--brand-btn);
  color: #fff;
  transition: background .18s, color .14s;
}
.cookie-modal-inner button.close-modal {
  background: var(--brand-fun2);
  color: var(--brand-primary);
}

/* ============ ACCESSIBILITY FOCUS STYLES ============ */
.btn-primary:focus, .btn-secondary:focus, .cookie-consent button:focus, .cookie-modal-inner button:focus {
  outline: 2.5px solid var(--brand-fun1);
  outline-offset: 3px;
}

/* ===================== RESPONSIVE DESIGN ========================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  header, footer {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}
@media (max-width: 900px) {
  .footer-contact span,
  .footer-social span {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header {
    flex-direction: row;
    gap: 14px;
    padding: 16px 4vw 16px 4vw;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  section {
    margin-bottom: 34px;
    padding: 26px 5px;
    border-radius: 14px;
  }
  .content-wrapper {
    padding: 0;
    gap: 13px;
  }
  .testimonial-row, .product-grid, .features-list, .card-container {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .card, .product-card, .testimonial-card {
    min-width: 90vw;
    max-width: 99vw;
    padding: 17px 12px 16px 14px;
    border-radius: 14px;
  }
  .features-list > div {
    min-width: 80vw;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 1.06rem;
  }
  .topic-tags {
    gap: 7px;
  }
  .topic-tags span {
    padding: 7px 9px;
    font-size: 0.95rem;
    border-radius: 9px 10px 7px 10px;
  }
  footer {
    padding: 30px 10px 19px 10px;
    gap: 16px;
    border-radius: 17px 17px 0 0;
  }
  .footer-nav, .footer-contact, .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px 10px 18px 14px;
    font-size: 0.96rem;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  header {
    min-height: 58px;
    padding: 12px 2vw;
  }
  section {
    margin-bottom: 20px;
    padding: 10px 2px 10px 2px;
  }
  .cookie-modal-inner {
    min-width: 90vw;
    padding: 14px 6vw 14px 6vw;
    border-radius: 10px;
  }
  footer {
    padding: 11px 5px 10px 5px;
    gap: 8px;
    border-radius: 10px 10px 0 0;
  }
}

/* =============== FLEX CONTENT LAYOUT UTILS =============== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =============== PAGE-SPECIFIC HIGHLIGHTS =============== */
section:nth-of-type(1) {
  background: linear-gradient(93deg, #FDE15A 0%, #FFB2F9 65%, #F6F7F9 100%);
  color: #232E38;
  border: 2.5px solid var(--brand-btn);
  animation: fadeInHero .9s cubic-bezier(.23,1,.32,1) both;
}
@keyframes fadeInHero {
  0% {opacity: 0; transform: scale(1.09) translateY(-50px);}
  100% {opacity: 1; transform: none;}
}
section:nth-of-type(1) h1, section:nth-of-type(1) h2 {
  color: var(--brand-primary);
  text-shadow: 0 3px 9px #fff9;
}

/* =============== SCROLLBAR =============== */
body {
  scrollbar-color: #FFD452 #fff;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 9px;
  background: #fffbea;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-fun1);
  border-radius: 10px;
}

/* =================== MICRO-INTERACTIONS ================== */
.card::after, .product-card::after {
  content: '';
  display: block;
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-fun2);
  opacity: .13;
  z-index: 0;
  pointer-events: none;
  transition: transform .18s;
  animation: bubblePop .75s infinite alternate cubic-bezier(.47,.1,.56,1);
}
@keyframes bubblePop {
  0% {transform: scale(1) translateY(0);}
  100% {transform: scale(1.12) translateY(-7px);}
}
/* playful colored dots for testimonial cards */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-fun4);
  opacity: .30;
  z-index: 1;
  animation: dotBounce .99s infinite alternate cubic-bezier(.39,1.5,.36,.94);
}
@keyframes dotBounce {
  0% {transform: scale(1.1) translateY(0);}
  100% {transform: scale(1) translateY(6px);}
}

/* ================== PREVENT OVERLAPPING & GAPS ==================== */
section, .card, .product-card, .testimonial-card {
  margin-bottom: 20px !important;
}
.card-container, .product-grid, .testimonial-row {
  gap: 24px !important;
}
.content-grid {
  gap: 20px !important;
}
.text-image-section {
  gap: 30px !important;
}

/* =================== PRINT (for fallback) =================== */
@media print {
  header, footer, .cookie-consent, .cookie-modal {display: none !important;}
  section, .container {margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: none !important;}
  body {background: #fff !important;}
}
