/* RESET & BASE TYPOGRAPHY – Scandinavian Clean */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F9F5EB;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  list-style: none;
}
a {
  color: #28527A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F0843C;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #233858;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }
  h2 {
    font-size: 2.125rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}
p {
  margin-bottom: 14px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Header & Main Navigation --- */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(40, 82, 122, 0.04);
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
  padding: 0 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #28527A;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #F9F5EB;
  color: #F0843C;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: #F0843C;
  color: #fff;
  padding: 10px 28px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 82, 122, 0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.17s;
  margin-left: 12px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #C25B10;
  box-shadow: 0 4px 16px rgba(40, 82, 122, 0.17);
  transform: translateY(-2px) scale(1.03);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #28527A;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px 16px 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 103;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F0843C;
  background: #F9F5EB;
}

/* --- Mobile Navigation Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248, 245, 235, .97);
  z-index: 102;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.82,0,.14,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: #FFFFFF;
  color: #28527A;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 30px 24px 10px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.16s;
  z-index: 104;
  padding: 0 8px;
}
.mobile-menu-close:focus {
  outline: 2px solid #F0843C;
  background: #F9F5EB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 36px;
  margin-top: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #28527A;
  font-size: 1.25rem;
  padding: 12px 4px 12px 0;
  border-radius: 4px;
  width: 100%;
  display: block;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F0843C;
  color: #fff;
}

/* Hide nav / show burger in mobile */
@media (max-width: 900px) {
  header nav,
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
}

/* --- Hero & Section Styles --- */
.hero {
  background: #F9F5EB;
  padding: 54px 0 36px 0;
  margin: 0 0 60px 0;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 14px;
}
.hero h1 {
  color: #28527A;
}
.hero p {
  color: #27436a;
  font-size: 1.12rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 0 54px 0;
    min-height: 340px;
  }
  .hero .content-wrapper {
    max-width: 680px;
  }
}

/* --- Flexbox Section Spacing --- */
.features,
.services,
.testimonials,
.cta,
.about,
.legal,
.contact,
.thanks {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features ul, .services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  margin-top: 8px;
}
.features ul li, .services ul li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 9px rgba(40, 82, 122, 0.045);
  padding: 22px 24px 18px 20px;
  font-size: 1rem;
  color: #334;
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.features ul li img {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .features ul,
  .services ul {
    flex-direction: column;
  }
  .features ul li,
  .services ul li {
    min-width: 100%;
    max-width: 100%;
  }
}

/* --- Testimonial Cards --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #1C2530;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px rgba(40, 82, 122, 0.07), 0 1.5px 6px rgba(40,82,122,0.04);
  font-size: 1.08rem;
  position: relative;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #233858;
  font-style: italic;
}
.testimonial-card span {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F0843C;
  font-weight: 500;
  font-size: 1.02rem;
  margin-left: 12px;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Call to Action Section --- */
.cta {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(40, 82, 122, 0.09);
  text-align: left;
  align-items: center;
  justify-content: center;
}
.cta .cta-btn {
  margin-top: 4px;
}

/* --- Forms and Search --- */
input[type="search"] {
  padding: 10px 17px;
  border-radius: 8px;
  border: 1.5px solid #c9d2e0;
  font-size: 1rem;
  color: #28527A;
  background: #F9F5EB;
  margin-bottom: 12px;
  outline: none;
  transition: border 0.18s;
  width: 100%;
  max-width: 340px;
  margin-top: 9px;
  box-sizing: border-box;
}
input[type="search"]:focus {
  border: 2px solid #F0843C;
  background: #fff;
}

/* --- About, Contact, Legal Pages --- */
.about, .contact, .legal, .thanks {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(40, 82, 122, 0.07);
}
.text-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334;
  font-size: 1rem;
}
.contact .text-section b,
.contact .text-section a {
  color: #28527A;
}
.contact .text-section img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 7px;
}

/* --- Flex Utility Classes --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 1.5px 10px rgba(40,82,122,0.086);
  display: flex;
  flex-direction: column;
  min-width: 230px;
  max-width: 340px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Footer --- */
