/* ---------------------------------------------------
   CSS RESET & NORMALIZE (MOBILE-FIRST BASELINE)       
-----------------------------------------------------*/
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #D9A441; outline-offset: 2px; }

/* ---------------------------
   BRAND VARIABLES (fallbacks)
-----------------------------*/
:root {
  --color-primary: #22406D;
  --color-secondary: #F5F7FA;
  --color-accent: #D9A441;
  --color-action: #F37055;
  --color-bg: #FFF;
  --color-card: #F2F5FF;
  --color-notice: #FFEFB3;
  --color-success: #7FD67F;
  --text-main: #171B22;
  --text-light: #fff;
}

/* ---------------------------
   TYPOGRAPHY - playful/dynamic
-----------------------------*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-main);
  background: var(--color-secondary);
  font-size: 16px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.1rem;
  color: var(--color-action);
  font-weight: 700;
  margin-bottom: 10px;
}
p {
  font-size: 16px;
  margin-bottom: 20px;
}
strong { font-weight: 700; }

/* Playful dynamic accents for headings */
h1, h2, h3 {
  position: relative;
}
h1:after, h2:after {
  content: '';
  display: block;
  height: 6px;
  width: 48px;
  background: var(--color-accent);
  border-radius: 3px;
  margin-top: 10px;
  animation: swoosh-in 1s cubic-bezier(0.7,0.2,0.25,1.3) 1;
}
@keyframes swoosh-in {
  0% {width: 0; opacity: 0;}
  80% {opacity:0.7;}
  100% {width:48px; opacity:1;}
}
/* Remove after for some small page h2s */
.content-wrapper > h2:after {display: block;}

/* ---------------------------
   BASIC LAYOUT STRUCTURE 
-----------------------------*/
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

section {
  background: var(--color-secondary);
  border-radius: 24px;
  box-shadow: 0 3px 12px rgba(34,64,109,0.05), 0 1.5px 4px rgba(223,156,74,0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.25s;
}
section:hover {
  box-shadow: 0 8px 32px rgba(34,64,109,0.13), 0 2px 12px rgba(223,156,74,0.13);
}

/* --------------------------------
   FLEXBOX PATTERNS - Key Spacing   
----------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px #f3dfad54;
  position: relative;
  padding: 24px 20px;
  min-width: 250px;
}
.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: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 2px 10px #bbc9e52d;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-accent);
  transition: box-shadow 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px #e1b22855;
  transform: translateY(-3px) scale(1.025);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid as flex */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}
.feature-grid > div {
  background: #fffbea;
  border-radius: 14px;
  box-shadow: 0 1px 6px #f7d46636;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 100%;
  padding: 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px #e0c23a41;
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  margin-bottom: 8px;
  animation: bounce-in 0.8s cubic-bezier(.6,-0.28,.74,.05) 1;
}
@keyframes bounce-in {
  0% {transform: scale(0.5);opacity:0;}
  40% {transform: scale(1.2);opacity:1;}
  60% {transform: scale(0.87);}
  100% {transform: scale(1);}
}

