/* CSS RESET & BASELINE NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; border: 0; outline: 0; }
body, html { width: 100%; min-height: 100%; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #22304A;
  background: #F7F7F7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1F3A68; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #76B041; }
ul { list-style: none; padding-left: 0; }
button { font-family: inherit; background: none; cursor: pointer; border: none; transition: background 0.15s, color 0.15s; }
input, textarea, select { font-family: inherit; }

/* CONTAINERS & LAYOUTS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(31,58,104,0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(31,58,104,0.04);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(31,58,104,0.09);
}

.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;
  background: #F7F7F7;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(31,58,104,0.04);
  color: #22304A;
  transition: box-shadow 0.19s, background 0.19s;
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.08em;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5em;
  color: #22304A;
}
.testimonial-card p {
  font-size: 1em;
  color: #22304A; /* Ensure contrast */
  margin: 0;
}
.testimonial-card strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(55,90,140,.11);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: #1F3A68;
  margin-bottom: 8px;
}
h1 { font-size: 2.3rem; margin-bottom: 18px; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.13rem; margin-bottom: 10px; }

p, li { font-size: 1rem; line-height: 1.7; color: #22304A; }
strong { font-weight: 600; color: #1F3A68; }

ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
ul li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* BUTTONS AND CTA */
.cta-btn {
  background: #76B041;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 36px;
  border-radius: 28px;
  transition: background 0.2s, box-shadow 0.19s, color 0.17s;
  display: inline-block;
  box-shadow: 0 2px 12px 0 rgba(31,58,104,0.08);
  margin: 0 0 10px 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: #56822d;
  color: #fff;
  box-shadow: 0 6px 28px -4px rgba(31,58,104,0.15);
}

/* HEADER NAVBAR */
header {
  background: #fff;
  border-bottom: 1.5px solid #e9ede5;
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
}
header img {
  height: 42px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1F3A68;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.19s, color 0.19s;
}
header nav a:hover, header nav a:focus {
  background: #F7F7F7;
  color: #76B041;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1.5px solid #e9ede5;
  margin-top: 60px;
  font-size: 0.97rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 18px 18px 18px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer nav a {
  color: #22304A;
  font-size: 1rem;
  margin-bottom: 4px;
  border-radius: 8px;
  padding: 2px 8px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: #F7F7F7;
  color: #76B041;
}
footer img {
  height: 34px;
  margin-bottom: 12px;
}
footer .text-section {
  font-size: 0.97rem;
  color: #1F3A68;
  margin-top: 2px;
}

/* MOBILE MENU BURGER */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 23px;
  right: 22px;
  z-index: 1002;
  background: #fff;
  color: #1F3A68;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  box-shadow: 0 2px 14px 0 rgba(31,58,104,0.06);
  align-items: center;
  justify-content: center;
  border: 1.5px solid #e5e5e5;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F7F7F7;
  color: #76B041;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #1F3A68;
  z-index: 1100;
  transition: transform 0.36s cubic-bezier(.86,0,.07,1), opacity 0.13s;
  transform: translateX(-105vw);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 24px 28px 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fff;
  background: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #76B041;
  color: #fff;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 8px 0 8px 0;
  border-radius: 8px;
  transition: background 0.15s, color 0.14s;
  min-width: 130px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #76B041;
  color: #fff;
}

/* HIDE DESKTOP NAV ON MOBILE */
@media (max-width: 950px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* HIDE MOBILE MENU ON DESKTOP */
@media (min-width: 951px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header .container nav {
    display: flex;
  }
}

/* FLEX LAYOUT: Responsive stacks */
@media (max-width: 850px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .content-wrapper, .text-image-section {
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 7px;
    gap: 0;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 13px;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 20px; align-items: flex-start; }
  .feature-item, .content-grid, .card-container { flex-direction: column; gap: 20px; }
  .section { padding: 24px 4vw; margin-bottom: 32px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.06rem; }
}

/* PROVIDE MINIMUM 20PX SPACE BETWEEN CARDS/SECTIONS */
.card, .testimonial-card, .section, .feature-item, .card-content {
  margin-bottom: 20px;
}

/* Z-INDEX for overlays */
header, .mobile-menu { z-index: 1100; }
.mobile-menu-toggle { z-index: 1200; }

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1500;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 24px -4px rgba(31,58,104,0.14);
  border-top: 2px solid #e9ede5;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 38px 16px 16px;
  font-size: 1rem;
  gap: 13px;
  transition: transform 0.28s cubic-bezier(.41,0,.68,1);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner .cookie-btns {
  display: flex; flex-direction: row; gap: 12px;
}
.cookie-banner button {
  padding: 7px 20px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  background: #F7F7F7;
  color: #1F3A68;
  border: 1.2px solid #e5e9f1;
  transition: background 0.17s, color 0.17s, border 0.17s;
}
.cookie-banner button.accept {
  background: #76B041;
  color: #fff;
  border: none;
}
.cookie-banner button.accept:focus, .cookie-banner button.accept:hover {
  background: #56822d;
  color: #fff;
}
.cookie-banner button.settings {
  background: #fff;
  border: 1.2px solid #76B041;
  color: #76B041;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #76B041;
  color: #fff;
}
.cookie-banner button.reject {
  background: #e87272;
  border: none;
  color: #fff;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #cc4949;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 11px;
    gap: 9px;
  }
  .cookie-banner .cookie-btns {
    gap: 9px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(31,58,104,0.21);
  z-index: 1600;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.17s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px 22px;
  max-width: 420px;
  width: 92vw;
  box-shadow: 0 2px 24px 0 rgba(31,58,104,0.14);
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
}
.cookie-modal-content h2 {
  font-family: 'Montserrat', sans-serif;
  color: #1F3A68;
  font-size: 1.12rem;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}
.cookie-modal-content .category {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 11px;
}
.cookie-modal-content .category label {
  font-size: 1rem;
  color: #22304A;
  display: flex; align-items: center;
}
.cookie-modal-content .toggle-switch {
  width: 36px; height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal-content .toggle-switch input {
  display: none;
}
.cookie-modal-content .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 34px;
  transition: background 0.2s;
}
.cookie-modal-content .toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px rgba(31,58,104,0.10);
}
.cookie-modal-content .toggle-switch input:checked + .toggle-slider {
  background: #76B041;
}
.cookie-modal-content .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(14px);
}
.cookie-modal-content .cookie-modal-close {
  position: absolute; top: 16px; right: 16px;
  font-size: 24px;
  background: transparent;
  color: #22304A;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal-content .cookie-modal-close:hover, .cookie-modal-content .cookie-modal-close:focus {
  background: #F7F7F7;
  color: #76B041;
}
.cookie-modal-content .category .category-note {
  font-size: 0.93em;
  color: #7A888F;
  margin-left: 8px;
}
.cookie-modal-content .cookie-btns {
  display: flex; flex-direction: row; gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  padding: 7px 16px;
  border-radius: 28px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* LINKS INSIDE PARAGRAPHS */
p a {
  color: #76B041;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.12s;
}
p a:focus, p a:hover {
  color: #1F3A68;
  background: #F7F7F7;
  border-radius: 6px;
  text-decoration: none;
}

/* MAIN: ADD VERTICAL SPACING */
main > section + section {
  margin-top: 0px;
}

/* UTILITY */
.hide { display: none !important; }
.show { display: block !important; }

/* SCANDINAVIAN CLEAN: SUBTLE SHADOWS, NATURAL COLORS, SPACING */
body, .section, .testimonial-card, .card {
  box-shadow: 0 1px 8px rgba(31,58,104,0.04);
}

/* --- Custom Scrollbar --- */
html {
  scrollbar-width: thin;
  scrollbar-color: #C2D0C9 #F7F7F7;
}
::-webkit-scrollbar {
  width: 10px;
  background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
  background: #C2D0C9;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #76B041;
}

/* --- SELECTION COLOR --- */
::selection {
  background: #d8ebc5;
  color: #1F3A68;
}

/* ANIMATIONS - microinteractions */
.cta-btn, .card, .testimonial-card, .cookie-banner, .cookie-modal-content {
  will-change: box-shadow, background, color, transform;
}

@media (max-width: 400px) {
  h1 { font-size: 1.07rem; }
  h2 { font-size: 0.96rem; }
  .cta-btn { font-size: 0.95rem; padding: 11px 16px; }
  .cookie-modal-content { padding: 16px 4px; }
}

/* Ensure no elements overlap: force minimum margin/gap */
.section, .card, .testimonial-card, .feature-item, .content-wrapper, .text-section {
  margin-bottom: 20px;
}

/* Ensure .testimonial-card high contrast for accessibility */
.testimonial-card, .testimonial-card * {
  color: #22304A !important;
}

/* --- END --- */