/* === CSS RESET & BASE === */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F5F7FA;
  color: #13547A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}
a {
  color: #13547A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dotted #F9A825;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* === BRAND COLORS as CSS variables === */
:root {
  --color-primary: #13547A;
  --color-primary-alt: #114168;
  --color-secondary: #F5F7FA;
  --color-white: #FFFFFF;
  --color-accent: #F9A825;
  --color-accent2: #FFEB3B;
  --color-light: #F5F7FA;
  --color-grey: #e5eaf0;
  --color-shadow: rgba(19, 84, 122, 0.12);
}

/* === TYPOGRAPHY (playful_dynamic) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
 }
h1 {
  font-size: 2.625rem; /* 42px */
  margin-bottom: 18px;
  text-shadow: 2px 4px 0 #FFEB3B22, 1px 1px 0 #e5eaf0;
  animation: poptext 0.8s cubic-bezier(.68,-0.55,.27,1.55) 1;
}
@keyframes poptext {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 12px;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 10px;
}
h4 { font-size: 1.125rem; margin-bottom: 8px; }

p, ul, ol, li, label {
  color: var(--color-primary-alt);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
strong, b {
  color: var(--color-accent);
  font-weight: 700;
}
/* --- playful font additions (for headings/buttons) --- */
.cta-btn, button, .mobile-menu-toggle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/*=== CONTAINER & LAYOUT ===*/
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  max-width: 750px;
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--color-white);
  box-shadow: 0 3px 24px -8px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 16;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  justify-content: space-between;
}
.logo img {
  width: 150px;
  height: auto;
  transition: transform 0.2s;
}
.logo:hover img {
  transform: rotate(-6deg) scale(1.07);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 18px;
  position: relative;
  transition: background-color 0.2s, color 0.21s, transform 0.12s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent2);
  color: var(--color-primary);
  transform: scale(1.08) rotate(-2deg);
}
.cta-btn {
  padding: 12px 30px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border: none;
  border-radius: 32px;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 3px 24px -12px var(--color-accent);
  margin-left: 18px;
  transition: background 0.19s, color 0.16s, box-shadow 0.2s, transform 0.16s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:after {
  content: '';
  position: absolute;
  top: -6px;
  left: -14px;
  right: -14px;
  bottom: -6px;
  border-radius: 36px;
  z-index: -1;
  background: var(--color-accent2);
  opacity: 0;
  transition: opacity 0.25s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent2) !important;
  box-shadow: 0 7px 32px -8px var(--color-accent2);
  transform: scale(1.06) rotate(-1.5deg);
}
.cta-btn:hover:after, .cta-btn:focus:after {
  opacity: 1;
}

/* Hamburger button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  box-shadow: 0 2px 14px -6px var(--color-shadow);
  margin-left: 8px;
  z-index: 32;
  border: 2px solid var(--color-primary);
  transition: background 0.18s, color 0.14s, transform 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-white);
  color: var(--color-accent);
  transform: scale(1.08);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-secondary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.36,1.46,.64,1);
  box-shadow: 2px 0 27px rgba(19,84,122,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 28px;
  padding-bottom: 48px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 1.9rem;
  margin: 8px 24px 16px 0;
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 16px -7px var(--color-shadow);
  transition: background 0.13s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent2);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.275rem;
  color: var(--color-primary-alt);
  font-weight: 700;
  background: var(--color-accent2);
  border-radius: 23px;
  padding: 12px 22px;
  margin-bottom: 8px;
  display: block;
  box-shadow: 0 2px 12px -7px var(--color-shadow);
  transition: color 0.14s, background 0.18s, transform 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.06);
}

@media (min-width: 950px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu { display: none !important; }
}
@media (max-width: 949px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
}

/* === SECTION SPACING + LAYOUT === */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 32px;
  box-shadow: 0 2px 36px -12px var(--color-shadow);
  position: relative;
  transition: box-shadow 0.17s;
}
section:last-child {
  margin-bottom: 32px;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 2px 28px -10px var(--color-shadow);
  margin-bottom: 20px;
  padding: 32px;
  position: relative;
  transition: box-shadow 0.14s, transform 0.13s;
  overflow: visible;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 38px -5px var(--color-accent2);
  transform: scale(1.034) rotate(-2deg);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Testimonial Card --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent2);
  border-radius: 22px;
  padding: 20px 26px 22px 20px;
  box-shadow: 0 2px 18px -8px var(--color-primary);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 30px -7px var(--color-primary);
  transform: scale(1.021) rotate(0deg);
}
.testimonial-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  padding: 6px;
  box-shadow: 0 1px 6px -2px var(--color-shadow);
}
.testimonial-card p {
  color: #263238;
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: var(--color-primary);
}

/* --- Features List --- */
.feature-item, .content-wrapper ul > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  background: none;
  color: var(--color-primary-alt);
}
.content-wrapper ul > li {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.content-wrapper ul > li img {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 4px #F9A82577);
  background: var(--color-white);
  border-radius: 50%;
  padding: 5px;
}

/* --- Text section (can be solo or with ul) --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.text-section ul { margin: 0 0 4px 0; }

/* --- Buttons --- */
button, .cta-btn {
  transition: background 0.17s, color 0.15s, box-shadow 0.19s, transform 0.12s;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0 0 0 0;
  margin: 0;
  
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 42px 16px 22px;
}
.footer-logo img {
  width: 60px;
  height: 60px;
  margin-right: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 155px;
}
.footer-nav a {
  color: var(--color-accent2);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.19s;
  border-radius: 12px;
  padding: 2px 4px;
}
.footer-nav a:hover {
  color: var(--color-accent);
  background: var(--color-white);
}
.footer-contact p, .footer-contact img {
  color: #F0F0F0;
  font-size: 1rem;
  display: flex;
  align-items: center;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 9px;
}
.copyright {
  width: 100%;
  flex-basis: 100%;
  text-align: center;
  font-size: 0.88rem;
  margin-top: 28px;
  color: var(--color-accent2);
  letter-spacing: 0.04em;
}
@media (max-width: 992px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-logo img {
    margin-right: 0; margin-bottom: 12px;
  }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.395rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .content-wrapper, .card {
    padding: 0;
    max-width: 100%;
  }
  .section, section {
    padding: 18px 2vw; margin-bottom: 38px;
  }
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 11px;
    padding: 15px 10px 13px 10px;
  }
  .footer-contact p {
    font-size: 0.99rem;
  }
}

