/* ==== 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; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; height: auto; border: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }

/* ==== ROOT COLOR VARIABLES ==== */
:root {
  --brand-primary: #1d3552;
  --brand-secondary: #ffffff;
  --brand-bg: #f5f5f5;
  --brand-accent: #EF9525;
  --text-body: #263238;
  --text-dark: #1a232e;
  --text-light: #6e7a89;
  --card-bg: #fff;
  --border-soft: #E7ECEF;
  --shadow-soft: 0 2px 12px rgba(30,45,60,0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.85,0,.15,1);
  --container-width: 1200px;
}

/* ==== TYPOGRAPHY ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--text-body);
  background: var(--brand-bg);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -1px;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

p, ul li, ol li, label { color: var(--text-body); font-size: 1rem; }
p { margin-bottom: 18px; }
strong { font-weight: 700; color: var(--brand-primary); }
.small, small { font-size: 0.95rem; color: var(--text-light); }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 24px 0; }

/* ==== SCANDINAVIAN CLEAN LAYOUT ==== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius);
  box-shadow: none;
}
section.call-to-action {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0;
}
section.call-to-action h2 {
  margin-bottom: 20px;
}

/* ==== FLEXBOX PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: 0 4px 24px rgba(30,45,60,0.13);
  transform: translateY(-3px);
}
.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;
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  min-width: 270px;
  border: 1px solid var(--border-soft);
  color: var(--text-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 32px rgba(30,45,60,0.11);
  transform: translateY(-2px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* FAQ / Blog / Misc */
.faq-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ==== HERO BANNER ==== */
.hero {
  background: var(--brand-secondary);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 48px 0 48px 0;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.18rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 570px;
}
.hero .btn {
  font-weight: 700;
  font-size: 1.16rem;
}

/* ==== BUTTONS ==== */
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2em;
  border-radius: var(--radius-sm);
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 1px 6px rgba(37, 65, 102, 0.06);
  cursor: pointer;
  outline: none;
}
.btn:hover,
a.btn:hover,
.btn:focus,
a.btn:focus {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(239, 149, 37, 0.17);
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}
.cta-main {
  background: var(--brand-accent);
  color: #fff !important;
  padding: 0.6em 1.5em;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  margin-left: 18px;
}
.cta-main:hover, .cta-main:focus {
  background: var(--brand-primary);
  color: #fff !important;
}

/* ==== NAVIGATION ==== */
header {
  background: var(--brand-secondary);
  padding: 0;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06em;
  color: var(--brand-primary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  position: relative;
  margin-left: 0;
}
header nav a:not(.cta-main):hover, header nav a:not(.cta-main):focus {
  background: var(--brand-bg);
  color: var(--brand-accent);
}
header nav a img {
  height: 42px;
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 2200;
  background: var(--brand-accent);
  color: #fff;
  border-radius: 100%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 2px 10px rgba(40,40,55,0.08);
  align-items: center;
  justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:active {
  background: var(--brand-primary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,53,82,0.94);
  z-index: 3100;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  overflow-y: auto;
  transition: transform .35s cubic-bezier(.72,0,.3,1.1), opacity .2s;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--brand-accent);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 17px 27px 0 0;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  border: 0;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 32px 30px 0 0;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.3em;
  padding: 13px 0;
  margin: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  width: 100%;
  text-align: right;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.09);
}

/* ==== BLOG LIST ==== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 38px;
}
.blog-list article {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 24px 22px;
  flex: 1 1 270px;
  min-width: 260px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 10px;
}
.blog-list article:hover, .blog-list article:focus {
  box-shadow: 0 4px 24px rgba(30,45,60,0.13);
  transform: translateY(-2px);
}
.categories-list {
  margin: 20px 0;
}
.categories-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.categories-list li {
  background: var(--brand-bg);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 5px 17px;
  font-size: 0.99em;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ==== TIMELINE & FAQ ==== */
.timeline-visual {
  margin-top: 22px;
  background: var(--brand-bg);
  color: var(--text-light);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-style:italic;
  box-shadow: none;
}
.faq-group .text-section {
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  padding: 19px 17px;
  flex: 1 1 340px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 8px;
}

/* ==== LISTS AND ICONS ==== */
ul, ol {
  margin-bottom: 22px;
  margin-left: 0;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 10px;
  position: relative;
  font-size: 1.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
ul li img, ol li img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  object-fit: contain;
}

/* ==== CONTACT DETAILS ==== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.08em;
}
.map-location {
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  padding: 19px 21px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

/* ==== TEXT-SECTIONS ==== */
.text-section {
  margin-bottom: 24px;
  background: none;
  padding: 0;
}
.text-section.next-steps {
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.text-section h2, .text-section h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--brand-primary);
}
.text-section ul {
  margin-left: 0;
}

/* ==== FOOTER ==== */
footer {
  background: var(--brand-bg);
  padding: 34px 0 38px 0;
  border-top: 1px solid var(--border-soft);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 19px;
}
footer nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1em;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  transition: background var(--transition), color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}
footer .text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
footer .text-section img {
  height: 32px;
  margin-bottom: 6px;
}
footer .text-section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
footer .text-section span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.98em;
}

