/* 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, 
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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #FFFDF8;
  color: #1A2340;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #243A52;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #97C1A9;
  outline-offset: 2px;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:800,700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* BRAND PALETTE as CSS VARIABLES */
:root {
  --primary: #243A52;
  --secondary: #E1CFA7;
  --accent: #97C1A9;
  --neutral-bg: #FFFDF8;
  --danger: #ff4872;
  --info: #68b4ff;
  --playful-orange: #FFBB38;
  --playful-green: #3DDC97;
  --playful-pink: #FF7CA9;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --border-radius: 18px;
  --shadow-card: 0 4px 16px 0 rgba(36, 58, 82, 0.14);
  --shadow-hover: 0 8px 28px 0 rgba(36, 58, 82, 0.18);
  --transition: all 0.22s cubic-bezier(.57,1.4,.77,1.03);
}

/* ----------- LAYOUT STRUCTURES ------------ */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.02);
}

.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;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 36px 20px 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius);
  position: relative;
  min-width: 240px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  border-left: 8px solid var(--accent);
  transition: box-shadow 0.19s, border-color 0.24s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--playful-orange);
}

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

ul, ol {
  padding-left: 24px;
  margin-top: 2px;
  margin-bottom: 16px;
  font-size: 1rem;
}
li {
  line-height: 1.7;
  margin-bottom: 10px;
}
ul li, ol li {
  position: relative;
}
ul li::marker {
  color: var(--accent);
}

/* -------- HEADER & NAVIGATION ---------- */
header {
  background: var(--primary);
  box-shadow: 0 3px 12px 0 rgba(36,58,82,0.11);
  position: sticky;
  top: 0;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 72px;
  justify-content: space-between;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.023em;
  padding: 9px 12px 7px 12px;
  border-radius: 12px;
  transition: background 0.22s, color 0.16s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

.cta-btn {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 21px;
  padding: 12px 28px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(151,193,169,0.13);
  cursor: pointer;
  letter-spacing:0.025em;
  margin-left: 16px;
  transition: background .18s, color .24s, transform .15s;
  outline: none;
  position: relative;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:active {
  background: var(--playful-orange);
  color: var(--primary);
  transform: scale(1.04) rotate(-2.5deg);
}
.cta-btn:focus {
  outline: 2px solid var(--playful-pink);
  outline-offset: 2px;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  display: none;
  margin-left: auto;
  line-height: 1;
  transition: background 0.18s;
  padding: 6px 12px;
  border-radius: 50%;
  z-index: 211;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--accent); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.33s cubic-bezier(.57,1.4,.77,1.03);
  transform: translateX(0);
  box-shadow: 0 8px 32px 0 rgba(36,58,82,0.15);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  left: 0;
  transform: translateX(-100vw);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  margin: 24px 24px 0 0;
  color: var(--primary);
  cursor: pointer;
  z-index: 301;
  border-radius: 50%;
  padding: 6px 10px;
  transition: background 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--accent);
  color: var(--playful-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 45px 34px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 0px 8px 0px;
  border-radius: 14px;
  width: 100%;
  transition: background 0.23s, color 0.19s;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--playful-pink);
}

/* --------- HERO HEADINGS --------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.05em;
}
h1 {
  font-size: 2.62rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: #243a52;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* FUN PLAYFUL FONTS AND ENERGETIC EFFECTS */
h1, h2 { color: var(--primary); }
h1 {
  font-family: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  letter-spacing:0.06em;
  animation: bounceIn 1.25s cubic-bezier(.57,1.4,.77,1.03) 0.11s 1;
}
@keyframes bounceIn {
  0%   { transform: scale(0.9); opacity: 0.5; }
  45%  { transform: scale(1.08); opacity: 1; }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1);   }
}

/* ---------- FEATURES & CARDS ----------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 12px;
}
.features-grid > div {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 34px 20px 28px 20px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow .18s, background .22s, transform .20s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  position: relative;
  /* Playful decorative dots left top */
}
.features-grid > div:hover {
  box-shadow: var(--shadow-hover);
  background: var(--playful-orange);
  transform: translateY(-3px) scale(1.025) rotate(-2deg);
  z-index: 2;
}
.features-grid > div img {
  height: 44px;
  width: auto;
  animation: wiggle 1.7s infinite ease-in-out alternate;
  /* playful effect */
}
@keyframes wiggle {
  0% { transform: rotate(-4deg) scale(1); }
  25% { transform: rotate(5deg) scale(1.07); }
  70% { transform: rotate(-2deg) scale(1.03); }
  100% { transform: rotate(3deg) scale(1.0); }
}
.features-grid h3 {
  color: var(--primary);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
}
.features-grid p {
  text-align: center;
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-body);
}

