/* ========== CSS RESET & BASE ========== */
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;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F7FAFC;
  color: #1C1C1C;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}
a {
  color: #18527A;
  text-decoration: none;
  transition: color 0.18s ease;
  outline: none;
}
a:focus, a:hover {
  color: #143F5C;
  text-decoration: underline;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
ul, ol {
  list-style: none;
}

/* ========== TYPOGRAPHY HIERARCHY ========== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #18527A;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #18527A;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #18527A;
  margin-bottom: 18px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #18527A;
  margin-bottom: 16px;
}
p, label, dt, dd, li {
  color: #1C1C1C;
  font-size: 1rem;
  margin-bottom: 12px;
}
.subtitle {
  color: #497187;
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-weight: 400;
}
strong {
  font-weight: 600;
}

blockquote {
  background: #FAFBFD;
  border-left: 4px solid #18527A;
  padding: 18px 24px;
  margin-bottom: 12px;
  color: #1C1C1C;
  font-style: italic;
  font-size: 1.15rem;
}

/* ========== SPACING & LAYOUT CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(24, 82, 122, 0.05);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #FFF;
  box-shadow: 0 2px 10px rgba(24,82,122,0.05);
  padding: 0;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0 18px 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #18527A;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #F3F6F8;
  color: #143F5C;
}
header nav img {
  height: 40px;
  width: auto;
  margin-right: 20px;
  border-radius: 10px;
  background: transparent;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 16px;
  font-size: 2rem;
  background: #FDCB02;
  color: #18527A;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  z-index: 120;
  border: none;
  box-shadow: 0 4px 14px rgba(24,82,122,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #18527A;
  color: #FFF;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 82, 122, 0.97);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.6,0.01,0,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 48px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  align-self: flex-end;
  margin-right: 32px;
  margin-top: 18px;
  margin-bottom: 20px;
  cursor: pointer;
  border-radius: 50%;
  padding: 6px 16px 6px 16px;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FDCB02;
  color: #18527A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 40px;
  width: 90vw;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 0 12px 4px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FDCB02;
  color: #18527A;
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== MAIN LAYOUT HELPERS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(24,82,122,0.08);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(24,82,122,0.11);
  z-index: 2;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F7FAFC;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(24,82,122,0.06);
  padding: 20px;
  margin-bottom: 20px;
  color: #1C1C1C;
  min-height: 80px;
}
.testimonial-card blockquote {
  margin-bottom: 0;
  background: transparent;
  border: none;
  color: #1C1C1C;
  font-weight: 500;
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: #18527A;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  border-radius: 12px;
  padding: 13px 32px;
  margin-top: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.19s, color 0.11s, box-shadow 0.22s, transform 0.11s;
  box-shadow: 0 2px 8px rgba(24, 82, 122, 0.06);
  text-decoration: none;
  outline: none;
}
.btn-primary {
  background: #18527A;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #143F5C;
  color: #FDCB02;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: #FDCB02;
  color: #18527A;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFD700;
  color: #18527A;
  transform: translateY(-2px) scale(1.02);
}

/* ========== FORMS ========== */
input[type="search"] {
  border: 1.2px solid #CBD5DF;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  max-width: 350px;
  margin-bottom: 18px;
  color: #18527A;
  background: #FAFBFD;
  transition: border 0.18s;
}
input[type="search"]:focus {
  border: 1.5px solid #18527A;
  background: #FFF;
  outline: none;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 8px rgba(24, 82, 122, 0.04);
}
thead {
  background: #F3F6F8;
}
thead th {
  color: #18527A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 12px;
  text-align: left;
  border-bottom: 2px solid #eaeaea;
  letter-spacing: 0.1px;
}
td {
  padding: 13px 12px;
  font-size: 1rem;
  color: #1C1C1C;
  border-bottom: 1px solid #F3F6F8;
}
tr:last-child td {
  border-bottom: none;
}

/* ========== FOOTER ========== */
footer {
  background: #F7FAFC;
  padding: 35px 0 15px 0;
  border-top: 1px solid #E8EEF0;
  margin-top: 40px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
footer nav a {
  color: #18527A;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 7px;
  border-radius: 6px;
  transition: background 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: #EAF2F6;
  color: #143F5C;
}
footer .contact-mini {
  font-size: 0.97rem;
  color: #18527A;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer .contact-mini a {
  color: #18527A;
  text-decoration: underline;
}
footer .branding {
  color: #92A4AF;
  font-size: 0.95rem;
  margin-top: 14px;
}
footer img {
  height: 38px;
  margin-bottom: 14px;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ========== SCANDINAVIAN_CLEAN VISUAL ELEMENTS ========== */
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-left: 0;
  font-size: 1.02rem;
}
ul li img, ol li img {
  height: 36px;
  width: 36px;
  margin-right: 4px;
  background: #F3F6F8;
  border-radius: 50%;
  padding: 6px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  color: #18527A;
  margin-top: 18px;
}
dd {
  margin-left: 8px;
  margin-bottom: 10px;
  color: #1C1C1C;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #37474F;
}

/* ========== RESPONSIVE SPACING ========== */
@media (max-width: 600px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 34px;
    border-radius: 14px;
  }
  h1, .h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  h2, .h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* ========== SCROLLBAR (for natural look) ========== */
::-webkit-scrollbar {
  width: 8px;
  background: #F3F6F8;
}
::-webkit-scrollbar-thumb {
  background: #CBD5DF;
  border-radius: 8px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FFF;
  border-top: 2px solid #FDCB02;
  box-shadow: 0 -4px 18px rgba(24,82,122,0.08);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2008;
  gap: 24px;
  transition: transform 0.28s cubic-bezier(0.7,0.09,0.35,1);
}
.cookie-banner.closed {
  transform: translateY(110%);
}
.cookie-banner p {
  margin-bottom: 0;
  color: #37474F;
  font-size: 1rem;
  flex: 1 1 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  margin-right: 0;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 2px 7px rgba(24,82,122,.06);
}
.cookie-btn.accept {
  background: #18527A;
  color: #FFF;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #143F5C;
}
.cookie-btn.reject {
  background: #EAF2F6;
  color: #18527A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #CBD5DF;
}
.cookie-btn.settings {
  background: #FDCB02;
  color: #18527A;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFD700;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5px;
    gap: 14px;
  }
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,82,122,0.12);
  z-index: 2222;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  animation: fadeinModalBg 0.32s;
}
@keyframes fadeinModalBg { from { opacity: 0;} to { opacity: 1;} }
.cookie-modal {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(24,82,122,0.13);
  padding: 36px 22px 28px 22px;
  width: 95vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: popup 0.36s cubic-bezier(0.53,0.08,0.14,1.04);
}
@keyframes popup {
  from { transform: scale(0.93) translateY(46px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #18527A;
  font-weight: 500;
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch .slider {
  width: 38px;
  height: 22px;
  background: #CBD5DF;
  border-radius: 22px;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-switch .slider:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  background: #FFF;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: transform 0.19s, background 0.13s;
}
.cookie-switch input[type="checkbox"]:checked + .slider {
  background: #18527A;
}
.cookie-switch input[type="checkbox"]:checked + .slider:before {
  transform: translateX(16px);
  background: #FDCB02;
}
.cookie-modal .modal-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  margin-top: 0;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 1.6rem;
  color: #18527A;
  background: none;
  border: none;
  padding: 2px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #FDCB02;
  color: #FFF;
}
.cookie-modal .modal-category-desc {
  font-size: 0.99rem;
  color: #6A7883;
  margin-bottom: 5px;
  font-weight: 400;
}

/* Make Essential always enabled & disabled style */
.cookie-switch.essential .slider {
  background: #CBD5DF !important;
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-switch.essential .slider:before {
  background: #FDCB02;
}

/* ========== MICRO-INTERACTIONS ========== */
.card, .btn-primary, .btn-secondary, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.18s, color 0.13s, transform 0.18s;
}
main a {
  transition: color 0.18s;
}

/* ========== ACCESSIBILITY ========== */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #FDCB02;
  outline-offset: 2px;
}

/* ========== UTILITY HELPERS ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0 !important; }

/* ========== HIDE/SHOW HELPERS (for js) ========== */
.hide {
  display: none !important;
}

/* ========== PRINT SUPPORT ========== */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body, .container, .content-wrapper, .section {
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
  }
}
