/* ========== 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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F4F7FB;
  color: #24456A;
  font-family: Arial, 'Montserrat', sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: #24456A;
  text-decoration: none;
  background: transparent;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #7BAF53;
}

/* ========== BRAND VARIABLES ========== */
:root {
  --cc-primary: #24456A;
  --cc-secondary: #7BAF53;
  --cc-accent: #F4F7FB;
  --cc-yellow: #FFCA3A;
  --cc-pink: #ff598e;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: Arial, 'Montserrat', sans-serif;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cc-primary);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 0 var(--cc-accent), 0 2px 8px rgba(36,69,106,0.02);
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
  margin-top: 12px;
}
h3 {
  font-size: 1.375rem;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, strong, ul, ol {
  font-family: var(--font-body);
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: #24456A;
}
strong {
  font-weight: 700;
}

/* Fun headline coloring for playful style */
h2, h3 {
  position: relative;
  display: inline-block;
}
h2:after {
  content: "";
  display: block;
  height: 6px;
  width: 60%;
  background: var(--cc-yellow);
  border-radius: 2.5px;
  margin-top: 3px;
  position: absolute;
  left: 0;
  z-index: 2;
  animation: underlinePop 1s cubic-bezier(.45,1.6,.41,.93);
}

@keyframes underlinePop {
  0% { width: 0; opacity: 0; }
  50% { width: 70%; opacity: 1; }
  100% { width: 60%; opacity: 1; }
}

/* Fun playful font for hero and CTA headings */
.hero h1, .hero h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--cc-primary);
  font-size: 2.7rem;
  background: linear-gradient(90deg, var(--cc-secondary), var(--cc-yellow), var(--cc-pink));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  text-shadow: none;
}

/* ========== SPACING UTILS ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(36,69,106,0.05);
}
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
ul li, ol li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}
ul li:before {
  content: "■";
  color: var(--cc-secondary);
  position: absolute;
  left: 0;
  font-size: 0.7em;
  top: 1px;
}
ol li:before {
  display: none;
}

/* ========== FLEXBOX LAYOUT CLASSES ========== */
.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;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(36,69,106,0.10);
  margin-bottom: 24px;
  min-width: 0;
  position: relative;
  transition: box-shadow 0.3s, transform 0.2s;
  border-left: 8px solid var(--cc-secondary);
  will-change: transform, box-shadow;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(123,175,83,0.10), 0 2px 8px rgba(244,87,251,0.04);
  transform: translateY(-3px) scale(1.02) rotate(-1deg);
  z-index: 4;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid for playful tiles */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--cc-accent);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(36,69,106,0.10);
  flex: 1 0 240px;
  min-width: 220px;
  max-width: 340px;
  padding: 28px 23px 20px 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.28s, transform 0.25s;
  will-change: transform, box-shadow;
  cursor: pointer;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 28px 0 rgba(123,175,83,0.11), 0 4px 10px rgba(255,202,58,0.098);
  transform: scale(1.03) rotate(1.5deg);
  z-index: 3;
}
.feature-grid img {
  width: 42px; height: 42px; display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 1.5px 0 var(--cc-yellow));
}
.feature-grid h3 {
  margin-bottom: 8px;
}

/* ========== BUTTONS & CTAs ========== */
.cta, button, .mobile-menu-toggle {
  font-family: var(--font-display);
  border-radius: 40px;
  border: none;
  padding: 12px 30px;
  min-width: 160px;
  font-size: 1.15rem;
  cursor: pointer;
  background: var(--cc-yellow);
  color: var(--cc-primary);
  font-weight: 700;
  outline: none;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(123,175,83,0.08);
  transition: background 0.18s cubic-bezier(.68,-0.55,.27,1.55), transform .2s cubic-bezier(.68,-0.55,.27,1.55);
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.cta.primary, .cta.primary:focus {
  background: var(--cc-secondary);
  color: #fff;
}
.cta:hover, button:hover, .mobile-menu-toggle:hover,
.cta:focus, button:focus, .mobile-menu-toggle:focus {
  background: var(--cc-pink);
  color: var(--cc-primary);
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 8px 22px rgba(255,202,58,0.13), 0 2px 8px rgba(36,69,106,0.09);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--cc-yellow);
  color: var(--cc-primary);
}
/* Animated shine on CTA button */
.cta:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg,rgba(255,255,255,.03) 0,rgba(255,255,255,.19) 54%,rgba(255,255,255,0.22) 100%);
  z-index: 1;
  transition: left 0.8s cubic-bezier(.77,0,.18,1);
}
.cta:hover:after {
  left: 140%;
}

