/* ===============================
   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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F9F6;
  color: #20415A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  color: #20415A;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ===============================
   VARIABLES & BRAND COLORS
   =============================== */
:root {
  --primary: #20415A;
  --secondary: #F2C94C;
  --accent: #FFFFFF;
  --neutral-light: #F9F9F6;
  --neutral-card: #FFFFFF;
  --neutral-border: #E6E6E0;
  --text-main: #20415A;
  --text-dark: #1A2C3D;
  --text-light: #fff;
  --font-display: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius-s: 8px;
  --radius-m: 14px;
  --shadow-s: 0 2px 8px rgba(32,65,90,0.05);
  --shadow-m: 0 4px 24px rgba(32,65,90,0.09);
  --card-gap: 24px;
  --section-margin: 60px;
  --section-padding-y: 40px;
  --section-padding-x: 20px;
}

/* ===============================
   TYPOGRAPHY & HEADINGS
   =============================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}

h4, h5, h6 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}
p, li {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 10px;
  font-family: var(--font-body);
  line-height: 1.7;
}
strong {
  font-weight: bold;
  color: var(--primary);
}
.text-section {
  margin-bottom: 24px;
}

/* ===============================
   CONTAINER & LAYOUTS
   =============================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0;
}

.section {
  margin-bottom: var(--section-margin);
  padding: var(--section-padding-y) var(--section-padding-x);
  background: none;
}

.card-container {
  display: flex;
  gap: var(--card-gap);
  flex-wrap: wrap;
}
.card {
  background: var(--neutral-card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  border: 1px solid var(--neutral-border);
  padding: 28px 22px 24px 22px;
  margin-bottom: 20px;
  min-width: 260px;
  position: relative;
  flex: 1 1 300px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-m);
  border-color: var(--secondary);
}

.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;
  background: var(--neutral-card);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  padding: 24px 18px;
  margin-bottom: 20px;
}

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

/* For major section spacing */
section + section {
  margin-top: 8px;
}

/* ===============================
   HEADER, NAV & LOGO
   =============================== */
header {
  background: var(--neutral-card);
  box-shadow: 0 2px 12px 0 rgba(32,65,90,0.05);
  padding: 0;
  border-bottom: 1px solid var(--neutral-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 8px 20px;
  min-height: 70px;
}
header nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  color: var(--primary);
  background: transparent;
  transition: background 0.15s, color 0.14s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
header .cta {
  margin-left: 20px;
}
header img {
  max-height: 38px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 24px;
  padding: 6px 12px;
  border-radius: var(--radius-s);
  transition: background 0.12s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}

/* ===============================
   CTA BUTTONS
   =============================== */
.cta, .button, button.cta {
  display: inline-block;
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.15px;
  border-radius: var(--radius-m);
  padding: 14px 30px 13px 30px;
  box-shadow: var(--shadow-s);
  border: 2px solid var(--primary);
  transition: background 0.19s, color 0.19s, border 0.19s, box-shadow 0.18s, transform 0.13s;
  cursor: pointer;
  margin-top: 6px;
  text-align: center;
  outline: none;
}
.cta:hover, .button:hover, .cta:focus, .button:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(32,65,90,0.08);
}

/* ===============================
   SECTION FEATURES, ICON BLOCKS
   =============================== */
.content-wrapper > ul,
.content-wrapper > div > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.content-wrapper > ul > li,
.content-wrapper > div > ul > li {
  background: var(--neutral-card);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  padding: 24px 18px 18px 18px;
  min-width: 210px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 1rem;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.content-wrapper > ul > li:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-m);
}
.content-wrapper > ul > li img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
}

/* ===============================
   TESTIMONIALS
   =============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  border: 1px solid var(--neutral-border);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--primary);
  font-style: italic;
  min-width: 220px;
  max-width: 700px;
  font-size: 1.1rem;
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #747779;
  font-weight: 500;
  font-style: normal;
  font-size: 1rem;
  margin-left: 10px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-m);
  border-color: var(--secondary);
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--neutral-card);
  border-top: 1px solid var(--neutral-border);
  padding: 24px 0;
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
footer img {
  max-height: 32px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  font-family: var(--font-body);
  color: var(--primary);
  padding: 6px 0;
  font-size: 0.97rem;
  opacity: 0.8;
  border-bottom: 1.5px solid transparent;
  transition: opacity 0.14s, border-color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  border-bottom: 1.5px solid var(--secondary);
}
footer span {
  font-size: 0.97rem;
  color: #747779;
}

/* ===============================
   FORM ELEMENTS
   =============================== */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.2px solid var(--neutral-border);
  border-radius: var(--radius-s);
  background: var(--neutral-card);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border 0.16s, box-shadow 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 10px 0 rgba(32,65,90,0.05);
}
label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

/* ===============================
   RESPONSIVE DESIGN (MOBILE-FIRST)
   =============================== */
@media (max-width: 1200px) {
  .container {
      max-width: 98vw;
      padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .container {
      max-width: 99vw;
      padding: 0 6px;
  }
}

@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.05rem;
  }
  h2, .h2 {
    font-size: 1.29rem;
  }
  h3, .h3 {
    font-size: 1.06rem;
  }
  .section {
    margin-bottom: 34px;
    padding: 26px 8px;
  }
  .content-wrapper,
  .content-wrapper > ul,
  .features,
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    padding: 6px 10px 6px 10px;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 4px;
    max-width: 98vw;
    padding: 14px 7px;
  }
  .feature-item {
    padding: 14px 8px;
  }
  .card {
    min-width: 160px;
    padding: 16px 10px 14px 10px;
  }
}
@media (max-width: 540px) {
  .container {
    max-width: 100vw;
    padding: 0 2vw;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 6px 2vw;
  }
  .cta,.button,button.cta {
    font-size: 1rem;
    padding: 11px 16px;
  }
}

