/* ================== CSS RESET & NORMALIZATION ================== */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #E3F2FD;
  color: #27395D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: background .4s;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #205B94;
  text-decoration: none;
  transition: color .2s;
}
strong, b {
  font-weight: bold;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
button {
  font-family: inherit;
}

/* ================ BRAND COLORS AS CUSTOM PROPERTIES ==================== */
:root {
  --color-primary: #205B94;
  --color-secondary: #FFCC3A;
  --color-accent: #E3F2FD;
  --color-dark: #27395D;
  --color-white: #fff;
  --color-gray: #eef4fb;
  --color-shadow: rgba(32,91,148,0.12);
}

/* =============== TYPOGRAPHY / FONT SCALES ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  color: var(--color-primary);
  text-shadow: 1px 2px 0 var(--color-secondary), 0 2px 6px rgba(32,91,148,0.1);
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 15px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-shadow: none;
}
p, blockquote, cite {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-dark);
}
p {
  margin-bottom: 17px;
}
blockquote {
  background: var(--color-secondary);
  color: var(--color-dark);
  border-left: 5px solid var(--color-primary);
  border-radius: 17px 5px 17px 5px;
  padding: 18px 26px 18px 16px;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-style: italic;
}
cite {
  color: var(--color-primary);
  font-size: 1rem;
  font-style: normal;
  margin-left: 4px;
}

/* Fun headline accent underline - playful effect */
h2::after {
  content: '';
  display: block;
  height: 5px;
  width: 78px;
  background: var(--color-secondary);
  border-radius: 8px;
  margin-top: 3px;
}

/* ==================== GENERAL LAYOUT STRUCTURE ===================== */
.container {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 4px 16px var(--color-shadow);
  transition: box-shadow 0.25s;
}
.section:hover {
  box-shadow: 0 8px 26px rgba(32,91,148,0.17);
}

/* Flex utilities for cards and containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 7px 28px rgba(32,91,148,0.15);
  transform: translateY(-4px) scale(1.025);
}
.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;
  box-shadow: 0 3px 18px rgba(32,91,148,0.13);
  border-radius: 22px;
  margin-bottom: 20px;
  min-width: 264px;
  max-width: 560px;
  flex: 1 1 320px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Gap for all direct child sections */
main > section {
  margin-bottom: 60px;
}

/* =========================== HEADER + LOGO =========================== */
header {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  position: relative;
  min-height: 68px;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(32,91,148,0.07);
}
.logo {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 54px;
  transition: transform 0.15s;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.logo:hover { transform: scale(1.06) rotate(-2deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 21px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  color: var(--color-white);
  padding: 11px 19px;
  border-radius: 18px;
  transition: background 0.2s, color 0.22s;
}
.main-nav a.cta {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 1.08rem;
  margin-left: 15px;
  box-shadow: 0 2px 12px 0 rgba(255,204,58,0.12);
  transition: box-shadow 0.2s, background 0.19s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #ffe789;
  color: var(--color-primary);
  box-shadow: 0 4px 17px 0 rgba(255,204,58,0.21);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Burger Button */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2.25rem;
    background: none;
    border: none;
    color: var(--color-white);
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
    transition: color 0.18s;
    z-index: 401;
    width: 48px; height: 48px;
    justify-content: center;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: var(--color-secondary);
  }
}

/* ======================== MOBILE OFFCANVAS MENU ======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(90vw, 340px);
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: -5px 0 22px 0 rgba(32,91,148,0.22);
  z-index: 402;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.78,.19,.26,1.04);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.4rem;
  align-self: flex-end;
  margin: 20px 17px 6px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 27px 22px 0 24px;
}
.mobile-nav a {
  padding: 15px 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  color: #fff;
  border-radius: 13px;
  transition: background 0.18s, color 0.15s;
  font-weight: 700;
  margin-bottom: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width:1023px) {
  .mobile-menu {
    display: flex;
  }
}

@media (min-width:1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================ MAIN CTA BUTTON STYLES (ALL .cta) ============================ */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 15px 36px;
  border-radius: 22px 10px 22px 10px;
  box-shadow: 0 4px 22px -10px var(--color-primary);
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  transition: background 0.19s, color 0.18s, box-shadow 0.17s, transform 0.14s;
  outline: none;
  letter-spacing: 0.01em;
}
.cta:hover, .cta:focus {
  background: #ffe47a;
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.045) rotate(-2deg);
  box-shadow: 0 8px 34px -6px rgba(255,204,58,0.37);
}

