/* ====================================================
   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;
  background: #FAF5EA;
  min-height: 100vh;
  color: #2e3958;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.5em;
}
a {
  color: #389AC9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #18305C;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
strong, b {
  font-weight: 700;
}

/* ====================================================
   BRAND FONTS – Soft Pastel, Dreamy Look
==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #18305C;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.1rem;
  color: #3597b4;
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  margin-bottom: 24px;
  font-weight: 500;
}
p {
  margin-bottom: 18px;
  color: #3b476d;
}
li {
  margin-bottom: 12px;
}

/* ====================================================
   GENERAL SPACING & LAYOUT (ONLY FLEX)
==================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fffaf6;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(102,188,219,0.09), 0 1.5px 3px rgba(64,139,166,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(102,188,219,0.15), 0 2.5px 6px rgba(64,139,166,0.09);
  transform: translateY(-4px) scale(1.015);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(24,48,92,0.09);
  min-width: 260px;
  max-width: 390px;
  transition: box-shadow 0.23s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(100,190,218,0.09), 0 1px 2px rgba(24,48,92,0.06);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p { color: #24243f; }
.testimonial-author {
  color: #64BEDA;
  font-weight: 600;
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  font-size: 0.98em;
}
.star-rating {
  color: #FFBF91;
  font-size: 1.25em;
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
}

.feature-grid {
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.feature-grid li {
  background: #ffffffcc;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(100,190,218,0.08);
  padding: 32px 20px 28px 20px;
  flex: 1 1 215px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.23s, transform 0.14s;
}
.feature-grid li:hover {
  box-shadow: 0 2px 24px rgba(24, 48, 92,0.12);
  transform: translateY(-3px) scale(1.01);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 9px;
}

ol {
  margin-left: 1.3em;
  margin-bottom: 1em;
  padding-left: 0;
}
ul {
  margin-top: 8px;
  margin-bottom: 18px;
  list-style-type: disc;
  padding-left: 1.3em;
}

/* ====================================================
   HEADER & NAVIGATION
==================================================== */
header {
  width: 100%;
  background: #fffffffa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 14px 0;
  box-shadow: 0 2.5px 16px rgba(100,190,218,0.06);
  position: relative;
  z-index: 50;
}
.logo {
  display: flex;
  align-items: center;
  padding-left: 20px;
}
.logo img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-left: 32px;
}
.main-nav a {
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  color: #28597C;
  padding: 9px 10px;
  border-radius: 10px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #f4faff;
  color: #18305C;
}
.cta.primary {
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  background: #64BEDA;
  color: #18305C;
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 16px;
  padding: 10px 28px;
  margin-left: 18px;
  margin-right: 24px;
  box-shadow: 0 1.5px 8px rgba(100,190,218,0.11);
  outline: none;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.22s, transform 0.13s;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}
.cta.primary:hover,
.cta.primary:focus {
  color: #fff;
  background: #18305C;
  box-shadow: 0 2px 12px rgba(24,48,92,0.14);
  transform: translateY(-2px) scale(1.045);
}

