/* --- CSS RESET & NORMALIZATION --- */
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;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F9F9F6;
  color: #1F3761;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #1F3761;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F6A729;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  color: #1F3761;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
h1 { font-size: 2.25rem; line-height: 1.18; margin-bottom: 22px; }
h2 { font-size: 1.5rem; line-height: 1.22; margin-bottom: 18px; }
h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 12px; }
.subheadline {
  font-size: 1.125rem;
  color: #44557B;
  margin-bottom: 22px;
  font-weight: 400;
}
p {
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
  color: #1F3761;
}
em {
  color: #44557B;
}

/* --- STRUCTURAL LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 10px;
    margin-bottom: 36px;
  }
}

/* --- MAIN NAVIGATION --- */
header {
  width: 100%;
  background: #F9F9F6;
  box-shadow: 0 2px 12px rgba(31,55,97,0.04);
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0 18px 0;
}
.main-nav > a {
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
}
.main-nav ul li a {
  color: #1F3761;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #F6A729;
  color: #fff;
}
.cta.primary {
  background: #1F3761;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 32px;
  padding: 10px 32px;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(31,55,97,0.08);
  margin-left: 12px;
  cursor: pointer;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #F6A729;
  color: #1F3761;
}
.cta.secondary {
  background: #F6A729;
  color: #1F3761;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 32px;
  padding: 10px 28px;
  border: none;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(31,55,97,0.04);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  display: inline-block;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #1F3761;
  color: #fff;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #1F3761;
  border: none;
  margin-left: 16px;
  cursor: pointer;
  z-index: 30;
  transition: color 0.2s;
  padding: 2px 8px;
  border-radius: 6px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #F6A729;
  background: #f2e9d3;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
/* MOBILE MENU PANEL */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(31,55,97, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 1200;
  transform: translateX(100vw);
  transition: transform 0.45s cubic-bezier(.61,0,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 26px 12px 0;
  cursor: pointer;
  z-index: 1110;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F6A729;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  padding: 26px 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 4px;
  width: fit-content;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F6A729;
  color: #1F3761;
}

/* --- HERO/INTRO SECTION --- */
.content-wrapper > h1 {
  margin-top: 18px;
}
.content-wrapper {
  gap: 12px;
  margin-bottom: 16px;
}

/* --- FLEXBOX PATTERNS & SPACING --- */
.features-grid, .feature-list, .card-container, .card-grid, .services-list, .service-cards, .testimonials-grid, .footer-columns, .content-grid, .text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid { gap: 32px; flex-wrap: wrap; }
.feature {
  background: #fff;
  box-shadow: 0 2px 14px rgba(31,55,97,0.04);
  border-radius: 18px;
  padding: 28px 20px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 340px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature img {
  width: 48px; height: 48px; margin-bottom: 8px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 6px 28px rgba(31,55,97,0.10);
}

.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(31,55,97,0.05);
  padding: 32px 24px;
  flex: 1 1 220px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.14s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 26px rgba(31,55,97,0.15);
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 20px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(31,55,97,0.06);
  padding: 28px 22px 24px 22px;
  min-width: 240px;
  flex: 1 1 285px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.16s;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 8px 24px rgba(246,167,41,0.10);
  transform: translateY(-4px);
}

.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.testimonial-card {
  background: #fff;
  color: #1F3761;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(31,55,97,0.07);
  padding: 20px 24px;
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.16s;
  border-left: 5px solid #F6A729;
}
.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  color: #1F3761;
}
.testimonial-details {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
  font-size: 1rem;
  color: #44557B;
}

@media (max-width: 990px) {
  .features-grid, .service-cards, .testimonials-grid {
    gap: 16px;
  }
  .feature, .service-card, .testimonial-card {
    min-width: 180px;
    flex: 1 1 200px;
  }
}
@media (max-width: 768px) {
  .features-grid, .service-cards, .testimonials-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .service-card, .testimonial-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 16px;
  }
}

/* FLEXBOX PATTERNS */
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; gap: 20px; align-items: flex-start; }
}
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- FORMS & PLACEHOLDER STYLES --- */
.contact-form-placeholder, .map-placeholder {
  background: #F2F4F7;
  border-radius: 12px;
  padding: 22px 18px;
  color: #44557B;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .contact-form-placeholder, .map-placeholder {
    padding: 18px 12px;
  }
}

