/* --- CSS RESET & NORMALIZE --- */
html {box-sizing: border-box;}
*, *:before, *:after {box-sizing: inherit; margin: 0; padding: 0; border: 0;}
body {margin: 0; padding: 0; font-family: 'Open Sans', Arial, sans-serif; background: #F4F6F8; color: #215377; line-height: 1.5;}
img {max-width: 100%; display: block;}
h1, h2, h3, h4, h5, h6 {font-family: 'Montserrat', Arial, sans-serif; color: #216688; font-weight: 800; letter-spacing: 0.01em; margin-bottom: 0.5em;}
a {color: #216688; text-decoration: none; transition: color 0.2s;}
a:hover, a:focus {color: #86A663;}
ul, ol {list-style: none; padding: 0; margin: 0;}

:root {
  --primary: #216688;
  --primary-dark: #215377;
  --secondary: #F4F6F8;
  --secondary-contrast: #FFFFFF;
  --accent: #A2C48B;
  --accent-dark: #86A663;
  --brand-yellow: #FFE773;
  --brand-pink: #F7B3D9;
  --brand-blue-light: #E3F4FA;
  --brand-orange: #FFAA71;
  --shadow: 0 2px 12px 0 rgba(33,102,136,0.12), 0 0.5px 2px 0 rgba(33,102,136,0.12);
  --radius: 20px;
  --header-height: 70px;
}

/* --- CORE LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main { min-height: 60vh; }

/* --- SPACING & SECTION LAYOUTS --- */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: var(--shadow);
  position: relative;
}

@media (max-width: 768px) {
  .section,
  section {
    padding: 32px 8px;
    margin-bottom: 32px;
  }
}

.card-container,
.card-grid,
.feature-grid,
.service-list,
.service-overview-grid,
.process-steps,
.case-study-list,
.outcome-highlights ul,
.blog-article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

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

.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFFDE6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 270px;
  max-width: 370px;
  margin-bottom: 20px;
  border-left: 7px solid var(--brand-yellow);
  transition: box-shadow 0.2s, border-color 0.25s;
}
.testimonial-card p { color: #216688; font-size: 16px; font-weight: 500; }
.testimonial-card span { color: #215377; font-weight: 600; font-size: 15px; }
.testimonial-card:hover { box-shadow: 0 6px 24px rgba(255,234,100, 0.14); border-color: var(--accent-dark); }

.feature-grid {
  width: 100%;
  gap: 24px;
}
.feature-grid li {
  background: #E3F4FA;
  border-radius: var(--radius);
  width: 260px;
  max-width: 100%;
  padding: 26px 20px 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px rgba(162,196,139,.18);
  background: #C5EDCE;
}
.feature-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}
.feature-grid h3 {
  font-size: 21px;
  color: var(--primary);
  margin-bottom: 7px;
}
.feature-grid p {
  font-size: 16px;
  color: #215377;
}

/*********** CARDS (Service, Case Study, etc.) ***********/
.card, .service-card, .case-study-list > div {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.22s, background .18s;
}
.card:hover, .service-card:hover, .case-study-list > div:hover {
  background: #F7B3D9;
  box-shadow: 0 8px 32px rgba(247,179,217, 0.15);
}
.service-card h2, .service-card h3 { font-size: 22px; color: var(--primary-dark); }
.service-card p { color: #215377; font-size: 16px; margin-bottom: 8px; }
.service-card .service-price { background: var(--brand-yellow); color: #215377; font-weight: bold; font-size: 16px; border-radius: 8px; padding: 4px 14px; margin-top: 6px; letter-spacing: 0.03em; display: inline-block; }

.service-list, .service-overview-grid {
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div, .service-overview-grid > div {
  flex: 1 1 280px;
  min-width: 260px;
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-overview-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/******* PROCESS STEPS *******/
.process-steps {
  gap: 24px;
  align-items: flex-start;
  margin-top: 14px;
}
.process-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px 18px 8px;
  background: #E3F4FA;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 300px; min-width: 250px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .15s, background .12s;
}
.process-steps li:hover {
  background: #FFFDE6;
  box-shadow: 0 4px 16px rgba(255,234,100,0.12);
}
.process-steps img {
  width: 44px;
  height: 44px;
  margin-right: 10px;
}
.process-steps h3 { margin-bottom: 5px; font-size: 18px; }
.process-steps p { color: #215377; font-size: 15px; }

/******* OUTCOME HIGHLIGHTS & BEFORE-AFTER ******/
.outcome-highlights, .before-after-descriptions {
  margin-top: 24px;
  padding: 22px 18px;
  background: #C5EDCE;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.outcome-highlights h3, .before-after-descriptions h3 {
  color: #216688;
  font-size: 18px;
  margin-bottom: 12px;
}
.outcome-highlights ul,
.before-after-descriptions ul {
  gap: 16px;
  flex-wrap: wrap;
  display: flex;
}
.outcome-highlights li, .before-after-descriptions li {
  color: #215377;
  font-size: 16px;
  position: relative;
  padding-left: 18px;
}
.outcome-highlights li:before,
.before-after-descriptions li:before {
  content: '•';
  color: #86A663;
  position: absolute;
  left: 0; top: 0;
  font-size: 18px;
}

/************ BLOG **********/
.blog-article-list {
  gap: 24px;
  margin-bottom: 20px;
}
.blog-article-list li {
  background: #FFE773;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: background .18s, box-shadow .18s;
  color: #215377;
  flex: 1 1 290px;
  min-width: 270px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.blog-article-list li:hover {
  background: #F7B3D9;
  box-shadow: 0 8px 24px rgba(247,179,217,0.13);
}
.blog-article-list h2 {font-size: 21px; margin-bottom: 9px; color: #216688;}

.blog-categories {
  margin: 15px 0 0 0;
}
.blog-categories ul {
  gap: 18px; display: flex; flex-wrap: wrap;
}
.blog-categories li {
  background: #A2C48B; color: #FFFFFF;
  border-radius: 8px;
  padding: 3px 11px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.16s;
}
.blog-categories li:hover { background: #86A663; color: #FFFDE6; }

/********* NEWSLETTER CTA ********/
.newsletter-cta {
  padding: 32px 16px;
  background: #F7B3D9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 20px;
}

/*************** TYPOGRAPHY ****************/
h1 {font-size: 2.4rem; line-height: 1.15; letter-spacing: 0.02em;}
h2 {font-size: 2rem; line-height: 1.18; margin-bottom: 8px;}
h3 {font-size: 1.28rem; line-height: 1.2; margin-bottom: 6px;}
h4 {font-size: 1.1rem;}
p, li {font-size: 16px; color: #215377;}
body {
  font-size: 16px;
}
.subheadline {
  font-size: 20px;
  color: #86A663;
  font-weight: 600;
  margin-bottom: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
}
strong { font-weight: 700; }
.text-section { width: 100%; max-width: 750px; margin: 0 auto 12px auto; }
.text-section ul, .text-section ol {
  margin: 12px 0 12px 0;
  padding-left: 20px;
  color: #215377;
}
.text-section li { margin-bottom: 8px; }
.text-section ul li::marker { color: #A2C48B; font-weight: bold; }

/*********** BUTTONS ***********/
.cta-button, button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.03em;
  outline: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--secondary-contrast);
  border: none;
  border-radius: 26px;
  padding: 14px 32px;
  margin: 12px 10px 12px 0;
  box-shadow: 0 2px 8px rgba(33,102,136,0.14);
  transition: background .22s, color .15s, box-shadow .20s, transform .13s;
  position: relative;
  z-index: 1;
}
.cta-button:hover, button:hover, .mobile-menu-toggle:hover, .mobile-menu-close:hover {
  background: var(--accent-dark);
  color: #215377;
  box-shadow: 0 6px 16px rgba(162,196,139,0.19);
  transform: translateY(-2px) scale(1.03) rotate(-2deg);
}
.cta-button {
  background: linear-gradient(90deg, #216688 85%, #F7B3D9 100%);
  color: #FFFDE6;
  border-radius: 38px;
  font-size: 20px;
  box-shadow: 0 3px 11px rgba(247,179,217, 0.08), var(--shadow);
  margin-top: 16px;
  letter-spacing: 0.06em;
  animation: cta-bounce 2.2s infinite linear alternate;
}
@keyframes cta-bounce {
  0% { filter: brightness(1); }
  95% { transform: scale(1); }
  98% { transform: scale(1.06) translateY(-3px) rotate(-.6deg); filter: brightness(1.05); }
  100% { transform: scale(1.02); filter: brightness(1.06); }
}

/********* HEADER & NAVIGATION *********/
header {
  background: #FFFDE6;
  box-shadow: 0 2px 16px 0 rgba(33,102,136,0.07);
  position: sticky;
  top: 0;
  z-index: 70;
}
header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-height);
  justify-content: space-between;
}
header img { height: 44px; }
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  padding: 7px 14px;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #216688;
  background: transparent;
  transition: background .1s, color .14s;
}
header nav a:hover, header nav a:focus {
  background: #F7B3D9;
  color: #215377;
}
.mobile-menu-toggle {
  display: none;
  background: var(--brand-yellow);
  color: #216688;
  font-size: 28px;
  border-radius: 50%;
  width: 48px; height: 48px;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 12px rgba(255,234,100,.12);
}
@media (max-width: 1000px) {
  header nav, header .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 480px) {
  header .container { padding: 0 8px; }
  header img { height: 38px; }
}

/*********** MOBILE MENU ***********/
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,102,136, 0.93);
  color: #FFFDE6;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.7,0.3,0.5,1.2);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: #FFE773;
  color: #216688;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 26px;
  margin: 22px 28px 24px 0;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 14px 34px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  background: transparent;
  padding: 8px 18px;
  border-radius: 15px;
  margin-bottom: 8px;
  transition: background .11s, color .12s;
  letter-spacing: 0.03em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #C5EDCE;
  color: #215377;
}

/*********** FOOTER ***********/
footer {
  background: #216688;
  color: #FFFDE6;
  box-shadow: 0 -3px 16px 0 rgba(33,102,136,0.10);
  padding: 36px 0 16px 0;
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu, .footer-contact, .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-menu {
  flex: 1 1 185px;
  gap: 11px;
}
.footer-menu a {
  color: #FFFDE6;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 0;
  transition: color .16s;
  border-radius: 8px;
}
.footer-menu a:hover {
  color: #FFE773;
  background: rgba(255,231,115,0.14);
}
.footer-contact p, .footer-contact a { color: #FFFDE6; font-size: 15px; }
.footer-brand img { height: 36px; margin-bottom: 6px; }
.footer-brand span { color: #F7B3D9; font-family: 'Montserrat', Arial, sans-serif; font-size: 16px; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/******* CONTACT INFORMATION *******/
.contact-information ul {
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-information a { color: #216688; text-decoration: underline dotted; }
.contact-information a:hover { color: #86A663; text-decoration: underline solid; }

/* -- Responsive Tweaks -- */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.48rem; }
  .feature-grid li, .service-card, .case-study-list > div, .blog-article-list li {
    min-width: 98%; max-width: 100%;
    padding: 18px 10px;
  }
  .testimonial-card { min-width: 98%; max-width: 100%; }
}
@media (max-width: 450px) {
  .cta-button, button {
    font-size: 15px;
    padding: 11px 16px;
  }
}

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

/************ ANIMATIONS & MICRO-INTERACTIONS ************/
.card, .service-card, .feature-grid li, .testimonial-card, .blog-article-list li {
  transition: box-shadow .22s, background .18s, transform .13s;
}
.card:active, .service-card:active, .feature-grid li:active, .testimonial-card:active, .blog-article-list li:active {
  transform: scale(0.98) rotate(.7deg);
}
.testimonial-card { animation: testimonial-pop 1.8s cubic-bezier(0.68,-0.55,0.27,1.55) backwards; }
@keyframes testimonial-pop {
  from { opacity:0; transform: translateY(30px) scale(0.98); }
  to { opacity:1; transform: none; }
}

/************ COOKIE CONSENT BANNER ***********/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: #216688;
  color: #FFFDE6;
  padding: 20px 32px 20px 20px;
  z-index: 99999;
  box-shadow: 0 -6px 32px rgba(33,102,136,0.18);
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.27s cubic-bezier(.6,0,0,1.1), opacity 0.15s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-text {
  max-width: 480px;
  font-size: 16px;
  color: #FFFDE6;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .cta-button {
  font-size: 16px;
  border-radius: 18px;
  padding: 9px 22px;
  font-weight: 700;
  margin: 0;
}
.cookie-banner .accept-btn {
  background: #A2C48B;
  color: #215377;
  box-shadow: 0 2px 11px rgba(162,196,139,0.16);
}
.cookie-banner .accept-btn:hover {
  background: #86A663;
  color:#FFFDE6;
}
.cookie-banner .reject-btn {
  background: #F7B3D9;
  color: #215377;
}
.cookie-banner .reject-btn:hover {
  background: #FFE773;
  color: #216688;
}
.cookie-banner .settings-btn {
  background: #FFE773;
  color: #215377;
}
.cookie-banner .settings-btn:hover {
  background: #A2C48B; color: #FFFFFF;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column; gap: 18px;
    align-items: flex-start;
    padding: 18px 12px 22px 12px;
  }
  .cookie-banner .cookie-actions { gap: 8px; flex-wrap: wrap; }
}

/*********** COOKIE PREFERENCES MODAL **********/
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1.07);
  background: #FFFDE6;
  color: #215377;
  z-index: 100000;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px 0 rgba(33,102,136,0.20);
  padding: 38px 30px 32px 30px;
  max-width: 480px;
  width: 95vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s, transform 0.27s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: #216688; margin-bottom: 13px; font-size: 1.3rem;
}
.cookie-modal ul {
  margin: 10px 0 18px 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin-bottom: 13px;
}
.cookie-modal label {
  margin-left: 13px; font-weight: 600; letter-spacing: .01em;
}
.cookie-modal .cookie-category-toggle {
  margin-left: auto;
  outline: 1px solid #A2C48B;
  width: 40px; height: 24px;
  border-radius: 16px;
  background: #E3F4FA;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;

  display: flex; align-items: center; padding: 2px;
}
.cookie-modal .cookie-category-toggle[data-enabled="true"] {
  background: #A2C48B;
}
.cookie-modal .cookie-category-toggle::after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFDE6;
  transform: translateX(0);
  transition: transform .22s;
  box-shadow: 0 2px 7px rgba(33,102,136,0.11);
}
.cookie-modal .cookie-category-toggle[data-enabled="true"]::after {
  transform: translateX(15px);
}
.cookie-modal .cookie-modal-actions {
  margin-top: 11px; display: flex; gap: 11px; justify-content: flex-end;
}
.cookie-modal .save-btn {
  background: #A2C48B; color: #FFFDE6;
}
.cookie-modal .save-btn:hover { background: #216688; color:#FFFDE6; }
.cookie-modal .cancel-btn {
  background: #F7B3D9;
  color: #215377;
}
.cookie-modal .cancel-btn:hover { background: #FFE773; color: #216688; }

/**** Overlay for modal ****/
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 99999;
  background: rgba(33,102,136, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/*********** PLAYFUL VISUALS (COLOR SPOTS, DECOR) **********/
.section:before,
.section:after,
section:before, section:after {
  content: '';
  display: block;
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.14;
}
.section:before, section:before {
  width: 140px; height: 140px;
  background: #F7B3D9;
  left: -60px; top: -50px;
  z-index: 0;
}
.section:after, section:after {
  width: 65px; height: 65px;
  background: #FFE773;
  right: -30px; bottom: -21px;
  z-index: 0;
}
@media (max-width:700px) {
  .section:before, section:before { left: -35px; top: -30px; width: 80px; height: 80px; }
  .section:after, section:after { right: -18px; bottom: -12px; width: 36px; height: 36px; }
}

/********* OTHER ********/
::-webkit-input-placeholder {color: #C5EDCE;}
::-moz-placeholder {color: #C5EDCE;}
:-ms-input-placeholder {color: #C5EDCE;}
::placeholder {color: #C5EDCE;}

.visually-hidden { position: absolute !important; height: 1px; width: 1px; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; }

/**** Responsive table for legal pages ****/
.text-section table, .text-section th, .text-section td {
  border: 1px solid #A2C48B;
  border-collapse: collapse;
  padding: 8px 6px;
  color: #215377;
}
.text-section table {
  width: 100%;
  margin: 14px 0;
  background: #E3F4FA;
  border-radius: 8px;
}

/**** Remove outline flicker on buttons ****/
button:focus, .cta-button:focus { outline: 2px solid #A2C48B; }

/********* Z-INDEX MANAGEMENT ********/
header { z-index: 70; }
.mobile-menu, .mobile-menu-close { z-index: 99966; }
.cookie-banner { z-index: 99999; }
.cookie-modal, .cookie-modal-overlay { z-index: 100000; }

/********* PRINT STYLES (hide nav, footer, banner) ********/
@media print {
  header, nav, .mobile-menu, .footer-menu, .footer-brand, .cookie-banner, .cookie-modal { display: none !important; }
  footer { padding: 0; background: #fff; color: #000; }
}
