/* ============================================================================
   CSS RESET & NORMALIZE
============================================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  background: #F9FAFB;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #1E375A;
  background-color: #F9FAFB;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.35em;
  margin-bottom: 16px;
}
a {
  color: #1E375A;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.45,0,.55,1);
}
a:hover, a:focus {
  color: #31A355;
  text-decoration: underline;
  outline: none;
}
section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0px 2px 8px rgba(30, 55, 90, 0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
  transition: box-shadow 0.2s;
}

@media (max-width: 600px) {
  section {
    padding: 24px 6vw;
    margin-bottom: 36px;
    border-radius: 13px;
  }
}

/* ============================================================================
   CONTAINER & LAYOUT
============================================================================ */
.container {
  width: 100%;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 6vw;
  padding-right: 6vw;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  gap: 24px;
}

/* Flex container structures */
.card-container, .card-grid, .features, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(30, 55, 90, 0.06);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.15s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(30,55,90,0.13);
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Testimonial Card Styles */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f6f8fa;
  border-left: 5px solid #31A355;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(30,55,90,0.05);
  padding: 20px;
  margin-bottom: 20px;
  color: #1E375A;
}
.testimonial-card strong {
  color: #1E375A;
  font-weight: 600;
  margin-left: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
}
.testimonial-card p {
  font-style: italic;
  color: #263E5A;
  margin-bottom: 0;
}

/* Info/Legend Block */
.legend {
  display: flex;
  align-items: flex-start;
  background: #f1f6f3;
  border-left: 4px solid #31A355;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 18px 0 10px 0;
  color: #1E375A;
  font-size: 15px;
}

/* Confirmation Message */
.confirmation-message {
  background: #eaf8ec;
  border-radius: 13px;
  padding: 20px 22px;
  color: #1E375A;
  margin-bottom: 16px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(49,163,85,0.07);
}

/* ============================================================================
   TYPOGRAPHY
============================================================================ */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1E375A;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem;
}
h2 {
  font-size: 2rem;
  margin-top: 20px;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-size: 1.15rem;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}
strong {
  color: #1E375A;
  font-weight: 600;
}

/* ============================================================================
   HEADER, NAV & MOBILE MENU
============================================================================ */
header {
  background: #F9FAFB;
  width: 100%;
  box-shadow: 0 2px 8px rgba(30, 55, 90, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw 18px 6vw;
}
nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0 24px;
}
nav ul li {
  display: flex;
  align-items: center;
  margin: 0;
}
nav a img {
  height: 42px;
  margin-right: 10px;
}
nav a.cta-primary {
  margin-left: 32px;
}

/* Hamburger/Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: transparent;
  border: none;
  color: #1E375A;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  margin-left: 20px;
  z-index: 120;
  transition: background 0.15s;
  border-radius: 8px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e3e9f4;
}

@media (max-width: 1000px) {
  nav ul {
    gap: 14px;
    margin: 0 10px;
  }
  nav a.cta-primary {
    margin-left: 10px;
  }
}
@media (max-width: 900px) {
  nav ul, nav a.cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,55,90, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(0.63,0,0.18,1);
  z-index: 1999;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 16px 18px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
}
.mobile-nav a {
  color: #F9FAFB;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(249, 250, 251, 0.13);
  transition: background .18s, color .18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #31A355;
  color: #fff;
}
.mobile-menu.open {
  box-shadow: 4px 0 32px rgba(20,40,70,0.19);
}

@media(min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================================================
   BUTTONS & PRIMARY ACTIONS
============================================================================ */
.cta-primary, .cta-primary:visited {
  background: #31A355;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border: none;
  border-radius: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 30px;
  margin-top: 6px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(49,163,85,.09);
  box-sizing: border-box;
  transition: background 0.14s, box-shadow 0.16s, transform .10s;
  cursor: pointer;
}
.cta-primary:active {
  background: #227a3b;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #219150;
  color: #fff;
  box-shadow: 0 4px 24px rgba(49,163,85,.19);
  outline: none;
  transform: translateY(-1.5px) scale(1.025);
}

