/* --- RESET & NORMALIZATION --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body, button, input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #FAF3DD;
  color: #22364C;
  line-height: 1.6;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; border: 0; }
a { color: #22364C; text-decoration: none; transition: color 0.15s; }
a:hover, a:focus { color: #84A98C; text-decoration: underline; }
ul { list-style: disc inside; margin-top: 12px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #22364C;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; color: #4CC9F0; /* playful sky blue */ margin-bottom: 16px; }
h2 { font-size: 2rem; color: #E85D04; /* energetic orange */ margin-bottom: 14px; }
h3 { font-size: 1.4rem; color: #22364C; }
.subheadline { font-size: 1.1rem; color: #6D3AD6; margin-bottom: 24px; font-family: 'Merriweather', serif; }
strong { color: #333; font-weight: bold; }

/* --- CUSTOM PALETTE (Expanding Playfulness) --- */
:root {
  --color-primary: #22364C;
  --color-secondary: #84A98C;
  --color-accent: #FAF3DD;
  --color-orange: #E85D04;
  --color-yellow: #FFD166;
  --color-blue: #4CC9F0;
  --color-lilac: #6D3AD6;
  --color-pink: #FF5CAE;
  --color-card-bg: #FFFFFF;
  --color-footer-bg: #22364C;
  --color-footer-text: #FAF3DD;
}

/* --- SPACING CONTAINERS & FLEX LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: 24px;
  box-shadow: 0 7px 24px 0 rgba(76, 201, 240, 0.09), 0 1.5px 7px 0 rgba(112, 27, 187, 0.07);
  position: relative;
  transition: box-shadow 0.2s, transform 0.22s;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-width: 360px;
}
.card:hover {
  transform: translateY(-6px) scale(1.027);
  box-shadow: 0 12px 32px 0 rgba(232, 93, 4, 0.11), 0 3px 12px 0 rgba(33, 54, 76, 0.08);
}
.card-content{ display:flex; flex-direction:column; justify-content:center; gap:12px; }
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #FFE5EC;
  border-radius: 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(232, 93, 4, 0.09), 0 0.5px 2px 0 rgba(33, 54, 76, 0.08);
  border-left: 6px solid var(--color-lilac);
  font-size: 1.08rem;
  color: #1B263B;
}
.testimonial-card span { color: #6D3AD6; font-weight: bold; font-size: 1rem; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section { margin-bottom: 16px; }

/* --- BUTTONS & CTA --- */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  background: var(--color-blue);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 32px;
  border: none;
  border-radius: 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(77,30,213,0.09);
  cursor: pointer;
  transition: background 0.16s, transform 0.16s, box-shadow 0.22s;
  letter-spacing: 0.01em;
  text-decoration: none;
  gap: 8px;
}
.cta.primary { background: linear-gradient(90deg, #4CC9F0 70%, #E85D04 100%); color: #22364C; }
.cta:hover, .cta:focus {
  background: var(--color-lilac);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(255, 92, 174, 0.10);
}
.cta:active {
  background: var(--color-pink);
  color:#fff;
}

/* --- NAVIGATION --- */
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #fff;
  min-height: 72px;
  box-shadow: 0 2px 12px rgba(76,201,240,0.05);
}
header .logo img {
  height: 54px;
  width: auto;
  margin-right: 6px;
  margin-top:4px;
}
nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  padding: 8px 20px;
  border-radius: 12px;
  font-family: 'Merriweather', serif;
  font-size: 1.04rem;
  color: var(--color-primary);
  transition: background 0.12s, color 0.12s;
  font-weight: 600;
}
nav ul li a.cta.primary {
  background: var(--color-pink);
  color: #fff;
  font-weight: bold;
  margin-left: 8px;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--color-yellow);
  color: #22364C;
}
nav ul li a.cta.primary:hover, nav ul li a.cta.primary:focus {
  background: var(--color-blue);
  color:#fff;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-pink);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  z-index: 130;
  margin-left: auto;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-orange);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FED9EF;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.5,1.7,.7,1);
  z-index: 200;
  box-shadow: 0 3px 40px #FF5CAE33;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #E85D04;
  cursor: pointer;
  margin: 24px 24px 0 0;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus{
  color:#22364C;
}
.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-center;
  justify-content: flex-start;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  color: #22364C;
  border-radius: 12px;
  background: none;
  padding: 14px 30px;
  margin: 0 8px;
  transition: background 0.12s, color 0.12s;
  text-align: left;
  min-width: 210px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-lilac);
  color: #fff;
}

