/* --- CSS RESET & BASELINE --- */
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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F7F9FA;
  color: #244869;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.4em;
}
li {
  margin-bottom: 8px;
}
a {
  color: #244869;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #FFD84D;
  outline: none;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #244869;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 1.8rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }

@media (min-width: 700px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
}

p, ul, ol, li, dl, dt, dd, address {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #244869;
  margin-bottom: 16px;
}
strong, b { font-weight: 600; }

/* --- BASIC SPACING & CONTAINER --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER & NAV --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(36,72,105,0.045);
  position: sticky;
  top: 0; z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 72px;
}
.logo img { height: 40px; display: block; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #244869;
  padding: 8px 0;
  position: relative;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #FFD84D;
}
.main-nav a.active {
  color: #FFD84D;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 36px;
  padding: 12px 28px;
  font-size: 1rem;
  min-width: 140px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(36, 72, 105, 0.07);
  transition: background .2s, color .2s, box-shadow .2s, border .2s;
}
.btn-primary {
  background: #244869;
  color: #fff;
  border: 2px solid #244869;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFD84D;
  color: #244869;
  border-color: #FFD84D;
}
.btn-secondary {
  background: #FFD84D;
  color: #244869;
  border: 2px solid #FFD84D;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #244869;
  color: #fff;
  border-color: #244869;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  background: #fff;
  color: #244869;
  border: none;
  font-size: 2.2rem;
  padding: 6px 18px;
  margin-left: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background .1s, color .15s;
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7F9FA;
  color: #FFD84D;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247, 249, 250, 0.99);
  box-shadow: -8px 0 22px 0 rgba(36,72,105,0.07);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.77,.2,.24,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  background: none;
  border: none;
  color: #244869;
  font-size: 2.2rem;
  margin: 26px 32px 6px 0;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD84D;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px 24px;
  gap: 18px;
  align-items: flex-start;
}
.mobile-nav a {
  padding: 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #244869;
  font-weight: 600;
  transition: color .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFD84D;
}

@media (min-width: 1150px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 1150px) {
  .main-nav { display: none; }
}

/* --- HERO SECTION --- */
.hero {
  background: #F7F9FA;
  padding: 64px 0 34px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 670px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  color: #244869;
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero .subheadline {
  font-size: 1.13rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 12px;
  color: #244869;
}

/* --- FLEX LAYOUTS AND CARDS --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.features .content-wrapper, .section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(35, 60, 96, 0.05);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .12s, box-shadow .17s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(35,60,96,0.10);
  transform: translateY(-3px) scale(1.012);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* --- FEATURE GRID (Home/Offer) --- */
.feature-grid,
.service-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid li, .service-grid li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(35, 60, 96, 0.06);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 320px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .17s;
}
.feature-grid li:hover, .service-grid li:hover {
  box-shadow: 0 8px 32px 0 rgba(35,60,96,0.07);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img, .service-grid img {
  width: 38px;height: 38px; margin-bottom: 6px;
}
.feature-grid h3, .service-grid h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}

@media (max-width: 1020px) {
  .feature-grid li, .service-grid li {
    max-width: 47%; min-width: 200px;
  }
}
@media (max-width: 700px) {
  .feature-grid, .service-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li, .service-grid li {
    max-width: 100%; width: 100%;
  }
}

/* --- PRICING TABLE --- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(35, 60, 96, 0.07);
  margin-bottom: 32px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #EFF2F5;
}
.pricing-table th {
  background: #F7F9FA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #244869;
  text-align: left;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  .pricing-table, .pricing-table thead, .pricing-table tbody, .pricing-table tr { display: block; width: 100%; }
  .pricing-table thead { display: none; }
  .pricing-table tr { margin-bottom: 18px; }
  .pricing-table td { display: block; width: 100%; border-bottom: none; padding: 12px 14px; }
  .pricing-table td:before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
    color: #244869;
  }
}

/* --- TESTIMONIALS --- */
.testimonials .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #fff;
  color: #244869;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(35, 60, 96, 0.09);
  margin-bottom: 20px;
  font-size: 1rem;
  min-width: 270px;
  max-width: 370px;
  flex: 1 1 30%;
  border-left: 5px solid #FFD84D;
  transition: background .12s, box-shadow .16s, border-color .18s;
}
.testimonial-card p {
  color: #244869;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  margin-bottom: 10px;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #244869;
  font-size: 1rem;
}
.testimonial-card:hover {
  background: #F7F9FA;
  border-left-color: #244869;
  box-shadow: 0 6px 24px 0 rgba(35,60,96,0.13);
}

