/* =======================================================================
   CSS RESET & 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, 
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;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F4F7FB;
  color: #173057;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #19A499;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #125c47;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* =======================================================================
   ROOT VARIABLES FOR BRAND COLORS AND FONTS
   ======================================================================= */
:root {
  --color-primary: #173057;
  --color-secondary: #19A499;
  --color-accent: #F4F7FB;
  --color-white: #fff;
  --color-black: #111827;
  --color-grey: #e5e9f0;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --border-radius: 18px;
  --shadow-card: 0 2px 12px rgba(23,48,87,0.05);
  --shadow-elevated: 0 6px 24px rgba(23,48,87,0.12);
}

/* =======================================================================
   LAYOUT CONTAINERS & FLEXBOX
   ======================================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
}

/* Card containers & feature layouts for home and services */
.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;  
}
.card {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
  color: #173057;
}
.testimonial-card p {
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-style: italic;
  flex: 1 1 auto;
}
.testimonial-card strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-secondary);
  min-width: 120px;
  text-align: right;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
}

/* =======================================================================
   TYPOGRAPHY & HEADINGS
   ======================================================================= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  line-height: 1.13;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.7;
}
strong {
  font-weight: 600;
}
.text-section p,
.text-section ul {
  margin-bottom: 12px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.text-section ul li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* =======================================================================
   HEADER & MAIN NAVIGATION
   ======================================================================= */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(23,48,87,0.04);
  position: sticky;
  top: 0;
  z-index: 103;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  max-height: 50px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 0;
  color: var(--color-primary);
  transition: color .22s;
  font-weight: 500;
  position: relative;
  border-radius: 6px;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  outline: none;
  background: var(--color-accent);
}
header nav .primary-cta {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 20px;
  margin-left: 10px;
  letter-spacing: 0.01em;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(25,164,153,0.08);
  border: none;
  outline: none;
  transition: background .18s, color .18s, box-shadow .22s;
  text-align: center;
}
header nav .primary-cta:hover, header nav .primary-cta:focus {
  background: #138c81;
  color: var(--color-accent);
  outline: none;
}

/* Hide mobile menu toggle by default on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  padding: 4px 14px;
  border-radius: 8px;
  transition: background 0.16s;
  z-index: 202;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  outline: none;
}

/* =======================================================================
   MOBILE MENU OVERLAY
   ======================================================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 8px 40px rgba(23,48,87,0.18);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 24px;
  padding-left: 30px;
  padding-right: 30px;
  transform: translateX(-100vw);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 28px;
  margin-right: 6px;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
  outline: none;
}

/* =======================================================================
   MAIN CONTENT SECTIONS
   ======================================================================= */
main {
  width: 100%;
  margin-bottom: 48px;
}
section {
  width: 100%;
}
ul li img, .feature-item img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--color-grey);
  padding: 4px;
  width: 30px;
  height: 30px;
}

/* PRIMARY CTA BUTTON STYLE (used in header and in main) */
.primary-cta, a.primary-cta, .primary-cta:visited {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.10rem;
  border: none;
  border-radius: 9px;
  padding: 14px 32px;
  display: inline-block;
  letter-spacing: 0.02em;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 22px rgba(25,164,153,0.09);
  transition: background 0.17s, box-shadow .2s, color .17s, outline .1s;
  outline: none;
  cursor: pointer;
}
.primary-cta:hover, .primary-cta:focus {
  background: #138c81;
  color: var(--color-accent);
  outline: 2px solid var(--color-secondary);
  box-shadow: 0 6px 32px rgba(25,164,153,0.21);
}

/* =======================================================================
   FOOTER
   ======================================================================= */
footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-grey);
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 28px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  font-size: 1rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.21s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-contact {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-family: var(--font-body);
  opacity: 0.7;
  text-align: right;
}
footer img {
  max-height: 38px;
  margin-right: 10px;
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  border-top: 1px solid var(--color-grey);
  box-shadow: 0 -2px 32px rgba(23,48,87,0.07);
  padding: 22px 10px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5000;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: banner-slide-in 0.6s cubic-bezier(.33,1.2,.32,1);
}
@keyframes banner-slide-in {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-message {
  color: var(--color-primary);
  flex: 1 1 260px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 9px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, outline 0.13s;
  margin: 0 0 0 0;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #138c81;
  color: var(--color-accent);
  outline: 2px solid var(--color-secondary);
}
.cookie-btn.reject {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e6ecef;
  color: var(--color-secondary);
  outline: 2px solid var(--color-grey);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  text-decoration: underline;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  color: var(--color-primary);
  outline: 2px solid var(--color-secondary);
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(23,48,87,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevated);
  padding: 38px 28px 32px 28px;
  max-width: 400px;
  width: 98vw;
  min-width: 240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-family: var(--font-body);
  animation: modal-slide-in 0.4s cubic-bezier(.33,1.2,.32,1);
}
@keyframes modal-slide-in {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0;
}
.cookie-preference-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.cookie-label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  background: #ccc;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s;
}
.cookie-toggle.enabled {
  background: var(--color-secondary);
}
.cookie-toggle .toggle-slider {
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 19px;
  height: 19px;
  background: var(--color-white);
  border-radius: 50%;
  transition: left 0.18s, background 0.13s;
  box-shadow: 0 1px 3px rgba(23,48,87,0.13);
}
.cookie-toggle.enabled .toggle-slider {
  left: 20px;
  background: var(--color-white);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  min-width: 100px;
}


/* =======================================================================
   RESPONSIVENESS & FLEXBOX ADAPTATION
   ======================================================================= */
@media (max-width: 1080px) {
  .container {
    max-width: 940px;
  }
  .testimonial-card, .card {
    min-width: 200px;
    flex: 1 1 220px;
  }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  header nav, footer nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-contact {
    text-align: left;
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 6px;
  }
  .content-wrapper, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card {
    padding: 20px 14px;
    flex: 1 1 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 17px 10px;
    min-width: 160px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    min-width: 120px;
    flex: 1 1 100%;
    padding: 17px 8px;
  }
  header nav {
    display: none; /* Hide main nav links on mobile */
  }
  .mobile-menu-toggle {
    display: block;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .section, section {
    padding: 16px 3px;
  }
  h1, .h1 {
    font-size: 1.7rem;
  }
  h2, .h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1rem;
  }
  .primary-cta {
    font-size: 1rem;
    padding: 10px 10px;
  }
  .testimonial-card, .card {
    padding: 14px 5px;
  }
  .cookie-modal {
    padding: 16px 8px 20px 8px;
  }
  header img, footer img {
    max-height: 30px;
  }
}

/* Always ensure proper spacing between cards & sections */
.card-container > *, .content-grid > *, .content-wrapper > *, .section > *, .card-grid > * {
  margin-bottom: 20px;
}
.card-container > :last-child, .content-grid > :last-child, .content-wrapper > :last-child, .section > :last-child, .card-grid > :last-child {
  margin-bottom: 0;
}

/* Icons default styling for Scandinavian feel */
ul li img, .feature-item img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(18%) saturate(363%) hue-rotate(134deg) brightness(95%) contrast(94%);
  opacity: 0.77;
}

/* === Misc Items === */
::-webkit-input-placeholder { color: #8a9bb1; opacity: 1; }
::-moz-placeholder { color: #8a9bb1; opacity: 1; }
:-ms-input-placeholder { color: #8a9bb1; opacity: 1; }
::placeholder { color: #8a9bb1; opacity: 1; }

hr {
  border: none;
  border-top: 1px solid var(--color-grey);
}

/* Accessibility: Focus outline for all buttons and links */
a:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Smooth transitions for micro interactions */
*, *::before, *::after {
  transition-property: color, background, box-shadow, border-color, outline, transform;
  transition-duration: .15s;
  transition-timing-function: ease;
}

/* Hide scrollbar on mobile menu (optional/minimalist) */
.mobile-menu::-webkit-scrollbar {display:none;}
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =======================================================================
   END OF CSS FILE
   ======================================================================= */
