/* --------------------- 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;
}
/* 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;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #205072;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #205072;
  text-decoration: none;
  transition: color .2s cubic-bezier(.45,.09,.48,1.39);
}
a:focus {
  outline: 2px dashed #6BCDCB;
}
ul, ol {
  list-style: none;
}
button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* --------------------- TYPOGRAPHY --------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #205072;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, blockquote {
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'Roboto', Arial, sans-serif;
}
blockquote {
  font-style: italic;
  background: #E3F7F7;
  color: #205072;
  border-left: 5px solid #6BCDCB;
  margin-bottom: 16px;
  padding: 12px 18px;
  border-radius: 16px 24px 16px 4px;
}
strong {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
}

/* Fun font personality for playful_dynamic, fallback Roboto/Montserrat is brand */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500&display=swap');

/* --------------------- LAYOUT CONTAINERS --------------------- */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 32px 0 rgba(32,80,114,.07), 0 1.5px 5px 0 #6bcdcbd5;
  /* Playful curved corners and soft shadow */
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .content-wrapper {
    gap: 32px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.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;
    gap: 24px;
  }
}

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 16px 0 rgba(32,80,114,0.12);
  transition: transform .2s cubic-bezier(.37,.23,.54,1.26), box-shadow .2s;
  min-width: 240px;
  padding: 20px 18px 24px 18px;
  z-index: 1;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 26px 0 rgba(107,205,203,0.20), 0 4px 14px rgba(67,88,102,0.09);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 22px 24px 18px 6px;
  background: #E3F7F7;
  box-shadow: 0 2px 7px 0 rgba(32,80,114,.08);
  color: #205072;
  min-width: 260px;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 0;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1rem;
  color: #205072;
  text-align: center;
}

/* ---------- FLEX/LIST PATTERNS ---------- */
section ul, section ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 0;
  padding-left: 0;
}
section ul li, section ol li {
  background: #fff;
  border-radius: 18px 18px 16px 7px;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.06);
  padding: 20px 18px 24px 18px;
  min-width: 220px;
  flex: 1 1 230px;
  transition: box-shadow .18s, transform .18s;
  position: relative;
  margin-bottom: 0;
  color: #205072;
}
section ul li:hover {
  box-shadow: 0 8px 20px rgba(107,205,203,.21), 0 2px 7px rgba(67,78,102,.07);
  transform: scale(1.02) rotate(-2deg);
}
section ul li img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  background: #6BCDCB;
  border-radius: 50%;
  padding: 5px;
}
section ul li h3 {
  color: #205072;
}
section ul li a {
  margin-top: 10px;
}

/* ---------------------- TABLES ------------------------ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  font-size: 1rem;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(67,180,182,.11);
}
thead tr {
  background: #6BCDCB;
  color: #fff;
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 10px;
  text-align: left;
}
tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #E3F7F7;
  color: #205072;
}
tbody tr:last-child td {
  border-bottom: none;
}
.notes {
  font-size: 0.95rem;
  color: #386888;
}

/* ---------------------- BUTTONS ------------------------ */
.cta-button, .cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: #6BCDCB;
  color: #205072;
  padding: 14px 32px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 3px 16px 0 rgba(107,205,203,.18);
  cursor: pointer;
  display: inline-block;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  margin-top: 12px;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-button:hover, .cookie-btn:hover {
  background: #205072;
  color: #fff;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 7px 24px 0 rgba(32,80,114,.19), 0 3px 15px rgba(67,88,102,.10);
}
.cta-button:active, .cookie-btn:active {
  background: #38719b;
  color: #fff;
}
a.cta-button {
  text-decoration: none;
}

