/* ========================== */
/*  CSS RESET & NORMALIZATION */
/* ========================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4F6FA;
  color: #1A3662;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  appearance: none;
}
::-webkit-input-placeholder { color: #9da8b0; opacity: 1; }
::-moz-placeholder { color: #9da8b0; opacity: 1; }
:-ms-input-placeholder { color: #9da8b0; opacity: 1; }
::placeholder { color: #9da8b0; opacity: 1; }


/* ============================= */
/*  BRAND & SCANDINAVIAN CLEAN   */
/* ============================= */
:root {
  --primary: #1A3662;
  --secondary: #49C1B6;
  --accent: #F4F6FA;
  --white: #fff;
  --black: #25282b;
  --muted: #9da8b0;
  --shadow: 0 2px 12px rgba(26,54,98,0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --h1: 2.75rem;
  --h2: 2rem;
  --h3: 1.35rem;
  --base: 1rem;
  --small: 0.9rem;
}
@media (max-width:600px) {
  :root {
    --h1: 2rem;
    --h2: 1.4rem;
    --h3: 1.12rem;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--base);
  background: var(--accent);
  color: var(--primary);
  letter-spacing: .01em;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--primary);
}
h1 {
  font-size: var(--h1);
  font-weight: 700;
  margin-bottom: 18px;
}
h2 {
  font-size: var(--h2);
  font-weight: 600;
  margin-bottom: 12px;
}
h3 {
  font-size: var(--h3);
  font-weight: 500;
  margin-bottom: 10px;
}
p, li {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
strong, b {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
}
.accent-bg {
  background: var(--accent);
}

/* ================================ */
/*    HEADER / NAVIGATION STYLES    */
/* ================================ */
header {
  width: 100%;
  padding: 10px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 2px 10px rgba(26,54,98,0.045);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  gap: 0;
}
header .logo {
  margin-left: 28px;
  margin-right: 30px;
  height: 54px;
  display: flex;
  align-items: center;
}
header .logo img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}
.main-nav a {
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--primary);
  transition: background 0.19s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary {
  margin-left: 32px;
  font-family: var(--font-display);
  font-weight: 500;
  text-align: center;
  padding: 10px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(49,193,182,.07);
  transition: background .18s, box-shadow .13s, transform .12s;
  cursor: pointer;
  outline: none;
  border: none;
  display: inline-block;
  letter-spacing: .02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(49,193,182,.13);
  transform: translateY(-2px) scale(1.025);
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  margin-left: 18px;
  font-size: 1.95rem;
  background: none;
  color: var(--primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background .18s;
  border: none;
  z-index: 201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}

/* =========== MOBILE NAV ============= */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: auto;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(26,54,98,0.10);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav {
  background: var(--white);
  width: 86vw;
  max-width: 340px;
  height: 100%;
  box-shadow: -2px 0 28px rgba(26,54,98,0.14);
  padding: 44px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.74,.05,.2,.93);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--primary);
  z-index: 210;
  cursor: pointer;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 13px 2px;
  border-radius: var(--radius);
  color: var(--primary);
  transition: background .15s, color .15s;
  margin-bottom: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* ========= HERO AREA ============ */
.hero {
  padding: 58px 0 38px 0;
  background: linear-gradient(120deg, #F4F6FA 78%, #E5EBEE 100%);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: 9px;
}
.hero h1 {
  color: var(--primary);
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.11rem;
  color: var(--primary);
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}
.hero .btn-primary {
  font-size: 1.05rem;
  margin-top: 10px;
}

/* =============== CARD/SECTION LAYOUTS ================ */
.section, .accent-bg {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .service-cards, .testimonial-slider, .testimonial-list, .feature-overview, .service-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 16px;
}
.card, .feature, .service-card, .testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 230px;
  flex: 1 1 260px;
  transition: box-shadow .17s, transform .18s;
}
.card:hover, .feature:hover, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(26,54,98,0.11);
  transform: translateY(-3px) scale(1.012);
}
.feature img, .feature-overview img, .service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  background: var(--accent);
  border-radius: 48%;
  padding: 5px;
}
.feature-grid {
  width: 100%;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 220px;
  align-items: flex-start;
  border-bottom: 3px solid var(--accent);
  gap: 10px;
}
.feature h3 {
  color: var(--primary);
  font-weight: 500;
  font-family: var(--font-display);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  border-left: 5px solid var(--secondary);
  min-width: 200px;
  max-width: 320px;
  flex: 1 1 220px;
}
.service-price {
  margin-top: 10px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
}
/* Cards in legal pages and generic content */
.legal-text, .thank-you-text {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 20px 24px 23px;
  margin-bottom: 20px;
  line-height: 1.67;
}
.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;
  margin-bottom: 22px;
}

