/* =====================================================
   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;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFC;
  color: #243556;
}
html {
  scroll-behavior: smooth;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}
button {
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
}
:focus {
  outline: 2px solid #3CA986;
  outline-offset: 2px;
}

/* =====================================================
   CUSTOM PROPERTIES (WITH FALLBACKS)
======================================================*/
:root {
  --primary: #243556;
  --secondary: #3CA986;
  --accent: #F5F7FA;
  --pastel-blue: #BFD7ED;
  --pastel-teal: #D0F3EF;
  --pastel-pink: #FFD6EA;
  --pastel-yellow: #FFF7DB;
  --pastel-violet: #ECE8FF;
  --pastel-lilac: #E7DBFF;
  --text-dark: #223255;
  --text-dark-strong: #243556;
  --text-light: #fff;
  --shadow: 0 4px 24px 0 rgba(92, 117, 156, 0.09);
  --shadow-card: 0 2px 10px 0 rgba(124, 157, 197, 0.10);
  --radius: 18px;
  --radius-lg: 32px;
  --transition: 0.2s cubic-bezier(.55,.08,.68,.53);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* =====================================================
   TYPOGRAPHY
======================================================*/
body, html {
  font-family: var(--font-body), sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--accent);
}
h1 {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display), sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display), sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-display), sans-serif;
  color: var(--primary);
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
small {
  font-size: 0.93em;
}

/* =====================================================
   CONTAINERS & SECTIONS
======================================================*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section.hero {
  padding-top: 48px;
  padding-bottom: 44px;
  margin-bottom: 50px;
  background:
    linear-gradient(90deg, #ECF6FF 0%, #FBEFFF 100%),
    var(--pastel-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.quick-facts, .statistics ul, .resource-highlights ul, .newsletter ul {
  margin-bottom: 0;
}
.quick-links, .categories, .featured-articles, .resource-highlights {
  margin-top: 14px;
}

/* =====================================================
   FLEX CONTAINERS & CARDS
======================================================*/
.feature-grid, .benefit-grid, .callout-boxes, .downloadable-resources, .newsletter, .case-study-list, .article-list, .testimonial-slider, .client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > div, .benefit-grid > div, .callout-boxes > div,
.downloadable-resources > div, .case-study-list > div, .article-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  flex: 1 1 270px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow var(--transition);
}
.feature-grid > div:hover, .benefit-grid > div:hover, .callout-boxes > div:hover,
.downloadable-resources > div:hover, .case-study-list > div:hover, .article-list > div:hover {
  box-shadow: 0 6px 32px rgba(60,169,134,0.13);
}

.case-study-list {
  flex-direction: row;
  gap: 24px;
  margin-bottom: 16px;
}

.downloadable-resources > div {
  align-items: center;
  text-align: left;
  gap: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition); 
}
.card:hover {
  box-shadow: 0 10px 36px #BFD7ED55;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/************ Testimonials ************/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--pastel-violet);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(60,169,134,0.10);
  min-width: 230px;
  max-width: 360px;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.08em;
}
.testimonial-card span {
  font-size: 0.95em;
  color: var(--text-dark-strong);
  font-family: var(--font-display);
  font-weight: 600;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 12px;
}
.client-logos img {
  height: 42px;
  width: auto;
  opacity: 0.72;
  transition: opacity var(--transition);
}
.client-logos img:hover {
  opacity: 1;
}

/************ Footer ************/
footer {
  background: var(--pastel-blue);
  padding: 42px 0 0 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-main a img {
  width: 110px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--secondary);
}
.footer-contact p {
  font-size: 1em;
  color: #33446b;
  margin-bottom: 6px;
}

