/* ---------------------- CSS RESET & NORMALIZE ---------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F8F7F4;
  color: #21546A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #21546A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #357764;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #21546A;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; }
h3 { font-size: 1.125rem; margin-bottom: 12px; font-weight: 600; }
p { margin-bottom: 16px; }
strong { font-weight: 700; }
address { font-style: normal; margin-bottom: 20px; }

/* ---------------------- LAYOUT & CONTAINERS ---------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  margin-bottom: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(33,84,106,0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(33,84,106,0.08);
  margin-bottom: 20px;
  padding: 28px 22px;
  transition: box-shadow 0.15s;
  position: relative;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(33,84,106,0.14);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F8F7F4;
  border-left: 4px solid #357764;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 14px 0 rgba(33,84,106,0.12);
  font-size: 1.08rem;
  color: #21546A;
}
.testimonial-card p {
  color: #21546A;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #357764;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33,84,106,0.07);
  padding: 18px 20px;
  margin-bottom: 16px;
}

/* --------- Main Nav & Logo & Header Layout --------- */
header {
  background: #FFFFFF;
  box-shadow: 0 3px 12px rgba(33,84,106,0.06);
  margin-bottom: 16px;
  z-index: 80;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.logo img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
}
.main-nav a {
  color: #21546A;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
  padding: 4px 0 4px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: #357764;
}

.btn-primary {
  background: #21546A;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(33,84,106,0.10);
  transition: background 0.18s, box-shadow 0.20s, color 0.13s;
  margin-left: 12px;
  display: inline-block;
}
.btn-primary.cta {
  margin: 7px 0 0 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: #357764;
  color: #fff;
  box-shadow: 0 6px 18px rgba(53,119,100,0.14);
}

/* ---- Hamburger/Mobile Nav ---- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 1.6rem;
  padding: 10px 18px;
  color: #21546A;
  cursor: pointer;
  display: none;
  transition: color 0.15s;
  z-index: 102;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #357764;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(226,222,214,0.96);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.77,0.2,0.05,1.0);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 26px 0 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #21546A;
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  z-index: 102;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #357764;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}
.mobile-nav a {
  color: #21546A;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 4px;
  transition: color 0.18s;
  font-weight: 600;
  border-radius: 5px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #357764;
  background: #F6F5F3;
}

/* Hide desktop nav on mobile, show hamburger */
@media (max-width: 900px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: row;
    gap: 10px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.02rem; }
  .section { 
    padding: 26px 6px;
    margin-bottom: 34px;
  }
  .testimonial-card, .card {
    padding: 18px 10px;
  }
}

@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid, .text-image-section {
    flex-direction: column !important;
    gap: 16px;
  }
  .container {
    max-width: 100vw;
  }
}

/* --- Footer Styles --- */
footer {
  background: #E2DED6;
  color: #21546A;
  font-size: 0.92rem;
  margin-top: 48px;
  padding: 32px 0 12px 0;
  letter-spacing: 0.03em;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #21546A;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 2px 0;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus { color: #357764; }
.contact-info { max-width: 300px; line-height: 1.7; }
.footer-legal {
  flex: 1 1 80%;
  color: #357764;
  font-size: 0.93rem;
  margin-top: 18px;
  text-align: right;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: left;
  }
  .footer-legal {
    text-align: left;
    margin-top: 10px;
  }
}

/* -------- Lists with Icons -------- */
ul li img, .feature-list li img {
  display: inline-block;
  vertical-align: middle;
  width: 26px; height: 26px;
  margin-right: 10px;
}

/* --------- Forms and Address --------- */
input, textarea, select {
  border: 1px solid #E2DED6;
  padding: 11px 12px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 1rem;
  background: #FCFBFA;
  margin-bottom: 15px;
  outline: none;
  width: 100%;
  max-width: 98%;
  transition: border 0.16s, background 0.14s;
}
input:focus, textarea:focus, select:focus {
  background: #fff;
  border-color: #21546A;
}
label { display: block; font-size: 1rem; margin-bottom: 7px; }
.button-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------- Cookie Banner & Cookie Modal --------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #21546A;
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  z-index: 1202;
  box-shadow: 0 -2px 16px rgba(33,84,106,0.18);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(180px);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1.06rem;
  text-align: center;
  margin: 0;
  color: #FFF;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cookie-btn,
.cookie-banner button,
.cookie-banner .btn {
  background: #fff;
  color: #21546A;
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(33,84,106,0.09);
}
.cookie-btn.accept {
  background: #357764;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #21546A;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #357764;
  border: 2px solid #357764;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F8F7F4;
  color: #21546A;
}
.cookie-btn.settings {
  background: #E2DED6;
  color: #21546A;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: #dde1dc;
  color: #357764;
}

/* Cookie preferences modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,84,106,0.16);
  z-index: 1305;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.34s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(33,84,106,0.15);
  padding: 36px 32px 24px 32px;
  max-width: 410px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
  font-size: 1.04rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: #357764;
  width: 22px;
  height: 22px;
}
.cookie-close-modal {
  position: absolute;
  top: 15px; right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #357764;
  cursor: pointer;
}
.cookie-close-modal:hover,.cookie-close-modal:focus { color: #21546A; }
@media (max-width:500px) {
  .cookie-modal-content {
    padding: 20px 7px 18px 7px;
    max-width: 99vw;
  }
}

/* ---------- Animations ---------- */
.btn-primary, .cookie-btn, .card, .testimonial-card, .feature-item {
  transition: background 0.16s, color 0.13s, box-shadow 0.18s, border 0.17s, opacity 0.22s, transform 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.011);
  box-shadow: 0 6px 28px rgba(33,84,106,0.15);
}

/* --------- Utilities --------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.pt-2 { padding-top: 16px !important; }
.pb-2 { padding-bottom: 16px !important; }
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }

/* --------- Scandinavian Clean Visuals --------- */
.section, .card, .testimonial-card, .feature-item {
  box-shadow: 0 3px 14px 0 rgba(33,84,106,0.08);
  border: none;
  border-radius: 16px;
}

/* --------- Responsive Adjustments --------- */
@media (max-width: 500px) {
  h1 { font-size: 1.18rem; margin-bottom: 12px; }
  h2 { font-size: 1.10rem; margin-bottom: 8px; }
  h3 { font-size: 0.98rem; margin-bottom: 6px; }
  .section {
    margin-bottom: 22px;
    padding: 14px 2px;
  }
  .testimonial-card, .card {
    padding: 11px 4px;
  }
}

/* --------- Accessibility --------- */
:focus-visible {
  outline: 2px solid #21546A;
  outline-offset: 3px;
}

/* --------- Misc Font Import --------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat'), local('Montserrat-Regular'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUQjIg1_i6t8kCHKm459WxRxC7m0dR9pBOiU3rEp3g.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Open Sans'), local('OpenSans'), url('https://fonts.gstatic.com/s/opensans/v29/mem8YaGs126MiZpBA-UFVZ0e.ttf') format('truetype');
}

/* --------- Hide Outline of Hidden Buttons --------- */
[tabindex='-1']:focus {
  outline: none !important;
}
