/* ---------- CSS RESET, BOX-SIZING, NORMALIZE ---------- */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body {
  min-height: 100vh;
  background: #F6F4F0;
  color: #202A3B;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #202A3B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #202A3B;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #202A3B;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.2rem; line-height: 1.13; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin: 24px 0 16px 0; }
h3 { font-size: 1.17rem; margin-top: 18px; margin-bottom: 10px; }

/* ---------- UTILITY CLASSES ---------- */
.container {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  margin-bottom: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 0 8px 0;
}

/* ---------- MAIN NAVIGATION ---------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(32,42,59,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 70px;
  padding: 0 16px;
}
.main-nav > a img {
  height: 38px;
  width: auto;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  align-items: center;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #202A3B;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: #fff;
  background: #9BAEC8;
}
.main-nav .btn-primary {
  margin-left: 20px;
}

/* Hamburger menu (mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  padding: 7px 14px;
  color: #202A3B;
  cursor: pointer;
  z-index: 120;
  border-radius: 6px;
  transition: background 0.20s;
}
.mobile-menu-toggle:focus { background: #E3E6EB; }

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(246,244,240,0.98);
  box-shadow: 2px 0 12px rgba(32,42,59,0.08);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(.5,.03,.21,.96);
  transform: translateX(-100vw);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #202A3B;
  padding: 0.5em 1em;
  align-self: flex-end;
  cursor: pointer;
  margin: 14px 18px 0 0;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #9BAEC8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  margin-top: 10vh;
}
.mobile-nav a {
  font-size: 1.27rem;
  color: #202A3B;
  padding: 16px 32px;
  border-bottom: 1px solid #E3E6EB;
  width: 100%;
  box-sizing: border-box;
  background: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02rem;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3E6EB;
  color: #202A3B;
}

/* Hide desktop nav on mobile */
@media (max-width: 1023px) {
  .main-nav ul, .main-nav .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: #202A3B;
  color: #fff;
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(32,42,59,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.23s;
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #9BAEC8;
  color: #202A3B;
  box-shadow: 0 4px 16px 0 rgba(32,42,59,0.14);
}
.btn-secondary {
  background: #fff;
  color: #202A3B;
  border: 1px solid #9BAEC8;
  padding: 10px 26px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 8px;
  transition: background 0.14s, color 0.14s, border 0.14s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #E3E6EB;
  color: #202A3B;
  border-color: #202A3B;
}

/* ---------- SECTIONS, CARDS, FEATURE & GRID LAYOUTS ---------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.feature-grid, .services-list, .testimonials, .content-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.feature-item, .service-card, .testimonial-card, .card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 20px 0 rgba(32,42,59,0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
  min-width: 230px;
  max-width: 340px;
  width: 100%;
}
.feature-item img {
  margin-bottom: 14px;
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 6px;
  background: #F6F4F0;
}
.feature-item h3 {
  margin-bottom: 8px;
  font-size: 1.17rem;
}
.service-card h3 {
  margin-top: 0;
}
.service-card span {
  display: inline-block;
  font-size: 0.99rem;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #586273;
  margin-top: 6px;
}
.service-card {
  min-width: 230px;
  max-width: 340px;
  flex: 1 1 260px;
}

.card:hover, .feature-item:hover, .service-card:hover {
  box-shadow: 0 8px 34px 0 rgba(32,42,59,0.15);
  transform: translateY(-3px) scale(1.02);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 18px 24px;
  background: #FCFCFA;
  border: 1px solid #E3E6EB;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(32,42,59,0.05);
  min-width: 220px;
  max-width: 420px;
}
.testimonial-card blockquote {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #202A3B;
  margin: 0 0 6px 0;
  font-style: italic;
}
.testimonial-author {
  margin-top: 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #586273;
}

/* Content Grid & Text-Image Sections (for flexibility) */
.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;
}

/* Price List */
.price-list {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(32,42,59,0.10);
  padding: 22px 18px;
  margin: 22px 0 20px 0;
}
.price-list h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}
.price-list ul {
  margin-bottom: 0;
}

