/* =========================================
   CSS 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, 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%;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
body {
  background: #F8FAF9; /* Very light subtle background */
  color: #1D3557;
  min-height: 100vh;
  font-size: 16px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin: 16px 0 16px 24px;
}
li {
  margin-bottom: 6px;
}

/* =========================================
   GENERAL LAYOUT & CONTAINERS
=========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

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

main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.hero {
  background: #F1FAEE;
  border-radius: 16px;
  margin-top: 30px;
  margin-bottom: 60px;
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (max-width: 768px) {
  main > section,
  .section,
  .hero {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
}

/* =========================================
   TYPOGRAPHY - Scandinavian Clean
=========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #21314a;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
p, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #2C3A4A;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #3F4A5A;
  margin-bottom: 22px;
}
.blockquote, blockquote {
  background: #FAFBFC;
  border-left: 4px solid #1D3557;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #252D43;
  margin-bottom: 8px;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: #466380;
  margin-top: 4px;
  font-style: italic;
}
.rating {
  color: #E63946;
  font-size: 1.15em;
  margin-left: 4px;
  font-family: inherit;
}

/* Typography for Price Labels */
.service-price {
  font-size: 1.08rem;
  color: #1D3557;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 8px;
}

strong, b {
  font-weight: 700;
  color: #1D3557;
}

