/* ---------------------------
   CSS RESET, NORMALIZE, BASE
----------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F8F7FC;
  color: #28485A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.6em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.4em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #28485A;
  line-height: 1.2;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p    { margin-bottom: 1.2em; }
strong { font-weight: 700; }

/* ---------------------------
   PASTEL COLORS 
----------------------------- */
:root {
  --primary: #28485A;
  --secondary: #B6C4B6;
  --accent: #E9E4D6;
  --pastel-pink: #F8D1D1;
  --pastel-blue: #AFD3E2;
  --pastel-green: #D7F9E9;
  --pastel-yellow: #FFF7D6;
  --pastel-purple: #E3DDFB;
  --pastel-coral: #FAD8D6;
  --white: #fff;
  --text-dark: #28485A;
  --text-light: #fff;
  --shadow: 0 2px 18px 0 rgba(40,72,90,0.07), 0 1.5px 10px 0 rgba(182,196,182,0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.18s cubic-bezier(.45,.05,.55,.95);
  --container-max: 1160px;
  --section-bg: #E3DDFB;
  --section-alt-bg: #D7F9E9;
}

/* ---------------------------
   CONTAINER & LAYOUTS
----------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---------------------------
   HEADER & NAVIGATION
----------------------------- */
header {
  width: 100%;
  padding: 0;
  background: var(--white);
  box-shadow: 0 2px 24px 0 rgba(40,72,90,0.04);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 80px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.21s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--pastel-blue);
  color: var(--primary);
}

header .btn-primary {
  margin-left: 13px;
}

/* ---------------------------
   BUTTONS & LINKS
----------------------------- */
.btn-primary,
.btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 11px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  border-bottom: 3px solid rgba(40,72,90,0.06);
  box-shadow: 0px 2px 13px 0px rgba(182,196,182,0.10);
  transition: var(--transition);
  display: inline-block;
  outline: none;
}
.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--secondary);
  color: var(--primary);
  box-shadow: 0 3px 16px 0 var(--pastel-blue);
}
.btn-secondary {
  background-color: var(--accent);
  color: var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--pastel-pink);
  color: var(--primary);
  box-shadow: 0 3px 16px 0 var(--pastel-pink);
}
a.btn-primary, a.btn-secondary {
  text-align: center;
}

/* ---------------------------
   FLEXBOX MANDATORY LAYOUTS
----------------------------- */
.card-container, .services-list, .footer-wrapper,
.card-grid, .content-grid, .features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container { gap: 24px; }
.content-grid { gap: 20px; justify-content: space-between; }

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-yellow);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
}
.services-list > div {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  flex: 1 1 290px;
  min-width: 260px;
  padding: 28px 22px 20px 22px;
  margin-bottom: 20px;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.services-list > div:hover, .services-list > div:focus-within {
  background: var(--pastel-blue);
  box-shadow: 0 6px 24px 0 var(--pastel-blue);
  transform: translateY(-4px) scale(1.025);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
  border-top: 1px solid #E8E2DF;
  background: var(--pastel-purple);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.footer-wrapper nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-wrapper img {
  height: 38px;
}

/* ---------------------------
   BANNERS & SECTIONS
----------------------------- */
section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
main section:nth-child(even) {
  background: var(--section-bg);
}
main section:nth-child(odd) {
  background: var(--section-alt-bg);
}

/* Ensure at least 20px between all cards/sections */
section + section {
  margin-top: 24px;
}
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* ---------------------------
   TYPOGRAPHY HIERARCHY
----------------------------- */
.section h1, h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-top: 0.9em;
}
.section h2, h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: var(--primary);
  margin-top: 0.6em;
}
.section h3, h3 {
  font-size: 1.24rem;
}

.section p, .section ul, .section ol, .section dl {
  font-size: 1.08rem;
}

ul {
  margin-bottom: 1.2em;
  margin-top: 0.3em;
}
ul li {
  margin-bottom: 0.4em;
  padding-left: 6px;
}
ul li strong, ol li strong, .section strong { color: var(--primary); }
dt { font-weight: 600; margin-top: 1em; }
dd { margin-left: 0.7em; }

/* ---------------------------
   TESTIMONIAL CARDS
----------------------------- */
.testimonial-card p {
  color: var(--primary);
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0.4em;
}
.testimonial-card span {
  color: #3d6780;
  font-size: 0.96rem;
}
.testimonial-card strong {
  color: var(--primary);
}

