/* ===== 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,
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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }  /* Only reset list-style, keep indentation for better access */
img, svg { display: block; max-width: 100%; height: auto; border: none; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
button { background: none; border: none; cursor: pointer; font: inherit; }
input, textarea, select, button { font-family: inherit; }

/* ===== VARIABLE DEFINITIONS FOR BRAND COLORS ===== */
:root {
  --primary: #1B3556;
  --secondary: #F4F6FB;
  --accent: #176062;
  --neutral: #FFFFFF;
  --bg: #F4F6FB;
  --gray: #D3D7DD;
  --text-dark: #223344;
  --text-light: #607085;
  --shadow: 0 2px 10px rgba(27,53,86,0.06);
  --shadow-dark: 0 4px 18px rgba(27,53,86,0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (max-width: 480px) {
  :root { --radius: 10px; --radius-sm: 6px; }
}

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');

body {
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
h5 { font-size: 1rem; margin-bottom: 8px; }
p {
  margin-bottom: 16px;
  color: var(--text-dark);
}
em, i { font-style: italic; color: var(--accent); }
strong, b { font-weight: 700; }

/* ===== CONTAINER & LAYOUTS (FLEX) ===== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}
.text-section {
  max-width: 750px;
}

/* Section spacing & alignment */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
section:not(:last-child) { box-shadow: var(--shadow); }
section:hover { box-shadow: var(--shadow-dark); }

@media (max-width: 900px) {
  .container { max-width: 100%; }
  .text-section { max-width: 100%; }
  section { padding: 30px 10px; }
}
@media (max-width: 600px) {
  section { margin-bottom: 40px; padding: 22px 2px; }
}

/* ===== HEADER & MAIN NAVIGATION ===== */
header {
  background: var(--neutral);
  box-shadow: var(--shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 8px 18px;
  flex-wrap: wrap;
}
header nav > a img {
  height: 42px;
  width: auto;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 8px;
}
header nav ul li a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: background 0.2s, color 0.18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--accent);
  color: var(--neutral);
}

.cta-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--neutral);
  background: var(--primary);
  border-radius: var(--radius);
  padding: 11px 28px;
  margin-left: 18px;
  box-shadow: 0 2px 8px rgba(27,53,86,.08);
  border: none;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  transform: translateY(-2px) scale(1.025);
  box-shadow: var(--shadow-dark);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--neutral);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 2rem;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 52;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--neutral);
}

