/* ========================================================== */
/*  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, 
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 { scroll-behavior: smooth; }
body {
  line-height: 1.5;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #FFF9F3;
  color: #222;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border: 0; display: block; }
strong { font-weight: 700; }
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border-radius: 7px;
  box-sizing: border-box;
}
button { cursor: pointer; border: none; background: none; }

/* ========================================================== */
/*  CUSTOM FONTS (import via Google Fonts if web)             */
/* ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@700&display=swap');

:root {
  /* GlitterSurge brand colors */
  --primary: #2C3340;
  --secondary: #FFD966;
  --accent: #C786B4;
  --bg-light: #FFF9F3;
  --text-main: #222;
  --text-muted: #666;
  --success: #23BC71;
  --warn: #FFAA64;
  --error: #EC6363;
  /* Playful dynamic palette */
  --fun-pink: #FC6DC8;
  --fun-yellow: #FFD966;
  --fun-blue: #67D2FF;
  --fun-lime: #A7F665;
  --fun-purple: #A18EFF;
  --card-shadow: 0 6px 24px rgba(199, 134, 180, 0.10), 0 2px 8px rgba(44,51,64,0.07);
  --card-radius: 22px;
  --btn-radius: 17px;
  --shadow-light: 0 2px 8px rgba(44,51,64,0.08);
}

/* ========================================================== */
/*  CONTAINERS, SECTIONS & LAYOUT                             */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1112px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* Cards & Grids */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  padding: 28px 28px 22px 28px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.24s, transform 0.18s;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(252, 109, 200, 0.18), 0 2px 12px rgba(44,51,64,0.15);
  transform: translateY(-6px) scale(1.02) 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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: var(--fun-yellow);
  box-shadow: var(--shadow-light);
  border-radius: 18px;
  margin-bottom: 20px;
  color: #2C3340;
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 620px;
  font-size: 1.09rem;
  transition: box-shadow 0.19s, transform 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(199, 134, 180, 0.11), 0 2px 12px rgba(44,51,64,0.18);
  transform: translateY(-4px) scale(1.018) rotate(0.5deg);
  background: var(--fun-lime);
}

.testimonial-author {
  font-size: 0.98em;
  font-weight: 700;
  color: var(--primary);
  margin-left: 18px;
}

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

.feature-grid, .feature-list, .filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0 0 0;
}
.feature-grid li, .feature-list li {
  background: var(--fun-yellow);
  color: var(--primary);
  padding: 18px 22px;
  border-radius: 17px;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(252, 109, 200, 0.13);
  transition: background 0.21s, transform 0.18s;
  min-width: 200px;
  flex: 1 1 235px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.feature-grid li img,
.feature-list li img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 12px;
}
.feature-grid li:hover, .feature-list li:hover {
  background: var(--fun-pink);
  color: #fff;
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
}

.filter-nav li a {
  display: block;
  font-weight: bold;
  padding: 7px 18px;
  background: var(--fun-blue);
  color: var(--primary);
  border-radius: 13px;
  margin-bottom: 0;
  transition: all 0.2s;
}
.filter-nav li a:hover {
  background: var(--accent);
  color: #fff;
}

/* Misc text sections (privacy, cookie, about) */
.text-section, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}

/* =============================== */
/*              TYPOGRAPHY         */
/* =============================== */
h1, .display, .main-title {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: -1.2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg,var(--accent),var(--fun-pink),var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.8px;
}
h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1px;
  letter-spacing: -0.2px;
}
.subtitle {
  font-size: 1.25rem;
  color: var(--fun-pink);
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
  font-style: italic;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, var(--fun-pink), var(--fun-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
p, li, ul, ol {
  font-size: 1.08rem;
  color: var(--text-main);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
a {
  color: var(--fun-pink);
  font-weight: 700;
  background: none;
  transition: color 0.18s, text-decoration 0.13s;
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline wavy var(--accent) 2px;
}
label {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* =============================== */
/*            BUTTONS              */
/* =============================== */
.btn-primary, .btn-secondary, .mobile-nav a:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--btn-radius);
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 30px;
  margin-top: 4px;
  transition: background 0.21s, color 0.21s, transform 0.18s, box-shadow 0.19s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(199, 134, 180, 0.13);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--fun-pink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(252, 109, 200, 0.11);
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(44,51,64,0.14);
}
button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px dashed var(--fun-purple);
}

/* =============================== */
/*            FORMS                */
/* =============================== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 410px;
  margin-top: 14px;
  background: #fff;
  padding: 29px 18px 18px 18px;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}
input[type="email"], input[type="text"], input[type="password"] {
  border: 2px solid var(--fun-blue);
  font-size: 1.1rem;
  padding: 11px 16px;
  border-radius: 9px;
  background: #FFF8FB;
  transition: border 0.18s;
}
input:focus {
  border: 2.5px solid var(--accent);
  background: #fcf5fd;
}

/* =============================== */
/*         HEADER + MAIN NAV        */
/* =============================== */
header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 4px 20px 0 rgba(44,51,64,0.08);
}
.main-nav {
  padding: 0 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  position: relative;
}
.main-nav ul {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 16px;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  color: var(--secondary);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 13px;
  background: none;
  transition: background 0.16s, color 0.16s, transform 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04);
}
.main-nav .btn-primary {
  margin-left: 6px;
  background: var(--fun-pink);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(252, 109, 200, 0.16);
  padding: 9px 19px;
  font-size: 1rem;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 0;
}

