/* ------------------------------------------------------ */
/* CSS RESET & SCANDINAVIAN CLEAN BASE STYLES            */
/* ------------------------------------------------------ */
/* 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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F5F5;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #003366;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #FFD700;
  outline: none;
  text-decoration: underline;
}

/* ------------------------------------------------------ */
/* BRAND & THEME TOKENS FOR SCANDINAVIAN CLEAN            */
/* ------------------------------------------------------ */
:root {
  --color-primary: #003366;
  --color-primary-dark: #002145;
  --color-secondary: #FFD700;
  --color-secondary-dark: #E6C200;
  --color-accent: #F5F5F5;
  --color-surface: #ffffff;
  --color-grey-50: #FAFAFA;
  --color-grey-100: #F0F0F0;
  --color-grey-200: #E5E5E5;
  --color-grey-300: #D2D2D2;
  --color-text: #222;
  --color-subtle: #6C7A89;
  --color-shadow: rgba(51,65,85,0.07);
  --color-shadow-deep: rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow-sm: 0 1.5px 5px 0 var(--color-shadow);
  --shadow-md: 0 2.5px 16px 0 var(--color-shadow-deep);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-section: 60px;
}

/* ------------------------------------------------------ */
/* TYPOGRAPHY                                             */
/* ------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: var(--spacing-md);
}
h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}
h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--spacing-xs);
}
p {
  font-family: var(--font-body);
  font-size: 1.08rem;
}
strong {
  font-weight: 600;
}

ul, ol {
  padding-left: 1.2em;
  list-style: disc outside none;
  margin-bottom: var(--spacing-xs);
}
ul li {
  margin-bottom: 6px;
}

.text-section p,
.text-section ul,
.text-section ol {
  font-size: 1.13rem;
}

/* ----------------------------------------------- */
/* LAYOUT CONTAINERS & FLEXBOX PATTERNS           */
/* ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  border: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  padding: var(--spacing-md);
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.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;
  background: var(--color-grey-50);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), border-color 0.18s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 var(--color-shadow-deep);
  border-left: 4px solid var(--color-primary);
}
.testimonial-card p {
  color: var(--color-text);
  font-size: 1.08rem;
  flex: 1;
  margin: 0;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--color-subtle);
  font-size: 1rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.content-wrapper.text-section {
  align-items: flex-start;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 0;
}

/* ------------------------------------------- */
/* HEADER & NAVIGATION                        */
/* ------------------------------------------- */
header {
  background: var(--color-surface);
  box-shadow: 0 2px 10px -5px var(--color-shadow-deep);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0 10px 0;
  justify-content: flex-start;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.16s, color 0.16s;
  display: flex;
  align-items: center;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-grey-100);
  color: var(--color-secondary-dark);
}
.main-nav a.btn-primary {
  color: #fff;
  background: var(--color-primary);
  margin-left: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.17s;
  box-shadow: 0 2px 10px -7px var(--color-shadow-deep);
}
.main-nav a.btn-primary:hover, .main-nav a.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}
.main-nav img {
  height: 36px;
  width: auto;
  margin-right: 10px;
  margin-left: 0;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.12s, transform 0.15s;
}
.mobile-menu-toggle:active {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: scale(0.98);
}

/* ------------------------------------------------------ */
/* MOBILE MENU                                           */
/* ------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 51, 102, 0.93);
  z-index: 1001;
  transform: translateX(105%);
  transition: transform 0.40s cubic-bezier(.63, .01, .47, .99);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  margin: 32px 32px 8px 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.18s;
  z-index: 1012;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0 0;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.23rem;
  font-weight: 600;
  padding: 14px 0;
  width: 100vw;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}
.mobile-nav a:last-child {
  border-bottom: none;
}

/* ------------------------------------------------------ */
/* BUTTONS                                               */
/* ------------------------------------------------------ */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 10px 26px;
  text-align: center;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.16s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 2px 10px -7px var(--color-shadow-deep);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 16px -4px var(--color-primary-dark);
  text-decoration: none;
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Improve button accessibility */
.btn-primary:active, .btn-secondary:active {
  filter: brightness(0.96);
}

/* ---------------------------------------- */
/* ICONS, IMAGES & LIST STYLES             */
/* ---------------------------------------- */
ul li img, p img {
  vertical-align: middle;
  height: 22px;
  width: 22px;
  margin-right: 10px;
  margin-bottom: 2px;
}
.footer-brand img {
  height: 42px;
  width: auto;
  margin-bottom: 14px;
  margin-top: 4px;
}

