/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F7FB;
  color: #223965;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

/* VARIABLE FALLBACKS FOR BRANDING */
:root {
  --vs-primary: #223965;
  --vs-secondary: #F2F7FB;
  --vs-accent: #F79E1B;
  --vs-white: #fff;
  --vs-black: #12151a;
  --vs-grey: #e6eef4;
  --vs-shadow-sm: 0 2px 8px rgba(34, 57, 101, 0.06);
  --vs-shadow-md: 0 4px 16px rgba(34, 57, 101, 0.1);
  --vs-radius: 12px;
  --vs-font-display: 'Montserrat', Arial, sans-serif;
  --vs-font-body: 'Roboto', Arial, sans-serif;
}

/* BASE TYPOGRAPHY */
h1, .h1 {
  font-family: var(--vs-font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--vs-primary);
}
h2, .h2 {
  font-family: var(--vs-font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.22;
  margin-bottom: 20px;
  color: var(--vs-primary);
}
h3, .h3 {
  font-family: var(--vs-font-display);
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--vs-primary);
}
h4, .h4 {
  font-family: var(--vs-font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--vs-primary);
}
p, li, ul, ol, span, label {
  font-family: var(--vs-font-body);
  font-size: 1rem;
  color: var(--vs-primary);
}
strong {
  font-weight: 700;
}
.section p,
.section ul,
.text-section p,
.text-section ul {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #223965;
}

/* CONTAINER & LAYOUT */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--vs-white);
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* FLEX CONTAINERS (MANDATORY PATTERNS) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--vs-white);
  border-radius: var(--vs-radius);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--vs-shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
}
.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: var(--vs-secondary);
  color: var(--vs-primary);
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow-sm);
  margin-bottom: 20px;
  flex: 1 1 330px;
  min-width: 260px;
  font-size: 1.05rem;
  transition: box-shadow 0.22s;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-style: italic;
}
.testimonial-card span {
  color: #687692;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS & LINKS */
.cta-btn, .btn {
  font-family: var(--vs-font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 99px;
  border: none;
  background: var(--vs-primary);
  color: var(--vs-white);
  box-shadow: 0 2px 8px rgba(34,57,101,0.06);
  transition: background 0.22s, box-shadow 0.22s, color 0.22s;
  outline: none;
  display: inline-block;
  cursor: pointer;
  margin-top: 12px;
}
.cta-btn:hover, .btn:hover, .cta-btn:focus {
  background: var(--vs-accent);
  color: var(--vs-primary);
  box-shadow: 0 4px 16px rgba(34,57,101,0.12);
}
nav a, .mobile-nav a {
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--vs-font-body);
  font-size: 1rem;
  color: var(--vs-primary);
  transition: background 0.19s, color 0.19s;
}
nav a:hover, nav a:focus {
  background: var(--vs-accent);
  color: var(--vs-white);
}

/* HEADER & NAVIGATION */
header {
  background: var(--vs-white);
  border-bottom: 1px solid var(--vs-grey);
  box-shadow: 0 4px 20px rgba(55,82,120,0.03);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 32px;
}
header a img {
  height: 33px;
  width: auto;
}
header nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
.header .cta-btn {
  margin-left: 12px;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  background: var(--vs-primary);
  color: var(--vs-white);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  z-index: 1100;
  justify-content: center;
  align-items: center;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--vs-accent);
  color: var(--vs-primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--vs-white);
  box-shadow: 0 8px 40px rgba(34,57,101,0.08);
  z-index: 1150;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.77,0,.18,1), opacity 0.34s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 18px 6px 0;
  background: var(--vs-primary);
  color: var(--vs-white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.45rem;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--vs-accent);
  color: var(--vs-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 20px 0 32px;
}
.mobile-nav a {
  font-size: 1.1rem;
  border-radius: 7px;
  padding: 14px 10px;
  color: var(--vs-primary);
  background: #e6eef5;
  margin-bottom: 6px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--vs-accent);
  color: var(--vs-white);
}

@media (max-width: 1020px) {
  header .container nav {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  nav, header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* HERO, SECTIONS, FEATURE LISTS */
section {
  border: none;
  display: flex;
}
.features-list, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.features-list li, .services-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7fbfe;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--vs-primary);
  min-width: 240px;
  box-shadow: var(--vs-shadow-sm);
  margin-bottom: 0;
}
.features-list img, .services-list img {
  height: 32px;
  width: 32px;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.blog-list li {
  background: var(--vs-white);
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow-sm);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 355px;
  padding: 28px 20px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
}
.blog-list h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  font-family: var(--vs-font-display);
  font-weight: 600;
}
.blog-list a {
  color: var(--vs-accent);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
.blog-list a:hover {
  color: var(--vs-primary);
  text-decoration: underline;
}

/* CASE STUDY SECTION */
.case-study {
  background: #ecf3f9;
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow-sm);
  padding: 20px 25px 18px 20px;
  margin-bottom: 22px;
}

/* TEXTUAL SECTIONS & MAP PLACEHOLDER */
.text-section {
  margin: 0 0 24px 0;
}
.map-placeholder {
  background: #dbe6ee;
  border-radius: var(--vs-radius);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0 0;
  font-size: 1.05rem;
  color: #25436a;
  box-shadow: var(--vs-shadow-sm);
}

