/* 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, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4F0EC;
  color: #2E4852;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #2E4852;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E4C07D;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  padding: 0;
  outline: none;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* =========================================
   BRAND FONTS & GENERAL TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #2E4852;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, li, strong {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2E4852;
}
p {
  margin-bottom: 1em;
}
strong {
  font-weight: bold;
  color: #2E4852;
}

/* Playful & fun font integration for accent text */
.playful, .cta-primary, .mobile-menu-toggle, .mobile-menu-close, .footer-menu a, .footer-brand {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* Animated playful title highlight */
@keyframes playful-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-6px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-4px); }
}

/* =========================================
   COLOR VARIABLES (WITH FALLBACKS)
   ========================================= */
:root {
  --clr-primary: #2E4852;
  --clr-secondary: #E4C07D;
  --clr-accent: #F4F0EC;
  --clr-fun-pink: #FA57A6;
  --clr-fun-green: #3DDC97;
  --clr-fun-cyan: #65D6CE;
  --clr-fun-orange: #FFB340;
  --clr-white: #fff;
  --radius-main: 16px;
  --radius-card: 20px;
  --shadow-main: 0 6px 24px rgba(46,72,82,0.08), 0 1.5px 5px rgba(244,207,44,0.10);
  --shadow-card: 0 4px 16px rgba(46,72,82,0.09), 0 0.5px 2px rgba(250,87,166,0.10);
  --transition: 0.2s cubic-bezier(.68,-0.55,.27,1.55);
}

/* =========================================
   STRUCTURE & CONTAINER
   ========================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto 32px auto;
  background: var(--clr-white);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
  padding: 32px 20px;
  position: relative;
}

.text-section {
  background: var(--clr-accent);
  border: 2.5px dashed var(--clr-fun-green);
  padding: 32px 20px;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 8px rgba(46,72,82,0.06);
}

/* =========================================
   SECTIONS & FLEX LAYOUTS
   ========================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container, .feature-grid, .icons-grid, .solutions-grid, .benefits-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  margin-bottom: 20px;
}
.card, .testimonial-card, .content-card {
  position: relative;
  background: var(--clr-accent);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  transition: box-shadow .2s, transform .22s;
}
.card:hover, .testimonial-card:hover, .content-card:hover {
  box-shadow: 0 6px 32px rgba(46,72,82,0.18), 0 0.5px 4px rgba(234,192,125,0.12);
  transform: translateY(-3px) scale(1.025) rotate(-1deg);
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffbe8;
  color: #2E4852;
  border-left: 6px solid var(--clr-fun-orange);
  box-shadow: 0 2px 6px rgba(250,87,166,0.08);
  margin-bottom: 24px;
  padding: 20px 32px 20px 28px;
  min-width: 220px;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--clr-primary);
  margin-top: 6px;
}

/* FOR ICON GRID VARIATIONS */
.icons-grid > div, .benefits-grid > div, .solutions-grid > div, .feature-grid > div {
  flex: 1 1 220px;
  background: var(--clr-accent);
  color: var(--clr-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  text-align: left;
  padding: 24px 16px 20px 16px;
  min-width: 200px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .2s, transform .18s;
}
.icons-grid > div:hover, .benefits-grid > div:hover, .solutions-grid > div:hover {
  box-shadow: 0 4px 22px rgba(61, 220,151, 0.14);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid > div img, .icons-grid > div img {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

/* ===================================================
   NAVIGATION & HEADER
   =================================================== */
header {
  background: var(--clr-primary);
  color: var(--clr-accent);
  position: relative;
  min-height: 70px;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px 16px;
  gap: 0;
}
header img {
  max-height: 54px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
nav a {
  color: var(--clr-accent);
  font-size: 1.04rem;
  padding: 6px 12px 6px 4px;
  border-radius: 10px;
  position: relative;
  transition: color .15s, background .15s;
}
nav a:hover, nav a:focus {
  color: var(--clr-fun-pink);
  background: rgba(228,192,125,0.08);
}

/* CTA BUTTONS */
.cta-primary {
  display: inline-block;
  color: var(--clr-white);
  background: var(--clr-fun-pink);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 32px;
  border-radius: 999px;
  font-size: 1.15rem;
  box-shadow: 0 2px 12px rgba(250,87,166,0.10);
  transition: background var(--transition), color var(--transition), transform .15s;
  border: 0;
  margin-top: 18px;
  cursor: pointer;
  animation: playful-bounce 1.6s infinite alternate;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  transform: scale(1.055) rotate(-2deg);
}

/* Responsive Nav: Hide on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--clr-fun-green);
  color: var(--clr-primary);
  border-radius: 50%;
  border: 0;
  font-size: 2rem;
  padding: 3px 15px 1px 15px;
  cursor: pointer;
  margin-left: 16px;
  box-shadow: 0 2px 6px rgba(61,220,151,0.11);
  transition: background .15s, color .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--clr-secondary);
  color: var(--clr-fun-pink);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform .33s cubic-bezier(.7,0,.2,1), opacity .25s;
  box-shadow: 0 0 0 5000px rgba(46,72,82,0.24);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 18px;
  background: var(--clr-fun-pink);
  color: var(--clr-white);
  font-size: 2.2rem;
  border-radius: 50%;
  padding: 4px 18px 0 18px;
  box-shadow: 0 2px 7px rgba(250,87,166,0.10);
  border: 0;
  cursor: pointer;
  transition: background .16s, color .15s;
  z-index: 10002;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 80px 24px 0 28px;
  width: calc(100vw - 56px);
  gap: 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--clr-primary);
  padding: 12px 0;
  border-radius: 7px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-accent);
  color: var(--clr-fun-pink);
}
@media (max-width: 991px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========================================
   SPACING/ALIGNMENT SECTIONS
   ======================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #2E4852;
  margin-bottom: 0;
}
.contact-info img {
  width: 32px;
  height: 32px;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
footer {
  background: var(--clr-primary);
  color: var(--clr-accent);
  padding: 32px 0 18px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 11px;
}
.footer-menu a {
  color: var(--clr-accent);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .16s, background .12s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
}
.footer-brand img {
  width: 68px;
  height: auto;
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--clr-accent);
}
.footer-contact a {
  color: var(--clr-secondary);
  font-weight: 600;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe8;
  color: #2E4852;
  box-shadow: 0 -2px 15px rgba(61,220,151,0.10);
  padding: 22px 24px;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: transform .23s, opacity .2s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 22px;
  margin: 0 0 0 6px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1.5px 7px rgba(61,220,151,0.07);
  transition: background .11s, color .14s, transform .13s;
}
.cookie-banner .accept {
  background: var(--clr-fun-green);
  color: var(--clr-primary);
}
.cookie-banner .accept:hover {
  background: var(--clr-primary);
  color: var(--clr-fun-green);
}
.cookie-banner .reject {
  background: var(--clr-fun-pink);
  color: #fff;
}
.cookie-banner .reject:hover {
  background: var(--clr-primary);
  color: var(--clr-fun-pink);
}
.cookie-banner .settings {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.cookie-banner .settings:hover {
  background: var(--clr-primary);
  color: var(--clr-secondary);
}

/* Cookie Modal Preferences */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 20000;
  background: #fff;
  width: 92vw;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 12px 60px 10px rgba(46,72,82,0.15);
  padding: 36px 24px 28px 24px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity .21s, transform .21s;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal.hide {
  opacity: 0;
  transform: translate(-50%,-45%) scale(.93);
  pointer-events: none;
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: var(--clr-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
}
.cookie-modal .close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 2rem;
  background: var(--clr-fun-pink);
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex;
  align-items: center; justify-content: center;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin: 10px 0 6px;
  gap: 12px;
}
.cookie-modal .category-label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--clr-primary);
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal .category-switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .category-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--clr-fun-cyan);
  border-radius: 16px;
  transition: background .17s;
}
.cookie-modal .slider:before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(46,72,82,0.10);
  transition: transform .18s;
}
.cookie-modal .category-switch input:checked + .slider {
  background: var(--clr-fun-green);
}
.cookie-modal .category-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .essential {
  background: #eee;
  color: #888;
  font-style: italic;
  border-radius: 8px;
  text-align: center;
  padding: 4px 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 14px;
  border: 0;
  background: var(--clr-fun-green);
  color: var(--clr-primary);
  transition: background .16s, color .12s;
}
.cookie-modal .modal-actions button.secondary {
  background: var(--clr-fun-pink);
  color: #fff;
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}