/* =========================================
   HEADER, NAVIGATION & CTA BUTTONS
=========================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #F1FAEE;
  position: relative;
  z-index: 1100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  position: relative;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #1D3557;
  padding: 7px 0;
  border: none;
  background: transparent;
  transition: color 0.17s;
  position: relative;
}
header nav a:after {
  content: '';
  height: 2px;
  background: #E63946;
  width: 0;
  display: block;
  margin: 5px auto 0 auto;
  transition: width 0.2s;
  border-radius: 1px;
}
header nav a:hover,
header nav a:focus {
  color: #E63946;
}
header nav a:hover:after,
header nav a:focus:after {
  width: 80%;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #1D3557;
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 12px 32px;
  font-size: 1.07rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 53, 87, 0.08);
  transition: background 0.18s, box-shadow 0.2s, color 0.18s, transform 0.11s;
}
.cta-button:hover, .cta-button:focus {
  background: #E63946;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 20px 0 rgba(230, 57, 70, 0.17);
}

/* Hide mobile menu on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* =========================================
   FLEXBOX FEATURE/GRID LAYOUTS
=========================================== */

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 24px 24px;
  box-shadow: 0 2px 12px rgba(29,53,87,0.04);
  min-width: 220px;
  flex: 1 1 220px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
  object-fit: contain;
  background: #F1FAEE;
  border-radius: 50%;
  padding: 6px;
}
.feature:hover {
  box-shadow: 0 4px 18px rgba(29,53,87,0.10);
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    width: 100%;
    min-width: 0;
  }
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service {
  background: #fff;
  padding: 22px 20px 20px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(29,53,87,0.04);
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  border-left: 5px solid #E63946;
  transition: box-shadow 0.15s, border-color 0.13s, transform 0.13s;
}
.service:hover {
  box-shadow: 0 5px 22px rgba(230,57,70,0.09);
  border-left: 5px solid #1D3557;
  transform: translateY(-2px) scale(1.013);
}
@media (max-width: 900px) {
  .services-list {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .services-list {
    flex-direction: column;
    gap: 14px;
  }
  .service {
    width: 100%;
    min-width: 0;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(29,53,87,0.04);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Feature Item */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonial Cards */
.testimonials {
  background: #F1FAEE;
  border-radius: 16px;
  padding: 36px 0;
}
.testimonials .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(29,53,87,0.08);
  flex-wrap: wrap;
  position: relative;
  transition: box-shadow 0.14s, transform 0.1s;
}
.testimonial-card blockquote {
  background: none;
  border-left: none;
  font-size: 1.06rem;
  color: #1D3557;
  font-style: italic;
  padding: 0;
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(29,53,87,0.13);
  z-index: 2;
  transform: translateY(-2px) scale(1.01);
}

@media (max-width: 680px) {
  .testimonial-card {
    flex-direction: column;
    padding: 16px 12px;
    gap: 12px;
    margin-bottom: 20px;
  }
}

/* =========================================
   FOOTER
=========================================== */
footer {
  background: #FAFBFC;
  border-top: 1px solid #EEF1F2;
  padding: 30px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  color: #466380;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #E63946;
}
.footer-copy {
  color: #8491a7;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

/* =========================================
   MOBILE NAVIGATION (BURGER MENU)
=========================================== */
@media (max-width: 1024px) {
  header .container nav, header .container .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1FAEE;
    border: none;
    color: #1D3557;
    font-size: 2.2rem;
    padding: 5px 15px;
    border-radius: 10px;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.17s, color 0.17s;
    z-index: 1202;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #E63946;
    color: #fff;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1200;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    transform: translateX(-100%);
    transition: transform 0.27s cubic-bezier(.45,.15,.635,1.04);
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    position: absolute;
    right: 18px;
    top: 22px;
    background: none;
    border: none;
    color: #1D3557;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1300;
    transition: color 0.18s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #E63946;
  }
  .mobile-nav {
    width: 100%;
    margin-top: 64px;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #1D3557;
    font-size: 1.15rem;
    padding: 10px 4px;
    border-radius: 8px;
    transition: background 0.18s, color 0.16s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #F1FAEE;
    color: #E63946;
  }
}

/* Mobile nav touch targets */
@media (max-width: 768px) {
  .mobile-nav a {
    font-size: 1.18rem;
    padding: 14px 8px;
  }
}

/* Prevent body scroll when mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* =========================================
   COOKIE CONSENT BANNER & MODAL
=========================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  border-top: 1px solid #F1FAEE;
  box-shadow: 0 -2px 18px rgba(29,53,87,0.06);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  padding: 20px 32px;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(.45,.15,.635,1.04), opacity 0.17s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-message {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #234;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  background: #F1FAEE;
  color: #1D3557;
  transition: background 0.17s, color 0.13s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(29,53,87,0.04);
}
.cookie-btn.accept {
  background: #1D3557;
  color: #fff;
}
.cookie-btn.reject {
  background: #E63946;
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 6px 16px rgba(230,57,70,0.11);
  background: #E63946;
  color:#fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #1D3557;
  border: 1.2px solid #D1DEE5;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F1FAEE;
  color: #1D3557;
  box-shadow: 0 3px 10px rgba(35,53,87,0.09);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 12px;
  }
  .cookie-banner .cookie-message {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 0.97rem;
  }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33,49,74,0.27);
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  padding: 32px 26px;
  border-radius: 16px;
  box-shadow: 0 8px 34px rgba(29,53,87,0.25);
  min-width: 300px;
  max-width: 98vw;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h2 {
  font-size: 1.27rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #1D3557;
}
.cookie-category .essential {
  opacity: 0.63;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    min-width: 0;
    width: 97vw;
    padding: 18px 7px;
    font-size: .98rem;
  }
}

/* =========================================
   ACCESSIBILITY/UTILITIES
=========================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* Focus Ring */
a:focus, button:focus, input:focus, .cta-button:focus, .cookie-btn:focus {
  outline: 2px solid #E63946;
  outline-offset: 2px;
  z-index: 1101;
}

/* =========================================
   SCANDINAVIAN MICRO INTERACTIONS
=========================================== */
.card, .feature, .service, .testimonial-card, .cta-button, .cookie-btn, .feature-grid > * {
  transition: box-shadow 0.15s, border-color 0.13s, transform 0.11s, background 0.14s;
}

/* =========================================
   MISC
=========================================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F4F7F8;
}
::-webkit-scrollbar-thumb {
  background: #E1E7EA;
  border-radius: 8px;
}


/* Font imports - fallback if not imported via HTML */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
}

/* =========================================
   ADDITIONAL MOBILE ADJUSTMENTS
=========================================== */
@media (max-width: 600px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.26rem; }
  .cta-button { font-size: 0.98rem; padding: 11px 13px; }
  .feature, .service, .testimonial-card {
    padding: 14px 7px;
  }
}


/* =============================================
   CRITICAL SPACING & CONSISTENCY             
============================================= */
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}