/* Filter bar */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.filter-row span {
  background: var(--color-notice);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------
   BUTTONS & CTA
-----------------------------*/
.cta-primary {
  background: linear-gradient(90deg, var(--color-accent), #FFD16A 85%);
  color: #225;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.17rem;
  font-weight: 900;
  border: none;
  border-radius: 32px;
  padding: 14px 36px;
  box-shadow: 0 4px 16px #ffd16a51;
  margin-top: 16px;
  display: inline-block;
  transition: background 0.19s, box-shadow 0.18s, transform 0.19s;
  cursor: pointer;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px #fff5;
  animation: pop-cta 0.23s ease-in alternate;
}
@keyframes pop-cta { 0%{transform:scale(0.96);} 100%{transform:scale(1);} }
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #FFD16A, var(--color-accent) 80%);
  color: var(--color-primary);
  box-shadow: 0 6px 24px #ffd16acc, 0 1.5px 8px #d9a44122 inset;
  transform: translateY(-1px) scale(1.035);
}

/* Anchor as button CTA */
a.cta-primary { text-align: center; }

/* Secondary Buttons */
.cta-secondary {
  background: none;
  color: var(--color-action);
  font-family: 'Montserrat',Arial,sans-serif;
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  padding: 10px 24px;
  font-weight: 700;
  transition: background .2s, border .2s, color .2s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-notice);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---------------------------
   HEADER & NAVIGATION
-----------------------------*/
header {
  background: var(--color-bg);
  padding: 0;
  border-bottom: 2px solid #efefef;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1002;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 16px;
  color: var(--color-primary);
  border-radius: 22px;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
header nav a.cta-primary {
  margin-left: 16px;
}
header nav a:hover, header nav a:focus {
  background: var(--color-card);
  color: var(--color-action);
}
header nav img {
  height: 48px; width: auto; margin-right: 4px;
}

/* Hide desktop nav on small screens, show burger */
.mobile-menu-toggle {
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 20px; right: 22px;
  z-index: 1022;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px #ffd16a77;
  transition: background 0.17s, color 0.17s, box-shadow .24s;
  cursor: pointer;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 1.5px 8px #22406D22;
}

/* Hide mobile nav on desktop, show on mobile */
.mobile-menu {
  background: var(--color-card);
  box-shadow: 0 0 36px #a3aece42;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-110vw);
  transition: transform .37s cubic-bezier(.43,1.32,.31,1.11);
  will-change: transform;
  padding-top: 18px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: var(--color-action);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px; height: 44px;
  align-self: flex-end;
  margin-right: 18px;
  margin-bottom: 24px;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  background: var(--color-notice);
  border-radius: 18px;
  padding: 11px 22px;
  margin-bottom: 2px;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 0.5px 2.5px #ffedbb55;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Control nav visibility on desktop/mobile */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
  header nav {
    display: flex;
  }
}

/* --------------------------------
   FOOTER
----------------------------------*/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 46px 0 18px 0;
}
footer .container { max-width: 1100px; }
footer .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-accent);
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 11px;
  padding: 6px 14px;
  transition: background .17s, color .17s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: var(--color-accent);
}
footer div:last-child {
  font-size: 0.98rem;
  color: #fff7;
}

/* --------------------------------
   FAQ Accordion
----------------------------------*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.faq-accordion > div {
  background: var(--color-card);
  border-radius: 14px;
  padding: 22px 16px;
  box-shadow: 0 1.2px 6px #c7d1ed38;
  position: relative;
  transition: box-shadow .15s;
}
.faq-accordion > div:hover {
  box-shadow: 0 5px 17px #23252526;
}
.faq-accordion h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--color-primary);
}

/* --------------------------------
   TESTIMONIALS
----------------------------------*/
.testimonial-card {
  font-size: 1.04rem;
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 2px 12px #d7cfba33;
}
.testimonial-card p {
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97em;
  color: var(--color-action);
  font-weight: 700;
  margin-left: 8px;
}

/* Ensure contrast for testimonials */
.testimonial-card, .testimonial-card * {
  color: var(--color-primary) !important;
  background: #fff !important;
}

/* --------------------------------
   FORM & CONTACT - playful icons
----------------------------------*/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.08rem;
  padding-top: 10px;
  padding-bottom: 10px;
}
.text-section img {
  height: 18px; width: 18px;
  margin-right: 5px;
  vertical-align: -2px;
  display: inline-block;
}

/* --------------------------------
   LISTS, OL/UL EXTRA SPACING
----------------------------------*/
ul, ol {
  margin-bottom: 16px;
  padding-left: 26px; 
}
ul li, ol li {
  margin-bottom: 11px;
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  padding-left: 0;
}
ul li:before {
  content: '⮞';
  color: var(--color-action);
  font-size: 1.09em;
  margin-right: 8px;
  font-weight: bold;
  vertical-align: middle;
  display: inline-block;
}
ol li {
  counter-increment: list-item;
}
ol li:before {
  content: counter(list-item) '.';
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1em;
  padding-right: 8px;
}
ul li img, ol li img { vertical-align: middle; margin-right: 6px; }

/* --------------------------------
   ANIMATIONS & TRANSITIONS
----------------------------------*/
section, .feature-grid > div, .testimonial-card, .card, .faq-accordion > div, .cta-primary, .cta-secondary {
  transition: box-shadow .18s, background .18s, transform .2s;
}
.feature-grid > div, .card, .faq-accordion > div {
  transition: box-shadow .18s, transform .13s;
}
/* Playful entrances for main CTA */
@media (prefers-reduced-motion: no-preference) {
  .cta-primary {
    animation: bounce-in-cta 0.46s cubic-bezier(.5,1.5,.76,.93) 1;
  }
}
@keyframes bounce-in-cta {
  0% {transform: scale(0.65) rotate(-4deg); opacity:0;}
  55% {transform: scale(1.12) rotate(1deg); opacity:1;}
  80% {transform: scale(0.97) rotate(-1deg);}
  100% {transform: scale(1) rotate(0);}
}

