/* Reset and 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; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; }

/* FONT LOAD (not CSS import, expects fonts via HTML <link> tags, fallback provided) */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #212D44;
  background: #F0F2F5;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #212D44;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
p, ul, ol { font-size: 1rem; line-height: 1.7; margin-bottom: 16px; }
strong, b { font-weight: 700; color: #212D44; }

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1rem; }
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Scandinavian Clean Core Layout Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(33,45,68,0.03);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -12px;
}
.card {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(33,45,68,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(25,123,130,0.10);
  transform: translateY(-4px);
}
.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;
  padding: 20px;
  background: #F8FBFB;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(33,45,68,0.04);
  margin-bottom: 20px;
  color: #212D44;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 992px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .section { padding: 32px 8px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}

/* Header & Navigation */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 12px 0 rgba(33,45,68,0.10);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: relative;
}
.navbar > a img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: #212D44;
  font-size: 1rem;
  padding: 8px 4px;
  transition: color 0.18s;
  border-radius: 6px;
  position: relative;
}
.nav-links a:not(.cta-btn):hover,
.nav-links a:not(.cta-btn):focus {
  color: #197278;
  background: #F0F2F5;
}

.cta-btn {
  background: #197278;
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: bold;
  box-shadow: 0 2px 8px 0 rgba(33,45,68,0.09);
  border: none;
  transition: background 0.15s, box-shadow 0.16s, color 0.2s;
  cursor: pointer;
  display: inline-block;
  margin-left: 12px;
  letter-spacing: 0.05em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #155E6A;
  color: #FFFFFF;
  box-shadow: 0 8px 24px 0 rgba(25,123,130,0.15);
}

/* Hamburger menu */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #197278;
  font-size: 2rem;
  padding: 8px 12px;
  display: none;
  cursor: pointer;
  border-radius: 8px;
  z-index: 1101;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover {
  background: #EEF3F4;
}
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,45,68,0.95);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.8, .2, .2, 1);
  display: flex;
  flex-direction: column;
  z-index: 1400;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #FFF;
  background: none;
  border: none;
  align-self: flex-end;
  padding: 24px 32px 8px 0;
  cursor: pointer;
  z-index: 1402;
}
.mobile-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #FFFFFF;
  font-size: 1.25rem;
  padding: 12px 0;
  font-weight: 500;
  border-radius: 8px;
  min-width: 180px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #197278;
  color: #FFF;
  padding-left: 12px;
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}