/* ========================================
   MICROTINTERACTION/ANIMATIONS
   ======================================== */
.card, .testimonial-card, .content-card, .icons-grid > div, .feature-grid > div, .solutions-grid > div, .benefits-grid > div {
  will-change: transform, box-shadow;
  transition: box-shadow 0.17s cubic-bezier(.7,.2,.19,1), transform 0.17s cubic-bezier(.7,.2,.19,1);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--clr-fun-pink);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 18px 8px 18px 8px;
  }
  .card, .testimonial-card, .content-card, .icons-grid > div, .feature-grid > div, .solutions-grid > div, .benefits-grid > div {
    padding: 13px 10px 13px 11px;
  }
  .footer-menu, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  section {
    padding: 18px 4vw;
  }
  .container {
    padding: 0 4vw;
  }
  .content-wrapper {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(46,72,82,0.07);
  }
  .card, .testimonial-card, .content-card, .icons-grid > div, .feature-grid > div, .solutions-grid > div, .benefits-grid > div {
    min-width: 90vw;
    margin-bottom: 20px;
  }
  .content-grid, .card-container, .feature-grid, .icons-grid, .solutions-grid, .benefits-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact-info {
    flex-direction: column;
    gap: 7px;
  }
  .footer-menu {
    gap: 10px;
  }
  .footer-brand {
    margin-bottom: 10px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.20rem; }
  nav a, .footer-menu a, .mobile-nav a {
    font-size: 1rem;
    padding: 7px 7px;
  }
  .mobile-nav {
    margin-top: 65px;
    gap: 18px;
  }
  .testimonial-card, .content-card, .card {
    padding: 9px 7px 9px 11px;
  }
}

/* ========================================
   PLAYFUL VISUAL ELEMENTS (DECORATIVE)
   ======================================== */
/* Small fun color dots as decorative: */
.card::before, .testimonial-card::before, .footer-brand::before {
  content: '';
  position: absolute;
  top: -18px; left: 24px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clr-fun-cyan);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(101,214,206,.17);
  animation: playful-bounce 1.9s cubic-bezier(.42,0,.27,1.19) infinite alternate;
  pointer-events: none;
  opacity: .62;
}
.testimonial-card::before {
  left: 12px;
  width: 16px;
  height: 16px;
  background: var(--clr-fun-orange);
  animation-delay: .9s;
}
.footer-brand::before {
  top: -10px; left: 42px;
  width: 12px; height: 12px;
  background: var(--clr-fun-pink);
  animation-delay: .45s;
}

/* Bouncing emoji accent for playful look */
h1::after {
  content: ' 🎈';
  font-size: 1.14em;
  vertical-align: middle;
  display: inline-block;
  animation: playful-bounce 1.7s cubic-bezier(.42,0,.27,1.19) infinite;
  pointer-events: none;
  margin-left: 2px;
}

/* ========== PRINT OVERRIDE ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, .container, .content-wrapper { box-shadow: none !important; background: #fff !important; color: #000 !important; }
}