/* ---------------------- HEADER & NAV ------------------------ */
header {
  background: linear-gradient(90deg, #6BCDCB 0%, #F5F7FA 100%);
  padding: 0;
  box-shadow: 0 7px 26px 0 rgba(107,205,203,0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 18px 14px 18px;
}
header img {
  height: 44px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #205072;
  border-radius: 20px;
  padding: 8px 18px;
  transition: background .18s, color .18s, outline .18s;
}
.main-nav a:hover, .footer-nav a:hover {
  background: #6BCDCB;
  color: #fff;
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    position: absolute;
    top: 25px;
    right: 26px;
    z-index: 1040;
    font-size: 2.3rem;
    background: #6BCDCB;
    color: #205072;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(67,180,182,.16);
    transition: background .15s, color .15s, box-shadow .12s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: #205072;
    color: #fff;
    outline: none;
  }
}


/* ----------- MOBILE MENU ----------- */
.mobile-menu {
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,80,114,0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .32s cubic-bezier(.68,-0.36,.14,1.25);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 26px 0 0;
  font-size: 2.3rem;
  color: #fff;
  background: none;
  border: none;
  transition: color .14s;
  z-index: 1060;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #6BCDCB;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100vw;
  margin-top: 50px;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 18px;
  margin: 0 0 0 0;
  background: none;
  transition: background .15s, color .15s;
  width: 80%;
  text-align: center;
  box-sizing: border-box;
  touch-action: manipulation;
}
.mobile-nav a:active,
.mobile-nav a:hover {
  background: #6BCDCB;
  color: #205072;
}

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

/* ---------------------- FOOTER ------------------------ */
footer {
  background: #205072;
  color: #fff;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
footer .container {
  padding: 32px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 4px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 18px;
  transition: background .18s;
}
footer p {
  font-size: 1rem;
  margin: 0;
  color: #F5F7FA;
}

@media (max-width: 600px) {
  footer .container {
    padding: 26px 6px 10px 6px;
    gap: 10px;
  }
  .footer-nav {
    gap: 8px;
  }
}

/* ---------------------- FORM/ARTICLE ------------------------ */
article {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(67,180,182,.10);
  padding: 22px 20px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 260px;
}

article h3 {
  color: #205072;
  margin-bottom: 12px;
}
article p {
  margin-bottom: 12px;
}
article a {
  font-weight: 700;
  text-decoration: underline;
  color: #6BCDCB;
}
article a:hover {
  color: #205072;
}

/* ---------------------- RESPONSIVE DESIGN ------------------------ */
@media (max-width: 1100px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .section {
    padding: 24px 7px;
    margin-bottom: 30px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .main-nav {
    display: none;
  }
  .card-container, .content-grid, section ul, section ol {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 650px) {
  .testimonial-card, .card, article {
    min-width: 165px;
    padding: 14px 7px 14px 11px;
    font-size: 0.97rem;
  }
}
@media (max-width: 540px) {
  h1, h2, h3 {
    margin-bottom: 10px;
  }
  .container, header .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ---------------------- ANIMATION EFFECTS ------------------------ */
.section, .card, .card-container > *, .testimonial-card, .cta-button, .cookie-btn {
  transition: box-shadow .23s cubic-bezier(.41,.76,.64,1.23), transform .19s;
}
.cta-button, .mobile-menu-toggle, .cookie-btn {
  transition: background .15s, color .15s, box-shadow .16s, transform .23s;
}

.section, .card, article, .testimonial-card {
  animation: enter-bounce .62s cubic-bezier(.68,-0.36,.14,1.15) both;
}
@keyframes enter-bounce {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cta-button:focus, .cookie-btn:focus {
  outline: 2px dashed #6BCDCB;
  outline-offset: 2px;
}

/* Subtle playful microinteractions for interactive elements */
.cta-button:active  {
  transform: scale(.98) rotate(1deg);
}

/* -------------------- COOKIE CONSENT -------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #205072;
  color: #fff;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -6px 16px rgba(32,80,114,0.17);
  padding: 16px 10px 18px 10px;
  animation: cookie-slide-in .5s cubic-bezier(.28,.91,.68,1.19) both;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin: 0 10px;
  padding: 11px 22px;
  background: #6BCDCB;
  color: #205072;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  box-shadow: 0 2px 7px rgba(67,205,203,0.12);
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: #205072;
  border: 1.2px solid #6BCDCB;
}
.cookie-banner .cookie-btn.settings {
  background: #f7d34e;
  color: #205072;
  border: 1.5px solid #d6be39;
}
.cookie-banner .cookie-btn:hover {
  background: #205072;
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #F5F7FA;
  color: #205072;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #FFF4B2;
  color: #205072;
}

/* ------------------ COOKIE PREFERENCES MODAL ------------------ */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  z-index: 4100;
  background: #fff;
  padding: 34px 26px 20px 26px;
  border-radius: 22px;
  box-shadow: 0 4px 26px rgba(32,80,114,0.14);
  min-width: 312px;
  max-width: 93vw;
  max-height: 85vh;
  overflow-y: auto;
  animation: cookie-modal-in 0.5s cubic-bezier(.64,.07,.21,1.31);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%,-35%) scale(.95); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #205072;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #E3F7F7;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #205072;
}
.cookie-modal label {
  flex: 1 1 auto;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #6BCDCB;
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
  margin-right: 10px;
}
.cookie-modal .essential {
  font-style: italic;
  color: #AAAAAA;
}
.cookie-modal .modal-close {
  display: inline-block;
  position: absolute;
  top: 16px;
  right: 20px;
  color: #6BCDCB;
  font-size: 1.5rem;
  background: none;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  padding: 3px 8px;
}
.cookie-modal .modal-close:focus, .cookie-modal .modal-close:hover {
  color: #205072;
  background: #F5F7FA;
}

/* Overlay when modal open */
.cookie-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,80,114, 0.32);
  z-index: 4090;
}
.cookie-backdrop.open {
  display: block;
}

/* -------------- Scrollbar (Playful) -------------- */
::-webkit-scrollbar {
  width: 14px;
  background: #E3F7F7;
}
::-webkit-scrollbar-thumb {
  background: #6BCDCB;
  border-radius: 14px;
  border: 4px solid #E3F7F7;
}

/* -------------- Extra Playful Visuals -------------- */
.section {
  position: relative;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  top: -28px;
  right: 16px;
  width: 56px;
  height: 22px;
  background: #6BCDCB;
  border-radius: 50% 56% 40% 60%/38% 58% 38% 62%;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  animation: bounceCloud 2.8s infinite alternate cubic-bezier(.55,.01,.30,1.01);
}
@keyframes bounceCloud {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

.card::before {
  content: '';
  display: block;
  position: absolute;
  top: -16px;
  left: -12px;
  width: 36px;
  height: 14px;
  background: #F7E663;
  border-radius: 44% 66% 44% 93%;
  opacity: 0.22;
  z-index: 0;
}

section ul li::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 18px;
  height: 8px;
  background: #6BCDCB;
  border-radius: 26px 42px 16px 9px;
  opacity: 0.13;
}

/* -------------- TESTIMONIALS (CONTRAST/SPLIT) -------------- */
section .testimonial-card {
  background: #E3F7F7;
  color: #205072;
  border: 2px dashed #6BCDCB;
}
section .testimonial-card strong {
  color: #205072;
}
section .testimonial-card span {
  color: #FFD600;
  font-size: 1.25em;
}

/* -------------- VISUAL HIERARCHY (SPACING) -------------- */
.section, .testimonial-card, .card, article {
  margin-bottom: 32px;
}
.content-grid, .card-container, section ul, section ol {
  margin-bottom: 24px;
}

/* -------------- MISCELLANEOUS/ACCESSIBILITY -------------- */
[tabindex]:focus {
  outline: 2px dashed #6BCDCB !important;
  outline-offset: 1px;
}

/* -------------- PRINT -------------- */
@media print {
  .mobile-menu,
  .cookie-banner,
  .cookie-backdrop,
  .cookie-modal,
  .mobile-menu-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #205072;
  }
}