/* ========== HEADER/NAVIGATION ========== */
header {
  background: #fff;
  border-bottom: 4px solid var(--cc-secondary);
  box-shadow: 0 2px 10px rgba(36,69,106,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 80px;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.13rem;
  color: var(--cc-primary);
  padding: 7px 14px;
  border-radius: 20px;
  transition: background 0.18s, color 0.16s, transform 0.12s;
}
nav a:hover, nav a.active {
  background: var(--cc-yellow);
  color: var(--cc-pink);
  transform: rotate(-1deg) scale(1.06);
}

/* ========== HERO SECTIONS ========== */
.hero {
  background: linear-gradient(105deg, var(--cc-accent) 65%, var(--cc-yellow) 100%);
  padding: 60px 0 34px;
  margin-bottom: 60px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 12px 40px rgba(244,87,251,0.04);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 620px;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 28px;
  color: var(--cc-primary);
  line-height: 1.35;
  font-family: var(--font-body);
}

/* ========== TABLE STYLES ========== */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(36,69,106,0.04);
  margin: 20px 0 30px 0;
  overflow: hidden;
}
thead tr {
  background: var(--cc-secondary);
  color: #fff;
}
th, td {
  padding: 14px 14px;
  text-align: left;
  font-size: 1.01rem;
}
th {
  font-family: var(--font-display);
  font-weight: 600;
}
tr:nth-child(even) td {
  background: #F4F7FB;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 64px;
  background: #fff;
  padding: 38px 0 12px 0;
  border-top: 7px solid var(--cc-secondary);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--cc-primary);
  padding: 5px 12px;
  border-radius: 16px;
  background: var(--cc-accent);
  transition: background 0.18s, color 0.13s;
}
footer nav a:hover {
  color: #fff;
  background: var(--cc-pink);
}
.footer-contact {
  font-size: 1rem;
  color: #24456A;
}
.footer-contact p {
  margin-bottom: 7px;
}

/* ========== INTERACTIVE ELEMENTS ========== */
summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--cc-secondary);
  padding: 6px 0;
  font-family: var(--font-display);
}
details[open] summary {
  color: var(--cc-primary);
}
details {
  background: var(--cc-accent);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px 14px 10px 18px;
  transition: box-shadow 0.18s;
  box-shadow: 0 2px 5px rgba(123,175,83,.060);
}
details[open] {
  box-shadow: 0 3px 14px rgba(36,69,106,0.08);
}

/* ========== IMAGES & ICONS ========== */
img {
  max-width: 100%;
  border-radius: 8px;
  vertical-align: middle;
  height: auto;
}
.text-section img, .feature-grid img, .testimonial-card img {
  border-radius: 50%;
  box-shadow: 0 1.5px 4px rgba(123,175,83,0.055);
}