/* FOOTER */
footer {
  background: var(--vs-white);
  color: #2c3958;
  border-top: 1px solid var(--vs-grey);
  margin-top: 48px;
  padding: 28px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand img {
  height: 44px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 190px;
}
footer nav a {
  font-family: var(--vs-font-body);
  font-size: 1rem;
  color: #203151;
  padding: 0;
  background: none;
  border-radius: 8px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.99rem;
}
.footer-contact img {
  height: 21px;
  width: 21px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--vs-white);
  border-top: 1px solid var(--vs-grey);
  box-shadow: 0 -2px 18px rgba(34,57,101,0.06);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2000;
  padding: 18px 32px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.42s, transform 0.36s;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__text {
  font-size: 1rem;
}
.cookie-banner__btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-banner__btn,
.cookie-banner__settings {
  font-size: 1rem;
  font-family: var(--vs-font-body);
  padding: 10px 28px;
  border-radius: 8px;
  border: none;
  transition: background 0.19s, color 0.19s;
  cursor: pointer;
}
.cookie-banner__btn.accept {
  background: var(--vs-primary);
  color: var(--vs-white);
  font-weight: 600;
}
.cookie-banner__btn.accept:hover {
  background: var(--vs-accent);
  color: var(--vs-primary);
}
.cookie-banner__btn.reject {
  background: #e6eef5;
  color: var(--vs-primary);
  font-weight: 500;
}
.cookie-banner__btn.reject:hover {
  background: #d5dae3;
}
.cookie-banner__settings {
  background: transparent;
  color: var(--vs-accent);
  border: 1px solid var(--vs-accent);
}
.cookie-banner__settings:hover {
  background: var(--vs-accent);
  color: var(--vs-white);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,57,101,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__box {
  background: var(--vs-white);
  border-radius: var(--vs-radius);
  box-shadow: var(--vs-shadow-md);
  padding: 32px 22px 28px 22px;
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__header {
  font-size: 1.25rem;
  font-family: var(--vs-font-display);
  color: var(--vs-primary);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__close {
  background: var(--vs-accent);
  border-radius: 50%;
  color: var(--vs-white);
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  display: flex;
}
.cookie-modal__close:hover {
  background: var(--vs-primary);
  color: var(--vs-accent);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 16px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #223965;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  border-radius: 12px;
  background: #e3eaf1;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  display: inline-flex;
  align-items: center;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(34,57,101,0.07);
  transition: left 0.18s;
}
.cookie-switch input:checked + .slider {
  left: 21px;
  background: var(--vs-accent);
}
.cookie-category.essential label {
  font-weight: 600;
  color: var(--vs-primary);
}
.cookie-category.essential .cookie-switch {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}
.cookie-modal__actions button {
  min-width: 105px;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1020px) {
  .container {
    max-width: 90vw;
  }
  .footer-contact {
    min-width: 180px;
  }
}
@media (max-width: 900px) {
  .footer-brand {
    margin-bottom: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .footer-contact {
    align-items: flex-start;
    margin-top: 8px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 42px;
    padding: 28px 7vw;
  }
  .content-grid, .card-container, .blog-list, .features-list,
  .services-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1, .h1 {
    font-size: 1.6rem;
  }
  h2, .h2 {
    font-size: 1.1rem;
  }
  .case-study, .card {
    padding: 16px 11px 14px 11px;
  }
  .cookie-banner {
    padding: 13px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cookie-modal__box {
    min-width: 80vw;
    padding: 20px 10px 20px 10px;
  }
}
@media (max-width:450px) {
  .section {
    padding: 13px 1vw;
  }
  .cookie-modal__box {
    min-width: 96vw;
    padding: 8px 2vw 6px 2vw;
  }
}

/* UTILITY */
.mt-24 { margin-top: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

/* SCANDINAVIAN CLEAN - NATURAL LOOK */
.section, .card, .case-study, .blog-list li, .testimonial-card, .cookie-modal__box, .map-placeholder {
  box-shadow: 0 2px 8px rgba(55,75,99,0.06);
  border-radius: 13px;
}
.section, .card, .case-study, .blog-list li {
  border: 1px solid #e6eef4;
}

/* INTERACTIONS & TRANSITIONS */
.card, .blog-list li, .case-study, .testimonial-card, .features-list li, .services-list li {
  transition: box-shadow 0.2s, border 0.18s, background 0.18s;
}
.card:hover, .blog-list li:hover, .case-study:hover, .testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(34,57,101,0.10);
  border-color: var(--vs-accent);
}
.cta-btn:active, .btn:active {
  background: #1d3052;
}

/* Z-INDEX FOR INTERACTIVE ELEMENTS */
.mobile-menu { z-index: 1150; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 3000; }

/* SCROLLBAR STYLE */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--vs-accent) var(--vs-grey);
}
body::-webkit-scrollbar {
  width: 8px;
  background: var(--vs-grey);
}
body::-webkit-scrollbar-thumb {
  background: var(--vs-accent);
  border-radius: 8px;
}

/* ACCESSIBILITY: Ensure testimonial/readability */
.testimonial-card,
.section .testimonial-card p, .section .testimonial-card span {
  color: #223965 !important;
  background: #F7FAFD;
}

/* Hide extra outline on mouse only */
:focus:not(:focus-visible) {
  outline: none;
}

/* FOCUSED STATES */
a:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--vs-accent);
  outline-offset: 2px;
}

/* Hide cookie banner until activated by JS */
.cookie-banner { display: none; }
.cookie-banner.visible { display: flex; }

/* Fix for ultra-small screens for nav */
@media (max-width:340px) {
  .mobile-menu-toggle {
    width: 36px; height: 36px; font-size: 1.2rem;
    right: 7px;
  }
}