@media (max-width: 1150px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  nav ul {
    gap: 10px;
  }
}
@media (max-width: 820px) {
  nav ul { gap: 4px; }
}
@media (max-width: 768px) {
  header nav ul { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .container { max-width: 98vw; }
}
@media (max-width: 600px) {
  .container { padding: 0 6px; }
  .section { padding: 28px 4px; }
}

/* --- PLAYFUL ANIMATIONS --- */
.card, .testimonial-card {
  animation: cardPopIn 0.8s cubic-bezier(.23,1.28,.31,.99) both;
}
@keyframes cardPopIn {
  0%   { opacity: 0; transform: scale(0.98) translateY(14px); }
  70%  { opacity: 1; transform: scale(1.03) translateY(-8px); }
  100% { opacity: 1; transform: none; }
}
.cta, .cta.primary {
  animation: buttonGrow 0.7s cubic-bezier(.73,1.73,.26,.72) both;
}
@keyframes buttonGrow {
  0% { opacity:0; transform:scale(0.97); }
  80%{ opacity:1; transform:scale(1.04); }
  100%{ opacity:1; transform:none; }
}

/* --- SECTIONS & CONTENT --- */
section {
  background: #FAF3DD;
  border-radius: 42px 42px 32px 32px / 24px 42px 36px 32px;
  box-shadow: 0 6px 32px 0 rgba(76,201,240,0.13);
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, section { padding: 26px 4px; border-radius: 24px; }
  .content-wrapper { gap: 16px; }
}

/* --- FLEXIRECTION FOR RESPONSIVENESS --- */
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
    align-items: stretch;
  }
}
.text-image-section img { border-radius: 18px; box-shadow: 0 4px 18px 0 rgba(76,201,240,0.09); }

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 36px 0 12px 0;
  margin-top: 80px;
}
footer .container { padding: 0 12px; }
footer .content-wrapper {
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: var(--color-footer-text);
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 2px 9px;
  border-radius: 8px;
}
footer nav a:hover { color: #FFD166; text-decoration: underline; }
footer .logo img { height: 48px; margin-bottom: 2px; }
footer p { color: var(--color-footer-text); font-size: 0.95rem; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 500;
  background: linear-gradient(90deg, #FFD166 43%, #84A98C 100%);
  color: #22364C;
  box-shadow: 0 -1px 14px #4CC9F066;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 14px 12px;
  gap: 24px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  animation: bannerSlideUp 0.7s cubic-bezier(.3,1.6,.3,1) both;
}
@keyframes bannerSlideUp {
  0% { transform:translateY(100%); opacity:0; }
  65%{ transform:translateY(-10px); }
  100%{ transform:none; opacity:1; }
}
.cookie-consent-banner p { margin:0 8px 0 0; flex: 1 1 240px; }
.cookie-consent-banner .cookie-action {
  display: flex;
  gap: 8px;
}
.cookie-consent-banner button {
  padding: 10px 22px;
  border-radius: 14px;
  border: none;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  margin-left: 6px;
  cursor: pointer;
  background: var(--color-lilac);
  color: #fff;
  font-weight: bold;
  transition: background 0.18s, color 0.15s;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--color-orange);
  color: #fff;
}
.cookie-consent-banner .settings-btn {
  background: var(--color-pink);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset:0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45,45,45, 0.43);
  animation: fadeIn 0.15s linear both;
}
@keyframes fadeIn {
  0%{ opacity:0; } 100%{ opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #22364C;
  border-radius: 22px;
  padding: 30px 28px 24px 28px;
  max-width: 370px;
  width: 95vw;
  box-shadow: 0 24px 42px #4CC9F022;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalPopIn 0.26s cubic-bezier(.43,1.3,.43,1) both;
}
@keyframes modalPopIn {
  0%{ transform: translateY(40px) scale(.96); opacity: 0; }
  100%{ transform: none; opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.6rem;
  color: var(--color-pink);
  margin-bottom: 10px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-modal .category label {
  font-size: 1.02rem;
  flex: 1;
}
.cookie-modal .switch {
  width: 40px;
  height: 23px;
  position: relative;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0; height: 0; position: absolute;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #E0E1DD;
  border-radius: 22px;
  transition: .18s;
}
.cookie-modal .switch input:checked + .slider {
  background: #4CC9F0;
}
.cookie-modal .slider:before {
  position: absolute; content: "";
  height: 17px; width: 17px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .18s;
  box-shadow: 0 2px 6px #E85D0440;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: 10px;
  padding: 7px 17px;
  font-size:1rem;
  background: var(--color-blue);
}
.cookie-modal .cookie-modal-actions .secondary {
  background: var(--color-lilac);
}

@media (max-width: 540px){
  .cookie-consent-banner { flex-direction: column; align-items:flex-start; gap:10px; padding:12px 2px 10px 2px; }
}

/* --- TYPOGRAPHY (Playful Details) --- */
h1,h2,h3 { font-family: 'Merriweather', serif; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }
@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
}

/* --- FUN FONTS for HEADINGS & BUTTONS --- */
h1, h2, h3, .cta, nav ul li a, .mobile-nav a {
  font-family: 'Merriweather', serif;
  letter-spacing: 0.03em;
}

/* --- MISCELLANEOUS --- */
::-webkit-input-placeholder { color: #888; opacity:.88; }
::-moz-placeholder { color: #888; opacity:.88; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; opacity:.88; }
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px dashed #4CC9F0;
  outline-offset: 2px;
}

/* --- GENERAL RESPONSIVE MEDIAQUERIES --- */
@media (max-width: 540px) {
  .testimonial-card, .card { padding: 15px 8px; font-size:1rem; }
  section, .section { padding: 10px 2px; margin-bottom: 34px; border-radius: 13px; }
}

/* --- VISUAL HIERARCHY (GAP/MARGINS) --- */
section + section { margin-top: 18px; }
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item { margin-top: 20px; }

/* --- BRAND BADGE FOR ENERGY (PURELY PLAYFUL) --- */
.brand-badge {
  background: linear-gradient(90deg, #FFD166 60%, #FF5CAE 100%);
  color: #22364C;
  font-family: 'Merriweather', serif;
  border-radius: 14px;
  padding: 2px 18px;
  display: inline-flex;
  align-items:center;
  font-weight: bold;
  font-size: 0.99rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px #FFD16633;
  letter-spacing:.018em;
  animation: pulseBounce 1.8s infinite alternate; 
}
@keyframes pulseBounce {
  from { transform: scale(1); box-shadow:0 0 0 #FF5CAE22; }
  to   { transform: scale(1.07); box-shadow:0 2px 18px #FF5CAE44; }
}

/* --- VISUAL DECORATIONS --- */
.card::before, .testimonial-card::before {
  content: "";
  display: block;
  position: absolute;
  top: 10px; right: 22px;
  width: 31px; height: 31px;
  background: url('../assets/sparkle.svg') no-repeat center center / contain;
  opacity: 0.10;
  pointer-events: none;
}

/* --- UTILITY CLASSES --- */
.mt-1{ margin-top:12px; }
.mt-2{ margin-top:24px; }
.mb-1{ margin-bottom:12px; }
.mb-2{ margin-bottom:24px; }
.mr-1{ margin-right:12px; }
.ml-1{ margin-left:12px; }

/* Hide decorative pseudo on very small screens */
@media (max-width:480px){
  .card::before, .testimonial-card::before { display:none; }
}

/* --- END --- */