.section ul li, .feature-overview ul li, .service-overview ul li, .usp ul li, .service-stepper ul li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  padding: 12px 0;
}


/* ============= TESTIMONIALS ============= */
.testimonials, .testimonial-list, .testimonial-slider {
  justify-content: flex-start;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px 23px 22px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 16px rgba(26,54,98,0.10);
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 260px;
  border-left: 5px solid var(--secondary);
  transition: box-shadow .16s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 9px;
}
.testimonial-card span {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--primary);
  margin-top: 16px;
  font-weight: 500;
}
.rating-summary img {
  height: 25px;
  width: 25px;
  margin-right: 2px;
}

/* =============== CTA/BANNER =============== */
.home-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(49,193,182,0.06);
  padding: 48px 20px 47px 17px;
  margin-bottom: 48px;
}
.home-cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 15px;
}

/* ============== FORMS & CONTACT ============= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 12px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.contact-row img {
  width: 30px;
  height: 30px;
  opacity: 0.88;
}

/* =============================== */
/*         FOOTER STYLE            */
/* =============================== */
footer {
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  padding: 0;
  box-shadow: 0 -2px 8px rgba(26,54,98,0.03);
  margin-top: 60px;
  width: 100vw;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 18px 22px 18px;
  max-width: 1160px;
  margin: 0 auto;
}
.footer-logo {
  height: 46px;
  margin-bottom: 14px;
  margin-right: 19px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--primary);
  transition: color .16s;
  font-size: 1rem;
  padding: 4px 0;
  font-weight: 400;
  text-decoration: underline dotted rgba(73,193,182,0.13);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline solid var(--secondary);
}
.footer-contact {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  min-width: 170px;
}
.footer-contact a {
  color: var(--secondary);
  text-decoration: underline dotted var(--secondary);
  transition: color .13s;
}
.footer-contact a:hover { color: var(--primary); }
.footer-bottom {
  width: 100%;
  background: var(--accent);
  text-align: center;
  padding: 8px 0 13px 0;
  color: var(--muted);
  font-size: var(--small);
}

/* =================================== */
/*  LEGAL TEXT/LISTS/SIMPLE STYLING    */
/* =================================== */
.legal-text h2, .legal-text h3 {
  margin-top: 17px;
  margin-bottom: 10px;
}
.legal-text ul {
  padding-left: 8px;
}
.legal-text ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.legal-text ul li:before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  margin-right: 13px;
  vertical-align: middle;
  position: absolute;
  left: 4px; top: 11px;
}

/*******************************************/
/*               COOKIE BANNER             */
/*******************************************/
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(26,54,98,0.13);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 17px 8px;
  z-index: 999;
  flex-direction: row;
  gap: 26px;
  font-size: 1rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  opacity: 1;
  pointer-events: auto;
  transition: transform .3s, opacity .23s;
}
#cookie-banner.hidden {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
#cookie-banner p {
  margin: 0 30px 0 0;
  color: var(--primary);
  flex: 1 1 150px;
  font-size: 1rem;
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  transition: background .15s, color .13s, box-shadow .16s;
  box-shadow: 0 2px 8px rgba(49,193,182,.04);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn.secondary:focus, .cookie-btn.secondary:hover {
  background: var(--accent);
  color: var(--primary);
}