/* ==== SHADOWS & BORDERS ==== */
.card, .testimonial-card, .blog-list article, .faq-group .text-section {
  border: 1px solid var(--border-soft);
}

/* ==== SCROLLBAR (for modern browsers) ==== */
::-webkit-scrollbar { width: 10px; background: #f7f7f7; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #e3e3e3; border-radius: 10px; }

/* ==== TRANSITIONS AND MICRO-INTERACTIONS ==== */
*:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ==== RESPONSIVE BREAKPOINTS ==== */
@media (max-width: 1020px) {
  .container, header nav { max-width: 100%; }
}
@media (max-width: 860px) {
  .content-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-grid,
  .card-container,
  .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .timeline-visual, .faq-group {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .map-location {
    padding: 15px;
  }
}
@media (max-width: 540px) {
  .hero { padding: 32px 0; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.15rem; }
  .btn, .btn-primary, .cta-main { padding: 0.7em 1.4em; font-size: 0.95rem; }
  footer { padding: 23px 0 28px 0; }
  .card, .faq-group .text-section { padding: 14px 9px; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: calc(100vw - 30px);
  max-width: 450px;
  background: var(--card-bg);
  color: var(--text-dark);
  box-shadow: 0 -2px 18px rgba(45,53,82,0.08);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 22px 20px 22px;
  z-index: 6060;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.3s, bottom 0.3s;
  animation: cookieIn 0.5s cubic-bezier(.5,0,.5,1) 1;
}
@keyframes cookieIn {
  from { bottom: -120px; opacity: 0; }
  to { bottom: 0; opacity: 1; }
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -150px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}
.cookie-banner button {
  padding: 0.55em 1.25em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  transition: background var(--transition), color var(--transition);
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 1px 6px rgba(30,45,60,0.048);
  cursor: pointer;
}
.cookie-banner button.accept {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: var(--brand-primary);
}
.cookie-banner button.settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: var(--brand-accent);
  color: #fff;
}
.cookie-banner button.reject {
  background: #E7ECEF;
  color: var(--brand-primary);
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: var(--brand-primary);
  color: #fff;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29,53,82,0.47);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: var(--card-bg);
  color: var(--text-dark);
  border-radius: var(--radius);
  box-shadow: 0 6px 30px rgba(45,53,82,0.18);
  padding: 34px 26px 24px 26px;
  min-width: 320px;
  max-width: 97vw;
  z-index: 8100;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: modalFadeIn .28s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 { font-size: 1.2rem; margin-bottom: 9px; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 0 11px 0;
  background: none;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.01rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-toggle input[type='checkbox'] {
  width: 34px;
  height: 20px;
  appearance: none;
  border-radius: 10px;
  background: #DEE7F2;
  transition: background var(--transition);
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}
.cookie-toggle input[type='checkbox']:checked {
  background: var(--brand-accent);
}
.cookie-toggle input[type='checkbox']::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2.2px;
  top: 2px;
  transition: transform var(--transition);
}
.cookie-toggle input[type='checkbox']:checked::before {
  transform: translateX(14px);
}
.cookie-essential {
  color: var(--brand-primary);
  font-weight: 700;
  opacity: 0.76;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 18px;
  margin-top: 13px;
}
.cookie-modal button {
  padding: 0.52em 1.23em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1em;
  background: var(--brand-primary);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal button.cancel {
  background: #e7e7e7;
  color: var(--brand-primary);
}
.cookie-modal button.cancel:hover, .cookie-modal button.cancel:focus {
  background: var(--brand-accent);
  color: #fff;
}

@media (max-width: 484px) {
  .cookie-banner {
    max-width: 97vw;
    padding: 14px 4vw 14px 4vw;
    font-size: 0.95rem;
  }
  .cookie-modal {
    padding: 16px 5vw 16px 5vw;
    min-width: unset;
  }
}

/* ==== MISC ==== */
::-webkit-input-placeholder { color: var(--text-light); }
::-moz-placeholder { color: var(--text-light); }
:-ms-input-placeholder { color: var(--text-light); }
::placeholder { color: var(--text-light); }

/* For images inside testimonials/reviews (stars, icons) */
.testimonial-card img {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* VISUAL HIERARCHY EXTRAS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Prevent any content overlap */
section, .card, .testimonial-card, .blog-list article, .faq-group .text-section {
  margin-bottom: 20px;
}

/* ENFORCE SCANDINAVIAN CLEAN DESIGN */
section, .content-wrapper, .card, .testimonial-card, .blog-list article {
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.card, .testimonial-card, .blog-list article {
  border-radius: var(--radius-sm);
}
section {
  box-shadow: none;
}
footer, header, .blog-list, .categories-list, .faq-group, .card-container, .content-grid {
  box-shadow: none;
}

/* Utility spacing classes */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/***** END OF STYLE.CSS *****/