/* ===============================
   MOBILE MENU STYLES
   =============================== */
.mobile-menu-toggle {
  display: inline-block;
}
header nav {
  display: flex;
}
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  header .cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(249,249,246,0.98);
  box-shadow: 0 8px 24px rgba(32,65,90,0.13);
  z-index: 990;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.66,0,.39,1), opacity 0.24s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 28px 24px 8px 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  padding: 6px 18px;
  border-radius: var(--radius-s);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12vh;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 16px 0;
  transition: color 0.18s, background 0.14s;
  text-align: center;
  border-radius: var(--radius-m);
  width: 100vw;
  max-width: 480px;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--text-dark);
}

/* Hide mobile menu on desktop */
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===============================
   COOKIE BANNER & COOKIE MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--neutral-card);
  color: var(--primary);
  border-top: 1.5px solid var(--neutral-border);
  box-shadow: 0 -2px 16px rgba(32,65,90,0.09);
  z-index: 998;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 34px;
  padding: 22px 10vw 16px 5vw;
  font-size: 1rem;
  transition: transform 0.29s, opacity 0.19s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner p {
  max-width: 630px;
  color: var(--primary);
  margin: 0 0 12px 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner button {
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-s);
  padding: 10px 26px;
  border: none;
  margin: 0 0 0 0;
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.17s;
}
.cookie-banner button.cookie-settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1.8px solid var(--primary);
}
.cookie-banner button.cookie-accept-all:hover,
.cookie-banner button.cookie-accept-all:focus {
  background: #143147;
}
.cookie-banner button.cookie-reject-all {
  background: #eaeaea;
  color: var(--primary);
  border: 1.8px solid var(--neutral-border);
}
.cookie-banner button.cookie-reject-all:hover,
.cookie-banner button.cookie-reject-all:focus {
  background: #d0dadc;
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--primary);
  color: var(--secondary);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 8px 8px 16px 8px;
    font-size: 0.99rem;
    align-items: stretch;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,65,90,0.27);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--neutral-card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  border: 1.6px solid var(--neutral-border);
  padding: 32px 36px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 320px;
  max-width: 98vw;
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 7px;
  font-size: 1.23rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-category .locked {
  color: #b8bfc4;
  font-size: 1.01rem;
  margin-left: 7px;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  padding: 9px 20px;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  border: 1.5px solid var(--neutral-border);
  background: var(--primary);
  color: var(--accent);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal-content button.cookie-save {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.cookie-modal-content button.cookie-close {
  background: #ecede7;
  color: #323d4f;
}
.cookie-modal-content button.cookie-close:hover {
  background: #dadcc7;
  color: var(--primary);
}
.cookie-modal-content button.cookie-save:hover {
  background: var(--primary);
  color: var(--secondary);
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 18px 6vw 12px 6vw;
    min-width: 0;
  }
}

/* ===============================
   ICONS IN LISTS
   =============================== */
li img, .text-section ul img {
  vertical-align: middle;
  margin-right: 9px;
  display: inline-block;
  height: 24px;
  width: 24px;
  object-fit: contain;
  margin-bottom: -5px;
}

ul li, ol li {
  padding-left: 0;
  margin-bottom: 10px;
}

/* ===============================
   PARTNER LOGOS / INLINE ICONS
   =============================== */
.content-wrapper > div img[alt^="Partner-Logo"],
.content-wrapper > div img[alt^="icon-partner"] {
  display: inline-block;
  height: 30px;
  width: auto;
  margin-right: 24px;
  margin-bottom: 6px;
}

/* ===============================
   MICROINTERACTIONS, TRANSITIONS
   =============================== */
a, .cta, .button, button {
  transition: color 0.17s, background 0.17s, border-color 0.18s, box-shadow 0.18s, transform 0.13s;
}

section, .card, .testimonial-card, .feature-item {
  transition: box-shadow 0.2s, border-color 0.2s, background 0.15s, transform 0.18s;
}

/* ===============================
   Z-INDEX RULES
   =============================== */
.mobile-menu { z-index: 990; }
.cookie-banner { z-index: 998; }
.cookie-modal { z-index: 999; }
header { z-index: 50; }

/* ===============================
   REMOVE OUTLINE, REPLACE WITH FOCUS VISIBLE
   =============================== */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2.2px solid var(--secondary);
  outline-offset: 2px;
}

/* ===============================
   SPECIAL PAGES STYLES (THANK YOU)
   =============================== */
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 580px) {
  .text-section ul {
    gap: 4px;
  }
}

/* ===============================
   EXTRAS & SCANDINAVIAN MOOD
   =============================== */
section {
  background: none;
}

.card, .feature-item, .testimonial-card, .content-wrapper > ul > li {
  backdrop-filter: blur(0.5px);
}

hr {
  border: none;
  border-top: 1px solid var(--neutral-border);
  margin: 32px 0;
}

/* End of style.css */