/********************************************/
/*           COOKIE MODAL SETTINGS          */
/********************************************/
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,54,98,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 1; pointer-events: auto;
  transition: opacity .25s;
}
#cookie-modal.hidden {
  opacity: 0; pointer-events: none;
}
.cookie-modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 44px rgba(26,54,98,0.13);
  padding: 36px 30px 28px 30px;
  min-width: 320px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 13px;
  font-size: 1.3rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  font-size: 1rem;
  font-family: var(--font-display);
}
.cookie-category label {
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--secondary);
  border-radius: 4px;
  background: var(--accent);
  margin-right: 11px;
  vertical-align: middle;
  position: relative;
  transition: border .13s;
}
.cookie-category input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--secondary);
}
.cookie-category input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 12px; height: 12px;
  background: var(--primary);
  position: absolute;
  top: 4px; left: 4px;
  border-radius: 2px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  background: #e7ecef;
}
#cookie-modal .cookie-btn-group {
  margin-top: 25px;
  justify-content: flex-end;
}
#cookie-modal .cookie-close-btn {
  position: absolute;
  top: 14px; right: 17px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s;
}
#cookie-modal .cookie-close-btn:hover, #cookie-modal .cookie-close-btn:focus {
  background: var(--accent);
}


/**************************************/
/*         RESPONSIVE DESIGN          */
/**************************************/
@media (max-width: 900px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 31px;
  }
  .footer-main {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .section, .accent-bg {padding: 26px 7px; margin-bottom: 36px;}
  .content-wrapper {gap: 16px;}
  .card-container, .feature-grid, .service-cards, .testimonial-slider, .testimonial-list {gap: 16px;}
  .feature, .service-card, .card, .testimonial-card {
    min-width: 85vw;
    max-width: 99vw;
    padding-left: 13px; padding-right: 13px;
  }
  .home-cta { padding: 30px 5px; }
  .feature-grid { flex-direction: column; }
  .testimonial-card { min-width: 72vw; padding: 16px 9px; }
  .feature img, .feature-overview img, .service-card img { width: 38px; height: 38px; }
  .footer-main {padding: 23px 5px 13px 5px;}
  .hero .content-wrapper {padding-top: 0;}
}
@media (max-width: 600px) {
  h1 {font-size: 1.6rem;}
  h2 {font-size: 1.13rem;}
  .main-nav, .footer-nav {font-size: 1rem;}
  header .logo {margin-left: 4px; margin-right: 8px}
}
@media (max-width: 480px) {
  .feature-overview ul, .feature-overview, .feature-grid, .service-cards, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 15px;
  }
  .card, .feature, .service-card, .testimonial-card {
    min-width: 88vw;
    padding-left: 9px; padding-right: 9px;
  }
  #cookie-banner p {font-size: 0.95rem; margin-right: 9px;}
}

/**************************************/
/*         MICROINTERACTIONS          */
/**************************************/
a, button, .btn-primary, input[type=checkbox] {
  transition: all .18s cubic-bezier(.36,1.9,.62,.98);
}
.feature:hover img, .service-card:hover img {
  transform: scale(1.05) rotate(-4deg);
  box-shadow: 0px 3px 24px 0 rgba(49,193,182,0.08);
}
input:focus, select:focus, textarea:focus, button:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 1px;
}
.btn-primary:active {transform: scale(.98);}

/**********************************************/
/*         SPECIAL LAYOUTS / MISC             */
/**********************************************/
.text-section {
  margin-bottom: 17px;
}
.values .feature-grid {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 17px 7px;
  gap: 22px;
}
.usp ul li {
  margin-bottom: 0.5em;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.usp ul li img {
  width: 23px; height: 23px;
}
.contact {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
  padding: 35px 18px 22px 18px;
}

/*******************************************/
/*            UTILITY CLASSES              */
/*******************************************/
.accent-text {color: var(--secondary) !important;}
.muted {color: var(--muted) !important;}
.fs-s {font-size: 0.92rem;}
.text-center {text-align: center !important;}
.rounded {border-radius: var(--radius-lg);}
.shadow {box-shadow: var(--shadow);}

/*******************************************/
/*              PRINT STYLES               */
/*******************************************/
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu {display:none !important;}
  main, .container {background: #fff !important; color: #000;}
}
