/* 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* SCANDINAVIAN CLEAN BRAND COLORS */
:root {
  --color-primary: #16334A;
  --color-secondary: #E8E6E1;
  --color-background: #FFFFFF;
  --color-text: #1d262f;
  --color-accent: #264C70;
  --color-accent-light: #637A97;
  --color-border: #e7e7e2;
  --color-light-grey: #F6F5F3;
  --color-cta-hover: #16334A;
  --shadow-main: 0 2px 14px 0 rgb(22 51 74 / 8%), 0 1.5px 5px 0 rgb(22 51 74 / 5%);
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--color-accent); }

p, li {
  color: var(--color-text);
  font-size: 1rem;
}
strong { color: var(--color-primary); font-weight: bold; }

.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX LAYOUTS */
.card-container, .card-grid, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: var(--shadow-main);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow .18s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card:hover {
  box-shadow: 0 6px 20px 0 rgb(22 51 74 / 12%);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

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

.feature-grid, .card-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.feature-grid > div {
  background: var(--color-light-grey);
  border-radius: 10px;
  box-shadow: var(--shadow-main);
  padding: 28px 22px 22px 22px;
  flex: 1 1 min(270px, 100%);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .2s, transform .1s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgb(22 51 74 / 16%);
  transform: translateY(-2px) scale(1.015);
}

.cta-section {
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER */
header {
  background: var(--color-background);
  box-shadow: 0 2px 12px 0 rgb(22 51 74 / 5%);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 28px;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 6px;
  background: none;
  transition: background .14s, color .14s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary);
  background: var(--color-light-grey);
}
.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 24px;
  border-radius: 26px;
  box-shadow: 0 2px 8px 0 rgb(22 51 74 / 10%);
  margin-left: 18px;
  transition: background .18s, color .18s, box-shadow .18s;
  border: none;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-cta-hover);
  color: #fff;
  box-shadow: 0 3px 16px 0 rgb(22 51 74 / 13%);
}

/* BURGER MENU & MOBILE NAV */
.mobile-menu-toggle {
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  display: none;
  margin-left: 14px;
  z-index: 106;
  transition: color .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(255,255,255,0.97);
  transition: transform .32s cubic-bezier(.65,0,.35,1), opacity .25s;
  z-index: 105;
  transform: translateX(-105%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 24px 32px 0 0;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 50px 0 0 40px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent);
  border-radius: 8px;
  padding: 8px 6px;
  transition: background .12s, color .14s;
  min-width: 180px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-light-grey);
  color: var(--color-primary);
}

@media (max-width: 1080px) {
  .container { max-width: 94vw; }
  header .container { gap: 10px; }
}
@media (max-width: 850px) {
  .main-nav { gap: 10px; }
  .cta-btn { padding: 10px 18px; font-size: 1rem; }
  .feature-grid > div { min-width: 180px; }
}
@media (max-width: 900px) {
  header .container { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; gap: 8px; }
  .main-nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }

  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .featured-grid > div, .card {
    min-width: unset;
    width: 100%;
  }
  .section, .cta-section {
    padding: 20px 10px;
    margin-bottom: 36px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .logo img { height: 42px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  header .container { flex-direction: row; flex-wrap: wrap; }
  .logo img { height: 32px; }
  .mobile-menu-close { font-size: 1.65rem; margin-right: 16px; }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(92deg, #f8f9fa 84%, #E8E6E1 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 54px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 10px 34px rgb(22 51 74 / 3%);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  gap: 21px;
  max-width: 700px;
}
.hero h1 {
  color: var(--color-primary);
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-accent);
}
.hero .cta-btn {
  margin-top: 12px;
}

/* SECTION STYLES */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}


/* BUTTONS & INTERACTIONS */
button, .cta-btn {
  transition: background .19s, color .16s, box-shadow .16s;
  outline: none;
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 2px var(--color-accent-light);
}

