/* --- CSS Reset & Normalize --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #20334c;
  background: #f9fafd;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #20334c;
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: #f4b400;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.3em;
}
button, .cta-primary {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  cursor: pointer;
}

/* --- CSS Variables for Brand Palette + Pastels --- */
:root {
  --brand-primary: #20334c;
  --brand-secondary: #b8c8da;
  --brand-accent: #f4b400;
  --pastel-blue: #e4f0fb;
  --pastel-lavender: #e7eaff;
  --pastel-pink: #fad8e5;
  --pastel-mint: #d9f3ee;
  --pastel-yellow: #fff6db;
  --pastel-gray: #f6f8fb;
  --text-dark: #20334c;
  --text-light: #ffffff;
  --shadow: 0 2px 12px 0 rgba(32,51,76,0.07), 0 0.5px 2.5px 0 rgba(176,176,176,0.05);
}

body {
  background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-lavender) 90%);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.125rem;
}
@media (min-width: 600px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
}
p {
  margin-bottom: 1em;
  font-size: 1rem;
  color: var(--text-dark);
}
strong {
  font-weight: 700;
  color: var(--brand-primary);
}
em {
  color: var(--brand-accent);
  font-style: normal;
}

/* --- Container Layouts --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-gray);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .section {
    padding: 60px 44px;
  }
}

/* --- Navigation --- */
header {
  background: var(--text-light);
  box-shadow: 0 1px 8px 0 rgba(32,51,76,0.04);
  position: relative;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.desktop-nav {
  display: none;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  margin-right: 22px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
  transition: color .18s;
  text-decoration: none;
}
.desktop-nav a:last-child {
  margin-right: 0;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--brand-accent);
}
.cta-primary {
  background: linear-gradient(90deg,var(--brand-accent),#ffe08d);
  color: var(--brand-primary);
  border: none;
  border-radius: 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 11px 28px;
  margin-left: 10px;
  box-shadow: 0 2px 12px 0 rgba(244,180,0,0.10);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .25s, color .18s, box-shadow .25s;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(96deg, #ffe08d 0%, var(--brand-accent) 98%);
  color: #20334c;
  box-shadow: 0 4px 18px 0 rgba(244,180,0,0.11);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 130;
  display: flex;
  align-items: center;
  margin-left: auto;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--pastel-blue);
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
    align-items: center;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(228,240,251,0.98);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.8,.25,.5,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 4px 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
  z-index: 2010;
  border-radius: 8px;
  padding: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--pastel-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 38px 0 0 36px;
  gap: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 9px 0;
  text-decoration: none;
  border-radius: 12px;
  transition: background .2s, color .15s;
  min-width: 180px;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #20334c;
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* --- Flexbox Content Layouts --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--pastel-mint);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 210px;
  flex: 1 1 240px;
  transition: box-shadow .20s, transform .15s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(32,51,76,0.13);
  transform: translateY(-5px) scale(1.02);
}
.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;
    gap: 20px;
  }
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px 20px 24px;
  background: var(--pastel-yellow);
  color: var(--text-dark);
  border-radius: 15px;
  box-shadow: 0 2px 12px 0 rgba(244,180,0,0.08);
  margin-bottom: 20px;
  font-size: 1.05rem;
  position: relative;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 1.12rem;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 1em;
  color: #5d6b80;
  font-weight: 600;
}

/* --- Lists & FAQs --- */
ul li, ol li {
  margin-bottom: 0.7em;
}
ul li strong,
ol li strong {
  color: var(--brand-primary);
}

/* --- Footer --- */
footer {
  margin-top: 60px;
  background: var(--pastel-blue);
  padding: 32px 0 12px 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -2px 12px 0 rgba(32,51,76,0.04);
}
footer .container {
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.footer-menu a {
  color: #28415f;
  font-size: 0.97rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background 0.13s, color .13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.footer-brand {
  display: flex;
  align-items: center;
  margin: 12px 0 0 0;
}
.footer-brand img {
  height: 40px;
}
.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  background: none;
  border-radius: 50%;
  padding: 2px;
  transition: background 0.13s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--brand-accent);
}
.footer-social img {
  height: 26px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-menu { flex-wrap: wrap; gap: 12px; }
}

