/* --- CSS RESET & NORMALIZATION --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1d2b2e;
  background: #f8fafb;
  min-height: 100vh;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol, nav {
  list-style: none;
}
a {
  color: #164C57;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:focus, a:hover {
  color: #F7B801;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #164C57;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.18;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
}
strong {
  font-weight: 700;
}

/* --- BRAND COLORS (Scandinavian Clean) --- */
:root {
  --brand-primary: #164C57;
  --brand-secondary: #EAEAEA;
  --brand-accent: #F7B801;
  --text-dark: #1d2b2e;
  --text-light: #ffffff;
  --background: #f8fafb;
  --card-bg: #ffffff;
  --card-border: #e0e3e7;
  --shadow: 0 2px 12px 0 rgba(22,76,87,0.05);
  --radius: 14px;
  --radius-xs: 8px;
  --radius-lg: 28px;
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--spacing-2);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  align-items: flex-start;
  max-width: 600px;
}

/* --- SECTION SPACING --- */
section {
  background: none;
  border-radius: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
  flex: 1 1 240px;
  padding: 24px 20px;
}
.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;
  background: #fffbe7;
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px 0 rgba(22,76,87,0.03);
  max-width: 540px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #292929;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #4e4e4e;
  margin-left: auto;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0 0 0;
}

/* --- HEADER --- */
header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--brand-secondary);
  position: sticky;
  top: 0;
  z-index: 700;
  min-height: 64px;
}
.logo-header {
  padding: var(--spacing-2) 0 var(--spacing-2) var(--spacing-2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo-header img {
  max-height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  margin: 0 0 0 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.cta-primary {
  margin-left: auto;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  background: var(--brand-primary);
  color: var(--text-light);
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px 0 rgba(22,76,87,0.05);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.3s, color 0.2s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: 0 4px 16px 0 rgba(247,184,1,0.07);
  outline: 0;
}

/* --- FOOTER --- */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--brand-secondary);
  padding: 28px 0 18px 0;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
footer p {
  font-size: 0.95rem;
  color: #577177;
  margin-top: 8px;
}

/* --- LISTS, DL/DT, FAQ STYLING --- */
ul, ol {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 0;
  gap: 12px;
  display: flex;
  flex-direction: column;
}
ul li, ol li {
  background: none;
  border-radius: 8px;
  padding: 4px 0 4px 0;
  font-size: 1rem;
  color: #2b363a;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
ul li img, ol li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 8px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  color: #164C57;
}
dd {
  margin-bottom: 10px;
  margin-left: 0;
  color: #444;
}

dl {
  margin: 18px 0;
}

/* --- BUTTONS --- */
button, .cta-primary, .footer-nav a {
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-xs);
  background: var(--brand-primary);
  color: var(--text-light);
  padding: 8px 18px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(22,76,87,0.03);
}
button:hover, button:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* --- NAVIGATION: DESKTOP vs MOBILE --- */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  margin-left: 22px;
  color: var(--brand-primary);
  display: none;
  z-index: 1201;
  padding: 4px 12px;
  cursor: pointer;
  line-height: 1;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 340px;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: -7px 0 24px 0 rgba(22,76,87,0.11);
  z-index: 2000;
  transform: translateX(110%);
  transition: transform 0.36s cubic-bezier(.61,1,.88,1);
  padding: var(--spacing-2) var(--spacing-2) var(--spacing-5) var(--spacing-3);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 1.75rem;
  background: transparent;
  color: var(--brand-primary);
  border: none;
  margin-bottom: 18px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  width: 100%;
}
.mobile-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  padding: 6px 0;
  border-radius: var(--radius-xs);
  transition: background 0.15s, color 0.17s;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}

/* Hide navigation on mobile, show burger */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
    transform: none;
  }
}

/* --- SPACING & FLEX ADJUSTMENTS FOR MOBILE --- */
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-2) 6vw;
    max-width: 100vw;
  }
  .main-nav, .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .section {
    margin-bottom: 40px;
    padding: 30px 5vw;
  }
}

@media (max-width: 575px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }
  .container {
    padding: 0 2vw;
  }
  .card {
    padding: 14px 12px;
    border-radius: var(--radius-xs);
  }
}