/* --------------------------------
   RESPONSIVENESS: MOBILE-FIRST
----------------------------------*/
@media (max-width: 768px) {
  section {
    margin-bottom: 38px;
    padding: 23px 8vw;
    border-radius: 16px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 17px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 21px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px 12px;
  }
  .feature-grid > div {
    min-width: 0;
    padding: 16px 10px;
  }
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    top: 12px; right: 10px;
    width: 44px; height: 44px; font-size:2rem;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.07rem; }
  .cta-primary, .cta-secondary { font-size: 0.97rem; padding: 11px 18px; }
  .feature-grid > div { padding: 11px 6px; }
  section {padding: 13px 4vw;}
}

/* ---------------------------
   COOKIE CONSENT BANNER
-----------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-notice);
  color: var(--color-primary);
  z-index: 1400;
  box-shadow: 0 -4px 32px #e2cb6c83;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.33s cubic-bezier(.54,1.8,.48,.85);
  animation: cookie-slide-up 0.44s cubic-bezier(.64,1.59,.57,.93) 1;
}
@keyframes cookie-slide-up {
  from { transform: translateY(96px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 10px 22px;
  margin: 0 3px;
  box-shadow: 0 1px 7px #fad96a29;
  cursor: pointer;
  transition: background .17s, color .17s;
}
.cookie-consent-banner .accept { background: var(--color-success); color: #133112; }
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus { background: #6eb96e; }
.cookie-consent-banner .reject { background: #fff; color: var(--color-action); border: 2px solid var(--color-action); }
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus { background: var(--color-action); color: #fff; }
.cookie-consent-banner .settings { background: var(--color-bg); color: var(--color-primary); border: 2px solid var(--color-primary); }
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus { background: var(--color-accent); color: var(--color-primary); }

/* Cookie modal overlay & panel */
.cookie-modal-bg {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,64,109,0.32);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .3s;
}
@keyframes fadein { from { opacity: 0; } to { opacity:1; } }
.cookie-modal-panel {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px #d9a4416d;
  min-width: 320px;
  max-width: 98vw;
  padding: 40px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1502;
  animation: modal-pop-in .44s cubic-bezier(.54,1.38,.47,.98);
  position: relative;
}
@keyframes modal-pop-in {
  0% { transform: scale(0.77); opacity: 0; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-modal-panel h2 { font-size: 1.25rem; color: var(--color-primary); margin-bottom:12px;}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-radius: 10px;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--color-accent);
}
.cookie-category.essential { background: #f8eeb6; }
.cookie-category .cookie-label {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal-panel .cookie-btns {
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--color-action); color: #fff;
  border-radius: 50%; border: none;
  width: 32px; height: 32px;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: var(--color-accent); color: var(--color-primary); }
@media (max-width:600px) {
  .cookie-modal-panel { padding: 20px 10px; min-width: 0; }
}

/* ---------------------------
   MISC
-----------------------------*/
::-webkit-scrollbar {
  width: 9px;
  background: #efefef;
}
::-webkit-scrollbar-thumb {
  background: #F0D98C;
  border-radius: 5px;
}

/* Links in text */
p a, ul a, ol a {
  color: var(--color-action);
  text-decoration: underline;
  transition: color 0.15s;
}
p a:hover, ul a:hover, ol a:hover {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

/* --------------------------------
   SPACING BETWEEN SECTION CARDS
----------------------------------*/
section + section {
  margin-top: 0px;
}
.card-container > *, .content-grid > *, .feature-grid > *, .faq-accordion > *, .testimonial-card {
  margin-right: 0;
  margin-left: 0;
}
/* Prevent overlap */
* {
  box-sizing: border-box;
}

/* --------------------------------
   PLAYFUL MICRO-INTERACTIONS
----------------------------------*/
button, .cta-primary, .cta-secondary, .feature-grid > div, .testimonial-card, .faq-accordion > div {
  transition: transform .17s, box-shadow .18s, background .18s, color .15s;
}
button:active, .cta-primary:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.97);
}

/* --------------- END -------------- */
