/* --- 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, main, 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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1E3557;
  background: #F6F5F3;
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; border: none; }
a {
  color: #1E3557;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB600;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1E3557;
}
h1 { font-size: 2.2rem; margin-bottom: 16px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.subheadline {
  color: #647492;
  margin-bottom: 24px;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: #1E3557;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(30,53,87,0.04);
  border-bottom: 1px solid #eaeaea;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 72px;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #1E3557;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #F6F5F3;
  color: #FFB600;
}
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 32px;
  background: #F6F5F3;
  color: #1E3557;
  border: 2px solid #1E3557;
  transition: background 0.25s, color 0.25s, border 0.25s;
  margin-left: 16px;
  text-align: center;
  cursor: pointer;
}
.cta.primary {
  background: #1E3557;
  color: #fff;
  border: 2px solid #1E3557;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFB600;
  border-color: #FFB600;
  color: #1E3557;
}
.cta:hover, .cta:focus {
  background: #FFB600;
  border-color: #FFB600;
  color: #1E3557
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  margin-left: auto;
  color: #1E3557;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FFB600;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,53,87,0.96);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 20px;
  right: 28px;
  cursor: pointer;
  z-index: 1051;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #1E3557;
  color: #FFB600;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFB600;
  background: rgba(255,255,255,0.07);
}
@media (max-width: 990px) {
  header nav,
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 990px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* --- MAIN: SECTIONS & LAYOUTS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

/* --- FLEX LAYOUTS FOR CARDS, FEATURES, TESTIMONIALS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(30,53,87,0.06);
  margin-bottom: 20px;
  padding: 28px 28px 24px 28px;
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(30,53,87,0.16);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- SERVICE CARDS ON HOMEPAGE --- */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(30,53,87,0.08);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.22s;
  border: 1px solid #ececec;
}
.service-card img {
  width: 42px;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.03rem;
  margin-bottom: 8px;
}
.service-card span {
  font-size: 0.98rem;
  color: #647492;
  margin-top: 12px;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(30,53,87,0.13);
  border-color: #FFB600;
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 900px) {
  .service-cards {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .service-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
  }
}

/* --- FEATURES GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  list-style: none;
}
.feature-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(30,53,87,0.05);
  flex: 1 1 210px;
  min-width: 180px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1px solid #ededed;
}
.feature-grid li img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 3px;
}
.feature-grid li .text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 20px 0 rgba(30,53,87,0.13);
  border-color: #FFB600;
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid li {
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 24px 20px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px 0 rgba(30,53,87,0.09);
  min-width: 220px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  border-left: 4px solid #FFB600;
  color: #1E3557;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #1E3557;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #647492;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(30,53,87,0.15);
  border-color: #1E3557;
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 900px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}

/* --- SECTION & CARD SPACING PATTERNS --- */
.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; }

/* --- TYPOGRAPHY SCALE --- */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p, li, span, a { font-size: 1rem; }
@media (max-width: 490px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
  .cta, .cta.primary { font-size: 0.95rem; }
}

/* --- BUTTONS --- */
button, .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, border 0.15s;
  box-shadow: none;
}
button:focus-visible, .cta:focus-visible {
  outline: 2px solid #FFB600;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #eaeaea;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}
.footer-navigation a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1E3557;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.14s;
  padding: 4px 10px;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #FFB600;
}
.contact-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #647492;
  font-size: 0.98rem;
}
.copyright {
  color: #647492;
  font-size: 0.96rem;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .footer-navigation, .contact-brief {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  footer .container {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 16px;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fffef8;
  color: #1E3557;
  box-shadow: 0 -2px 10px 0 rgba(30,53,87,0.11);
  padding: 26px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  z-index: 2000;
  transition: transform 0.4s, opacity 0.4s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__msg {
  flex: 1 1 300px;
  font-size: 1rem;
  max-width: 480px;
}
.cookie-banner__btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 36px;
  border: 2px solid #1E3557;
  background: #fff;
  color: #1E3557;
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  box-shadow: none;
  transition: background 0.16s, color 0.16s, border 0.16s;
}
.cookie-btn.accept {
  background: #1E3557;
  color: #fff;
  border-color: #1E3557;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #FFB600;
  border-color: #FFB600;
  color: #1E3557;
}
.cookie-btn.settings {
  background: #fff;
  color: #1E3557;
  border-color: #FFB600;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFB600;
  color: #1E3557;
  border-color: #FFB600;
}
.cookie-btn.reject {
  background: #fff;
  color: #1E3557;
  border-color: #e0e0e0;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F6F5F3;
  color: #1E3557;
  border-color: #1E3557;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 18px 6px 10px 6px;
  }
  .cookie-banner__btns {
    gap: 12px;
    justify-content: flex-start;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,53,87,0.62);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 34px 0 rgba(30,53,87,0.25);
  max-width: 430px;
  width: 95vw;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: modalIn 0.36s cubic-bezier(0.7,0,0.22,1);
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F6F5F3;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category span {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-switch {
  margin-left: 18px;
  margin-right: 5px;
}
.cookie-switch input[type='checkbox'] {
  display: none;
}
.cookie-switch label {
  display: block;
  width: 42px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
}
.cookie-switch label:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.09);
  transition: left 0.19s, background 0.14s;
}
.cookie-switch input[type='checkbox']:checked + label {
  background: #FFB600;
}
.cookie-switch input[type='checkbox']:checked + label:before {
  left: 20px;
  background: #fff;
  border-color: #FFB600;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #1E3557;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.14s;
  padding: 4px;
  border-radius: 50%;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6F5F3;
  color: #FFB600;
}

/* --- FORMS & INPUTS --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  background: #fff;
  padding: 10px 14px;
  color: #1E3557;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFB600;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(255,182,0,0.08);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
}

/* --- UTILITIES --- */
.flex {
  display: flex !important;
}
.flex-center {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.center { text-align: center; }

/* --- SCANDINAVIAN STYLE ADDITIONS --- */
body, .container, section, .card, .feature-grid li, .service-card, .testimonial-card, .cookie-modal {
  background: #fff;
}
section { background: #F6F5F3; border-radius: 20px; }

.card, .feature-grid li, .service-card, .testimonial-card, .cookie-modal {
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(30,53,87,0.06);
  border: 1px solid #ececec;
}
.card:hover, .feature-grid li:hover, .service-card:hover, .testimonial-card:hover, .card:focus-within, .testimonial-card:focus-within, .service-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(30,53,87,0.10);
  border-color: #FFB600;
}

/* --- VISUAL EFFECTS FOR INTERACTION --- */
.cta, .cta.primary, .cookie-btn {
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.15s;
}
.card, .feature-grid li, .service-card, .testimonial-card {
  transition: box-shadow 0.15s, border 0.15s, transform 0.15s;
}
.card:active,
.feature-grid li:active,
.service-card:active,
.testimonial-card:active {
  transform: scale(0.995);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
  .section { padding: 18px 4px; margin-bottom: 36px; }
  .card, .feature-grid li, .service-card, .testimonial-card { padding: 16px 10px; }
  h1 { font-size: 1.17rem; }
}

@media (max-width: 420px) {
  h1, h2, h3 { text-align: left !important; }
}


/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px solid #FFB600;
  outline-offset: 2px;
}

/* --- END OF STYLES --- */