/* FOOTER */
footer {
  background: var(--color-light-grey);
  padding: 40px 0 0 0;
  color: var(--color-primary);
  box-shadow: 0 -1.5px 12px 0 rgb(22 51 74 / 6%);
  margin-top: 18px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 20px 14px 20px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 0 32px;
}
.footer-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  opacity: .92;
  transition: color .13s, opacity .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-primary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .98rem;
  color: var(--color-primary);
}
.footer-contact img {
  height: 1.08em;
  margin-right: 7px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .footer-nav {
    margin: 14px 0 2px 0;
    gap: 12px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgb(22 51 74 / 7%);
  padding: 20px;
  margin-bottom: 24px;
  color: #1d262f;
  min-width: 220px;
  max-width: 530px;
  transition: box-shadow .13s, transform .1s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgb(22 51 74 / 13%);
  transform: translateY(-1.5px);
}
.testimonial-card p:first-child {
  font-size: 1.09rem;
}
.testimonial-card p:last-child {
  font-size: .96rem;
  color: var(--color-accent);
}

@media (max-width: 700px) {
  .testimonial-card {
    max-width: 100%;
  }
}

/* LISTS */
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 10px;
  position: relative;
}
ul li strong, ol li strong { color: var(--color-accent); }
ul li img, ol li img {
  vertical-align: middle;
  height: 1em;
  margin-right: 8px;
}

/* Cookie Consent Banner and Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #fff;
  border-top: 2px solid var(--color-border);
  box-shadow: 0 -3px 22px rgb(22 51 74 / 7%);
  padding: 18px 24px 18px 24px;
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s, transform .22s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 1 0 240px;
  font-size: 1rem;
  color: var(--color-text);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  background: var(--color-light-grey);
  color: var(--color-primary);
  border-radius: 20px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  box-shadow: none;
  transition: background .17s, color .15s;
  outline: none;
}
.cookie-banner button.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: var(--color-primary);
}
.cookie-banner button.reject {
  background: #fff2f2;
  color: #a61818;
  border: 1px solid #e5bfbf;
}
.cookie-banner button.reject:hover {
  background: #ffe2e2;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0; top: 0;
  z-index: 10000;
  background: rgba(22, 51, 74, 0.21);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .21s;
}
.cookie-modal.active { opacity: 1; pointer-events: all; }
.cookie-modal-dialog {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 38px 0 rgb(22 51 74 / 13%);
  max-width: 426px;
  width: 95vw;
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  color: var(--color-primary);
  font-size: 2rem;
}
.cookie-modal .close-cookie-modal:hover { color: var(--color-accent); }
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  margin-top: 0;
}
.cookie-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-text);
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 5px;
  border: 2px solid var(--color-border);
  background: var(--color-light-grey);
  vertical-align: middle;
  margin-right: 6px;
  transition: border .14s, box-shadow .13s;
  box-shadow: 0 3px 7px 0 rgb(0 0 0 / 7%);
  position: relative;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-category input[type="checkbox"]:checked:after {
  content: '';
  display: block;
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 13px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cookie-category input[disabled], .cookie-category input[aria-disabled] {
  background: #f0f0f0;
  border-color: #d1d1cf;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  align-items: center;
}
.cookie-modal .modal-actions button {
  background: var(--color-accent);
  color: #fff;
  border-radius: 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 20px;
  border: none;
  transition: background .18s, color .12s;
}
.cookie-modal .modal-actions button:hover, 
.cookie-modal .modal-actions button:focus {
  background: var(--color-primary);
}

@media (max-width: 600px) {
  .cookie-banner p { font-size: .92rem; }
  .cookie-banner { flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px 10px 16px 12px; }
  .cookie-modal-dialog {
    padding: 18px 10px 18px 12px;
    max-width: 97vw;
  }
  .cookie-modal h2 { font-size: 1.1rem; }
}

/* Micro-Interactions */
a, button, .cta-btn {
  transition: background .18s, color .17s, box-shadow .17s, transform .11s;
}
a:active, button:active, .cta-btn:active {
  transform: scale(.97);
}

/* MISC */
::-webkit-input-placeholder { color: #9da4ab; }
::-moz-placeholder { color: #9da4ab; }
:-ms-input-placeholder { color: #9da4ab; }
::placeholder { color: #9da4ab; }

/* Spacing for main sections and between cards */
.card:not(:last-child),
.testimonial-card:not(:last-child),
.feature-grid > div:not(:last-child) {
  margin-bottom: 20px;
}

/* Hide outline if not keyboard navigating */
:focus:not(:focus-visible) {
  outline: none;
}

/* ACCESSIBILITY: HIGH CONTRAST FOR TESTIMONIALS & REVIEW SECTIONS */
.testimonial-card, .testimonial-card p { color: #1d262f !important; background: #fff !important; }

/* SCROLLBAR */
body {
  scrollbar-color: var(--color-accent) var(--color-light-grey);
  scrollbar-width: thin;
}

/* Print-friendly adjustments */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none !important; }
  .section, .cta-section { box-shadow: none !important; background: #fff !important; }
}
