/* --- CSS RESET & NORMALIZATION --- */
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, font, 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #F5F7FA;
  color: #243A52;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
a {
  color: #5DB684;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #243A52;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #243A52;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }

/* --- BRAND COLORS --- */
:root {
  --color-primary: #243A52;
  --color-secondary: #5DB684;
  --color-accent: #F5F7FA;
  --color-warm1: #FFD59D;
  --color-warm2: #FFF3E7;
  --color-error: #C94B4B;
  --shadow-soft: 0 4px 16px 0 rgba(45,56,69,0.08);
  --shadow-card: 0 6px 18px 0 rgba(90, 36, 22, 0.10);
  --border-radius: 22px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 960px) {
  .content-wrapper {
    gap: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #FFF3E7;
  box-shadow: 0 2px 14px rgba(36,58,82,0.05);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.site-logo img {
  height: 48px;
  min-width: 122px;
  display: block;
  border-radius: 0;
}
.main-navigation {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-navigation a {
  color: #243A52;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 18px;
  transition: background .2s, color .2s;
}
.main-navigation a:hover, .main-navigation a:focus {
  background: var(--color-warm1);
  color: var(--color-primary);
}
.cta-button.primary {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  border: none;
  border-radius: 22px;
  padding: 12px 32px;
  margin-left: 18px;
  box-shadow: 0 2px 12px rgba(93, 182, 132, 0.13);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .22s;
  outline: none;
  display: inline-block;
  letter-spacing: 0.01em;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: #24986a;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px 0 rgba(93, 182, 132, 0.26);
}
.cta-button.secondary {
  background: #FFD59D;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(36,58,82,0.09);
  transition: background .18s, box-shadow .16s, transform .18s;
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: #fbb769;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(255,213,157,0.18);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  margin-left: 18px;
  border-radius: 10px;
  padding: 3px 10px;
  z-index: 302;
  display: flex;
  align-items: center;
  transition: background .16s, color .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #FFD59D;
  color: var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244, 226, 207, 0.93);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,.2,.1,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--color-primary);
  font-size: 2.6rem;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  margin: 22px 22px 0 0;
  transition: background .15s, color .15s;
  align-self: flex-end;
  z-index: 502;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #FFD59D;
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 36px;
  padding-left: 36px;
  gap: 12px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  background: none;
  border-radius: 12px;
  padding: 16px 18px 16px 0;
  min-width: 200px;
  margin-bottom: 4px;
  transition: background .17s, color .13s;
  outline: none;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: #FFD59D;
}

@media (max-width: 980px) {
  .main-navigation,
  .cta-button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 981px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- HERO/BANNER SECTIONS --- */
.hero-section {
  background: linear-gradient(90deg, #FFD59D 0%, #F5F7FA 80%);
  padding: 48px 0 36px 0;
  margin-bottom: 36px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  box-shadow: var(--shadow-soft);
}
.hero-section h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 2.3rem;
}
.hero-section p {
  font-size: 1.2rem;
  color: #444950;
  margin-bottom: 24px;
  font-family: var(--font-body);
}
@media (max-width: 600px) {
  .hero-section {
    padding: 32px 0 24px 0;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }
  .hero-section h1 {
    font-size: 1.4rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}

/* --- FEATURES + PROGRAM GRIDS --- */
.feature-grid, .service-cards, .process-steps-grid, .analytics-methods-grid, .training-programs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature {
  background: #FFFCF7;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: box-shadow .22s, transform .18s;
  margin-bottom: 20px;
}
.feature img {
  width: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 8px;
}
.feature:hover, .feature:focus, .service-card:hover, .service-card:focus {
  box-shadow: 0 8px 32px 0 rgba(93,182,132,0.16);
  transform: translateY(-4px) scale(1.02);
}
.service-card {
  background: #FFF3E7;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 30px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .17s;
}
.service-card img {
  width: 38px;
  margin-bottom: 14px;
}
.process-steps-grid .step, .analytics-methods-grid .method, .training-programs-list .program {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  flex: 1 1 220px;
  min-width: 180px;
  padding: 22px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  flex: 1 1 260px;
  min-width: 230px;
  background: #fff;
  color: #243A52;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(208, 148, 80, 0.10);
  padding: 28px 24px 18px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: box-shadow .17s, transform .15s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px 0 rgba(93, 182, 132, 0.11);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-card p {
  color: #243A52;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.testimonial-name {
  display: block;
  color: #5DB684;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 0.01em;
}

/* --- TEXT/INFORMATION SECTIONS --- */
.section, .legal-section, .confirmation-section {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  font-size: 1.12rem;
  color: #384965;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.benefit-highlights ul, .reporting-examples ul {
  list-style-type: disc;
  margin-bottom: 0;
}
.benefit-highlights ul li, .reporting-examples ul li {
  color: #405273;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 5px;
  line-height: 1.6;
}

/* --- CTA SECTIONS --- */
.cta-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta-section .text-section {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.08rem;
}
@media (min-width: 700px) {
  .cta-section .content-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
  }
}

/* --- CONTACT INFO BLOCKS --- */
.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-info li {
  font-size: 1.01rem;
  color: #243A52;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info img {
  width: 20px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.map-embed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 1rem;
  margin-top: 14px;
  margin-bottom: 8px;
}
.map-embed img {
  width: 120px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* --- FLEXBOX UTILITY CLASSES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF3E7;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 18px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FOOTER --- */
footer {
  background: #243A52;
  color: #fff;
  padding: 26px 0 24px 0;
  margin-top: 50px;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -4px 32px rgba(36,58,82,0.07);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-navigation, .footer-legals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-navigation a, .footer-legals a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color .12s, background .12s;
  border-radius: 12px;
  padding: 3px 6px;
}
.footer-navigation a:hover, .footer-legals a:hover {
  color: var(--color-secondary);
  background: rgba(255,213,157,0.1);
}
footer .contact-info ul {
  gap: 4px;
  color: #F5F7FA;
}
footer .contact-info li {
  color: #FFF3E7;
  font-size: 0.97rem;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- LEGAL/TEXT PAGE ADJUSTMENTS --- */
.legal-section {
  background: #fff;
  margin-bottom: 48px;
}
.confirmation-section, .legal-section {
  border-radius: var(--border-radius);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1140px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 780px) {
  .container {
    padding: 0 2vw;
  }
  .footer-navigation, .footer-legals {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-navigation a, .footer-legals a {
    font-size: 0.95rem;
  }
  footer .container {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-cards, .process-steps-grid, .analytics-methods-grid, .training-programs-list, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .main-navigation, .footer-navigation, .footer-legals {
    flex-direction: column;
    gap: 13px;
  }
  .container {
    padding: 0 5vw;
  }
}

/* --- HIDE SCROLLBAR IN MOBILE MENU --- */
.mobile-menu::-webkit-scrollbar {
  display: none;
}
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- MICRO-INTERACTIONS & HOVER --- */
button, .cta-button, a {
  transition: background .18s, color .18s, box-shadow .17s, transform .14s;
}

/* --- FOCUS STATES (A11Y) --- */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF3E7;
  color: #243A52;
  padding: 22px 22px 22px 20px;
  box-shadow: 0 -4px 22px rgba(36,58,82,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  width: 100vw;
  gap: 13px;
  font-family: var(--font-body);
  animation: bannerIn .38s cubic-bezier(.62,.02,.36,1.02);
}
@keyframes bannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 12px;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 2px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 18px;
  padding: 8px 22px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  margin: 0 3px;
  font-weight: 600;
  outline: none;
}
.cookie-banner .cookie-accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: #24986a;
}
.cookie-banner .cookie-reject {
  background: #FFD59D;
  color: #243A52;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: #fbb769;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid #FFD59D;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #FFF3E7;
  color: var(--color-secondary);
}

/* -- Cookie Consent Modal -- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36,58,82,0.29);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bannerIn .3s cubic-bezier(.62,.02,.36,1.02);
}
.cookie-modal {
  background: #fff;
  color: #243A52;
  border-radius: 24px;
  padding: 32px 28px 24px 28px;
  min-width: 310px;
  max-width: 95vw;
  box-shadow: 0 8px 35px rgba(36,58,82,0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  margin-bottom: 7px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  padding: 7px 0;
}
.cookie-category .category-label {
  flex: 1 1 auto;
  font-size: 1.07rem;
}
.cookie-category .toggle-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFD59D;
  transition: background .17s;
  border-radius: 22px;
}
.toggle-switch input:checked + .slider {
  background: #5DB684;
}
.toggle-switch .slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .21s;
  box-shadow: 0 1px 2px rgba(36,58,82,0.08);
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-actions {
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject, .cookie-modal .cookie-settings {
  font-size: 1rem;
  padding: 8px 22px;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #243A52;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 10px;
  transition: background .12s, color .15s;
}
.cookie-modal .cookie-close:hover,
.cookie-modal .cookie-close:focus {
  background: #FFD59D;
  color: #5DB684;
}

/* --- UTILITIES --- */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* --- PRINT STYLES --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  body, .container, .section {
    background: #fff !important;
    color: #000 !important;
  }
}
