/* --- CSS RESET & BASE --- */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F7F7F7;
  color: #222;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
html {
  box-sizing: border-box;
}

/* --- ROOT FONT & COLORS (SCANDINAVIAN CLEAN) --- */
:root {
  --primary: #204A70;
  --secondary: #9DCBBA;
  --accent: #F7F7F7;
  --white: #fff;
  --black: #222;
  --grey: #e3e6e9;
  --shadow: 0 4px 24px rgba(32,74,112,0.08);
  --radius: 12px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--black);
}
strong {
  font-weight: 600;
}

/* --- CONTAINER & SPACING --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- HEADER & NAV --- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--grey);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 24px;
}
.logo img {
  height: 40px;
  display: block;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta.primary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(32,74,112,0.06);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 18px;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 16px rgba(32,74,112,0.10);
}

/* Hide mobile nav by default */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 101;
  border: none;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 84vw;
  max-width: 340px;
  height: 100vh;
  background: var(--white);
  box-shadow: -2px 0 12px rgba(0,0,0,0.08);
  z-index: 9999;
  padding: 28px 28px 28px 22px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  overflow-y: auto;
  gap: 18px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  border-radius: 8px;
  border: none;
  outline: none;
  padding: 2px 12px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  padding: 11px 7px;
  border-radius: 7px;
  color: var(--primary);
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  header .container {
    gap: 12px;
  }
  .cta.primary {
    margin-left: 8px;
  }
}
@media (max-width: 868px) {
  .main-nav {
    gap: 10px;
  }
  .cta.primary {
    font-size: 0.97rem;
    padding: 9px 14px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .main-nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: var(--secondary);
  background-image: linear-gradient(98deg, var(--secondary) 80%, #e6efe8 100%);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
  min-height: 220px;
  position: relative;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 18px 34px 18px;
  gap: 0;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
}
.hero p {
  color: #edf6f2;
  font-size: 1.18rem;
}
.hero .cta.primary {
  background: var(--white);
  color: var(--primary);
  margin-left: 0;
  margin-top: 14px;
}
.hero .cta.primary:hover, .hero .cta.primary:focus {
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 600px) {
  .hero {
    min-height: 158px;
    border-radius: 0 0 14px 14px;
  }
  .hero .container {
    padding: 28px 8px 16px 8px;
  }
  .hero .content-wrapper {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* --- SECTIONS, CONTENT, CARDS --- */
section {
  margin-bottom: 48px;
}
.section {
  box-shadow: var(--shadow);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 270px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.17s, background 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(32,74,112,0.13);
  background: #f1f7f6;
}

.feature-list, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 18px 0;
}
.feature-list {
  flex-direction: column;
  gap: 14px;
}
.feature-grid {
  flex-direction: row;
  align-items: flex-start;
  gap: 20px 24px;
}
.feature-grid li, .feature-list li {
  background: var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(32,74,112,0.05);
  font-family: var(--font-body);
}
.feature-grid li img, .feature-list li img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  min-width: 220px;
  max-width: 600px;
  transition: box-shadow 0.18s, background 0.16s;
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.08rem;
  line-height: 1.6;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 4px;
}
.testimonial-card:hover, .testimonial-card:focus {
  background: #f1f7f6;
  box-shadow: 0 6px 24px rgba(32,74,112,0.12);
}

@media (max-width: 900px) {
  .card, .testimonial-card {
    padding: 20px 10px;
  }
}
@media (max-width: 768px) {
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-list {
    gap: 10px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  section {
    margin-bottom: 32px;
  }
  .section {
    margin-bottom: 40px;
    padding: 20px 8px;
  }
}

/* --- TEXT-IMAGE/INFO SECTIONS --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 240px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- OL/UL style --- */
ul, ol {
  margin-left: 1.1em;
  padding-left: 0.2em;
}
ol {
  list-style: decimal outside;
}
ul {
  list-style: disc outside;
}
ul > li, ol > li {
  margin-bottom: 8px;
  padding-left: 2px;
  line-height: 1.6;
}

/* --- LINKS --- */
a {
  color: var(--primary);
  transition: color 0.16s, text-decoration 0.14s;
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* --- BUTTONS GENERAL --- */
button, .button, a.button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.15s, transform 0.17s;
}
button:active, .button:active {
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  background: var(--white);
  border-top: 1px solid var(--grey);
  margin-top: 56px;
  padding: 32px 0 0 0;
  font-size: 0.97rem;
}
footer .container {
  flex-direction: column;
  gap: 18px;
}
.footer-links, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--primary);
  opacity: 0.9;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 4px 10px;
  border-radius: 7px;
  transition: background 0.13s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--secondary);
  color: var(--white);
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  margin-right: 6px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 8px;
  border-top: 1px solid var(--grey);
  margin-top: 0px;
  font-size: 0.94rem;
  color: #737373;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
@media (max-width: 600px) {
  .footer-links, .footer-contact, .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
  }
}

