/* --- CSS RESET & NORMALIZER (mobile-first) --- */
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,
main, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F6F4;
  color: #174A5C;
}
ol, ul {
  list-style: disc inside;
}
a {
  text-decoration: none;
  color: #174A5C;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F9D500;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

/* --- CSS VARIABLES (with fallbacks) --- */
:root {
  --primary: #174A5C;
  --primary-light: #256580;
  --secondary: #F9D500;
  --accent: #E9F3EE;
  --neutral-bg: #F5F6F4;
  --gray80: #2B3A3E;
  --gray30: #B9C5C3;
  --shadow: 0 2px 12px rgba(23,74,92,0.07), 0 1.5px 4px rgba(23,74,92,.07);
  --radius: 14px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* --- BODY LAYOUT --- */
body {
  font-family: var(--font-body, Arial, Helvetica, sans-serif);
  font-size: 16px;
  background: var(--neutral-bg, #F5F6F4);
  min-height: 100vh;
  letter-spacing: 0.01em;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- TYPOGRAPHY SCALE NLH --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.14;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  color: #2B3A3E;
  margin-bottom: 14px;
  font-family: var(--font-body);
}
.subheadline {
  font-size: 1.15rem;
  color: #256580;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
}

/* --- LAYOUT SPACING RULES --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.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;
}
.testimonials, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 240px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  color: #174A5C;
  transition: box-shadow 0.22s, transform 0.16s;
  border-left: 5px solid var(--secondary);
}
.testimonial-card p {
  color: #174A5C;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 260px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.feature-card img {
  width: 40px;
  height: 40px;
}
.feature-card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(23,74,92,0.12); 
  transform: translateY(-3px) scale(1.017);
}

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

.newsletter-signup, .social-links {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.social-links ul {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.social-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

/* --- BUTTONS / CTAS --- */
.cta-btn, button, .mobile-menu-toggle {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  background: var(--primary, #174A5C);
  color: #fff;
  padding: 13px 28px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 1.5px 8px rgba(23,74,92,0.08);
  cursor: pointer;
  transition: background 0.18s, transform 0.1s, box-shadow 0.17s;
  outline: none;
  margin-right: 0;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus,
button:hover, button:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary, #F9D500);
  color: #174A5C;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 18px rgba(249,213,0,0.08);
}
.cta-btn:active,
button:active,
.mobile-menu-toggle:active {
  background: var(--primary-light, #256580);
  color: #fff;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(23,74,92,0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 22px;
}
.logo img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: #174A5C;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 4px 2px;
  border-radius: 4px;
  transition: background 0.18s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--primary-light);
}
.header .cta-btn {
  margin-left: 18px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--secondary, #F9D500);
  color: #174A5C;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  box-shadow: 0 2px 12px rgba(23,74,92,0.10);
  transition: background 0.18s, color 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,74,92,0.96);
  z-index: 500;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.6,.18,.33,1.07);
  padding-top: 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin-left: auto;
  margin-right: 18px;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 10px 16px;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary, #F9D500);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100vw;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 10px 0;
  border-radius: 5px;
  min-width: 180px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #e0e4e2;
  padding: 30px 0 14px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-menu {
  display: flex;
  gap: 18px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.footer-menu a {
  font-size: 1rem;
  color: #256580;
  font-family: var(--font-display);
  opacity: 0.92;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 0.97rem;
  color: #507083;
  margin-bottom: 0;
}
.footer-claim {
  font-size: 0.96rem;
  color: #9bb5bb;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(23,74,92,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 25px 15px 17px 15px;
  border-radius: 18px 18px 0 0;
  transition: transform 0.36s cubic-bezier(.16,1,.33,1.05), opacity 0.36s;
  opacity: 1;
}
.cookie-banner .cookie-text {
  color: #174A5C;
  font-size: 1rem;
  margin-bottom: 7px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .cta-btn,
.cookie-banner .cookie-settings-btn,
.cookie-banner .cookie-reject-btn {
  font-size: 1.02rem;
  padding: 9px 18px;
  border-radius: 22px;
  margin: 0 2px;
}
.cookie-banner .cookie-settings-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: 500;
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-reject-btn {
  background: none;
  color: var(--primary);
  border: 1px solid var(--gray30);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .cookie-reject-btn:hover, .cookie-banner .cookie-reject-btn:focus {
  background: #f6f8e0;
  border: 1px solid var(--secondary);
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: rgba(23,74,92,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.33s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 396px;
  width: 90vw;
  padding: 34px 30px 18px 30px;
  box-shadow: 0 8px 34px rgba(23,74,92,0.15);
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 11px;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--accent);
  border-radius: 8px;
  padding: 13px 11px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-category label {
  font-weight: 500;
  color: var(--primary);
  font-size: 1.03rem;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 36px;
  height: 21px;
  background: #eee;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.23s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2.7px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(23,74,92,0.08);
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 16px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal .cta-btn, .cookie-modal .cookie-reject-btn {
  padding: 9px 20px;
}

/* --- RESPONSIVE MOBILE FIRST CSS --- */
@media (max-width: 960px) {
  .header .container, header .container, footer .container {
    max-width: 100%;
    padding-left: 18px; padding-right: 18px;
  }
  .features-grid, .card-container, .testimonials {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header .cta-btn, header .cta-btn {
    display: none;
  }
  .features-grid, .card-container, .testimonials, .testimonial-list {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .feature-card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .content-wrapper {
    padding: 0;
    gap: 21px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  h1, .h1 {
    font-size: 1.45rem;
  }
  h2, .h2 {
    font-size: 1.09rem;
  }
  .feature-card, .testimonial-card {
    padding: 13px 10px;
  }
  .section {
    padding: 28px 4px;
  }
}

/* --- FORMS & INPUTS (styles) --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #cfd8dd;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: #174A5C;
  margin-bottom: 12px;
  box-shadow: none;
  outline: none;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--secondary);
}

label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #174A5C;
  font-weight: 500;
}

/* --- LISTS --- */
ul, ol {
  padding-left: 22px;
  margin-bottom: 14px;
  color: #2B3A3E;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1rem;
}

/* --- VISUAL CARDS / ELEMENTS --- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  margin-bottom: 20px;
  color: var(--primary);
}

/* --- Micro-interactions & Smooth Transitions --- */
[role=button],
button, .cta-btn {
  transition: background 0.18s, color 0.14s, box-shadow 0.15s, transform 0.11s;
}
.feature-card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 0 0 2px var(--secondary);
  outline: none;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar { width: 9px; background: #f3f5f1; }
::-webkit-scrollbar-thumb { background: #dce3df; border-radius: 6px; }

/* --- Decorative Elements --- */
.section:nth-child(odd) {
  background: rgba(233,243,238,.18);
  border-radius: 16px;
}

/* --- Accessibility: Focus states --- */
a:focus, .cta-btn:focus, button:focus, .mobile-menu-toggle:focus, .mobile-nav a:focus {
  outline: solid 2px var(--secondary);
  outline-offset: 1.5px;
}

/* --- Utility Classes --- */
.d-none { display:none!important; }
.d-flex { display:flex!important; }
.align-center { align-items:center!important; }
.justify-center { justify-content:center!important; }
.mt-32 { margin-top:32px!important; }
.mb-32 { margin-bottom:32px!important; }
.mt-16 { margin-top:16px!important; }

/* --- Nordic/Scandinavian Details --- */
.feature-card, .testimonial-card {
  font-family: var(--font-body);
  border: 1px solid #e9f3ee;
}
.feature-card strong, .testimonial-card strong {
  color: var(--primary-light);
}

/* --- Hide body scroll when modal/menu open --- */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* --- End of CSS --- */