/* --- FOOTER --- */
footer {
  background: #fff;
  color: #1F3761;
  padding: 0;
  box-shadow: 0 -1px 12px rgba(31,55,97,0.06);
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 42px 0 22px 0;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
}
.footer-main-nav ul,
.footer-legal-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.footer-main-nav {
  flex: 1 1 180px;
}
.footer-legal-nav {
  flex: 1 1 140px;
}
.footer-main-nav a, .footer-legal-nav a {
  color: #1F3761;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
  border-radius: 2px;
  padding: 2px 0;
}
.footer-main-nav a:hover, .footer-legal-nav a:hover {
  color: #F6A729;
}
.footer-social {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  filter: grayscale(50%) brightness(1.15);
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: grayscale(0%) brightness(1.0);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e6e6e0;
  padding: 14px 0;
  font-size: 0.95rem;
  background: #F9F9F6;
}

@media (max-width: 900px) {
  .footer-columns {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 6px;
  }
}


/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fffbe6;
  box-shadow: 0 -4px 32px rgba(32,38,49,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 26px;
  font-size: 1rem;
  color: #262c37;
  border-top: 1px solid #EBEBE6;
  transition: transform 0.36s, opacity 0.25s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 250px;
  font-size: 1rem;
  color: #1F3761;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: #1F3761;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 26px;
  padding: 8px 22px;
  box-shadow: 0 2px 8px rgba(31,55,97,0.04);
  cursor: pointer;
  margin: 0;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.secondary {
  background: #F6A729;
  color: #1F3761;
}
.cookie-btn.settings {
  background: #fff;
  color: #44557B;
  border: 1px solid #F6A729;
  font-weight: 600;
  box-shadow: none;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #F6A729;
  color: #1F3761;
  outline: none;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #1F3761;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fffbe6;
  color: #1F3761;
  border-color: #1F3761;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 10px;
    gap: 14px;
  }
  .cookie-banner .cookie-banner-text {
    font-size: 0.95rem;
  }
}

/* --- COOKIE MODAL/PREFERENCES POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(31,55,97,0.68);
  z-index: 10110;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.34s ease;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(31,55,97,0.16);
  min-width: 310px;
  max-width: 95vw;
  width: 460px;
  padding: 36px 28px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 11100;
  animation: cookieModalScaleIn 0.27s cubic-bezier(.63,1.9,.27,.96);
}
@keyframes cookieModalScaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #1F3761;
  letter-spacing: 0.01em;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category-label {
  flex: 1 1 auto;
  font-size: 1rem;
  color: #1F3761;
}
.cookie-modal .cookie-category-toggle {
  appearance: none;
  width: 39px; height: 22px;
  background: #F2F4F7;
  border-radius: 14px;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
  position: relative;
  border: 1px solid #E9E9DF;
}
.cookie-modal .cookie-category-toggle:checked {
  background: #F6A729;
  border-color: #F6A729;
}
.cookie-modal .cookie-category-toggle:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-category-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(31,55,97,0.06);
  transition: left 0.18s, background 0.18s;
}
.cookie-modal .cookie-category-toggle:checked::after {
  left: 17px;
  background: #fffbe6;
}
.cookie-modal .cookie-category-expl {
  font-size: 0.97rem;
  color: #44557B;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 12px; top: 12px;
  background: none;
  color: #1F3761;
  border: none;
  font-size: 2rem;
  padding: 2px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s, color 0.16s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #f2e9d3;
  color: #F6A729;
}
@media (max-width: 500px) {
  .cookie-modal {
    width: 98vw;
    min-width: 0;
    padding: 20px 8px;
  }
}

/* --- ANIMATION / MICROINTERACTIONS --- */
.cta, .card, .feature, .service-card, .testimonial-card, a, button, .cookie-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, transform 0.13s;
}
.cta:active, .cookie-btn:active {
  transform: scale(0.98);
}

/* --- OTHERS & UTILITIES --- */
@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }
  .section { padding: 18px 4px; }
}
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/* --- SCROLL BAR --- */
body::-webkit-scrollbar {
  width: 9px;
  background: #F2F4F7;
}
body::-webkit-scrollbar-thumb {
  background: #e1e4ec;
  border-radius: 10px;
}

/* --- MISC SPACING --- */
main, main > section, main > .section {
  width: 100%;
}

/* --- SCANDINAVIAN CLEAN FLAVOUR --- */
/* Use of soft boxed shadows, roundness, white and very light backgrounds, with dark blue heading/text and subtle accent details. Inline image icons have natural circular padding. Many cards/sections are white on very-light accent backgrounds. Proper space between cards/sections created by flex gap + margin-bottom enforced everywhere. */

/* --- END OF STYLE.CSS --- */
