/* --- CSS RESET & BASE STYLES --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F9FB;
  color: #12314A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
/* Font faces if webfonts are included */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

/* --- BRAND COLORS (CSS custom properties for fallback) --- */
:root {
  --primary: #12314A; /* Deep blue */
  --secondary: #3FBAC2; /* Scandinavian teal */
  --accent: #F8F9FB; /* Off-white/bone */
  --text-dark: #12314A;
  --text-medium: #306485;
  --text-light: #4C6176;
  --shadow: 0 2px 8px rgba(18,49,74,0.07);
  --radius: 14px;
  --radius-btn: 6px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #12314A;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.0125em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #306485;
}
h4, h5, h6 {
  font-size: 1.05rem;
  color: #4C6176;
}
p, ul, ol, details, .text-section {
  font-size: 1rem;
  color: #306485;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
em {
  color: #3FBAC2;
}

/* --- CONTAINER & SECTION LAYOUTS --- */
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 4vw;
    margin-bottom: 36px;
    gap: 14px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  margin-bottom: 0;
}

.content-grid, .card-grid, .card-container, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid,
  .card-grid,
  .card-container,
  .features {
    flex-direction: column;
    gap: 16px;
  }
}

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(18,49,74,0.13);
  transform: translateY(-2px) scale(1.025);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- HEADER/NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 1px 12px rgba(18,49,74,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px 0;
  justify-content: flex-start;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #12314A;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus:not(.cta) {
  background: #F8F9FB;
  color: #3FBAC2;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
.main-nav .cta {
  background: #3FBAC2;
  color: #fff;
  padding: 10px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(63,186,194,0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #27a5aa;
  box-shadow: 0 3px 12px rgba(63,186,194,0.20);
  transform: translateY(-1px) scale(1.02);
  color: #fff;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: #3FBAC2;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 120;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .main-nav a:not(:first-child), .main-nav .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 32px rgba(18,49,74,0.12);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #3FBAC2;
  padding: 18px 20px 10px 20px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  padding: 0 30px;
}
.mobile-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.21rem;
  padding: 16px 0 7px 0;
  color: #12314A;
  font-weight: 500;
  border-bottom: 1px solid #f1f4f7;
  transition: color 0.14s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #3FBAC2;
}

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

/* --- FOOTER --- */
footer {
  background: #f7fafc;
  border-top: 1px solid #e3e9ef;
  padding: 36px 0 18px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  color: #306485;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 3px 7px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, color 0.14s;
}
.footer-links a:hover, .footer-links a:focus {
  background: #E5F5F7;
  color: #12314A;
}
.footer-brand {
  color: #9db0bf;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
}

/* --- BUTTONS & CTA --- */
.cta {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  background: #3FBAC2;
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 8px rgba(63,186,194,0.13);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  letter-spacing: 0.007em;
  margin-top: 8px;
}
.cta:hover, .cta:focus {
  background: #27a5aa;
  box-shadow: 0 4px 16px rgba(51,186,194,0.24);
  color: #fff;
  transform: translateY(-1px) scale(1.025);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F9FB;
  border: 1px solid #eaf1f4;
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: 0 1px 8px rgba(18,49,74,0.04);
  font-size: 1.06rem;
  color: #12314A;
  transition: border 0.18s, box-shadow 0.18s;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #12314A;
  font-family: 'Roboto', Arial, sans-serif;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #3FBAC2;
  font-family: 'Roboto', Arial, sans-serif;
}

.testimonial-card:hover, .testimonial-card:focus-within {
  border: 1.5px solid #3FBAC2;
  box-shadow: 0 2px 20px rgba(63,186,194,0.09);
}

/* --- DETAILS (FAQ SMALL SECTIONS) --- */
details {
  margin-bottom: 14px;
  background: #f2f7fa;
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: 0 1px 5px rgba(18,49,74,0.05);
}
details summary {
  color: #3FBAC2;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.07rem;
  outline: none;
  margin-bottom: 7px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
details[open] summary {
  color: #12314A;
}
details .text-section {
  margin-bottom: 0;
  margin-left: 6px;
  color: #306485;
  font-size: 1rem;
}

/* --- GENERAL ELEMENT STYLES --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    padding: 24px 0;
    margin-bottom: 32px;
  }
}

/* --- FORMS --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #e0e8f0;
  border-radius: var(--radius-btn);
  padding: 11px 14px;
  background: #f9fbfc;
  color: #12314A;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #3FBAC2;
  box-shadow: 0 0 0 2px #3fbac224;
}
label {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: #306485;
  font-size: 1rem;
  margin-bottom: 7px;
}

/* --- CARD CONTAINERS & GRIDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

/* --- RESPONSIVE TYPOGRAPHY --- */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.36rem;
  }
  h3 {
    font-size: 1.12rem;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(18,49,74,0.12);
  border-top: 1px solid #e1e8f2;
  z-index: 2200;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 21px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #12314A;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.35s, transform 0.4s;
}
.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner-text {
  flex: 1 1 200px;
  min-width: 160px;
  margin-right: 14px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: #3FBAC2;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font-size: 1rem;
  transition: background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #27a5aa;
}
.cookie-btn.settings {
  background: #F8F9FB;
  color: #3FBAC2;
  border: 1px solid #3FBAC2;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e6f8fa;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 4vw 18px 4vw;
    gap: 12px;
  }
  .cookie-actions {
    flex-wrap: wrap;
    gap: 7px;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,49,74,0.15);
  z-index: 2250;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.33s;
}
.cookie-modal-overlay.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(63,186,194,0.15);
  width: 94vw;
  max-width: 420px;
  margin-bottom: 6vw;
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.33s, opacity 0.26s;
}
.cookie-modal-overlay.open .cookie-modal {
  transform: translateY(0);
  opacity: 1;
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 8px;
  color: #3FBAC2;
}
.cookie-modal-category {
  padding: 13px 0 8px 0;
  border-bottom: 1px solid #f1f4f7;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.cookie-modal-category.last {
  border-bottom: none;
}
.cookie-modal-category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #3FBAC2;
  width: 18px;
  height: 18px;
}
.cookie-modal-buttons {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-modal .cookie-btn {
  padding: 9px 20px;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #3FBAC2;
  cursor: pointer;
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 9px;
  background: #e9eff2;
  border-radius: var(--radius);
}
::-webkit-scrollbar-thumb {
  background: #d6e7ea;
  border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
  background: #c5dee3;
}

hr {
  border: none;
  height: 1px;
  background: #e1e7f1;
  margin: 28px 0;
}

/* --- ACCORDIONS / SUMMARY FOCUS --- */
details[open] summary:before {
  content: '– ';
  color: #3FBAC2;
}
details summary:before {
  content: '+ ';
  color: #3FBAC2;
}

/* --- ACCESSIBILITY FOCUS STATES --- */
a:focus, button:focus, input:focus, summary:focus {
  outline: 2px dashed #3FBAC2;
  outline-offset: 2px;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 100; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 2200; }
.cookie-modal-overlay { z-index: 2250; }

/* --- BREATHABLE WHITE SPACE & CARD SPACING --- */
.card-container > *, .content-grid > *, .features > * {
  min-width: 250px;
  flex: 1 1 240px;
}
.section > *:not(:last-child) {
  margin-bottom: 20px;
}

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