/* ====================================================== */
/* CSS RESET & SCANDINAVIAN CLEAN 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;
  outline: none;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *::before, *::after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F7F9FA; /* authentic scandinavian, very light */
  color: #233659;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  background-repeat: no-repeat;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #233659;
  text-decoration: none;
  transition: color .2s;
}
a:focus { outline: 2px solid #49A6D4; outline-offset: 2px; }
a:hover, .main-nav a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: #49A6D4;
}
ul { list-style: disc inside; margin-top: 0.5em; margin-bottom: 1.5em; padding-left: 1.2em; }
ol { list-style: decimal inside; margin-top: 0.5em; margin-bottom: 1.5em; padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #233659;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 16px;
}
h1 { font-size: 2.2rem; margin-bottom: 24px; }
h2 { font-size: 1.6rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; margin-bottom: 14px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }
p, blockquote { margin-bottom: 1.1em; font-size: 1rem; }
blockquote {
  font-style: italic;
  padding-left: 20px;
  border-left: 3px solid #49A6D4;
  color: #375172;
  background: #F6FBFF;
  margin: 0 0 0.5em 0;
}

/* Global Container */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ====================================================== */
/* HEADER & NAVIGATION                                    */
/* ====================================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid #E4E7EB;
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 1002;
  box-shadow: 0 2px 16px 0 rgba(60,90,120,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #375172;
  font-weight: 500;
  letter-spacing: 0;
  padding: 8px 6px;
  border-radius: 6px;
  transition: background .16s, color .16s;
}
.main-nav a:hover, .main-nav a.active {
  background: #F0F5F7;
  color: #233659;
}
.cta-btn {
  display: inline-block;
  background: #F6B637;
  color: #233659;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  box-shadow: 0 2px 6px 0 rgba(246,182,55,0.10);
  transition: background .18s, color .18s, box-shadow .22s;
  cursor: pointer;
  margin-left: 12px;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFD876;
  color: #233659;
  box-shadow: 0 4px 12px 0 rgba(246,182,55,0.16);
}

/* Logo aligns naturally with flex */
header a img {
  height: 42px;
  margin: 0 16px 0 0;
  vertical-align: middle;
}

/* Mobile Menu Burger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #233659;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .14s;
  margin-left: 12px;
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E5EEF5;
}

/* ====================================================== */
/* MOBILE NAVIGATION OVERLAY                              */
/* ====================================================== */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.83,.1,.4,1.07);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 28px 8px 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: #233659;
  cursor: pointer;
  border-radius: 6px;
  transition: background .18s;
  padding: 4px 7px;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F3F6F8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #233659;
  font-weight: 550;
  padding: 10px 4px;
  border-radius: 6px;
  display: block;
  width: 100%;
  transition: background .18s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #E5EEF5;
  color: #49A6D4;
}

@media (max-width: 1100px) {
  .container { max-width: 99vw; }
}

@media (max-width: 900px) {
  header .container { flex-direction: row; gap: 10px; }
  .main-nav { gap: 10px; }
}
@media (max-width: 768px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ====================================================== */
/* PAGE SECTIONS & FLEX STRUCTURE                         */
/* ====================================================== */
main {
  padding-top: 32px;
  padding-bottom: 32px;
  min-height: 60vh;
}
section {
  width: 100%;
  background: transparent;
  border-radius: 18px;
  box-shadow: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(35,54,89,0.05);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px rgba(60,90,120,0.08);
  margin-bottom: 20px;
  position: relative; /* no absolute content */
  flex: 1 1 300px;
  min-width: 280px;
  max-width: 32vw;
  padding: 28px 22px;
  transition: box-shadow .19s, transform .21s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(35,54,89,0.13);
  transform: translateY(-3px) scale(1.03);
}

.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 { /* for feature lists if used */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/*********** Feature Grid (for landing/sections) **********/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(73,166,212,0.06);
  padding: 26px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  transition: box-shadow .17s, transform .18s;
  margin-bottom: 15px;
  border: 1px solid #EAF1F5;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px 0 rgba(73,166,212,0.15);
  border-color: #CFE7F5;
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  height: 42px;
  margin-bottom: 3px;
  margin-right: 0;
}

/*********** Testimonial Cards **********/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6FBFF;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: 0 2px 15px 0 rgba(73,166,212,0.10);
  border-left: 5px solid #49A6D4;
  color: #233659;
  font-size: 1.08rem;
}
.testimonial-card blockquote {
  margin: 0;
  background: none;
  border-left: none;
  font-style: italic;
  font-size: 1.08rem;
  color: #375172;
  padding: 0;
}
.testimonial-card span {
  font-size: .97rem;
  color: #233659;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 8px;
}

/*********** Text Section **********/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  background: none;
  border-radius: 0;
}