button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 23px;
  border-radius: 27px;
  border: none;
  background: #E2EFE6;
  color: #1E375A;
  cursor: pointer;
  transition: background 0.13s;
  margin-right: 14px;
  margin-bottom: 10px;
}
button:focus,
.button:focus,
button:hover,
.button:hover {
  background: #c8e5d2;
}

/* ========== FOOTER ========= */
footer {
  background: #f2f4f8;
  padding: 18px 0 10px 0;
  margin-top: 40px;
}
footer .container {
  padding-left: 6vw;
  padding-right: 6vw;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
footer nav a {
  color: #1E375A;
  opacity: 0.76;
  font-size: 15px;
}
footer nav a:hover, footer nav a:focus {
  color: #31A355;
  opacity: 1;
}
footer p {
  color: #1E375A;
  font-size: 14px;
  opacity: 0.7;
}

/* ============================================================================
   ICON+TEXT & LISTS
============================================================================ */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.89;
}
@media(max-width: 600px){ 
  ul li, ol li { font-size: 0.97rem; }
}

/* Table/Legend-like highlight blocks */
.legend img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* ========== MISCELLANEOUS ============= */
hr {
  border: none;
  border-bottom: 1px solid #e4e7ee;
  margin: 24px 0;
}

/* Inline icons next to text */
p img, li img, h1 img, h2 img {
  vertical-align: middle;
  margin-right: 8px;
}

/* ============================================================================
   RESPONSIVE DESIGN
============================================================================ */
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  nav {
    gap: 12px;
    padding-left: 3vw;
    padding-right: 3vw;
  }
}
@media (max-width: 600px) {
  nav, nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  nav {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .container {
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    font-size: 15px;
    padding: 18px 10px;
  }
}

@media (max-width: 400px) {
  h1 { font-size: 1.25rem; }
  .cta-primary { font-size: 1rem; }
  .testimonial-card { padding: 11px 3px; }
}

/* ============================================================================
   COOKIE CONSENT BANNER & MODAL
============================================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 25px rgba(30,55,90,0.07);
  border-top: 2px solid #E2EFE6;
  padding: 30px 18px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 4999;
  font-size: 16px;
  font-family: 'Roboto', Arial;
  transition: transform .33s cubic-bezier(.86,0,.07,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner p { margin-bottom: 0; text-align: center; max-width: 900px; }
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  padding: 10px 26px;
  border-radius: 22px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial;
  font-weight: 600;
  background: #E2EFE6;
  color: #1E375A;
  box-shadow: 0 1px 3px rgba(49,163,85,0.07);
  transition: background .19s, color .15s;
}
.cookie-banner .cookie-btn.primary {
  background: #31A355;
  color: #fff;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #c8e5d2;
  color: #1E375A;
}
.cookie-banner .cookie-btn.primary:hover,
.cookie-banner .cookie-btn.primary:focus {
  background: #219150;
  color: #fff;
}


/* ======================= MODAL POPUP FOR COOKIE PREFERENCES ======================= */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width:100vw; height:100vh;
  background: rgba(30,55,90,0.58);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 10px 64px rgba(49,163,85,0.15);
  padding: 36px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  font-family: 'Roboto', Arial;
  animation: modal-in 0.33s cubic-bezier(.86,0,.07,1);
}
@keyframes modal-in {
  0% { transform: translateY(40px) scale(0.97); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat';
  font-size: 1.2rem;
  color: #1E375A;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex; flex-direction: column; gap: 7px; padding: 16px 0 9px 0;
  border-bottom: 1px solid #E2EFE6;
}
.cookie-modal .cookie-category:last-child { border-bottom: none; }
.cookie-modal .cookie-toggle-row {
  display: flex; align-items: center; gap: 16px;
  font-size: 1rem;
}
.cookie-modal label {
  font-family: 'Roboto';
  color: #1E375A;
}
.cookie-modal .cookie-switch {
  appearance: none;
  width: 38px; height: 22px;
  background: #eaeef2;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  margin-right: 9px;
}
.cookie-modal .cookie-switch:checked {
  background: #31A355;
}
.cookie-modal .cookie-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 100px;
  transition: left .14s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cookie-modal .cookie-switch:checked::after {
  left: 19px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 7px; right:10px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1E375A;
  cursor: pointer;
  opacity: .7;
  padding: 9px 13px;
}
.cookie-modal .cookie-buttons {
  display: flex; flex-direction: row; gap: 19px; margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  border-radius: 20px;
  padding: 9px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  background: #E2EFE6;
  color: #1E375A;
  border: none;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal .cookie-btn.primary {
  background: #31A355;
  color: #fff;
}
.cookie-modal .cookie-btn.primary:hover,
.cookie-modal .cookie-btn.primary:focus {
  background: #219150;
}
.cookie-modal .cookie-btn:hover,
.cookie-modal .cookie-btn:focus {
  background: #c8e5d2;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 7vw 16px 7vw;
  }
  .cookie-modal .cookie-modal-close {
    font-size: 1.5rem;
    padding: 7px 10px;
  }
}

/* ============================================================================
   VISUAL ENHANCEMENTS
============================================================================ */
section, .card, .testimonial-card, .confirmation-message {
  box-shadow: 0 2px 8px rgba(30,55,90,0.06);
}

.card, .testimonial-card, .confirmation-message {
  border-radius: 14px;
}

section h2,
section h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
}

