/* ==== 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,
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F7F7F7;
  color: #223B57;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #138A72;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #223B57;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ==== VARIABLES (color fallback for old browsers) ==== */
:root {
  --color-primary: #223B57;
  --color-secondary: #138A72;
  --color-accent: #F7F7F7;
  --color-white: #fff;
  --color-grey: #E6EBEF;
  --color-shadow: rgba(34, 59, 87, 0.05);
  --color-shadow-hover: rgba(34, 59, 87, 0.08);
  --radius: 12px;
  --radius-sm: 7px;
  --transition-fast: 0.2s cubic-bezier(0.4,0.2,0.2,1);
}

/* ==== TYPOGRAPHY & HEADINGS ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #223B57;
  margin-bottom: 14px;
}
h1 { font-size: 2.4rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
.subheadline {
  font-size: 1.15rem;
  color: #138A72;
  margin-bottom: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
p, li, ul {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #223B57;
}
ul {
  list-style: disc inside;
  padding-left: 0;
}
strong, b {
  font-weight: 700;
}
em {
  color: #138A72;
  font-style: normal;
}
blockquote {
  font-style: italic;
  color: #223B57;
  background: #F7F7F7;
  border-left: 4px solid #138A72;
  margin: 0 0 8px 0;
  padding: 8px 16px;
  border-radius: 4px;
}
cite {
  font-size: 0.97rem;
  color: #7a889c;
  display: block;
  margin-top: 2px;
}

/* ==== LAYOUT CONTAINERS ==== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 40px 26px 32px 26px;
  margin-bottom: 40px;
}

/* ==== SECTION SPACING (MANDATORY) ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== HEADER ==== */
header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid #E6EBEF;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 20;
}
header .container {
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
  align-items: center;
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 23px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #223B57;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: #E6EBEF;
  color: #138A72;
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 26px;
  margin-left: 14px;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  letter-spacing: 0.07em;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  display: inline-block;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #223B57;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 20px var(--color-shadow-hover);
}