/* ---------------------------
   RESPONSIVE & MOBILE NAV
----------------------------- */
.mobile-menu-toggle {
  position: fixed;
  right: 15px;
  top: 18px;
  z-index: 2000;
  background: var(--pastel-blue);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px 0 rgba(175, 211, 226, 0.16);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pastel-pink);
  color: var(--primary);
}
@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none !important; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--pastel-blue) 60%, var(--pastel-pink) 130%);
  z-index: 3020;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.41,1.03,.51,.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 40px 0;
}
.mobile-menu.active {
  transform: translateX(0);
  box-shadow: 0 0 0 100vmax rgba(40,72,90,.15);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--pastel-coral);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 45px; height: 45px;
  margin: 28px 24px 0 0;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgba(250,216,214,0.13);
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 40px 0 0 38px;
  width: 90%;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0 8px 6px;
  border-radius: var(--radius-md);
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-green);
  color: #203138;
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* Hide desktop nav on mobile, show only burger */
@media (max-width: 1024px) {
  .main-nav, header .btn-primary {
    display: none !important;
  }
  header .container {
    justify-content: flex-start;
    gap: 14px;
  }
}

/* ---------------------------
   COOKIE CONSENT BANNER
----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--pastel-coral);
  color: var(--primary);
  box-shadow: 0 -3px 36px 0 rgba(250,216,214,0.19);
  padding: 26px 24px;
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  font-size: 1.04rem;
  transition: transform 0.34s ease, opacity 0.34s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 19px;
  margin: 0 3px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--pastel-yellow);
  color: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(40,72,90,0.07);
  transition: background 0.14s, color 0.14s;
}
.cookie-banner button.accept {
  background: var(--pastel-green);
  color: var(--primary);
}
.cookie-banner button.reject {
  background: var(--pastel-purple);
  color: var(--primary);
}
.cookie-banner button.settings {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 10px));
  background: var(--white);
  box-shadow: 0 6px 48px 0 rgba(40,72,90,0.21);
  border-radius: var(--radius-lg);
  padding: 44px 38px 30px 38px;
  z-index: 10901;
  width: 95vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.32s, transform 0.36s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 30%);
}
.cookie-modal h3 {
  font-size: 1.3rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal label {
  font-weight: 400;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal input[type=checkbox]:not(:disabled) {
  accent-color: var(--pastel-blue);
}
.cookie-modal .category-essential {
  opacity: 0.5;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 19px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 19px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  background: var(--pastel-blue);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal button.save {
  background: var(--pastel-green);
}
.cookie-modal button.cancel {
  background: var(--pastel-yellow);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ---------------------------
   UTILITIES & MISC
----------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow); }

/* Subtle fade-in animation for cards/sections */
@keyframes fadeInSoft {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}
section,
.services-list > div,
.testimonial-card,
.footer-wrapper,
.cookie-banner,
.cookie-modal {
  animation: fadeInSoft 0.85s cubic-bezier(.51,.09,.57,.95) both;
}

/* Hover up effect */
.services-list > div:hover { box-shadow: 0 7px 24px 0 var(--pastel-blue); }

/* --------------------------
   FOOTER
---------------------------- */
footer {
  background: var(--pastel-purple);
  margin-top: 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0px -4px 14px 0px rgba(182,196,182,0.09);
}
footer .container {
  padding: 0 20px;
}
.footer-wrapper {
  flex-direction: row;
}
.footer-wrapper nav a {
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
  padding: 2px 0;
  transition: color 0.17s;
}
.footer-wrapper nav a:hover { color: #556884; }
footer p {
  font-size: 0.93rem;
  color: #556884;
  margin-bottom: 5px;
}
footer p:last-child { margin-bottom: 0; }

/*************
RESPONSIVE STYLES
**************/
@media (max-width: 1020px) {
  .container, footer .container {
    padding: 0 12px;
  }
  .footer-wrapper {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .content-wrapper { max-width: 100%; }
  .main-nav { gap: 14px; }
  section, .section {
    padding: 32px 7px;
    margin-bottom: 44px;
  }
  .services-list, .card-container, .content-grid, .features, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
  .footer-wrapper { padding-top: 14px; padding-bottom: 17px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.44rem; }
  h3 { font-size: 1rem; }
  section, .section {
    padding: 18px 3.5vw;
    margin-bottom: 27px;
    border-radius: var(--radius-md);
  }
  .btn-primary, .btn-secondary {
    padding: 9px 18px;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
  }
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 20px 7px 19px 7px;
    font-size: 0.98rem;
  }
  .mobile-nav a {
    font-size: 1.11rem;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 19px; }
}