/************ Buttons & Links ************/
.cta-btn, .cta-link, .newsletter a.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 1.15em;
  font-weight: 600;
  font-family: var(--font-display);
  background: linear-gradient(90deg, var(--secondary) 70%, #6fd4ad 100%);
  color: var(--text-light);
  box-shadow: 0 2px 10px #3CA98619;
  letter-spacing: 0.5px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
}
.cta-btn:hover, .cta-link:hover, .newsletter a.cta-btn:hover {
  filter: brightness(1.08);
  background: linear-gradient(90deg, #43ba96 60%, #39cfb2 100%);
  box-shadow: 0 8px 28px #3CA98634;
}
.cta-link {
  background: none;
  color: var(--secondary);
  padding: 0;
  font-size: 1em;
  font-family: var(--font-display);
  text-decoration: underline;
  box-shadow: none;
}
.cta-link:hover {
  text-decoration: none;
  color: var(--primary);
}
.quick-links a, .featured-articles a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
  font-family: var(--font-display);
}
.quick-links a:hover, .featured-articles a:hover {
  color: var(--primary);
  text-decoration: none;
}

/************ Inputs, Lists, Misc ************/
input, textarea, select {
  padding: 10px 14px;
  border: 1.5px solid var(--pastel-blue);
  border-radius: var(--radius);
  font-size: 1em;
  margin-bottom: 14px;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  background: var(--pastel-teal);
}
ul, ol {
  padding-left: 21px;
  margin-bottom: 16px;
  color: var(--primary);
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1em;
}
strong {
  color: var(--primary);
}

/************ Misc ************/
blockquote {
  border-left: 5px solid var(--secondary);
  background: #f4faff;
  margin: 18px 0;
  padding: 16px 24px;
  font-style: italic;
  border-radius: 10px;
}

/************ Callout Boxes ************/
.callout-boxes > div {
  background: var(--pastel-yellow);
  border-left: 8px solid var(--secondary);
  color: var(--primary);
  padding: 18px 38px;
  font-size: 1.08em;
  font-family: var(--font-display);
}

/************ Statistics ************/
.statistics ul {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 22px;
}
.statistics ul li {
  background: url('assets/icons/icon-check.svg') left center no-repeat;
  background-size: 18px 18px;
  padding-left: 25px;
  line-height: 1.7;
  margin-bottom: 7px;
}

/************ Newsletter Section ************/
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
  background: var(--pastel-teal);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.newsletter strong {
  display: block;
  margin-bottom: 7px;
}
.newsletter ul {
  margin-bottom: 0;
}

/************ Modal/Overlay Overlays ************/
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,41,67,0.38);
  z-index: 1112;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.55,.08,.68,.53);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/************ Responsive Table ************/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  padding: 10px 14px;
  border: 1px solid #dfecfc;
}
th {
  background: var(--pastel-blue);
  color: var(--primary);
  font-weight: 600;
}

/************ Impact metrics, outcome & highlights ************/
.impact-metrics p {
  font-size: 1em;
  margin-bottom: 2px;
}
.outcome-summary ul {
  padding-left: 18px;
  margin-bottom: 0;
}

/************ Contact Details ************/
.contact-details ul {
  padding-left: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1em;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: var(--shadow);
}
.contact-details img {
  width: 28px;
  height: 28px;
}