/* Hero and Preview Sections on Home */
.hero {
  background: linear-gradient(105deg,#FFFFFF 64%,#F8FBFB 100%);
  padding: 48px 0 32px 0;
  min-height: 410px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.text-section {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
@media (max-width: 768px) {
  .hero { padding: 32px 0 20px 0; min-height: 0; }
  .text-section { max-width: none; }
}

.features, .services-preview, .about-preview, .testimonials, .contact-preview {
  margin-bottom: 60px;
}
.features .feature-grid, .features-about .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
}
.feature, .feature-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 32px 28px 28px 28px;
  box-shadow: 0 2px 8px 0 rgba(33,45,68,0.06);
  flex: 1 1 260px;
  min-width: 240px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.feature img { width: 48px; height: 48px; margin-bottom: 16px; }
.feature h3 { font-size: 1.125rem; margin-bottom: 10px; }
.feature p { color: #4B5B73; font-size: 1rem; }
.feature:hover {
  box-shadow: 0 6px 24px 0 rgba(25,123,130,0.09);
}
@media (max-width: 900px) {
  .features .feature-grid, .features-about .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.service-list {
  margin: 24px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.service-list li {
  padding-left: 20px;
  position: relative;
}
.service-list li:before {
  content: "\2022";
  color: #19ABC2;
  position: absolute;
  left: 0;
  font-size: 1.18em;
  top: 0;
}

/* Blog List */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-preview {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(33,45,68,0.05);
  padding: 24px 18px 18px 18px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  min-width: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.16s;
}
.blog-preview:hover {
  box-shadow: 0 6px 24px 0 rgba(25,123,130,0.12);
  transform: translateY(-2px);
}
.blog-tag {
  display: inline-block;
  color: #197278;
  background: #EFF8F8;
  border-radius: 20px;
  font-size: 0.92rem;
  padding: 3px 14px;
  margin-bottom: 3px;
  margin-right: 5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.blog-preview a {
  color: #19ABC2;
  font-weight: 500;
  margin-top: 10px;
  transition: color 0.18s;
}
.blog-preview a:hover { color: #197278; text-decoration: underline; }

.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .blog-list { flex-direction: column; gap: 18px; }
}

/* Card-like Content (team, service-overview, etc.) */
.service-overview-grid, .team-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-block, .team-member {
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(33,45,68,0.06);
  padding: 28px 24px;
  flex: 1 1 320px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.service-block:hover, .team-member:hover {
  box-shadow: 0 6px 24px 0 rgba(25,123,130,0.10);
  transform: translateY(-2px);
}
@media (max-width: 800px) {
  .service-overview-grid, .team-members-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* List as features (generic) */
ul, ol {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 9px;
  padding-left: 20px;
  position: relative;
  color: #374360;
}
ul li:before {
  content: "\25CF";
  position: absolute;
  left: 0;
  color: #19ABC2;
  font-size: 0.9em;
  top: 2px;
}

/* Testimonial Styles */
.testimonials {
  background: #F8FBFB;
  border-radius: 16px;
}
.testimonial-card {
  background: #FFFFFF;
  border-left: 5px solid #19ABC2;
  color: #212D44;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-style: italic;
  box-shadow: 0 2px 10px 0 rgba(33,45,68,0.03);
  margin-bottom: 20px;
  border-radius: 12px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 16px rgba(25,123,130,0.08);
}
.testimonial-card blockquote {
  color: #073046;
  font-style: italic;
  font-size: 1.085rem;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 7px 0;
}
.testimonial-card .client-info {
  font-size: 0.97rem;
  color: #197278;
  font-style: normal;
  font-weight: 600;
  padding-left: 5px;
}

@media (max-width: 600px) {
  .testimonial-card { padding: 18px 10px; }
  .about-preview, .testimonials, .service-overview-grid, .team-members-list { margin-bottom: 36px; }
}

/* Footer */
footer {
  background: #212D44;
  color: #F0F2F5;
  padding: 48px 0 16px 0;
  margin-top: 32px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #F8FBFB;
  opacity: 0.85;
  font-size: 1rem;
  transition: opacity 0.13s, color 0.13s;
}
.footer-nav a:hover { opacity: 1; color: #19ABC2; }

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-contact img { height: 54px; margin-right: 20px; }
.footer-contact div {
  font-size: 1rem;
  color: #F0F2F5;
  opacity: 0.88;
  line-height: 1.7;
}
.footer-contact strong {
  color: #FFF;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}
.footer-social a img { height: 28px; filter: brightness(0) invert(1) grayscale(0.25); opacity: 0.84; transition: opacity 0.16s; }
.footer-social a:hover img { opacity: 1; }
.footer-disclaimer {
  text-align: center;
  font-size: 0.90rem;
  opacity: 0.65;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .footer-contact { flex-direction: column; align-items: center; gap: 14px; }
  .footer-contact img { margin-right: 0; margin-bottom: 12px; }
}

/* Form and Contact info block */
.contact-info-block {
  background: #F8FBFB;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 25px;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info-block a {
  color: #19ABC2;
  text-decoration: underline;
  transition: color 0.15s;
}
.contact-info-block a:hover { color: #197278; }
.contact-map-embed {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}

/* CTA section */
.cta-section {
  background: #F8FBFB;
  border-radius: 14px;
  padding: 36px 0 32px 0;
  margin-bottom: 32px;
  text-align: center;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #FFFFFF;
  color: #212D44;
  box-shadow: 0 -1px 16px rgba(33,45,68,0.11);
  padding: 28px 24px 24px 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-text {
  font-size: 1rem;
  color: #212D44;
  text-align: center;
  max-width: 600px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  padding: 10px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #EFF7FB;
  color: #197278;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #197278;
  color: #FFF;
}
.cookie-btn.accept:hover {
  background: #155E6A;
}
.cookie-btn.reject { color: #197278; background: #F8FBFB; }
.cookie-btn.reject:hover { background: #E5EFF0; }
.cookie-btn.settings {
  border: 1px solid #19ABC2;
  background: #FFFFFF;
  color: #19ABC2;
}
.cookie-btn.settings:hover { background: #E0F5F7; }

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,45,68,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2050;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-card {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 rgba(33,45,68,0.20);
  padding: 32px 28px 26px 28px;
  width: 100%;
  max-width: 440px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #212D44;
}
.cookie-modal-card .modal-close-btn {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: #19ABC2;
  font-size: 1.55rem;
  cursor: pointer;
  z-index: 1;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #212D44;
}
.cookie-toggle {
  appearance: none;
  width: 44px; height: 24px;
  background: #E6ECEF;
  border-radius: 12px;
  position: relative;
  outline: none;
  margin-right: 0;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #19ABC2;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  display: block;
  height: 18px; width: 18px;
  top: 3px; left: 3px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  transition: left 0.19s;
}
.cookie-toggle:checked::before {
  left: 23px;
  background: #FFF;
}
.cookie-category.essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal-card .modal-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-modal-card .cookie-btn {
  min-width: 110px;
  font-size: 1rem;
}
@media (max-width: 500px) {
  .cookie-modal-card { padding: 20px 5vw 15px 5vw; }
}

/* Animations & Microinteractions */
.cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .service-block, .team-member, .feature, .testimonial-card {
  transition: box-shadow 0.15s, background 0.18s, color 0.15s, transform 0.14s;
}

/* Utility Classes */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.bg-white { background: #FFF !important; }
.bg-accent { background: #19ABC2 !important; color: #FFF !important; }

/* Responsive spacing - between sections/cards */
@media (max-width: 500px) {
  .section, .about-preview, .testimonials, .services-preview { padding: 18px 2vw; margin-bottom: 38px; }
  .card, .service-block, .team-member, .testimonial-card { padding: 18px 7px; }
}

/* Accessibility helper for focus */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-toggle:focus, .cookie-btn:focus {
  outline: 2px solid #19ABC2;
  outline-offset: 1px;
  z-index: 10;
}

/* Hide visually but accessible (if needed for JS cookie modal) */
.visually-hidden {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
