/* HiFIT Scandinavia — site styles */
:root {
  --blue: #004b8d;
  --blue-dark: #003563;
  --blue-soft: #e8f0f8;
  --grey: #b8b9bc;
  --ink: #16212c;
  --text: #2c3844;
  --muted: #5d6973;
  --line: #dde2e7;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --night: #0d1a26;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 33, 50, .06), 0 6px 24px rgba(16, 33, 50, .08);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid #5aa0e0; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { width: 128px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: .95rem; }
.site-nav a:hover { background: var(--bg-alt); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.lang-switch { margin-left: 8px; border: 1px solid var(--line); font-size: .8rem !important; letter-spacing: .06em; padding: 5px 10px !important; }
.menu-toggle { display: none; align-items: center; gap: 10px; font: 600 .95rem var(--font); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .site-nav { display: none; position: absolute; top: 64px; right: 24px; width: min(300px, calc(100vw - 48px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 10px 14px 16px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 8px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); }
  .lang-switch { align-self: flex-start; margin: 10px 0 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 8px; font-weight: 650; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--blue); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.arrow::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .15s; }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 18, 30, .88) 0%, rgba(8, 18, 30, .6) 55%, rgba(8, 18, 30, .25) 100%); }
.hero .wrap { width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: rgba(255, 255, 255, .88); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.hero .eyebrow { color: #8cc1f0; }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.anchor-nav a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; font-weight: 560; color: var(--ink); }
.anchor-nav a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .media img, .split .media video { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media.plain img { box-shadow: none; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 2; }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--blue); line-height: 1.1; font-weight: 780; }
.stat span { display: block; color: var(--muted); font-size: .95rem; hyphens: auto; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; color: inherit; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-alt); }
.card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 650; color: var(--blue); }
.card.card-contain img { object-fit: contain; padding: 20px; background: #fff; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.logos li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logos img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
ul.logos { padding: 0; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.08rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; }
.faq .answer img { border-radius: 8px; border: 1px solid var(--line); margin: 8px 0 16px; }

/* ---------- Products ---------- */
.product { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding: 72px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.product .shot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.product .shot img { margin: 0 auto; max-height: 380px; width: auto; }
.product .model { font-size: .9rem; font-weight: 700; letter-spacing: .1em; color: var(--blue); text-transform: uppercase; }
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .96rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--ink); width: 48%; padding-right: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 16px; }
.thumbs a { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.note { font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; } }

.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.parts li { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.parts img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.parts div { padding: 10px 12px 12px; font-size: .92rem; line-height: 1.35; }
.parts b { display: block; color: var(--ink); font-weight: 620; }
.parts span { color: var(--muted); font-size: .84rem; }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.service:first-child { border-top: 0; padding-top: 0; }
.service img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service .tag { font-weight: 600; color: var(--blue); margin-bottom: .6em; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- References ---------- */
.industry { padding: 72px 0; border-top: 1px solid var(--line); }
.industry:first-child { border-top: 0; }
.industry-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 48px; margin-bottom: 28px; }
.clients { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.clients li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.clients li span { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: var(--bg-alt); position: relative; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .industry-grid { grid-template-columns: 1fr; gap: 24px; } .industry { padding: 56px 0; } }

/* ---------- Downloads ---------- */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; list-style: none; padding: 0; }
.docs a, .docs .doc { display: block; text-decoration: none; color: inherit; }
.docs img { aspect-ratio: 210 / 297; object-fit: cover; object-position: top; width: 100%; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .2s; }
.docs a:hover img { transform: translateY(-3px); }
.docs b { display: block; margin-top: 12px; color: var(--ink); line-height: 1.35; }
.docs span { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
.docs .dl { color: var(--blue); font-weight: 600; }

/* ---------- Research / news ---------- */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.post time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.post h3 { margin-top: 6px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
a.contact-card:hover { box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.contact-card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 2px; word-break: break-word; }
.contact-card span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video video { width: 100%; aspect-ratio: 16 / 9; }
.video-caption { font-size: .92rem; color: var(--muted); margin-top: 10px; }

/* ---------- CTA + footer ---------- */
.cta { background: var(--blue); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 60ch; }
.cta .btn { flex-shrink: 0; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); font-size: .95rem; padding: 64px 0 28px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { background: #fff; padding: 10px 12px; border-radius: 6px; margin-bottom: 18px; width: 150px; }
.footer-grid p { max-width: 42ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 10, 16, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox img { max-height: calc(100vh - 150px); max-width: 100%; width: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #e6ebf0; margin-top: 14px; text-align: center; max-width: 70ch; font-size: .95rem; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.industry-grid .media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media.showcase { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.media.showcase img { box-shadow: none; max-height: 420px; width: auto; margin: 0 auto; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-items: start; }
.person img { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--bg-alt); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--blue); font-weight: 600; margin-bottom: .7em; }
.person p { font-size: .96rem; }
.person-contact { margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; } .person img { width: 96px; } }
.team-mini { display: flex; justify-content: center; gap: 20px; }
.team-mini img { width: min(200px, 42%); aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