/* ========== SPACING & RESPONSIVE UTILITIES ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid > div {
    min-width: 48vw;
    max-width: 90vw;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding-left: 11px; padding-right: 11px;
  }
  .hero {
    padding: 34px 0 20px 0;
    border-radius: 0 0 26px 26px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 96vw;
    max-width: 98vw;
    flex: 1 0 96vw;
    padding: 18px 13px 12px 13px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 0;
  }
  nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border-radius: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  .footer-contact {
    font-size: 0.99rem;
    text-align: left;
  }
  footer .container {
    gap: 12px;
  }
}

@media (max-width: 528px) {
  .hero h1, .hero h2, h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .feature-grid > div {
    font-size: .99rem;
    padding: 13px 5px 7px 8px;
  }
}


/* ========== MOBILE BURGER MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 18px;
  top: 17px;
  z-index: 101;
  width: 54px; height: 54px;
  font-size: 2.16rem;
  color: var(--cc-primary);
  background: var(--cc-yellow);
  border: none;
  border-radius: 40px;
  box-shadow: 0 3px 10px rgba(244,87,251,0.10);
  transition: background 0.17s, color 0.14s, transform 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--cc-secondary);
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 10px 60px 0 rgba(36,69,106,.33);
  z-index: 200;
  transform: translateX(-105vw);
  transition: transform 0.39s cubic-bezier(.51,1.62,.36,.93);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--cc-pink);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: 100px;
  position: absolute;
  right: 22px; top: 17px;
  padding: 4px 16px;
  z-index: 201;
  cursor: pointer;
  transition: background 0.17s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--cc-yellow);
  color: var(--cc-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 54px 0 0 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--cc-primary);
  padding: 10px 0;
  border-radius: 14px;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--cc-yellow);
  color: var(--cc-pink);
  padding-left: 10px;
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fffcee;
  color: #24456A;
  border-top: 5px solid var(--cc-secondary);
  box-shadow: 0 -2px 24px 0 rgba(36,69,106,0.09);
  z-index: 900;
  padding: 19px 24px 15px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1.07rem;
  animation: cookieIn 0.7s cubic-bezier(.45,1.56,.41,.93);
}
@keyframes cookieIn {
  0% { transform: translateY(100%); opacity: .3; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner strong {
  font-weight: bold;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-left: 16px;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  background: var(--cc-secondary);
  color: #fff;
  font-weight: 700;
  transition: background 0.16s, color 0.08s;
  cursor: pointer;
  outline: none;
}
.cookie-banner .cookie-btn.secondary {
  background: var(--cc-yellow);
  color: var(--cc-primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--cc-pink);
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--cc-primary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 19px 8px;
    font-size: 0.98rem;
    gap: 7px;
  }
  .cookie-buttons {
    flex-direction: row;
    gap: 7px;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ========== COOKIE PREFERENCES MODAL ========== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 52vh;
  transform: translate(-50%, -50%) scale(0.96);
  background: #fff;
  min-width: 330px;
  max-width: 94vw;
  padding: 36px 28px 22px 28px;
  box-shadow: 0 8px 60px 0 rgba(36,69,106,0.26);
  border-radius: 22px;
  z-index: 950;
  transition: opacity 0.24s, transform 0.27s cubic-bezier(.81,1.66,.49,1.04);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  margin: 13px 0;
  gap: 8px;
}
.cookie-modal .cookie-switch {
  width: 44px;
  height: 22px;
  background: var(--cc-accent);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.17s;
  border: 1.2px solid #e0e7f2;
}
.cookie-modal .cookie-switch input[type=checkbox] {
  display: none;
}
.cookie-modal .cookie-switch span {
  display: block;
  background: var(--cc-yellow);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  position: absolute;
  left: 0; top: 0;
  transition: left 0.19s;
  box-shadow: 0 1.5px 4px rgba(123,175,83,0.06);
}
.cookie-modal .cookie-switch input[type=checkbox]:checked + span {
  left: 22px;
  background: var(--cc-secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  padding: 8px 16px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  background: var(--cc-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.18s, color 0.11s;
}
.cookie-modal .cookie-btn.secondary {
  background: var(--cc-yellow);
  color: var(--cc-primary);
}
.cookie-modal .cookie-btn.close {
  background: var(--cc-pink);
  color: #fff;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: var(--cc-primary);
  color: #fff;
}
@media (max-width: 560px) {
  .cookie-modal {
    padding: 23px 6vw 13px 6vw;
    min-width: 80vw;
  }
}

/* ========== ACCESSIBILITY/FOCUS ========== */
a:focus, button:focus, .cta:focus, input:focus, select:focus, details:focus {
  outline: 2.5px solid var(--cc-pink);
  outline-offset: 0.5px;
  box-shadow: 0 2px 10px 0 rgba(255,202,58,0.11);
}

/* ========== MISC/PLAYFUL MICRO-ANIMATIONS ========== */
.feature-grid > div:before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  top: -10px; right: 22px;
  border-radius: 14px 16px 12px 14px;
  background: var(--cc-pink);
  opacity: 0.13;
  z-index: 1;
  pointer-events: none;
  animation: tileGlow 2.6s infinite cubic-bezier(.7,0,.24,1.01);
}
@keyframes tileGlow {
  0% {width: 0; height: 0; opacity: 0.14;}
  25% {width: 30px; height: 16px; opacity: 0.22;}
  34% {width: 80px; height: 33px; opacity: .19;}
  85% {width: 12px; height: 7px; opacity: 0.04;}
  100% {width: 0; height: 0; opacity: 0.12;}
}

/* animated float for icons in feature-grid */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) scale(1); }
  30% { transform: translateY(-5px) scale(1.05); }
  60% { transform: translateY(4px) scale(1); }
}
.feature-grid img {
  animation: floatIcon 3.5s infinite cubic-bezier(0.45,0.89,0.36,1.29);
}

/* ========== FORMS (if any in future) ========== */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1.3px solid #e2e8f5;
  background: var(--cc-accent);
  color: var(--cc-primary);
  width: 100%;
  margin-bottom: 15px;
  transition: border-color 0.17s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cc-secondary);
}
label {
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

/* ========== SPECIAL: ENSURE MINIMUM CARD SPACING ========== */
.card, .feature-grid > div, .testimonial-card {
  margin-bottom: 20px !important;
}
.section {
  margin-bottom: 60px !important;
  padding-top: 40px !important;
}

/* ========== PRINT STYLES ========== */
@media print {
  body, .container, .section, .feature-grid, .feature-grid > div, .card, .testimonial-card, header, footer {
    all: unset;
    background: #fff;
    color: #000;
    font-size: 1.05rem;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }
}