/* ========================
   MOBILE NAVIGATION
======================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: #64BEDA;
  cursor: pointer;
  padding: 8px 15px 8px 15px;
  margin-right: 8px;
  transition: color 0.19s, background 0.17s;
  z-index: 90;
}
.mobile-menu-toggle:focus {
  outline: none;
  background: #e2eeff;
  border-radius: 8px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255,255,255,0.97);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.86,0,0.07,1);
  box-shadow: 0 6px 36px rgba(47,132,175,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #a0adc7;
  position: absolute;
  top: 25px; right: 23px;
  z-index: 1001;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 7px;
  transition: color 0.19s, background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #18305C;
  background: #f6fafd;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 70px;
  margin-left: 36px;
  width: 70vw;
  max-width: 400px;
}
.mobile-nav a {
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  color: #28597C;
  padding: 12px 8px;
  border-radius: 9px;
  background: none;
  transition: background 0.12s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #18305C;
  background: #e6f3ff;
}

@media (max-width: 1100px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
    margin-left: 12px;
  }
}
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }
  .logo {
    padding-left: 10px;
  }
  .main-nav {
    display: none;
  }
  .cta.primary {
    margin-right: 5px;
    padding: 9px 16px;
    font-size: 1em;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper, .text-section {
    gap: 15px;
  }
}

/* ====================================================
   HERO & PRIMARY SECTION STYLES (Soft pastel)
==================================================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: linear-gradient(120deg, #eaf7fa 0%, #fff 90%);
}
section:nth-child(even) {
  background: linear-gradient(135deg, #f7eaf7 0%, #f8fff9 100%);
}
main .section {
  box-shadow: none;
}
@media (max-width: 670px) {
  section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
}

/* ====================================================
   FEATURE / CARD / GRID LAYOUTS (Flex ONLY)
==================================================== */
.card-container, .feature-grid, .card-grid, .content-grid {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .feature-grid, .card-container {
    gap: 18px;
  }
  .feature-grid li, .card {
    min-width: 140px;
    max-width: 420px;
    flex: 1 1 170px;
  }
}
@media (max-width: 670px) {
  .feature-grid, .card-container {
    gap: 10px;
    flex-direction: column;
  }
  .feature-grid li, .card {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

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

/* ====================================================
   FOOTER
==================================================== */
footer {
  width: 100%;
  background: #fafdff;
  box-shadow: 0 0.5px 4px rgba(100,190,218,0.07);
  border-radius: 24px 24px 0 0;
  padding: 40px 0 24px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 7px;
}
.footer-nav a {
  color: #2b4470;
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  background: #64BEDA;
}
.footer-contact p {
  color: #467295;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
@media (max-width: 600px) {
  footer {
    padding: 24px 0 16px 0;
    gap: 11px;
  }
  .footer-logo img {
    height: 38px;
  }
  .footer-nav a {
    font-size: 0.99rem;
    padding: 3px 5px;
  }
}

/* ====================================================
   BUTTONS & INTERACTIVE
==================================================== */
button, .cta {
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  transition: all 0.16s cubic-bezier(.51,1.07,.86,1.12);
  outline: none;
}
button {
  cursor: pointer;
}
button:disabled, .cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ====================================================
   COOKIE CONSENT BANNER & MODAL
==================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg,#fff 55%,#e0faff 98%);
  box-shadow: 0 -2px 16px rgba(90,180,208,0.14);
  padding: 19px 12px 19px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1600;
  gap: 16px;
  animation: slideUp 0.5s cubic-bezier(0.77,0,0.18,1) 1;
}
.cookie-banner p {
  color: #2e3958;
  font-size: 1.05rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 3px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 13px;
  margin: 0 2px;
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  font-weight: bold;
  background: #64BEDA;
  color: #18305C;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(100,190,218,0.09);
  transition: background 0.16s, color 0.14s, transform 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #18305C;
  color: #fff;
}
.cookie-btn.secondary {
  background: #e3eefa;
  color: #3b4f7c;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #b6e6fa;
  color: #18305c;
}

.cookie-btn.settings {
  background: #ffd4ea;
  color: #6d3764;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e9a5d2;
  color: #fff;
}

@keyframes slideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(57, 66, 82, 0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1700;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 44px rgba(167,205,220,0.22);
  padding: 36px 24px 30px 24px;
  width: 94vw;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInPop 0.34s cubic-bezier(0.55,0,0.84,0.97) 1;
}
@keyframes fadeInPop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.cookie-modal h3 {
  color: #3597b4;
  font-size: 1.28em;
  font-family: 'Quicksand', Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1.07em;
  color: #28597C;
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  gap: 8px;
}
.cookie-modal input[type=checkbox] {
  accent-color: #64BEDA;
  width: 19px;
  height: 19px;
}
.cookie-modal .modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}
.cookie-modal .modal-buttons .cookie-btn {
  min-width: 110px;
}

/* ========================
   MISC UTILITIES
======================== */
.hide {
  display: none !important;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 19px 6px 17px 6px;
  }
  .cookie-modal {
    padding: 26px 7px 18px 7px;
    max-width: 98vw;
  }
}

/* ====================================================
   COLORS & STYLE SCHEME (Soft Pastel)
==================================================== */
:root {
  --primary: #18305C;
  --secondary: #64BEDA;
  --accent: #FAF5EA;
  --pastel-blue: #eaf7fa;
  --pastel-pink: #f7eaf7;
  --pastel-green: #eafaf3;
  --pastel-yellow: #fff9e5;
  --pastel-coral: #ffe6e6;
  --pastel-lilac: #ece9fa;
  --text-dark: #18305C;
  --text-body: #2D4358;
  --star-gold: #FFBF91;
}

/* Subtle Section BG accent for dreamy feel */
section {
  background: linear-gradient(120deg, var(--pastel-blue) 0%, #fff 100%);
}
section:nth-child(even) {
  background: linear-gradient(110deg, var(--pastel-pink) 0%, var(--accent) 100%);
}

/* Accent box for cards */
.card, .testimonial-card, .feature-grid li {
  background: #fffaf6;
  border-radius: 18px;
}

.testimonial-card {
  background: #fff;
  border: 1.5px solid #eaf7fa;
}

/* Micro-interactions (subtle) */
.card, .feature-grid li, .testimonial-card {
  transition: box-shadow 0.22s cubic-bezier(0.51,1.07,.86,1.12), transform 0.15s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 8px 42px rgba(127,174,218,0.11);
  transform: scale(1.018);
}

/* Ensure minimum spacing between content cards */
.card, .testimonial-card, .feature-grid li {
  margin-bottom: 20px;
}

/* Micro-shadow on hover for buttons/links */
.cta, a.cta, button {
  transition: box-shadow 0.16s, background 0.16s, color 0.13s, transform 0.12s;
}
.cta:active, button:active {
  box-shadow: 0 1px 3.5px rgba(24,48,92,0.08);
  transform: scale(0.97);
}

/* =============================
   CUSTOM SCROLLBARS (SOFT)
============================= */
::-webkit-scrollbar {
  width: 10px;
  background: #f7fafd;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #e0eefd;
  border-radius: 16px;
}

/* Highlighted selection for brand feel */
::selection {
  background: #b6e6fa;
  color: #18305C;
}

/* === Accessibility improvements for contrast === */
.testimonial-card p, .testimonial-card .testimonial-author {
  color: #18305C !important;
  background: none;
}
.star-rating {
  color: var(--star-gold) !important;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
=========================== */
@media (max-width: 500px) {
  h1 {
    font-size: 1.48rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .section {
    padding: 20px 3px;
    margin-bottom: 25px;
  }
  .card, .testimonial-card, .feature-grid li {
    padding: 15px 7px;
  }
}
