*,*::before,*::after { box-sizing: border-box; }


a { color: #00438e; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.nordic-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.nordic-header {
  background: #00438e;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nordic-header .nordic-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.nordic-logo img { height: 44px; width: auto; display: block; }
.nordic-langnav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; }
.nordic-langnav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px;
  text-transform: uppercase;
}
.nordic-langnav a.active { background: #fff; color: #00438e; border-color: #fff; }
.nordic-langnav a:hover { background: #fff; color: #00438e; border-color: #fff; text-decoration: none; }

.nordic-hero {
  background: linear-gradient(135deg, #00438e 0%, #002954 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.nordic-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/images/slaidid/Survevalu.jpg');
  background-size: cover; background-position: center;
  opacity: 0.15; mix-blend-mode: lighten;
}
.nordic-hero .nordic-wrap { position: relative; z-index: 1; }
.nordic-hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nordic-hero .lead {
  font-size: clamp(17px, 1.8vw, 21px);
  opacity: 0.95;
  margin: 0 0 28px;
  max-width: 720px;
  font-weight: 300;
}
.nordic-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.nordic-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nordic-cta {
  display: inline-block;
  background: #ff7a00;
  color: #fff;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.nordic-cta:hover { background: #e56b00; color: #fff; text-decoration: none; }
.nordic-cta.secondary { background: transparent; border: 2px solid #fff; margin-left: 8px; }
.nordic-cta.secondary:hover { background: #fff; color: #00438e; }

section.nordic-section { padding: 60px 0; }
section.nordic-section.alt { background: #f5f7fa; }
section.nordic-section h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  margin: 0 0 14px;
  color: #00438e;
  text-align: center;
}
section.nordic-section .section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: #555;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,67,142,0.12);
  border-color: #00438e;
}
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #00438e;
}
.service-card .keyword {
  display: inline-block;
  font-size: 12px;
  background: #e8eef7;
  color: #00438e;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-card p { margin: 0 0 14px; color: #555; font-size: 15px; }
.service-card a { font-weight: 700; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.why-item {
  text-align: center;
  padding: 0 10px;
}
.why-item .why-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  background: #00438e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
}
.why-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #00438e; }
.why-item p { color: #555; font-size: 14px; margin: 0; }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  color: #00438e;
  background: #f9fafc;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 4px 20px 18px; margin: 0; color: #444; font-size: 15px; }

.contact-card {
  background: #fff;
  border-left: 5px solid #00438e;
  padding: 28px 32px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  max-width: 720px;
  margin: 0 auto;
}
.contact-card h3 { color: #00438e; font-size: 22px; margin: 0 0 12px; }
.contact-card address { font-style: normal; line-height: 1.8; }
.contact-card a.tel { font-weight: 900; font-size: 22px; color: #00438e; }

.cert-row {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.cert-row img { height: 78px; width: auto; }

.nordic-footer {
  background: #1a2940;
  color: #b8c5da;
  padding: 38px 0 20px;
  font-size: 14px;
  margin-top: 30px;
}
.nordic-footer a { color: #fff; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-cols h4 { color: #fff; font-size: 14px; text-transform: uppercase; margin: 0 0 12px; letter-spacing: 0.5px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid #2a3a55;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #8497b8;
}

@media (max-width: 600px) {
  .nordic-hero { padding: 50px 0 40px; }
  .nordic-cta.secondary { margin-left: 0; margin-top: 8px; display: block; text-align: center; }
  .nordic-langnav ul { gap: 4px; }
  .nordic-langnav a { padding: 4px 8px; font-size: 12px; }
}
/* ========================================================================
   Nordic landing pages — Joomla template integration overrides
   Updated 2026-05-04 (post-audit)
   Strategy: hide outer Joomla chrome that doesn't fit the Nordic flow,
   keep article-internal header/langnav/footer (provides language-correct UX).
   ======================================================================== */

/* 1. Hide Joomla home-page modules (now also blocked at template level — kept as safety) */
body.vm-nordic #homeCoverModule,
body.vm-nordic #homeCover,
body.vm-nordic #menuBlocks,
body.vm-nordic #homeContent {
  display: none !important;
}

/* 2. Hide outer Joomla service nav (#mainMenu shows ET-localized site nav e.g. "Saostussäiliöt"
      which is off-strategy on Nordic pages). Keep #langMenu visible for cross-language UX. */
body.vm-nordic #hdr #mainMenu,
body.vm-nordic #hdr #menuToggle {
  display: none !important;
}

/* 3. Hide outer Joomla footer (article body provides language-specific nordic-footer) */
body.vm-nordic #ftr,
body.vm-nordic #socialBlock,
body.vm-nordic #articleBottom,
body.vm-nordic #preSkewFirst,
body.vm-nordic #preSkewSecond,
body.vm-nordic #blueOverlay {
  display: none !important;
}

/* 4. Make article container full-width (Joomla's #mainContent has padding/max-width by default) */
body.vm-nordic #mainContent.vm-nordic {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
}
body.vm-nordic #mainContent.vm-nordic .cnt-wrap {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* 5. Top spacing — Joomla #hdr is sticky/absolute, leave room so hero isn't hidden under it */
body.vm-nordic #mainContent.vm-nordic {
  padding-top: 90px;
}
body.vm-nordic .nordic-hero {
  margin-top: 0;
  padding-top: 60px;
}

/* 6. Outer header tweaks — make Joomla #hdr blend with Nordic aesthetic (compact + brand color) */
body.vm-nordic #hdr {
  background: rgba(0,67,142,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* 7. Wrapper that Joomla appends after vm-nordic component — ensure nothing extra slips through */
body.vm-nordic #mainWrap > *:not(#hdr):not(#mainContent) {
  display: none !important;
}