@media (max-width: 900px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { max-width: 100%; min-width: 0; }
}

/* --- CTA/ABOUT/OTHER CARDS --- */
.about-summary, .confirmation, .cta-banner, .contact-cta, .contact-short {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(35, 60, 96, 0.040);
  margin-bottom: 60px;
  padding: 40px 20px;
}

.cta-banner .content-wrapper, .contact-cta .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
@media (max-width: 800px) {
  .cta-banner .content-wrapper, .contact-cta .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- TEAM MEMBERS --- */
.team .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.team-member {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 7px 0 rgba(35, 60, 96, 0.055);
  padding: 22px 20px 20px 20px;
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 200px;
}
.team-member h3 {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .team .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .team-member { min-width: 0; }
}


/* --- CONTACT, MAP --- */
.contact-info, .contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-info img, .contact-info-details img {
  width: 22px; height: 22px; margin-right: 9px; opacity:.8;
  vertical-align: middle; display: inline-block;
}
.contact-info > div, .contact-info-details > div {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #244869;
}

.map .content-wrapper, .contact-short .content-wrapper {
  gap: 18px;
}

/* --- ADDRESS --- */
address {
  font-style: normal;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #244869;
}

/* --- FAQ --- */
.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #244869;
  background: #F7F9FA;
  padding: 12px 16px;
  border-radius: 9px 9px 0 0;
  font-size: 1.11rem;
  margin-bottom: 0;
  border-bottom: 1px solid #EFF2F5;
}
.faq-list dd {
  padding: 12px 16px 16px 16px;
  background: #fff;
  border-radius: 0 0 9px 9px;
  margin-bottom: 6px;
}

/* --- SECTION TEMPLATES --- */
.section, .features, .services, .about, .gdpr, .privacy-policy, .terms, .cookies-policy {
  background: #F7F9FA;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 700px) {
  .section, .features, .services, .about, .gdpr, .privacy-policy, .terms, .cookies-policy {
    padding: 26px 6px;
    margin-bottom: 40px;
  }
}