/* Hamburger (mobile menu) */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--fun-pink);
  color: #fff;
  padding: 9px 15px;
  border-radius: 14px;
  border: none;
  margin-left: 18px;
  box-shadow: 0 1.5px 8px rgba(252, 109, 200, 0.17);
  transition: background 0.21s, color 0.21s, box-shadow 0.16s;
  z-index: 120;
}
.mobile-menu-toggle:active {
  background: var(--accent);
}

.main-nav img {
  height: 42px;
  object-fit: contain;
}

/* =============================== */
/*        MOBILE MENU              */
/* =============================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: rgba(44,51,64, 0.95);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.75,0,0.3,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: var(--secondary);
  background: none;
  border: none;
  padding: 22px 23px 14px 13px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 1202;
  transition: color 0.14s;
}
.mobile-menu-close:hover { color: var(--accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  margin-top: 4px;
  padding: 0 38px 0 38px;
  justify-content: flex-start;
}
.mobile-nav a {
  color: var(--secondary);
  background: none;
  font-size: 1.21rem;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 12px 0;
  margin-bottom: -4px;
  border-radius: 0;
  transition: color 0.17s;
  letter-spacing: 0.3px;
  border-bottom: 1.5px dotted var(--fun-blue);
}
.mobile-nav a:last-child {
  margin: 22px 0 0 0;
  border-radius: var(--btn-radius);
  background: var(--fun-pink);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(252, 109, 200, 0.16);
  padding: 11px 16px;
  text-align: center;
  font-size: 1.11rem;
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--fun-pink);
  background: none;
}
.mobile-nav a:last-child:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* =============================== */
/*           FOOTER                */
/* =============================== */
footer {
  background: var(--primary);
  padding: 0 0 0 0;
  color: #fff;
  font-size: 1rem;
}
footer .container {
  padding: 38px 20px 30px 20px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  width: 50px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Merriweather', serif;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  transition: color 0.18s;
  margin-bottom: 2px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-links {
  color: var(--secondary);
  font-size: 0.97rem;
  margin-bottom: 5px;
}
.footer-links a {
  color: var(--fun-blue);
  margin: 0 4px;
  font-weight: 600;
  text-decoration: underline dotted var(--accent) 1.5px;
  transition: color 0.19s;
}
.footer-links a:hover {
  color: var(--fun-pink);
}
.footer-contact {
  margin-top: 4px;
  color: #fff;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact img {
  width: 20px;
  display: inline-block;
  margin-right: 7px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  transition: transform 0.18s;
}
.footer-social a:hover img {
  transform: scale(1.13) rotate(-8deg);
}

/* =============================== */
/*         TESTIMONIAL SLIDER      */
/* =============================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
  justify-content: flex-start;
}
.testimonial-slider .testimonial-card {
  min-width: 260px;
  background: var(--fun-lime);
  color: var(--primary);
  transition: box-shadow 0.19s, background 0.19s, transform 0.17s;
}
.testimonial-slider .testimonial-card:hover {
  background: var(--secondary);
  box-shadow: 0 8px 26px rgba(39, 168, 105, 0.07);
  transform: scale(1.025) rotate(-2deg);
}

/* =============================== */
/*             ACCESSIBILITY       */
/* =============================== */
@media (max-width: 1060px) {
  .container {
    max-width: 96vw;
  }
  .footer-flex { flex-wrap: wrap; gap: 22px; }
}
@media (max-width: 850px) {
  .footer-flex { flex-direction: column; gap: 18px; }
}
@media (max-width: 768px) {
  .section { padding: 26px 3vw; margin-bottom: 40px; }
  .container { padding: 0 6vw; }
  .main-nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .feature-list, .filter-nav, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 11px; }
  .feature-grid li, .feature-list li {
    flex: 1 1 100%;
    min-width: 0;
    text-align: left;
  }
  .testimonial-card { max-width: 100vw; }
}
@media (max-width: 430px) {
  h1, .display, .main-title { font-size: 1.45rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.07rem; }
  .container { padding: 0 2vw; }
  .btn-primary, .btn-secondary, .mobile-nav a:last-child { font-size: 0.96rem; padding: 9px 12px; }
}