/* ------------------------------------------------------ */
/* FOOTER                                                */
/* ------------------------------------------------------ */
footer {
  width: 100%;
  background: #fff;
  border-top: 1.5px solid #E4E7EB;
  padding: 0 0 16px 0;
  margin-top: 24px;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #233659;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  opacity: 0.86;
  border-radius: 6px;
  padding: 5px 6px;
  transition: background .17s, color .18s;
}
.footer-nav a:hover {
  background: #F6FBFF;
  color: #49A6D4;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 0.97rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-contact img {
  height: 24px;
  vertical-align: middle;
  margin-right: 4px;
}
footer p {
  font-size: .93rem;
  margin-top: 2px;
  opacity: 0.7;
}

/* ------------------------------------------------------ */
/* BUTTONS & INTERACTIONS                                */
/* ------------------------------------------------------ */
button, .cta-btn, .mobile-menu-close, .mobile-menu-toggle {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
}
button:focus, .cta-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2px solid #49A6D4;
}

/********** SPECIAL - Cookie Consent Banner *************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #49A6D4;
  box-shadow: 0 -2px 18px 0 rgba(35,54,89,0.04);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 18px;
  z-index: 2000;
  font-size: 1rem;
  transition: transform .36s cubic-bezier(0.66,0.13,0.7,1);
  will-change: transform;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  flex: 1;
  margin-right: 16px;
  color: #233659;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-btn, .cookie-settings-btn {
  background: #49A6D4;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 22px;
  font-weight: 600;
  transition: background .16s, color .12s;
  margin-left: 2px;
}
.cookie-btn.accept {
  background: #49A6D4;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #237ba8;
}
.cookie-btn.reject {
  background: #F6B637;
  color: #233659;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD876;
  color: #233659;
}
.cookie-settings-btn {
  background: #F0F5F7;
  color: #233659;
  border: 1.2px solid #49A6D4;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #D2F1FF;
  color: #233659;
}

/********* Cookie Settings Modal ********/
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,54,89,0.18);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .33s, visibility .26s;
  opacity: 1; visibility: visible;
}
.cookie-modal.hide {
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 42px rgba(35,54,89,0.17);
  padding: 28px 32px;
  width: 94vw;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  color: #233659;
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #49A6D4;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #233659;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 8px;
}
.cookie-modal-content .close-modal:hover, .cookie-modal-content .close-modal:focus {
  background: #F3F6F8;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
}

/*********** Links (active state) **********/
.main-nav a.active, .footer-nav a.active, .mobile-nav a.active {
  color: #49A6D4;
  font-weight: 700;
  background: #E5EEF5;
}

/* ------------------------------------------------------ */
/* RESPONSIVE DESIGN (MOBILE-FIRST)                       */
/* ------------------------------------------------------ */
@media (max-width: 768px) {
  h1 { font-size: 1.46rem; margin-bottom: 19px; }
  h2 { font-size: 1.19rem; margin-bottom: 11px; }
  h3 { font-size: 1rem; }
  .container { padding: 0 8px; }
  .content-wrapper { padding: 0 2px; }
  main { padding-top: 10px; padding-bottom: 10px; }
  .section { padding: 26px 6px; margin-bottom: 28px; border-radius: 12px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch !important;
  }
  .feature-grid > div {
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    padding: 16px 10px 14px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 16px 8px;
    border-radius: 10px;
    font-size: 1rem;
  }
  header .container { flex-direction: row; gap: 4px; }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .footer-nav { gap: 10px; flex-wrap: wrap; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 10px;
    font-size: .98rem;
  }
  .cookie-banner p { margin: 0 0 10px 0; }
  .cookie-btn, .cookie-settings-btn, .cookie-btn.reject, .cookie-btn.accept { padding: 8px 12px; font-size: .97rem; }
}

/* Spacing Consistency for Cards and Sections */
.card, .feature-grid > div, .testimonial-card, .section, .content-wrapper, .text-section {
  margin-bottom: 20px;
}

/* Prevent card overlapping */
.card, .feature-grid > div, .testimonial-card {
  min-width: 0;
  word-break: break-word;
}

/* Utility Classes */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-20 { gap: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* Hide visually but available for screen readers */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* ============ FORMS =========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: #F7F9FA;
  border: 1.1px solid #CFE7F5;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 14px;
  width: 100%;
  color: #233659;
  transition: border .16s, box-shadow .18s;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border: 1.3px solid #49A6D4;
  outline: none;
  background: #E5EEF5;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  color: #233659;
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}

/* ============= MISC ============= */
::-webkit-input-placeholder { color: #aac; opacity: 1; }
::-moz-placeholder { color: #aac; opacity: 1; }
:-ms-input-placeholder { color: #aac; opacity: 1; }
::placeholder { color: #aac; opacity: 1; }

/* Focus styles for accessibility */
*:focus-visible { outline: 2px solid #49A6D4; }

/* ============= MICRO-INTERACTIONS ============= */
.card, .feature-grid > div, .cta-btn, .cookie-btn, .cookie-settings-btn {
  transition: box-shadow .19s, transform .17s, background .18s, color .12s;
}

/* ============= SCROLLBAR (subtle) ============= */
body::-webkit-scrollbar {
  width: 8px;
  background: #F7F9FA;
}
body::-webkit-scrollbar-thumb {
  background: #E5EEF5;
  border-radius: 6px;
}

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