/* =========================== SECTION LAYOUT =========================== */
section {
  margin-bottom: 60px;
}
section:last-child {
  margin-bottom: 0 !important;
}

/* ================== HERO AND INFO LAYOUT (index, etc.) ================== */
.index-hero, .about-hero, .products-hero, .howitworks-hero {
  background: linear-gradient(93deg, #E3F2FD 44%, #FFCC3A 95%);
  padding: 60px 0 40px 0;
  border-radius: 22px;
  box-shadow: 0 2px 18px rgba(32,91,148,0.05);
}

/* ================================= ICON STYLES ================================== */
ul li img, .feature-item img {
  width: 32px; height: 32px;
  margin-right: 9px;
  vertical-align: middle;
  background: #fff;
  padding: 2px;
  border-radius: 10px;
  box-shadow: 0 2px 9px 0 var(--color-shadow);
}

ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  background: rgba(32,91,148,0.03);
  padding: 9px 13px 9px 6px;
  border-radius: 14px;
  margin-bottom: 10px;
}
ul li:last-child {margin-bottom: 0;}


/* ===================== TESTIMONIALS (cards) ========================= */
.testimonial-card {
  background: var(--color-secondary);
  color: var(--color-dark);
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 4px 18px 0 rgba(32,91,148,.13);
  border-radius: 24px;
  margin-bottom: 20px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.23s;
  min-width: 260px;
  max-width: 560px;
  flex: 1 1 340px;
  z-index: 3;
}
.testimonial-card:hover {
  box-shadow: 0 10px 41px 0 rgba(32,91,148,.18);
  transform: scale(1.025) rotate(-1.2deg);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding-left: 0;
  font-size: 1.13rem;
  font-style: italic;
  color: #27395D;
  text-shadow: none;
}
.testimonial-card cite {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}
.ratings-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  margin: 18px 0 8px 0;
}
.ratings-summary img {
  width: 22px; height: 22px; margin-right: 5px; vertical-align: middle;
}

/* ================= CARDS ==================== */
.card {
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .13s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(32,91,148,0.22);
  transform: scale(1.03) rotate(1deg);
}


/* ======================== FOOTER ============================ */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 41px 0 25px 0;
  margin-top: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus { background: var(--color-secondary); color: var(--color-primary); }