/* ---------- FOOTER ---------- */
footer {
  background: #202A3B;
  color: #fff;
  padding: 40px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 12px;
  color: inherit;
}
footer ul li a {
  color: #fff;
  padding: 5px 6px;
  border-radius: 4px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: background 0.15s, color 0.14s;
}
footer ul li a:hover, footer ul li a:focus {
  background: #9BAEC8;
  color: #202A3B;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.footer-branding img {
  height: 32px;
  width: auto;
  margin-right: 8px;
}
.footer-branding span {
  font-size: 1rem;
  color: #fff;
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: #fff;
  color: #202A3B;
  box-shadow: 0 -3px 24px 0 rgba(32,42,59,0.05);
  border-top: 1px solid #E3E6EB;
  padding: 18px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  font-size: 1rem;
  animation: cookie-popin 0.58s cubic-bezier(.42,0,.58,1);
  transition: transform 0.39s, opacity 0.34s;
}
.cookie-banner.closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
@keyframes cookie-popin {
  0% { transform: translateY(140%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner-content {
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
}
.cookie-modal-bg {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(32,42,59,0.22);
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 48px 4px rgba(32,42,59,0.17);
  max-width: 440px;
  width: 94vw;
  padding: 34px 28px 18px 28px;
  z-index: 1700;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-fadein 0.32s cubic-bezier(.52,.72,.55,1.14);
}
@keyframes modal-fadein {
  0% { transform: translateY(40px) scale(0.96); opacity:0; }
  100% { transform: none; opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.19rem;
  margin-bottom: 6px;
}
.cookie-modal-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.01rem;
  padding: 2px 0;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #202A3B;
  cursor: pointer;
  padding: 2px 8px;
}
.cookie-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #E3E6EB;
  position: relative;
  outline: none;
  transition: background 0.17s;
}
.cookie-switch:checked {
  background: #9BAEC8;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(32,42,59,0.05);
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 1023px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    height: 54px;
    padding: 0 8px;
  }
  section {
    padding: 32px 2vw;
  }
  footer {
    padding: 28px 0 16px 0;
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.45rem; margin-bottom: 14px; }
  h2 { font-size: 1.18rem; }
  .feature-grid, .services-list, .testimonials, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-item, .service-card, .testimonial-card, .card {
    min-width: 0;
    max-width: 100%;
    padding: 20px 12px;
  }
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  section {
    padding: 28px 5px;
    margin-bottom: 40px;
  }
  .price-list {
    padding: 12px 5px;
  }
  .footer-branding img {
    height: 23px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 0.97rem;
    padding: 10px 0 11px 0;
  }
  .main-nav > a img {
    height: 25px;
  }
}

/* ---------- GENERAL INTERACTIONS AND ACCESSIBILITY ---------- */
.card:focus-within, .feature-item:focus-within, .service-card:focus-within,
.testimonial-card:focus-within {
  outline: 2px solid #202A3B;
  outline-offset: 2px;
}

/* Subtle hover for cards */
.card, .feature-item, .service-card {
  cursor: pointer;
}

/* Remove number from ordered lists padding */
ol { padding-left: 23px; }

/* Forms (when present) */
input, textarea, select {
  border: 1px solid #E3E6EB;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 7px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #FCFCFA;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #9BAEC8;
  outline: none;
}

/* ---------- TYPOGRAPHY SCALE ---------- */
/* 14px, 16px, 18px, 24px, 32px, 48px for headings, body, cards, etc. */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.17rem; }
p, li, span, blockquote { font-size: 1rem; }
@media (max-width: 480px) {
  h1 { font-size: 1.29rem; }
  h2 { font-size: 1.05rem; }
  h3 { font-size: 0.99rem; }
  p, li, blockquote { font-size: 0.96rem; }
}

/* ---------- SCANDINAVIAN CLEAN EXTRAS ---------- */
.card, .feature-item, .service-card, .testimonial-card {
  box-shadow: 0 2px 12px 0 rgba(32,42,59,0.06);
  border-radius: 12px;
  border: 1px solid #F0F2F4;
  background: #fff;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.feature-grid,
.services-list,
.content-grid,
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}

/* ---------- COLOR CUSTOM PROPERTIES ---------- */
:root {
  --color-primary: #202A3B;
  --color-secondary: #9BAEC8;
  --color-accent: #F6F4F0;
  --color-card-bg: #fff;
  --color-border: #E3E6EB;
  --color-text-main: #202A3B;
  --color-text-muted: #586273;
}

/* ---------- MISCELLANEOUS ---------- */
::-webkit-scrollbar {
  width: 12px;
  background: #F6F4F0;
}
::-webkit-scrollbar-thumb {
  background: #E3E6EB;
  border-radius: 8px;
}

/* Hidden utilities for scripts to toggle */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  white-space: nowrap;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
