/* ----------------------
   CSS RESET & BASE RULES
---------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F7FA;
  color: #213548;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #205375;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #166c16;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}
main {
  flex: 1;
}
/* Typography hierarchy */
h1, .h1 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 700; font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; color: #205375; letter-spacing: -1px; }
h2, .h2 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 600; font-size: 2rem; margin-bottom: 20px; color: #205375; }
h3, .h3 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 500; font-size: 1.35rem; margin-bottom: 12px; color: #166c16; }
h4, .h4 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 500; font-size: 1.1rem; margin-bottom: 8px; color: #205375; }
p { margin-bottom: 18px; }
/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Sections with breathing room */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(32,83,117,0.04), 0 1.5px 8px 0 rgba(34,139,34,0.06);
}
section.cta,
.cta.section {
  background: linear-gradient(87deg, #205375 0%, #166c16 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 20px 0 rgba(34,139,34,0.07), 0 1.5px 4px 0 rgba(32,83,117,0.09);
}
section.cta h2, section.cta p, section.cta a.cta {
  color: #fff;
}
.hero-section {
  margin-bottom: 60px;
  background: linear-gradient(108deg, #205375 30%, #166c16 110%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 24px 0 rgba(32,83,117,0.09);
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero-section h1 { color: #fff; font-size: 2.7rem; }
.hero-section p { color: #f0f6fb; font-size: 1.2rem; margin-bottom: 32px; }
/* -----------
   HEADER
----------- */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 4px 24px 0 rgba(32,83,117,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 28px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 9px 16px;
  border-radius: 30px;
  color: #205375;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: #e3efea;
  color: #166c16;
}
nav a.cta {
  background: linear-gradient(87deg, #205375 0%, #166c16 100%);
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(34,139,34,0.08);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
nav a.cta:hover, nav a.cta:focus {
  background: linear-gradient(95deg, #166c16 25%, #205375 100%);
  box-shadow: 0 4px 16px 0 rgba(32,83,117,0.15);
  color: #fff;
}
/* ------
 MOBILE NAVIGATION (OFFCANVAS)
------ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #205375;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: #166c16;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #205375;
  color: #fff;
  z-index: 140;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.65,.01,.36,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 200;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: #83ec97;
}
.mobile-nav {
  margin-top: 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-left: 32px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  background: none;
  padding: 11px 0;
  border-radius: 0;
  width: 85vw;
  transition: color 0.2s, background 0.15s;
}
.mobile-nav a:hover {
  color: #83ec97;
  background: rgba(34,139,34,0.07);
  border-radius: 8px;
}
@media (max-width: 1080px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    z-index: 100;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}
/* ------
   FEATURE GRID (INDEX)
------ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feature-grid > div {
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 260px;
  background: #F5F7FA;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(32, 83, 117, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 20px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 28px 0 rgba(34,139,34,0.09);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}
/* ------
    TESTIMONIALS
------ */
.testimonials-preview {
  background: linear-gradient(89deg, #f5f7fa 55%, #e3efea 100%);
  box-shadow: 0 2px 24px 0 rgba(34,139,34,0.08);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(32,83,117,0.06);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  max-width: 660px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #205375;
  margin-bottom: 10px;
  font-style: italic;
  quotes: '\201C' '\201D';
  position: relative;
}
.testimonial-card blockquote:before {
  content: open-quote;
  color: #228B22;
  font-size: 2rem;
  top: -2px;
  left: 5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.testimonial-card div {
  font-size: 0.95rem;
  color: #213548;
  font-style: normal;
}
.testimonial-card strong {
  color: #166c16;
  font-weight: 600;
}
/* ------
    CARD CONTAINERS (universal)
------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 240px;
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(32,83,117,0.05);
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 5px 18px 0 rgba(34,139,34,0.11);
  transform: translateY(-2px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 12px;
}
/* ------
    GRID-LIKE CONTENT WRAPPERS
------ */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
/* ------
   FLEXBOX TEXT & IMAGE SECTION
------ */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* ------
      GENERIC .feature-item (for content, not index grid)
------ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* ------
    MISC UTILITY CLASSES
------ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
/* ------
   BUTTONS & CTA LINKS
------ */
.cta, a.cta, button.cta {
  background: linear-gradient(90deg, #205375 0%, #166c16 100%);
  color: #fff !important;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 32px;
  font-size: 1.13rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: none;
  box-shadow: 0 2px 18px 0 rgba(32,83,117,0.12), 0 2px 6px 0 rgba(34,139,34,0.06);
  cursor: pointer;
  outline: none;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.23s, box-shadow 0.2s, transform 0.14s, color 0.18s;
}
.cta:hover, a.cta:hover, button.cta:hover, .cta:focus {
  background: linear-gradient(91deg, #166c16 14%, #205375 95%);
  color: #fff !important;
  box-shadow: 0 8px 20px 0 rgba(32,83,117,0.18);
  transform: translateY(-2px) scale(1.03);
}
/* ------
   TEXT SECTION (About, Contact, etc)
------ */
.text-section {
  background: #F5F7FA;
  border-radius: 12px;
  padding: 22px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(32,83,117,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  margin-bottom: 0;
}
.text-section img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ------
    FORMS (if any)
------ */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #213548;
  background: #f9fbfc;
  border: 1.5px solid #d3e0e6;
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  margin-bottom: 14px;
  transition: border 0.16s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #228B22;
  box-shadow: 0 2px 9px 0 rgba(34,139,34,0.07);
}
button, input[type=submit] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: none;
  outline: none;
  background: #205375;
  color: #fff;
  border-radius: 999px;
  padding: 10px 28px;
  cursor: pointer;
}
button:hover, input[type=submit]:hover {
  background: #166c16;
}
/* ------
    FOOTER STYLES
------ */
footer {
  background: linear-gradient(89deg, #205375 80%, #166c16 100%);
  color: #fff;
  padding: 56px 0 20px 0;
  width: 100%;
  box-shadow: 0 -3px 32px 0 rgba(32,83,117,0.07);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  min-width: 54px;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
}
.footer-brand p {
  font-size: 0.97rem;
  color: #f0f6fb;
  margin-bottom: 6px;
}
.footer-brand img[alt^="Telefon"],
.footer-brand img[alt^="E-post"],
.footer-brand img[alt^="Öppetider"] {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #fff;
  font-size: 0.98rem;
  opacity: 0.93;
  transition: text-decoration 0.2s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #83ec97;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social img {
  width: 32px;
  height: 32px;
  filter: brightness(98%) drop-shadow(0px 1px 0px #166c16);
  transition: filter 0.13s;
  cursor: pointer;
}
.footer-social img:hover {
  filter: brightness(120%) drop-shadow(0 3px 8px #166c16);
}
.footer-legal {
  font-size: 0.92rem;
  color: #d8dee4;
  margin-top: 22px;
  width: 100%;
  text-align: left;
}
/* -----------------------------
  RESPONSIVE DESIGN - MOBILE FIRST
----------------------------- */
@media (max-width: 991px) {
  section, .section { padding: 24px 7px; margin-bottom: 36px; }
  .container { padding: 0 7px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  footer .container { flex-direction: column; gap: 24px; }
}
@media (max-width: 760px) {
  h1, .h1 { font-size: 1.85rem; }
  h2, .h2 { font-size: 1.3rem; }
  .hero-section { padding-top: 22px; padding-bottom: 32px; border-radius: 0 0 18px 18px; }
  .hero-section h1 { font-size: 1.55rem; }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .card {
    min-width: unset;
    max-width: 100%;
    padding: 18px 14px;
  }
  .testimonial-card, .card {
    padding: 14px 8px;
  }
  .footer-brand img { width: 40px; height: 40px; min-width: 40px; }
  .footer-legal { margin-top: 15px; }
}
@media (max-width: 540px) {
  .container { max-width: 98vw; }
  nav, .footer-nav { gap: 4px; }
}
/* ------------ FLEX WIDTH RULES ------------- */
@media (max-width: 768px) {
  .text-image-section,
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch !important;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: 100%;
  }
}
@media (min-width: 769px) {
  .text-image-section { flex-direction: row; align-items: center; }
}
/* ----------------------------------
   COOKIE CONSENT BANNER & MODAL
-----------------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #205375;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 28px;
  z-index: 9999;
  box-shadow: 0 -3px 24px 0 rgba(32,83,117,0.13);
  font-size: 1rem;
  visibility: visible;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-message {
  max-width: 500px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-consent-banner button,
.cookie-consent-banner .cta {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  outline: none;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.17s, color 0.14s;
}
.cookie-consent-banner .accept {
  background: linear-gradient(90deg, #166c16, #205375);
  color: #fff;
}
.cookie-consent-banner .accept:hover {
  background: #166c16;
}
.cookie-consent-banner .reject {
  background: #fff;
  color: #205375;
  border: 1.5px solid #228B22;
}
.cookie-consent-banner .reject:hover {
  background: #e3efea;
  color: #166c16;
}
.cookie-consent-banner .settings {
  background: none;
  color: #fff;
  border: 1.5px solid #205375;
}
.cookie-consent-banner .settings:hover {
  background: #f5f7fa;
  color: #205375;
}
@media (max-width: 640px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px;
    font-size: 0.93rem;
  }
  .cookie-consent-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}
/* COOKIE MODAL (Overlay) */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,83,117,0.84);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal.hide {
  opacity: 0;
  visibility: hidden;
}
.cookie-modal-content {
  background: #fff;
  color: #205375;
  border-radius: 22px;
  padding: 38px 24px 30px 24px;
  max-width: 420px;
  width: 98vw;
  box-shadow: 0 8px 32px 0 rgba(32,83,117,0.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: slideInModal .38s cubic-bezier(0.43,0.10,0.23,1.1);
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #228B22;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: #205375;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}
.cookie-modal-content .cookie-category label {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 0 7px;
}
.cookie-toggle {
  appearance: none;
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #f2f8f7;
  border: 1.5px solid #205375;
  border-radius: 22px;
  outline: none;
  position: relative;
  cursor: pointer;
  transition: background 0.21s, border 0.18s;
}
.cookie-toggle:checked {
  background: #228B22;
  border-color: #166c16;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.cookie-toggle:checked::before {
  transform: translateX(14px);
}
.cookie-modal-content .modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-direction: row;
  justify-content: flex-end;
}
.cookie-modal-content .modal-actions .cta,
.cookie-modal-content .modal-actions button {
  min-width: 80px;
  padding: 9px 16px;
  font-size: 1rem;
}
@keyframes slideInModal {
  0% { transform: translateY(120px) scale(0.95); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
/* ------------------
   MICRO-ANIMATIONS
------------------- */
a, button, .cta { transition: background 0.18s, color 0.14s, box-shadow 0.14s, transform 0.13s; }
section, .section { transition: box-shadow .26s cubic-bezier(.59,.08,.3,.99), background 0.43s; }
.feature-grid > div, .card { transition: box-shadow 0.19s, transform 0.13s; }
.mobile-menu, .cookie-consent-banner, .cookie-modal { transition: transform 0.32s, opacity 0.25s, visibility 0.13s; }
/* --------------
VISUAL HIERARCHY & WHITE SPACE
---------------- */
section + section,
.section + .section { margin-top: 0; margin-bottom: 60px; }
.content-wrapper > *, .section > *, .card-content > * {
  margin-bottom: 8px;
}
.content-wrapper > :last-child, .section > :last-child, .card-content > :last-child { margin-bottom: 0; }
/* -------------------
  HELPER FLEX LAYOUTS
------------------- */
.card-container, .feature-grid, .content-grid, .text-image-section, .footer-brand, .footer-social {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.testimonial-card, .feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.text-image-section, .testimonial-card { align-items: center; }
/* -------------
   A11Y
---------------- */
a:focus, button:focus, input:focus, .cta:focus { outline: 2px solid #166c16; outline-offset: 1px; }
/* -------------------
  PRINT
------------------- */
@media print { body { background: #fff; color: #000; } nav, .mobile-menu, .cookie-consent-banner, .cookie-modal, .footer-nav, .footer-social { display: none !important; } }