/* =============================== */
/*   PLAYFUL ANIMATIONS/EFFECTS    */
/* =============================== */
@keyframes bounce-in {
  from { opacity:0; transform: scale(0.85) translateY(40px); }
  to { opacity:1; transform: scale(1) translateY(0); }
}
.card, .testimonial-card, .feature-grid li, .feature-list li {
  animation: bounce-in 0.63s cubic-bezier(.6,-0.28,.74,1.55);
}
.btn-primary, .btn-secondary, .mobile-menu-toggle {
  animation: bounce-in 0.38s cubic-bezier(.6,-0.28,.74,1.55);
}

@keyframes slide-in-bottom {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
  10%, 90% { transform: translateX(-1.5px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.btn-primary:active { animation: shake 0.12s; }

/* =============================== */
/*         COOKIE CONSENT BANNER   */
/* =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  background: #fff6fb;
  box-shadow: 0 -2px 18px 0 rgba(252, 109, 200, 0.14);
  padding: 22px 5vw 20px 5vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 1rem;
  animation: slide-in-bottom 0.48s cubic-bezier(.5,.36,.25,1.29);
}
.cookie-banner p {
  color: var(--primary);
  max-width: 520px;
  font-size: 1.05rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 24px;
  border-radius: 14px;
  border: none;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  margin-right: 2px;
  margin-top: 4px;
  transition: background 0.17s, color 0.18s;
  box-shadow: 0 1px 8px 0 rgba(252,109,200,0.1);
}
.cookie-banner .cookie-accept {
  background: var(--fun-pink);
  color: #fff;
}
.cookie-banner .cookie-accept:hover {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: var(--fun-blue);
  color: var(--primary);
}
.cookie-banner .cookie-reject:hover {
  background: var(--error);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--fun-lime);
  color: var(--primary);
}
.cookie-banner .cookie-settings:hover { background: var(--secondary); }

@media (max-width: 630px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 3vw 14px 4vw;
  }
  .cookie-banner .cookie-actions {
    gap: 10px;
    margin-top: 2px;
  }
}

/* COOKIES MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  z-index: 2500;
  background: rgba(44,51,64,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.19s cubic-bezier(.22,.7,.36,1.19);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity:1; } }
.cookie-modal-content {
  background: #fff;
  color: var(--primary);
  padding: 32px 25px 25px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 33px 0 rgba(44,51,64,0.11);
  min-width: 260px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: bounce-in 0.33s cubic-bezier(.66,-0.18,.66,1.25);
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 16px;
  background: none;
  border: none;
  color: var(--error);
  font-size: 2rem;
  cursor: pointer;
  padding: 2px 7px 3px 7px;
}
.cookie-modal-close:hover { color: var(--primary); }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 23px;
  height: 23px;
}
.cookie-category label {
  font-size: 1.09rem;
  color: var(--fun-pink);
}
.cookie-category .category-essential {
  color: var(--success);
  font-weight: 700;
}

/* =============================== */
/*         MISC ELEMENTS           */
/* =============================== */
::-webkit-scrollbar { width: 10px; background: #FAE9F6; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
::selection { background: var(--fun-yellow); color: var(--primary); }

hr { border: 0; height: 1.5px; background: var(--fun-lime); margin: 22px 0 16px 0; }

/* Utility classes */
.d-flex {
  display: flex !important;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-20 {
  gap: 20px;
}

/* Fix for position of absolutely positioned elements in cards (for illustration only, NOT content) */
.card .decoration {
  position: absolute;
  top: -19px; right: -19px;
  width: 38px; height: 38px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.8;
}

/* Prevent overlapping and maintain spacing */
.card, .testimonial-card, .feature-grid li, .feature-list li {
  margin-right: 0;
  margin-bottom: 20px;
}

/* Ensure minimum margins for cards/sections */
.section + .section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px !important;
}

/* Hide mobile menu by default on desktop */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .main-nav ul {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