/* --- GRID TWEAKS --- */
.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;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #EFF2F5;
  padding: 32px 0 16px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #244869;
  font-size: 0.97rem;
  opacity: 0.83;
  transition: color .17s, opacity .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD84D;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  font-size: 0.97rem;
  color: #244869;
  opacity: 0.78;
  gap: 2px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9999;
  background: #fffbe9;
  box-shadow: 0 -2px 14px 0 rgba(36,72,105,0.09);
  padding: 18px 6px 18px 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: bottom .24s;
  font-size: 1rem;
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  width: 100%;
  align-items: flex-start;
  position: relative;
}
@media (min-width: 700px) {
  .cookie-banner-inner { flex-direction: row; align-items: center; gap: 34px; }
}
.cookie-banner-message {
  color: #244869;
  font-size: 1rem;
  margin-right: 14px;
  flex: 1 1 0%;
  line-height: 1.55;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 30px;
  padding: 9px 22px;
  font-size: 1rem;
  border: 2px solid #FFD84D;
  background: #FFD84D;
  color: #244869;
  cursor: pointer;
  margin-right: 0;
  transition: background .18s, color .18s, border-color .16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #244869;
  color: #fff;
  border-color: #244869;
}
.cookie-btn.cookie-btn-reject {
  background: #fff;
  color: #244869;
  border: 2px solid #244869;
}
.cookie-btn.cookie-btn-reject:hover, .cookie-btn.cookie-btn-reject:focus {
  background: #FFD84D;
  color: #244869;
  border-color: #FFD84D;
}
.cookie-btn.cookie-btn-settings {
  background: #fffbe9;
  color: #244869;
  border: 2px solid #FFD84D;
  font-weight: 400;
  margin-left: 0;
}
.cookie-btn.cookie-btn-settings:hover, .cookie-btn.cookie-btn-settings:focus {
  background: #FFD84D;
  color: #244869;
  border-color: #FFD84D;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,60,96,0.15);
  z-index: 12010;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  transition: background .25s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 40px 0 rgba(35, 60, 96, 0.13);
  max-width: 390px;
  width: 90vw;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 12011;
  animation: slideUpModal .26s cubic-bezier(.5, 1.3, 0.43, 0.93);
}
@keyframes slideUpModal {
  from { transform: translateY(48px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #244869;
  margin-bottom: 10px;
}
.cookie-modal-group {
  margin-bottom: 15px;
}
.cookie-modal-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  color: #244869;
  cursor: pointer;
}
.cookie-modal-group input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #FFD84D;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 2px;
}
.cookie-modal-group.essential label {
  font-weight: 600;
  color: #244869;
  opacity: 1;
}
.cookie-modal-group.essential input[type="checkbox"] {
  accent-color: #FFD84D;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.cookie-modal-close {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  color: #244869;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FFD84D;
}

/* --- UTILITIES --- */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }

/* --- RESPONSIVE & FLEX ADJUSTMENTS --- */
@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-contact {
    font-size: 0.90rem;
    gap: 1px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding: 38px 0 18px 0;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.13rem; }
}

/* --- FORM INPUTS / TABLES (if used on future pages) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #EFF2F5;
  background: #fff;
  color: #244869;
  margin-bottom: 14px;
  width: 100%;
  outline: none;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFD84D;
}
table {
  border-collapse: separate;
  border-spacing: 0;
}

/* --- INTERACTIVE STATES --- */
.btn:active {
  filter: brightness(.96);
}
.btn:focus-visible {
  outline: 2px solid #FFD84D;
  outline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid #FFD84D;
  outline-offset: 2px;
}

/* --- SIMPLE SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  background: #f2f5f8;
}
::-webkit-scrollbar-thumb {
  background: #e8edf1;
  border-radius: 8px;
}

/* --- HIDE ON MOBILE/SHOW ON MOBILE HELPERS --- */
.hide-desktop { display: none !important; }
@media (max-width: 1150px) {
  .hide-desktop { display: block !important; }
  .hide-mobile { display: none !important; }
}

/* --- SCANDINAVIAN CLEAN DECORATIVE SHADOWS/EFFECTS --- */
.section, .features, .services, .about, .gdpr, .privacy-policy, .terms, .cookies-policy,
.cta-banner, .about-summary, .contact-cta, .contact-short, .confirmation, .team-member {
  box-shadow: 0 3px 16px 0 rgba(35, 60, 96, 0.04);
}

/* --- MINIMUM SPACING BETWEEN ALL SECTIONS & CARDS --- */
.section, .features, .services, .about, .gdpr, .privacy-policy, .terms, .cookies-policy, .team-member, .testimonial-card, .card, .about-summary, .cta-banner, .contact-cta, .contact-short, .confirmation {
  margin-bottom: 20px;
}

/* --- A11Y FOCUS STATES --- */
button:focus-visible, .btn:focus-visible, .mobile-menu-close:focus-visible, .mobile-menu-toggle:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #FFD84D;
  outline-offset: 2px;
}

/* --- END --- */