/* ==== MOBILE HEADER & MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-white);
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 30;
  position: fixed;
  top: 18px;
  right: 20px;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background var(--transition-fast);
}
.mobile-menu-toggle:focus {
  background: #E6EBEF;
  outline: 2px solid #223B57;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,59,87, 0.97);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s, opacity 0.2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 15px 18px 5px auto;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #138A72;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 20px 36px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.19rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 14px 0 9px 4px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: background var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #138A72;
  color: #F7F7F7;
}

/* ==== MAIN SECTIONS & FLEXBOX LAYOUTS ==== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 31px;
  align-items: stretch;
  margin-top: 21px;
}
.feature-item {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 200px;
  min-width: 200px;
  max-width: 295px;
  padding: 28px 22px 20px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
}
.feature-item img {
  width: 36px; height: 36px;
  margin-bottom: 10px;
}
.feature-item:hover {
  box-shadow: 0 8px 30px var(--color-shadow-hover);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 19px;
  padding-left: 12px;
}
.service-list li {
  padding: 17px 18px 16px 15px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px var(--color-shadow);
  margin-bottom: 15px;
  font-size: 1.01rem;
  line-height: 1.6;
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 20px var(--color-shadow);
  padding: 27px 26px 22px 26px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 350px;
  color: #223B57;
  transition: box-shadow 0.21s, transform 0.16s;
}
.testimonial-card blockquote {
  border-left: 4px solid #138A72;
  background: transparent;
  color: #223B57;
  font-size: 1.07rem;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 32px var(--color-shadow-hover);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 18px var(--color-shadow);
  transition: box-shadow 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 35px var(--color-shadow-hover);
}

.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;
  margin-bottom: 24px;
}

/* ==== SPECIAL CONTENTS ====*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 1.09rem;
}
.contact-info a { text-decoration: underline; }

/* ==== FOOTER ==== */
footer {
  background: #223B57;
  color: #fff;
  border-top: 1px solid #E6EBEF;
  padding: 36px 0 32px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
footer nav a {
  color: #fff;
  opacity: 0.87;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 6px 2px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
footer nav a:hover, footer nav a:focus {
  background: #138A72;
  color: #fff;
}
footer img {
  height: 44px;
}
footer p {
  font-size: 0.98rem;
  opacity: 0.7;
  margin-top: 12px;
}

/* ==== COOKIE CONSENT BANNER ==== */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: #fff;
  color: #223B57;
  box-shadow: 0 -3px 22px var(--color-shadow);
  padding: 23px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  border-radius: 18px 18px 0 0;
  font-size: 1.05rem;
  animation: slideInBanner 0.43s;
}
@keyframes slideInBanner {
  from { transform: translateY(120%); opacity: 0.2; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 2 1 200px;
  margin-bottom: 7px;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  background: #F7F7F7;
  color: #223B57;
  border: 1px solid #E6EBEF;
  padding: 7px 20px 8px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 3px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border var(--transition-fast);
}
.cookie-btn.accept {
  background: #138A72;
  color: #fff;
  border: 1px solid #138A72;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #223B57;
  border: 1px solid #223B57;
}
.cookie-btn.settings {
  background: #E6EBEF;
  color: #223B57;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  border: 1px solid #138A72;
  color: #138A72;
}
.cookie-btn.reject {
  background: #fff;
  color: #223B57;
  border: 1px solid #E6EBEF;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E6EBEF;
  color: #138A72;
}
/* ==== COOKIE MODAL ==== */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 121;
  background: rgba(34,59,87,0.76);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 455px;
  width: 94%;
  padding: 35px 26px 28px 26px;
  box-shadow: 0 6px 38px rgba(34,59,87,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInModal 0.33s;
}
@keyframes fadeInModal {
  from { transform: scale(.92); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #E6EBEF;
  font-size: 1rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  accent-color: #138A72;
}
.cookie-category.essential label,
.cookie-category.essential input { opacity: 0.5; pointer-events: none; }
.cookie-modal-close {
  background: none;
  color: #223B57;
  border: none;
  font-size: 1.4rem;
  position: absolute;
  top: 15px; right: 19px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  background: #E6EBEF;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 17px;
  justify-content: flex-end;
}

/* ==== FORMS ==== */
input[type="text"], input[type="email"], textarea {
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #E6EBEF;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
  background: #fff;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid #138A72;
  outline: none;
  box-shadow: 0 2px 10px var(--color-shadow);
}
button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.cta-btn, .cookie-btn {
  user-select: none;
  will-change: background, transform;
}
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:active, .testimonial-card:active, .feature-item:active {
  transform: scale(.98);
}

/* ==== MEDIA QUERIES / RESPONSIVENESS ==== */
@media (max-width: 990px) {
  .features-grid,
  .testimonials {
    flex-wrap: wrap;
    gap: 18px;
  }
  .feature-item { max-width: 400px; }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  body { font-size: 15px; }
  .container { padding: 0 10px; }
  .content-wrapper { padding: 29px 9px 20px 9px; }
  section { padding: 32px 7px; }
  header .container {
    flex-direction: row;
    gap: 7px 14px;
    min-height: 65px;
  }
  header nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .features-grid {
    flex-direction: column;
    gap: 21px;
  }
  .service-list li {
    font-size: 1rem;
    padding: 12px 10px 11px 9px;
  }
  .card-container, .content-grid, .testimonials { flex-direction: column; gap: 17px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  #cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 6px;
    font-size: 0.99rem;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.01rem; }
  .content-wrapper { padding: 15px 2px 12px 2px; }
  .feature-item { padding: 15px 7px 11px 7px; }
}

/* ==== UTILITY CLASSES ==== */
.hide { display: none!important; }
.mt-2 { margin-top:8px!important; }
.mt-4 { margin-top:16px!important; }
.mb-2 { margin-bottom:8px!important; }
.mb-4 { margin-bottom:16px!important; }
.mb-6 { margin-bottom:24px!important; }

/* ==== SCROLLBAR / SELECTION ==== */
::-webkit-scrollbar {
  width: 9px;
  background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
  background: #E6EBEF;
  border-radius: 6px;
}
::selection {
  background: #D1F5EB;
  color: #223B57;
}

/* ==== HELPER CLASSES FOR FLEX SPACING MANDATE ==== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.flex-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* ========== END SPECTRAGLEAM 'SCANDINAVIAN CLEAN' UI ========== */