/* --- CARD & ITEM MICRO-INTERACTIONS --- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.16s, transform 0.16s;
}
.card:hover, .testimonial-card:hover, .feature-item:hover {
  box-shadow: 0 6px 24px 0 rgba(22,76,87,0.10);
  transform: translateY(-2px) scale(1.012);
}

/* --- FORM STYLES (for future expansion) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--brand-secondary);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 12px;
  width: 100%;
  box-shadow: none;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-accent);
  outline: 1.5px solid var(--brand-accent);
}
label {
  font-weight: 600;
  margin-bottom: 6px;
}

/* --- BANNER/ALERT (COOKIE CONSENT BANNER) --- */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px;
  background: #f8fafb;
  border-top: 1px solid var(--brand-secondary);
  box-shadow: 0 -2px 14px 0 rgba(22,76,87,0.07);
  z-index: 4000;
  font-size: 1rem;
  animation: slideUpBanner 0.44s cubic-bezier(.53,1,.48,1);
}
@keyframes slideUpBanner {
  0% { transform: translateY(120px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button, .cookie-banner .cta-primary {
  min-width: 128px;
  margin-right: 10px;
  padding: 9px 18px;
  font-size: 1rem;
}
.cookie-banner .cookie-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-radius: var(--radius-xs);
}
.cookie-banner .cookie-settings:focus, .cookie-banner .cookie-settings:hover {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
@media (max-width: 575px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 8px;
    font-size: 0.97rem;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,76,87, 0.23);
  z-index: 4200;
  justify-content: center;
  align-items: center;
  animation: fadeInModalBg 0.24s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInModalBg {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px 0 rgba(22,76,87,0.18);
  max-width: 420px;
  width: 94vw;
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: slideInModal 0.38s cubic-bezier(.51,1,.72,1.01);
}
@keyframes slideInModal {
  0% { transform: translateY(100px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-modal-content h2 {
  font-size: 1.32rem;
  margin-bottom: 6px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal-content .cookie-switch {
  margin-left: auto;
}
.cookie-modal-content .cookie-switch input[type=checkbox] {
  /* visually hidden; use custom */
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal-content .cookie-switch span {
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 40px;
  background: var(--brand-secondary);
  position: relative;
  transition: background 0.18s;
}
.cookie-modal-content .cookie-switch input:checked + span {
  background: var(--brand-accent);
}
.cookie-modal-content .cookie-switch span:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.18s;
  box-shadow: 0 2px 6px rgba(22,76,87,0.08);
}
.cookie-modal-content .cookie-switch input:checked + span:before {
  transform: translateX(16px);
}
.cookie-modal-content .modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  border: none;
  font-size: 1.48rem;
  color: var(--brand-primary);
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--brand-accent);
}

/* --- UTILITIES --- */
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.text-center { text-align: center !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* --- TWEAKS FOR .card, .feature-item, etc. --- */
.card a.cta-primary {
  margin-top: 10px;
  align-self: flex-start;
}
.feature-item h3 {
  margin-bottom: 2px;
  font-size: 1.03rem;
  color: #244e58;
  font-weight: 600;
}

/* --- FOCUS STATES for accessibility --- */
a:focus-visible, .cta-primary:focus-visible, button:focus-visible {
  outline: 2.2px dashed var(--brand-accent);
  outline-offset: 2.5px;
}

/* --- SCANDINAVIAN CLEAN SPECIALS --- */
h1, h2, h3 {
  letter-spacing: 0.02em;
}
.section, .card, .testimonial-card, .cookie-modal-content {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* Replace default bullet with brand accent dot on ul within content-section */
.content-wrapper ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--brand-accent);
  border-radius: 50%;
  vertical-align: middle;
}
.content-wrapper ul li img {
  margin-right: 10px;
}
.content-wrapper ul li {
  padding-left: 6px;
}

/* --- PREVENT CONTENT OVERLAP AND Z-LAYERING --- */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1000;
}

/* --- CARD ICONS --- */
.card img, .feature-item img, .content-wrapper ul li img {
  margin-right: 12px;
  border-radius: 4px;
  background: var(--brand-secondary);
  padding: 4px;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* --- MISC: MAP PLACEHOLDER --- */
.map-placeholder img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--brand-secondary);
  border-radius: 14px;
  padding: 6px;
}
.map-placeholder p {
  color: #578688;
  font-size: 0.99rem;
}

/* --- THANK YOU PAGE, ALERTS, ETC. --- */
.alert, .notice {
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  background: #e7f4fd;
  color: #174c57;
  margin-bottom: 24px;
  font-weight: 500;
}

/* --- NO GRID or COLUMNS! ALL FLEX-ONLY layouts checked. --- */