@media (max-width: 900px) {
  header nav ul, header nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===== MOBILE SLIDE MENU ===== */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  width: 95vw;
  max-width: 330px;
  height: 100vh;
  background: var(--neutral);
  box-shadow: -8px 0 48px rgba(27,53,86,0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 18px 24px 28px;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(.45,.02,.63,1.13), box-shadow 0.25s;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -10px 0 80px rgba(27,53,86,0.20);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.1rem;
  margin-bottom: 16px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
  z-index: 1100;
}
.mobile-menu-close:hover {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
.mobile-nav a {
  padding: 12px 2px 12px 0;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.22s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
  padding-left: 8px;
}
@media (min-width: 900px) {
  .mobile-menu { display: none!important; }
}

/* Mobile menu overlay (scrolled background effect) */
.mobile-menu.open:before {
  content: "";
  position: fixed;
  top: 0; right: 100vw; left: 0; bottom: 0;
  background: rgba(44, 67, 94, 0.23);
  pointer-events: none;
  z-index: 999;
  display: block;
}

/* ===== HERO ===== */
section:first-of-type {
  background: var(--secondary);
  box-shadow: none;
  margin-bottom: 60px;
}
section:first-of-type .cta-btn {
  margin-top: 20px;
}

/* ===== FLEX COMPONENTS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--neutral);
  padding: 24px;
  flex: 1 1 280px;
  min-width: 240px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-dark);
  transform: translateY(-2px) scale(1.02);
}
.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: 22px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.13s, background 0.13s;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card .client-name {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary);
  letter-spacing: 0.01em;
  font-weight: 600;
}
.testimonial-card:hover {
  background: #e0e5f0;
  box-shadow: var(--shadow-dark);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== UL/LIST SPACING INSIDE SECTIONS ===== */
section ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
section li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.6;
}
section li img {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  background: var(--gray);
  color: var(--accent);
  border-radius: var(--radius);
  text-align: center;
  padding: 18px;
  font-style: italic;
  font-size: 1rem;
  margin: 14px 0 6px 0;
  letter-spacing: 0.01em;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 36px 0 18px 0;
}
footer .container { max-width: 1150px; padding: 0 18px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 0;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
footer nav ul li a {
  color: var(--secondary);
  opacity: 0.85;
  font-size: 1rem;
  transition: color 0.16s, opacity 0.16s;
  font-weight: 400;
}
footer nav ul li a:hover { color: var(--accent); opacity: 1; text-decoration: underline; }
footer h4 {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}
footer p, footer a {
  font-size: 1rem;
  color: var(--secondary);
  opacity: 0.90;
}
footer p img {
  width: 19px; height: 19px; margin-right: 7px; vertical-align: middle;
  display: inline-block;
}
footer a {
  transition: color 0.16s, opacity 0.18s;
  opacity: 0.95;
}
footer a:hover {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}

footer > .container > .content-wrapper > div:last-child {
  margin-top: 18px;
  font-size: 0.97rem;
  opacity: 0.80;
  letter-spacing: 0.003em;
  color: #b9cee9;
}

footer .content-wrapper > div { min-width: 220px; }
footer .content-wrapper > div a img {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  vertical-align: middle;
  transition: filter 0.13s;
}
footer .content-wrapper > div a img:hover,footer .content-wrapper > div a img:focus {
  filter: brightness(1.15) contrast(1.35);
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer { padding: 18px 0; }
}


/* ===== BUTTONS, FORMS, INTERACTIONS ===== */
button,
input[type='submit'],
.cta-btn {
  cursor: pointer;
  outline: none;
  border: none;
}

/* ===== LINK/ANCHOR ACCESSIBILITY STYLES ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  padding: 14px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  background: var(--neutral);
  border-top: 1.5px solid var(--gray);
  box-shadow: 0 -4px 24px rgba(27,53,86,0.11);
  z-index: 1400;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.36s cubic-bezier(.53,.01,.66,1.00), opacity 0.27s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner p {
  color: var(--text-dark);
  font-size: 1rem;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}
.cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  box-shadow: 0 1px 3px 0 rgba(27,53,86,0.07);
}
.cookie-btn.accept {
  background: var(--accent);
  color: var(--neutral);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: var(--neutral);
}
.cookie-btn.reject {
  background: var(--gray);
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e0e5f0;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--neutral);
}

/* ===== COOKIE MODAL POPUP ===== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,32,46,0.38);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal-content {
  background: var(--neutral);
  border-radius: var(--radius);
  padding: 34px 28px 28px 28px;
  min-width: 310px;
  max-width: 96vw;
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-category-row label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  margin-right: 10px;
}
.cookie-category-row input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.cookie-modal-content .close-cookie-modal {
  position: absolute;
  top: 9px;
  right: 17px;
  font-size: 1.6rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.89;
  transition: color 0.12s, opacity 0.17s;
}
.cookie-modal-content .close-cookie-modal:hover {
  color: var(--primary);
  opacity: 1;
}

/* Cookie essential style */
.cookie-category-row .essential {
  color: #3b8055 !important;
  font-weight: 600;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.13rem; }
  section { margin-bottom: 36px; padding: 15px 2px; }
  .content-wrapper { gap: 10px; }
  .card-container, .content-grid, .feature-item, .testimonial-card {
    gap: 12px;
  }
  .card, .testimonial-card { padding: 18px 14px; min-width: 98%; }
}

@media (max-width: 540px) {
  .container { padding: 0 3px; }
  .card, .testimonial-card { min-width: 99%; }
}

/* ===== UTILITY CLASSES ===== */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }

/* ===== SCANDINAVIAN NATURAL MATERIAL HINTS (for illustration with border colors) ===== */
section, .card, .testimonial-card {
  border: 1.5px solid #e7eaf2;
  background: linear-gradient(180deg, #f8fafc 90%, #f3f6f9 100%);
  /* visually softens the block */
}

/* ===== ANIMATION ENHANCEMENTS ===== */
.cta-btn, .cookie-btn, .mobile-menu-toggle {
  transition: background 0.16s, color 0.18s, box-shadow 0.16s, transform 0.16s;
}
section, .card, .testimonial-card {
  transition: box-shadow 0.19s, background 0.17s;
}

/* ===== MISC ===== */
code, pre {
  background: #e8eaf4;
  color: #146372;
  border-radius: 4px;
  font-size: 1em;
  padding: 2px 8px;
}

/* ===== END CSS ===== */