footer address {
  font-style: normal;
  font-family: 'Roboto', Arial, sans-serif;
  color: #d7eaf8;
  font-size: 1rem;
  margin-top: 14px;
  line-height: 1.6;
}
footer address a {
  color: #fafbff;
  text-decoration: underline;
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-secondary);
  box-shadow: 0 -4px 44px rgba(32,91,148,0.14);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 21px 6vw 17px 6vw;
  z-index: 9999;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  animation: cookie-banner-slidein .7s cubic-bezier(.66,.03,.26,1.05);
}
@keyframes cookie-banner-slidein {
  0% { transform: translateY(100%) scaleY(0.8); opacity: 0.3; }
  100% { transform: translateY(0) scaleY(1); opacity: 1; }
}
.cookie-banner p {
  margin: 0 20px 0 0;
  color: var(--color-primary);
  max-width: 700px;
  font-size: 1rem;
  font-family: inherit;
}
.cookie-banner .cookie-btn {
  margin: 0 8px 0 0;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 11px 25px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 10px 18px 10px 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform .17s;
  box-shadow: 0 1px 6px rgba(32,91,148,0.06);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #12406b;
  color: var(--color-secondary);
  transform: scale(1.045) rotate(-2deg);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.cookie-banner .cookie-btn.cookie-settings:hover,
.cookie-banner .cookie-btn.cookie-settings:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10009;
  left: 0;
  top: 0;
  width:100vw;
  height:100vh;
  background: rgba(32,91,148,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-bg-in .24s cubic-bezier(.78,.19,.24,.92) 1;
}
@keyframes cookie-modal-bg-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 40px 32px 30px 32px;
  border-radius: 25px;
  box-shadow: 0 12px 44px rgba(32,91,148,0.19);
  width: 96vw;
  max-width: 430px;
  animation: cookie-modal-in .41s cubic-bezier(.62,0,.16,1.1);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
@keyframes cookie-modal-in {
  0% { transform: scale(0.8) translateY(40px); opacity: .2; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 9px;
  font-size: 1.27rem;
  text-shadow: none;
}
.cookie-modal .cookie-category {
  background: #fff8e4;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: var(--color-dark);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal .cookie-switch {
  width: 36px;
  height: 20px;
  background: #ccc;
  border-radius: 11px;
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .17s;
  cursor: pointer;
}
.cookie-modal .cookie-switch.enabled {
  background: var(--color-secondary);
}
.cookie-modal .cookie-knob {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 1px;
  box-shadow: 0 1px 3px rgba(32,91,148,.13);
  transition: left .18s cubic-bezier(.77,.2,.3,1);
}
.cookie-modal .cookie-switch.enabled .cookie-knob {
  left: 17px;
}
.cookie-modal .cookie-footer {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 21px;
}
.cookie-modal .cookie-btn {
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 1rem;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.7rem;
  cursor: pointer;
}


/* =========== PLAYFUL MICRO-INTERACTIONS =========== */
.cta, .main-nav a.cta, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.19s, color .15s, transform .15s, box-shadow .19s;
}
.cta:active, .main-nav a.cta:active, .cookie-btn:active, .mobile-menu-toggle:active, .mobile-menu-close:active {
  transform: scale(0.97) rotate(1deg);
}

/* ============= RESPONSIVE BREAKPOINTS ============= */
@media (max-width: 1119px) {
  .container {
    max-width: 97vw;
  }
  .footer-nav { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .section {
    padding: 25px 8px;
  }
  .testimonial-card { max-width: 98vw; }
}
@media (max-width: 768px) {
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.08rem;}
  .container { max-width: 100vw; padding: 0 8px; }
  .content-wrapper { gap: 13px; }
  .section { padding: 16px 5vw; margin-bottom: 38px; border-radius: 14px; }
  .testimonial-card {
    padding: 13px 10px;
    border-radius: 13px;
    flex-direction: column;
    gap: 13px;
    min-width: unset;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
  .card {
    padding: 15px 8px;
    min-width: 180px;
    border-radius: 11px;
  }
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item {
    gap: 7px;
  }
  main > section {margin-bottom: 30px;}
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 15px 3vw 15px 3vw;
  }
}
@media (max-width: 580px) {
  .cookie-banner {
    font-size: .97rem;
    padding: 10px 2vw 10px 2vw;
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .cookie-banner, .cookie-modal {
    padding-left: 4px;
    padding-right: 4px;
  }
  .cookie-modal {padding: 18px 3vw;}
}

/* ============= MISC ELEMENTS ============= */
a:focus { outline: 2px dashed var(--color-secondary); outline-offset:2px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-secondary); }

main ul:not(.footer-nav), main ol {
  margin-left: 1.3em;
  margin-bottom: 13px;
}
main li strong { color: var(--color-primary); }

/* ================= PLAYFUL DYNAMIC ANIMATIONS ================= */
.cta {
  animation: cta-wiggle 2.1s infinite cubic-bezier(.34,.11,.43,.91) alternate;
  will-change: transform;
}
@keyframes cta-wiggle {
  0% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.04) rotate(-2.7deg); }
  52% { transform: scale(1.01) rotate(2.6deg); }
  65% { transform: scale(1.045) rotate(-1.2deg); }
  100% { transform: scale(1) rotate(0); }
}
section, .card, .testimonial-card {
  animation: fadein-bounce 1.1s both cubic-bezier(.46,1.48,.32,.99);
}
@keyframes fadein-bounce {
  0% { opacity: 0; transform: translateY(60px) scale(.95); }
  70% { opacity: 1; transform: translateY(-12px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============= ACCESSIBILITY ============= */
@media (prefers-reduced-motion) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* =================== UTILITIES ===================== */
.hide { display: none !important; }
.flex { display: flex; }
.center { justify-content: center; align-items: center; }

/* === Ensure no content overlap === */
.section, .card, .testimonial-card, .content-wrapper, .card-container, .content-grid, .text-image-section { box-sizing: border-box; }
