/* =======================================================================
   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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #16335E;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

*, *::before, *::after {
  box-sizing: inherit;
}
a { text-decoration: none; color: inherit; }

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  padding-left: 1.2em;
}

hr { border: none; border-top: 1px solid #e5e7eb; margin: 24px 0; }
/* =======================================================================
   TYPOGRAPHY
   ======================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.15;
  color: #16335E;
  font-weight: 600;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol {
  font-size: 1rem;
  color: #233759;
  margin-bottom: 16px;
}
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

/* =======================================================================
   MAIN LAYOUT STRUCTURE
   ======================================================================= */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 51, 94, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 20px 20px 12px 20px;
  justify-content: space-between;
  gap: 32px;
  min-height: 64px;
}
nav > a img {
  height: 38px;
}
.menu {
  display: flex;
  gap: 22px;
  align-items: center;
}
.menu a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #16335E;
  opacity: 0.88;
  padding: 8px 0;
  border-radius: 4px;
  transition: opacity 0.18s, color 0.2s;
  position: relative;
  font-weight: 500;
}
.menu a:hover,
.menu a:focus {
  color: #26A87B;
  opacity: 1;
}
.menu .btn-primary {
  margin-left: 10px;
}

/* =======================================================================
   BUTTON STYLES
   ======================================================================= */
.btn-primary {
  display: inline-block;
  background: #26A87B;
  color: #fff;
  padding: 11px 30px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(38,168,123,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.16s, transform 0.13s, box-shadow 0.17s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1d7f5e;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(38,168,123,0.18);
  outline: none;
}
.btn-secondary {
  background: transparent;
  color: #16335E;
  border: 1px solid #26A87B;
  padding: 10px 26px;
  border-radius: 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #26A87B;
  color: #fff;
  border-color: #26A87B;
  outline: none;
}

/* =======================================================================
   HAMBURGER MOBILE MENU
   ======================================================================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #16335E;
  font-size: 2.1rem;
  display: none;
  padding: 7px 14px;
  border-radius: 8px;
  position: absolute;
  right: 32px;
  top: 22px;
  z-index: 1202;
  cursor: pointer;
  transition: background 0.19s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #26A87B;
  background: #f4f7fa;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 34px rgba(22,51,94,0.09);
  z-index: 1210;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(.48,.06,.46,1.27);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  opacity: 1;
  /* hidden by default */
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #16335E;
  padding: 18px 22px 8px 12px;
  align-self: flex-end;
  margin-right: 16px;
  margin-top: 12px;
  cursor: pointer;
  z-index: 1222;
}
.mobile-menu-close:focus {
  outline: 2px solid #26A87B;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 32px;
  gap: 18px;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #16335E;
  padding: 13px 0;
  border-radius: 6px;
  transition: background 0.13s, color 0.15s;
  font-weight: 500;
  min-width: 160px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #26A87B15;
  color: #26A87B;
}
@media (max-width: 1050px) {
  nav {
    padding: 20px 12px 12px 12px;
    max-width: 100vw;
  }
}
@media (max-width: 870px) {
  .menu {
    gap: 10px;
  }
}
@media (max-width: 770px) {
  .menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =======================================================================
   SECTIONS AND CONTENT SPACING (as required)
   ======================================================================= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(38,168,123,0.06), 0 2px 6px rgba(22,51,94,0.04);
  padding: 26px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 4px 30px rgba(38,168,123,0.1);
  transform: translateY(-5px) scale(1.010);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #F6F7F9;
  color: #16335E;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 60px;
  box-shadow: 0 1px 8px rgba(22, 51, 94, 0.07);
  border: 1px solid #e6e9ef;
  transition: box-shadow 0.18s, border 0.16s;
}
.testimonial-card .stars {
  color: #26A87B;
  font-size: 1.1em;
  margin-right: 7px;
  letter-spacing: 1px;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16335E;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(38,168,123,0.10), 0 1px 8px rgba(22, 51, 94, 0.12);
  border: 1px solid #c3d1d9;
}