.expert-card {
  background: var(--playful-pink);
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  padding: 28px 18px;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  animation: fadeInCard 1.1s cubic-bezier(.57,1.4,.77,1.03);
  margin-bottom: 20px;
  min-width: 200px;
}
@keyframes fadeInCard {
  0% { opacity: 0; transform: translateY(60px); }
  60% { opacity: 1; transform: translateY(-8px); }
  100%{ opacity: 1; transform: translateY(0); }
}

/* ------------ FOOTER -------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 18px 0;
  margin-top: 66px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 9px;
  padding: 5px 12px;
  transition: background 0.14s, color 0.15s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  font-size: 1rem;
  margin-top: 4px;
  text-align: center;
}
.footer-info img {
  height: 33px;
  width: auto;
  border-radius: 34%;
}
.footer-info span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* ----------- BUTTONS ------------- */
button, .cta-btn {
  cursor: pointer;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  transition: var(--transition);
}
button:focus { outline: 2px solid var(--playful-pink); outline-offset: 3px; }

/* -------- COOKIES BANNER --------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  z-index: 1001;
  padding: 18px 24px;
  box-shadow: 0 -3px 22px rgba(36,58,82,0.09);
  animation: fadeInBanner 0.8s;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
@keyframes fadeInBanner {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 15px;
  margin-right: 0;
  margin-bottom: 0;
  border: none;
  box-shadow: 0 2px 9px 0 rgba(151,193,169,0.11);
  transition: background .17s, color .18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--playful-pink);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: var(--playful-green);
  color: var(--primary);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--info);
  color: var(--primary);
}

/* ----- COOKIE MODAL --------- */
.cookie-modal {
  position: fixed;
  z-index: 1015;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  min-width: 310px;
  max-width: 98vw;
  background: #fff;
  box-shadow: 0 12px 38px 0 rgba(36,58,82,0.16);
  padding: 44px 34px 36px 34px;
  border-radius: 28px;
  animation: fadeInModal 0.38s;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translate(-50%,32vh) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
  margin-right: 6px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal button {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 700;
  border-radius: 13px;
  padding: 9px 22px;
  border: none;
  transition: background .17s, color .18s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--playful-orange);
}
.cookie-modal .cookie-close-btn {
  position: absolute;
  right: 24px;
  top: 24px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  padding: 3px 7px;
  transition: background 0.16s;
}
.cookie-modal .cookie-close-btn:hover, .cookie-modal .cookie-close-btn:focus {
  background: var(--accent);
  color: var(--danger);
}

/* ------------- RESPONSIVE & ADAPTIVE -------------- */
@media (max-width: 1000px) {
  .features-grid {
    gap: 20px;
  }
  .footer-info {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper {
    gap: 15px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid, .testimonials {
    flex-direction: column !important;
    gap: 16px;
  }
  .testimonial-card, .features-grid > div, .expert-card {
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  h3 { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .logo img { height: 32px; }
  .cta-btn {
    font-size: 0.98rem;
    padding: 9px 12px;
    min-width: 110px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 9px 10px;
    font-size: 0.92rem;
  }
  .cookie-modal {
    padding: 24px 8px 22px 8px;
  }
}

/* ----------- ICONS SPACING ---------- */
ul li img, .footer-info img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  height: 1.1em;
  width: auto;
}

/* ----------- MISC ----------- */
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 12px; }
::-webkit-scrollbar-track { background: #ece5d8; }
::-webkit-scrollbar { width: 9px; }

::selection {
  background: var(--accent);
  color: var(--primary);
}

/* ----------- HOVER & FOCUS INTERACTIONS ---------- */
.features-grid > div,
.features-grid > div:hover,
.expert-card,
.card,
.card:hover {
  will-change: transform;
}

/* -------------- FORM FIELDS --------------- */
input, textarea, select {
  border: 1.5px solid var(--accent);
  border-radius: 11px;
  padding: 11px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
  background: #fff;
  transition: border .17s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--playful-pink);
  box-shadow: 0 2px 12px 0 rgba(255,124,169,0.13);
}

/* -------------- MISC ANIMATIONS --------------- */
.cta-btn::after {
  content: '';
  display: inline-block;
  margin-left: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--playful-green);
  animation: popDot 1.2s infinite alternate;
  vertical-align: middle;
}
@keyframes popDot {
  0% { transform: scale(1); background: var(--playful-orange); }
  45%{ transform: scale(1.27); background: var(--playful-green); }
  100%{ transform: scale(0.91); background: var(--playful-pink); }
}

/* -------------- UTILITIES -------------- */
.hidden { display: none !important; }

/* Stack order for overlays */
.mobile-menu, .cookie-modal { z-index: 1051; }

/* Prevent content overlap */
.section, .container, .content-wrapper, .features-grid, .card-container, .testimonials {
  margin-bottom: 0 !important;
}

/* -------------- PRINT ------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