/* --- LEGAL/CONFIRMATION SECTIONS --- */
.legal, .confirmation {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 18px 0 36px 0;
  padding: 28px 24px 32px 24px;
}
.legal h1, .confirmation h1 {
  color: var(--primary);
}
.legal h2, .legal h3 {
  color: var(--primary);
  margin-top: 16px;
}
.legal ul {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .legal, .confirmation {
    padding: 15px 3px 20px 3px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  border-top: 1px solid var(--grey);
  box-shadow: 0 -4px 18px rgba(32,74,112,0.14);
  z-index: 12001;
  padding: 18px 12px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  animation: cookie-slide-in 0.4s cubic-bezier(.7,-0.3,.25,1.4);
}
@keyframes cookie-slide-in {
  from {transform: translateY(100%);}
  to {transform: translateY(0);}
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-consent-banner button {
  background: var(--primary);
  color: var(--white);
  border-radius: 7px;
  padding: 9px 15px;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  font-size: 0.99rem;
  transition: background 0.18s, color 0.14s;
  margin-left: 0px;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner .cookie-settings-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 7px;
  border: none;
  padding: 9px 15px;
  font-family: var(--font-display);
  margin-left: 0;
  transition: background 0.18s, color 0.14s;
}
.cookie-consent-banner .cookie-settings-btn:hover, .cookie-consent-banner .cookie-settings-btn:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-right: 8px;
  }
  .cookie-consent-banner .cookie-actions {
    gap: 8px;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 12003;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,74,112,0.28);
  justify-content: center;
  align-items: center;
  animation: fade-in 0.18s linear;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fade-in {
  from { opacity: 0;}
  to { opacity: 1;}
}
.cookie-modal {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 320px;
  max-width: 96vw;
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-pop 0.21s cubic-bezier(.73,-0.44,.31,1.41);
  border: 1px solid var(--secondary);
}
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.93) translateY(60px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-modal .note {
  font-size: 0.95rem;
  color: var(--primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal .cookie-modal-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.15rem;
  border-radius: 7px;
  align-self: flex-end;
  border: none;
  padding: 4px 12px;
  margin-bottom: -14px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 0;
    padding: 15px 6px 10px 11px;
  }
}

/* --- ANIMATIONS --- */
.card, .testimonial-card, .feature-list li, .feature-grid li, .section, .content-wrapper, .legal, .confirmation {
  transition: box-shadow 0.18s, background 0.15s, color 0.14s;
}

/* --- SCROLLBAR POLISH --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: #d1ddd8;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cadfd0;
}

/* --- UTILITY CLASSES --- */
.d-none { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* --- TYPOGRAPHY SCALE (for Visual Hierarchy) --- */
.display-1 { font-size: 2.75rem; font-family: var(--font-display); font-weight: 700; }
.display-2 { font-size: 2.1rem; font-family: var(--font-display); }
.headline { font-size: 1.38rem; font-family: var(--font-display); }
.subtle { color: #616161; opacity: 0.7; }

/* --- MEDIA QUERIES GENERAL --- */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .section {
    padding: 18px 6px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .hero .cta.primary {
    font-size: 0.97rem;
    padding: 8px 16px;
  }
}

/* --- MICRO-INTERACTIONS (hover/focus effects) --- */
a, button, .cta.primary, .main-nav a, .mobile-nav a, .footer-links a, .feature-grid li, .testimonial-card {
  outline: none;
}
a:focus, button:focus, .cta.primary:focus, .main-nav a:focus, .mobile-nav a:focus {
  box-shadow: 0 0 0 3px var(--secondary);
  outline: none; 
}

/* --- END SCANDINAVIAN CLEAN UI CSS --- */