.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;
}

/* Section and card spacing for RESP. RULES */
@media(max-width:900px){ .card-container, .content-grid { gap: 16px; } }
@media(max-width:600px){
  .section, section { margin-bottom: 36px; padding: 24px 6vw; }
  .feature-item { gap: 11px; }
}

/* ============================================================================
   Z-INDEX LAYERING (FOR MENUS, MODALS, ETC)
============================================================================ */
.mobile-menu { z-index: 1999; }
.mobile-menu-toggle { z-index: 2001; }
.cookie-banner { z-index: 4999; }
.cookie-modal-overlay { z-index: 5000; }

/* ============================================================================
   MICRO-INTERACTIONS & TRANSITIONS
============================================================================ */
.card, .testimonial-card, section, .confirmation-message {
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:focus-within, .card:hover { box-shadow: 0 6px 28px rgba(30,55,90,0.13); transform: translateY(-2px) scale(1.015);}
.testimonial-card:hover, .testimonial-card:focus-within { box-shadow: 0 2px 20px rgba(49,163,85,0.12); }

.cta-primary, .button, .cookie-btn {
  transition: background .15s, box-shadow .13s, transform .11s;
}

/* Focus visible styles for accessibility */
a:focus-visible, button:focus-visible, .cta-primary:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #1E375A;
  outline-offset: 2px;
}

/* ============================================================================
   PRINT OPTIMIZATION
============================================================================ */
@media print {
  body, section, .container, .content-wrapper, nav, .cta-primary, .button {
    color: #222;
    background: #fff !important;
    box-shadow: none !important;
  }
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, footer, header {
    display: none !important;
  }
}

/* ============================================================================
   UTILITY CLASSES
============================================================================ */
.text-center    { text-align: center; }
.text-left      { text-align: left;   }
.text-right     { text-align: right;  }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ============================================================================
   SCROLLBAR STYLES (minimal, modern)
============================================================================ */
::-webkit-scrollbar{
  width: 10px;
  background: #e6e9ef;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb{
  background: #bed9ca;
  border-radius: 8px;
  min-height: 36px;
}

/* ============================================================================
   ACCESSIBILITY & SELECTION COLORS
============================================================================ */
::selection {
  background: #d2f2e1;
  color: #1E375A;
}

/* ============================================================================
   END OF STYLE.CSS (SCANDINAVIAN CLEAN, FLEXBOX ONLY)
============================================================================ */