/* ---------------------------------------- */
/* FOOTER                                  */
/* ---------------------------------------- */
footer {
  background: var(--color-grey-100);
  padding: 40px 0 30px 0;
  color: var(--color-subtle);
  font-size: 0.96rem;
  border-top: 1px solid var(--color-grey-300);
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-brand, .footer-links, .footer-legal {
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand p {
  line-height: 1.5;
  color: var(--color-subtle);
  font-size: 0.98rem;
}
.footer-links h3, .footer-legal h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 700;
}
.footer-links ul, .footer-legal ul {
  list-style: none;
  padding: 0;
}
.footer-links ul li, .footer-legal ul li {
  margin-bottom: 8px;
}
.footer-links ul li a, .footer-legal ul li a {
  color: var(--color-primary);
  font-size: 0.98rem;
  transition: color 0.14s;
}
.footer-links ul li a:hover, .footer-legal ul li a:hover {
  color: var(--color-secondary-dark);
}


/* ------------------------------------------ */
/* COOKIE CONSENT BANNER                     */
/* ------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 1200;
  background: #fff;
  border-top: 1.5px solid var(--color-grey-200);
  box-shadow: 0 -2px 16px 0 var(--color-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 22px 18px;
  font-size: 1rem;
  animation: cookieFadeIn 0.7s cubic-bezier(.45,.12,.45,1);
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  max-width: 540px;
  color: var(--color-text);
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.18s;
  margin: 0;
}
.cookie-btn--accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn--accept:hover, .cookie-btn--accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}
.cookie-btn--reject {
  background: var(--color-grey-200);
  color: var(--color-primary-dark);
}
.cookie-btn--reject:hover, .cookie-btn--reject:focus {
  background: var(--color-grey-300);
  color: var(--color-primary);
}
.cookie-btn--settings {
  background: none;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.cookie-btn--settings:hover, .cookie-btn--settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,51,102,0.49);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(.63,.01,.47,.99), visibility 0s 0.25s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.cookie-modal__content {
  background: #fff;
  padding: 38px 32px 28px 32px;
  border-radius: var(--radius-md);
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 5px 32px 0 var(--color-shadow-deep);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookieModalIn 0.45s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: scale(0.97) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__header h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.7rem;
  cursor: pointer;
  margin-left: 24px;
  transition: color 0.13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--color-secondary-dark);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary-dark);
  font-size: 1.02rem;
}
.cookie-toggle {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: var(--color-grey-200);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s, background 0.16s;
}
.cookie-toggle:checked:before {
  left: 16px;
}
.cookie-category--essential label {
  opacity: 0.72;
}

/* -------------------------------------------- */
/* MEDIA QUERIES & RESPONSIVE FLEX PATTERNS    */
/* -------------------------------------------- */
@media (max-width: 1024px) {
  .container { max-width: 960px; }
  .footer-brand, .footer-links, .footer-legal {
    flex: 1 1 170px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 90vw; }
  .footer-brand, .footer-links, .footer-legal {
    flex: 1 1 140px;
  }
}
@media (max-width: 768px) {
  html { font-size: 100%; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.04rem; }
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
    border-radius: var(--radius-sm);
  }
  .content-wrapper, .content-grid {
    gap: 16px;
  }
  .card-container, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    padding: 18px;
  }
  .footer-brand, .footer-links, .footer-legal {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 28px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 18px;
    align-items: stretch !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 5px;
  }
}
@media (max-width: 600px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block !important;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column !important;
    gap: 12px !important;
  }
  h1 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 1.11rem;
    margin-bottom: 6px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
  }
  .footer-brand img {
    height: 34px;
  }
  .cookie-modal__content {
    padding: 22px 8px 16px 8px;
    min-width: 0;
  }
}

/* ------------------------------------------- */
/* FOCUS VISIBLE FOR ACCESSIBILITY            */
/* ------------------------------------------- */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ------------------------------------------- */
/* MISCELLANEOUS                             */
/* ------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-grey-100);
}
::-webkit-scrollbar-thumb {
  background: var(--color-grey-300);
  border-radius: 4px;
}
::-webkit-input-placeholder { color: #8ca1b5; opacity: 1; }
::-moz-placeholder { color: #8ca1b5; opacity: 1; }
:-ms-input-placeholder { color: #8ca1b5; opacity: 1; }
::placeholder { color: #8ca1b5; opacity: 1; }

/* Hide scroll on mobile menu overlay for background */
body.mobile-menu-open {
  overflow: hidden;
}

/* ------------------------------------------- */
/* END OF CSS                                */
/* ------------------------------------------- */