footer {
  background: #f7fafc;
  color: #466;
  font-size: 0.98rem;
  padding: 38px 0 20px 0;
  border-top: 1.5px solid #e8e3db;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: #28527A;
  font-weight: 500;
  letter-spacing: 0.005em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: #F0843C;
  color: #fff;
}
footer .text-section {
  font-size: 0.96rem;
  color: #334;
  gap: 3px;
}
footer p {
  font-size: 0.96rem;
  color: #4e5974;
  margin: 0;
}
@media (max-width: 600px) {
  footer nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #233858;
  box-shadow: 0 -3px 16px rgba(40,82,122,0.09);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 4vw 20px 3vw;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform 0.34s cubic-bezier(.82,0,.14,1), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 22px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
.cookie-banner .accept {
  background: #F0843C;
  color: #fff;
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #C25B10;
}
.cookie-banner .reject {
  background: #F9F5EB;
  color: #28527A;
  border: 1.2px solid #28527A;
  font-weight: 600;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #28527A;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #f9f5eb;
  color: #28527A;
  border: 1px solid #CED5DC;
  font-weight: 500;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: #F0843C;
  color: #fff;
  border-color: #F0843C;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 17px 8vw;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 9px;
  }
}

/* --- Cookie Settings Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 140;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(42,56,80,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 32px rgba(40,82,122,0.13);
  max-width: 430px;
  width: 91vw;
  padding: 36px 24px 26px 24px;
  color: #233858;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal h2 {
  margin-bottom: 6px;
  color: #233858;
  font-size: 1.55rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.07rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #F0843C;
  width: 21px;
  height: 21px;
  margin-right: 4px;
}
.cookie-modal .cookie-category .essential {
  font-weight: 700;
  color: #28527A;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 20px;
  padding: 7.5px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  cursor: pointer;
  background: #f9f5eb;
  color: #28527A;
  border: 1.1px solid #CED5DC;
  transition: background 0.16s, color 0.16s, border 0.12s;
}
.cookie-modal .accept {
  background: #F0843C;
  color: #fff;
  border: none;
  font-weight: 700;
}
.cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: #C25B10;
}
.cookie-modal .close {
  background: transparent;
  color: #28527A;
  font-size: 1.3rem;
  border: none;
  position: absolute;
  right: 12px;
  top: 10px;
  cursor: pointer;
  transition: background 0.13s, color 0.09s;
  padding: 2px 10px;
  border-radius: 6px;
}
.cookie-modal .close:focus {
  background: #f7eeeb;
  outline: 2px solid #F0843C;
  color: #F0843C
}
@media (max-width:500px) {
  .cookie-modal {
    width: 97vw;
    max-width: 97vw;
    padding: 24px 8vw 12px 8vw;
  }
}

/* --- Responsive Typography & Flex Direction --- */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- Animations & Micro-interactions --- */
.cta-btn,
.cookie-banner button,
.cookie-banner .cookie-settings-btn,
.cookie-modal button {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, transform 0.18s;
}
.card,
.features ul li,
.services ul li,
.cta,
.testimonial-card {
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover,
.features ul li:hover,
.services ul li:hover,
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(40, 82, 122, 0.15);
  transform: translateY(-5px) scale(1.02);
  z-index: 2;
}

/* --- Miscellaneous --- */
::-webkit-scrollbar {
  width: 9px;
  background: #f9f5eb;
}
::-webkit-scrollbar-thumb {
  background: #cee2f3;
  border-radius: 6px;
}

/* --- Utility/Helpers --- */
.d-none,
[hidden] {
  display: none!important;
}

/* Scandinavian color accent dots/lines for authenticity (subtle, decorative) */
.section[data-decor="true"]::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #F0843C;
  border-radius: 3px;
  margin-bottom: 18px;
}

/* --- Print adjustments (if needed) --- */
@media print {
  nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .container {
    max-width: 90vw;
  }
  header,footer {
    box-shadow: none !important;
  }
}

/* --- END --- */