/* --- Forms & Inputs (minimal for contact) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 2px solid var(--color-primary);
  border-radius: 14px;
  background: var(--color-white);
  transition: border-color 0.18s;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-accent);
  color: var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 1200;
  padding: 18px 20px 16px 32px;
  box-shadow: 0 -7px 32px -12px var(--color-shadow);
  animation: cookieSlideIn 0.9s cubic-bezier(.59,-0.05,.5,1.4) 1;
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
.cookie-banner p {
  margin: 0; color: var(--color-primary);
  font-size: 1.03rem; font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 21px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 2px;
  transition: background 0.18s, color 0.12s, transform 0.14s;
  cursor: pointer;
}
.cookie-accept {
  background: var(--color-primary);
  color: var(--color-accent2);
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--color-accent2);
  color: var(--color-primary);
}
.cookie-reject {
  background: var(--color-accent2);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: var(--color-primary);
  color: var(--color-accent2);
}
.cookie-settings {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-accent2);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--color-accent2);
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 3vw 10px 5vw;
  }
}
/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(19, 84, 122, 0.55);
  z-index: 1400;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: cookieModalPop 0.29s cubic-bezier(.29,1,.58,1.28) 1;
}
@keyframes cookieModalPop {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -9px 32px -8px var(--color-shadow);
  max-width: 430px;
  width: 98%;
  padding: 38px 29px 26px 29px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalUp 0.4s cubic-bezier(.38,1.18,.62,1) 1;
}
@keyframes modalUp {
  0% { transform: translateY(200px); opacity: 0; }
  80%{ transform: translateY(-14px); opacity: 1;}
  100% { transform: translateY(0); }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-category {
  margin-bottom: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  background: var(--color-grey);
  border-radius: 15px;
  position: relative;
  margin-left: auto;
  margin-right: 6px;
  cursor: pointer;
}
.cookie-toggle input {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  margin: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 20px;
  height: 20px;
  background: var(--color-primary-alt);
  border-radius: 50%;
  transition: left 0.18s, background 0.16s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 23px;
  background: var(--color-accent);
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 12px;
}

/* === MICRO-ANIMATIONS === */
a, button, .cta-btn {
  transition: color 0.2s, background 0.16s, box-shadow 0.18s, transform 0.14s;
}
.card, .testimonial-card, .section, section {
  transition: box-shadow 0.19s, transform 0.17s;
}
.card:hover, .testimonial-card:hover, .card:focus, .testimonial-card:focus {
  transform: scale(1.016) rotate(-1deg);
  box-shadow: 0 7px 36px -10px var(--color-accent2);
}

/* === PLAYFUL DECORATIVE ELEMENTS === */
.section:before {
  content: '';
  display: block;
  width: 76px; height: 21px;
  background: var(--color-accent2);
  border-radius: 22px 24px 11px 16px;
  position: absolute;
  top: -11px; left: 18px;
  z-index: 0;
  filter: blur(0.7px);
  opacity: 0.17;
}
.section:nth-child(even):after {
  content: '';
  display: block;
  width: 32px; height: 32px;
  background: var(--color-accent);
  border-radius: 58% 50% 59% 38%;
  position: absolute;
  bottom: -10px; right: 24px;
  z-index: 0;
  filter: blur(0.5px);
  opacity: 0.09;
}

/* === MISC === */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-white);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent2);
  border-radius: 5px;
}
/* Animating icons in "playful_dynamic" style */
.content-wrapper ul > li img, .feature-item img {
  animation: iconBounce 2.7s ease-in-out infinite;
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0);
  }
  30% { transform: translateY(-4px) scale(1.06) rotate(-5deg); }
  60% { transform: translateY(3px) scale(0.97) rotate(6deg); } 
}

/* === VISUAL HIERARCHY & SPACING === */
.section, section, .card, .testimonial-card {
  margin-bottom: 32px;
}
.card, .testimonial-card, .content-wrapper, .text-section, .feature-item, .card-container, .card-grid {
  margin-bottom: 20px;
}
.card-container, .card-grid, .content-grid {
  gap: 24px;
}
.text-image-section, .feature-item {
  gap: 15px;
}

/* --- Visually hidden class for a11y only --- */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* -----------------------------------------------------------
   PLAYFUL ANIMATIONS & MICRO-INTERACTIONS - enhance energy
----------------------------------------------------------- */
@keyframes playfulShake {
  0% { transform: rotate(-0.4deg); }
  10% { transform: rotate(1deg) scale(1.03); }
  20% { transform: rotate(-2deg) scale(0.97); }
  30% { transform: rotate(1.2deg) scale(1.04); }
  40% { transform: rotate(-0.9deg) scale(1);
  } 100% { transform: rotate(0); }
}
.cta-btn:hover, .cta-btn:focus {
  animation: playfulShake 0.27s;
}
.card:hover, .testimonial-card:hover, .card:focus, .testimonial-card:focus {
  animation: playfulShake 0.23s;
}

/* ----------------------------------------------------
   END OF STYLE.CSS for Thryo Spark "playful_dynamic" UI
---------------------------------------------------- */