/* --- Contact & Text Sections --- */
.text-section, .content-wrapper p {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.text-section a {
  color: #4a5b71;
  font-weight: 600;
}
.text-section a:hover { color: var(--brand-accent); }

/* --- Animations & Micro-Interactions --- */
button, .cta-primary, .mobile-menu-toggle, .mobile-menu-close, .footer-menu a {
  transition: background .2s, color .18s, box-shadow .18s, border-color .19s;
}
.card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 36px 0 rgba(176, 176, 176, 0.11);
  transform: translateY(-6px) scale(1.02);
}


/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--pastel-pink);
  color: var(--brand-primary);
  box-shadow: 0 -2px 16px 0 rgba(32,51,76,0.13);
  z-index: 2500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 36px;
  padding: 24px 18px;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.65,.17,.64,1), opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 2 1 260px;
  min-width: 240px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 19px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  margin: 0;
  cursor: pointer;
  background: var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: 0 2px 12px 0 rgba(244,180,0,0.12);
  transition: background .2s, color .18s, box-shadow .16s;
}
.cookie-btn.reject {
  background: var(--pastel-blue);
  color: var(--brand-primary); 
  font-weight: 500;
  border: 1.5px solid var(--brand-secondary);
}
.cookie-btn.settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.95);
  box-shadow: 0 4px 16px 0 rgba(32,51,76,0.13);
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 20px 0; }
  .cookie-banner .cookie-actions { gap: 11px; }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  z-index: 2600;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,51,76,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: var(--pastel-mint);
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(32,51,76,0.19);
  padding: 36px 22px 24px 22px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalIn .7s cubic-bezier(.67,0,.34,1);
}
@keyframes cookieModalIn {
  0% {transform: translateY(75px) scale(.92); opacity: 0;}
  100% {transform: translateY(0px) scale(1); opacity: 1;}
}
.cookie-modal-dialog h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 20px;
  height: 20px;
}
.cookie-category label {
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  border-radius: 9px;
  padding: 3px;
  transition: background .12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--pastel-pink);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 8px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 18px 4px;
    border-radius: 14px;
  }
  .card {
    padding: 18px 12px;
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  .card, .testimonial-card { padding: 12px 11px 13px 12px; border-radius: 11px; }
  .footer-brand img { height: 24px; }
}

/* ---- Miscellaneous ---- */
hidden, .hidden { display: none !important; }
::-webkit-input-placeholder { color: #98a2b5; }
:-moz-placeholder { color: #98a2b5; }
::-moz-placeholder { color: #98a2b5; }
:-ms-input-placeholder { color: #98a2b5; }
input, textarea {
  border: 1.5px solid var(--brand-secondary);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  outline: none;
  margin-bottom: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: var(--brand-primary);
  transition: border-color .18s, box-shadow .14s;
}
input:focus, textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px #ffe08d99;
}

/* ---- Utility Buttons, Chips, Toggles ---- */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0; width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: var(--brand-secondary);
  border-radius: 12px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background 0.14s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--brand-accent);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .19s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* ---- Headings fade-in animation for dreamy effect ---- */
h1, h2, h3, h4 {
  opacity: 0;
  transform: translateY(30px);
  animation: headingFadeIn .9s cubic-bezier(.7,0,.17,1) .17s both;
}
@keyframes headingFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Ensuring no overlays or content overlap ---- */
main {
  padding-bottom: 60px;
}

/* --- Custom SCROLLBAR for Dreamy Soft Touch --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--pastel-blue);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 12px;
}

/* ========== THE END ========== */