/* Rich lists for categories/features */
.text-section ul,
.text-section ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.text-section ul li {
  position: relative;
  padding-left: 0;
  color: #233759;
  font-size: 1rem;
}
.text-section ul li img {
  height: 24px;
  width: 24px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

/* Contact info */
.contact-info {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Feature highlights */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.features .feature-item {
  flex: 1 1 240px;
}

/* Main CTA Section */
.cta-section {
  background: #F6F7F9;
  border-radius: 18px;
  padding: 40px 24px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  box-shadow: 0 2px 14px rgba(22, 51, 94, 0.04);
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer {
  background: #F6F7F9;
  padding: 48px 0 28px 0;
  color: #233759;
  border-top: 1px solid #e7eaf2;
}
footer .container {
  flex-direction: column;
  gap: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #16335E;
  margin-bottom: 14px;
}
.footer-brand img {
  height: 36px;
  width: 36px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: #16335E;
  opacity: 0.86;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  padding: 6px 8px;
  transition: color 0.16s, background 0.15s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #26A87B;
  background: #ebf8f2;
  outline: none;
}
.footer-contact {
  font-size: 0.97rem;
  margin-bottom: 14px;
  color: #233759;
}
.footer-social {
  display: flex;
  gap: 22px;
  margin-top: 10px;
}
.footer-social a img {
  width: 27px;
  height: 27px;
  opacity: 0.83;
  transition: opacity 0.15s;
}
.footer-social a:hover img {
  opacity: 1;
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #16335E;
  color: #fff;
  z-index: 2000;
  padding: 18px 5% 18px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(22,51,94,0.09);
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.35,1.34,.36,1), opacity 0.13s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-action-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-banner button,
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-banner .btn-primary {
  background: #26A87B;
  color: #fff;
  border-radius: 22px;
  border: none;
  padding: 9px 26px;
  font-weight: 600;
  margin-right: 4px;
  transition: background 0.12s, color 0.12s;
}
.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
  background: #1d7f5e;
}
.cookie-banner .btn-secondary {
  background: transparent;
  color: #26A87B;
  border: 1.2px solid #26A87B;
  border-radius: 22px;
  padding: 8px 18px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s, border-color 0.13s;
}
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus {
  background: #ebf8f2;
  color: #16335E;
  border-color: #1d7f5e;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,51,94,0.18);
  z-index: 2025;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #16335E;
  border-radius: 18px;
  box-shadow: 0 4px 34px rgba(22,51,94,0.16);
  max-width: 95vw;
  width: 400px;
  padding: 32px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInPop 0.32s cubic-bezier(.5,1.3,.4,1);
  position: relative;
}
@keyframes fadeInPop {
  0% { opacity: 0; transform: scale(0.90); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  flex: 1;
}
.cookie-modal .cookie-switch {
  display: inline-flex;
  align-items: center;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  width: 36px;
  height: 18px;
  accent-color: #26A87B;
  margin-right: 9px;
  appearance: none;
  background: #e9ecef;
  border: 1px solid #cfdae3;
  border-radius: 20px;
  position: relative;
  transition: background 0.18s, border-color 0.16s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked {
  background: #26A87B55;
  border-color: #26A87B;
}
.cookie-modal .cookie-switch input[type="checkbox"]:after {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 1px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(22,51,94,0.08);
  transition: left 0.19s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked:after {
  left: 19px;
  background: #26A87B;
}
.cookie-modal .essential {
  opacity: .76;
  font-style: italic;
  color: #233759;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  font-size: 1rem;
  min-width: 100px;
}
.cookie-modal .close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  color: #16335E;
  font-size: 1.65rem;
  cursor: pointer;
}

/* =======================================================================
   MEDIA QUERIES - Responsive Spacing/Stacking
   ======================================================================= */
@media (max-width: 1080px) {
  .container {
    max-width: 92vw;
  }
}
@media (max-width: 870px) {
  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 820px) {
  .content-grid,
  .card-container,
  .features {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 42px;
  }
  .text-image-section, .features, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    font-size: 1rem;
  }
}
@media (max-width: 570px) {
  .container, nav, .footer-menu, .footer-brand { padding-left: 6px; padding-right: 6px; }
  .card, .cta-section, .cookie-modal {
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (max-width: 440px) {
  .btn-primary, .btn-secondary, .cookie-banner .btn-primary, .cookie-banner .btn-secondary {
    padding-left: 13px;
    padding-right: 13px;
    font-size: 0.98rem;
  }
  .cookie-modal { width: 95vw; }
}

/* =======================================================================
   FORM ELEMENTS & ACCESSIBILITY
   ======================================================================= */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
}
input, textarea, select {
  background: #F6F7F9;
  border: 1px solid #ced8e2;
  padding: 10px 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #26A87B;
  border-color: #26A87B;
}
button:focus {
  outline: 2px solid #26A87B;
}

::-webkit-input-placeholder { color: #8ca1b4; }
::-moz-placeholder { color: #8ca1b4; }
:-ms-input-placeholder { color: #8ca1b4; }
::placeholder { color: #8ca1b4; }

/* =======================================================================
   ANIMATIONS & MICROINTERACTIONS
   ======================================================================= */
.card, .testimonial-card, .btn-primary, .btn-secondary {
  transition: box-shadow 0.16s, background 0.18s, color 0.19s, transform 0.12s;
}
.menu a, .footer-menu a {
  transition: color 0.18s, background 0.18s, opacity 0.17s;
}

/* =======================================================================
   MINIMALIST VISUALS (Subtle Accents, Shadows, White Space)
   ======================================================================= */
.section {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 18px rgba(38,168,123,0.03), 0 1px 8px rgba(22, 51, 94, 0.04);
}

/* Extra: style main only element in section - more minimalist breathing room */
.section > .container > .content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* Remove bullet for icon lists */
.text-section ul li {
  list-style: none;
}

/* Minimalist custom horizontal line */
hr {
  border: none;
  height: 1px;
  background: #e0e6ee;
  margin: 36px 0 28px 0;
}

/* =======================================================================
   UTILS
   ======================================================================= */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.hide { display: none !important; }

/* Loader for micro-interactions (for cookie modal if needed) */
.loader {
  border: 3px solid #e2eaf0;
  border-top: 3px solid #26A87B;
  border-radius: 50%;
  width: 32px; height: 32px;
  animation: spin 1.1s linear infinite;
  margin: 22px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =======================================================================
   FONTS - Fallbacks for safety
   ======================================================================= */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
}

/* =======================================================================
   PRINT
   ======================================================================= */
@media print {
  header, footer, .mobile-menu, .cookie-banner { display: none !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}