/************ Hamburger and Mobile Navigation ************/
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 26px;
  right: 32px;
  z-index: 1000;
  background: linear-gradient(45deg, var(--secondary) 80%, #bfd7ed);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 12px #bfd7ed66;
  transition: background var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #3CA986;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg,var(--pastel-pink) 30%,var(--pastel-teal) 100%);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.55,.08,.68,.53);
  display: flex;
  flex-direction: column;
  padding-top: 55px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 29px;
  font-size: 2.1rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1212;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 38px 30px 20px 32px;
  flex: 1 1 auto;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.25em;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 13px 0;
  border-bottom: 1px solid #eceaff;
  transition: color var(--transition);
  border-radius: 0;
  touch-action: manipulation;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

/************ Main Nav (Desktop) ************/
header {
  background: var(--accent);
  padding: 0 0 0 0;
  box-shadow: 0 2px 16px #bfd7ed12;
  position: relative;
  z-index: 13;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 88px;
}
.logo img {
  width: 126px;
  height: auto;
  margin-right: 18px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
nav.main-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08em;
  transition: color var(--transition), border-bottom var(--transition);
  padding: 3px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

/************ Cookie Consent Banner ************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-lilac) 60%, var(--pastel-pink) 100%);
  color: var(--primary);
  padding: 28px 24px 22px 24px;
  box-shadow: 0 -2px 18px #e7dbff77;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  z-index: 1500;
  font-size: 1.08em;
  animation: bannerIn .6s cubic-bezier(.47,1.64,.41,.93);
}
@keyframes bannerIn {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 24px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  padding: 9px 24px;
  margin-bottom: 0;
  border-radius: 24px;
  margin-right: 0;
  transition: background var(--transition), color var(--transition);
  background: var(--secondary);
  color: #fff;
  border: none;
}
.cookie-banner button.cookie-reject {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner button.cookie-reject:hover {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: var(--pastel-blue);
  color: var(--primary);
  border: 1.5px solid #b7dff8;
}
.cookie-banner button.cookie-settings:hover {
  background: var(--pastel-teal);
  color: var(--secondary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(1.08);
  box-shadow: 0 2px 10px #bfd7ed29;
}

/************ Cookie Consent Modal ************/
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 94vw;
  width: 400px;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 42px #eceaff99;
  z-index: 2000;
  padding: 40px 34px 30px 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.62,.14,.48,1.03), transform .36s cubic-bezier(.62,.14,.48,1.03);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  margin-bottom: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: var(--pastel-blue);
  color: var(--primary);
  font-size: 1.4em;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.cookie-modal .modal-close:hover {
  background: var(--pastel-pink);
  color: #7b2f4c;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f3f7;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.07em;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
}
.cookie-category input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 25px;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  padding: 9px 24px;
  border-radius: 24px;
  border: none;
}
.cookie-modal-actions .accept-all {
  background: var(--secondary);
  color: #fff;
}
.cookie-modal-actions .reject-all {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-modal-actions .save {
  background: var(--pastel-blue);
  color: var(--primary);
  border: 1.5px solid #b7dff8;
}
.cookie-modal-actions button:hover {
  filter: brightness(1.08);
  box-shadow: 0 2px 10px #bfd7ed29;
}

/* ============================
   MEDIA QUERIES – RESPONSIVE
=============================*/
@media (max-width: 1150px) {
  .container {
    max-width: 96vw;
  }
  nav.main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section, section {
    padding: 28px 2vw;
    margin-bottom: 44px;
  }
  header .container {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  h3 {
    font-size: 1.11rem;
  }
  .content-wrapper, .text-section, .feature-grid, .benefit-grid, .callout-boxes, .case-study-list, .article-list, .downloadable-resources, .newsletter, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .case-study-list > div, .feature-grid > div, .benefit-grid > div, .callout-boxes > div, .downloadable-resources > div, .article-list > div {
    min-width: 0;
    width: 100%;
    padding: 18px 14px;
  }
  .testimonial-slider {
    gap: 16px;
  }
  .client-logos {
    gap: 16px;
  }
  .client-logos img {
    height: 34px;
  }
  .newsletter {
    gap: 18px;
    padding: 16px 8px;
  }
  .resource-highlights ul, .statistics ul, .quick-facts {
    padding-left: 13px;
  }
  .contact-details li {
    padding: 8px 8px;
    font-size: 1em;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  nav.main-nav, .cta-btn {
    display: none !important;
  }
  header .container {
    height: 66px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  section, .section {
    padding: 17px 0;
    margin-bottom: 28px;
  }
  .footer-main {
    gap: 8px;
    padding-bottom: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 20px 7vw 12px 7vw;
    font-size: 0.99em;
    text-align: left;
  }
  .footer-contact p {
    font-size: 0.97em;
  }
  .logo img {
    width: 90px;
  }
}

/* ============================
   PRINT STYLES
=============================*/
@media print {
  nav, .mobile-menu-toggle, .mobile-menu, .cta-btn, .cta-link, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  * {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
