/*
Theme Name: Integria AS
Theme URI: https://integria-as.no/
Author: Integria AS
Author URI: https://integria-as.no/
Description: Custom one-page theme for Integria AS - "Vi ser individet. Vi bygger mestring." All section text is editable from Appearance > Customize.
Version: 1.22.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: integria
*/

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

:root {
  --navy: #0f2040;
  --navy-light: #1a3260;
  --gold: #c8973a;
  --gold-light: #e8b85a;
  --cream: #f7f3ed;
  --cream-dark: #ede8e0;
  --white: #ffffff;
  --text-dark: #0f2040;
  --text-mid: #4a5568;
  --text-light: #8a9ab0;
  --border: rgba(15,32,64,0.12);
  --nav-h: 76px;            /* ← navbar height knob (logo + news ticker follow it) */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* overflow-x must be `clip`, not `hidden`: `hidden` turns this into a scroll
   container, which silently stops `position: sticky` descendants (the
   audience pages' jump bar) from sticking. `hidden` stays first as a fallback
   for browsers without `clip`. */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
}

/* -- NAV -- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }
.nav-ikt {
  white-space: nowrap;
  font-size: 0.82rem !important;
  font-weight: 500;
  color: var(--navy) !important;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.nav-ikt:hover { border-color: var(--gold); background: rgba(200,151,58,0.08); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin: -8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }

/* -- HERO -- */
.hero {
  min-height: 640px;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 136px 5% 92px;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,151,58,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
/* Let grid/flex items shrink so long words wrap instead of overflowing on mobile. */
.hero-text, .hero-visual, .hero-card, .service-card, .team-card, .about-content, .about-image-block { min-width: 0; }
.hero h1, .service-card h3, .service-card p { overflow-wrap: break-word; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-visual {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.5rem;
  color: var(--white);
}
.hero-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hero-card-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-card-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.hero-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hero-quote {
  background: var(--gold);
  border-radius: 16px;
  padding: 1.75rem;
  color: var(--white);
}
.hero-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}
.hero-since {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--gold);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0.25rem 0;
}
.hero-since-dot { width: 7px; height: 7px; border-radius: 50%; background: #57c75e; flex-shrink: 0; }

/* -- HERO NEWS TICKER (right-to-left) -- */
.hero-ticker {
  position: absolute;
  left: 0; right: 0; top: var(--nav-h);
  z-index: 3;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.7rem 5%;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.hero-ticker-label {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gold);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ticker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: tickerPulse 1.6s ease-in-out infinite;
}
.ticker-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
}
.hero-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 0 2.5rem;
  display: inline-flex; align-items: center;
}
.ticker-item::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  margin-right: 1.5rem;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-dot { animation: none; }
}

/* -- HERO PARTNERS (client logos, right-to-left) -- */
.hero-partners {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.55rem 5%;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.hero-partners-label {
  flex-shrink: 0;
  color: var(--text-mid);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.partners-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.partners-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: partnersScroll 28s linear infinite;
}
.hero-partners:hover .partners-track { animation-play-state: paused; }
.partner-logo {
  height: 44px; width: auto; display: block;
  margin: 0 2.5rem;
  opacity: 0.9; transition: opacity 0.2s;
}
.partner-logo:hover { opacity: 1; }
@keyframes partnersScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .partners-track { animation: none; } }

/* -- HERO QUICK LINKS (Nyttige lenker, under the intro text) -- */
.hero-links { margin-bottom: 1.75rem; }
.hero-links-label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.hero-links-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,184,90,0.55);
  color: var(--white);
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.hero-link-icon { display: flex; flex-shrink: 0; }
.hero-link-icon svg { width: 18px; height: 18px; fill: var(--gold-light); transition: fill 0.2s; }
.hero-link:hover .hero-link-icon svg { fill: var(--white); }
.hero-link-tag {
  background: var(--gold);
  color: var(--navy);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 50px;
  padding: 0.12rem 0.5rem;
  margin-left: 0.1rem;
}
.hero-link-new:hover .hero-link-tag { background: var(--navy); color: var(--gold-light); }
.hero-link-arrow { transition: transform 0.2s; opacity: 0.8; }
.hero-link:hover .hero-link-arrow { transform: translateX(3px); opacity: 1; }

/* -- AUDIENCE PAGES (/for-nav, /for-bedrifter) -- */
.aud-hero {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  /* The nav is fixed, so its height has to be cleared explicitly — a bare
     clamp() collapses below --nav-h on phones and hides the badge. */
  padding: calc(var(--nav-h) + clamp(14px, 1.8vw, 22px)) 5% clamp(18px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: start;
}
.aud-hero-inner { max-width: 720px; }
.aud-hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
.aud-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.aud-hero h1 em { font-style: italic; color: var(--gold-light); }
.aud-hero-desc { font-size: 1rem; line-height: 1.65; max-width: 600px; }
.aud-hero-direct {
  text-align: right;
  border: 1px solid rgba(232,184,90,0.4);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  background: rgba(255,255,255,0.05);
}
.aud-hero-direct-label {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.aud-hero-direct a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(232,184,90,0.45);
  transition: color 0.2s, border-color 0.2s;
}
.aud-hero-direct a + a { margin-top: 0.3rem; }
.aud-hero-direct a:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
.aud-hero-direct a svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }
.aud-hero-direct-row { display: flex; flex-direction: column; align-items: flex-end; }
.aud-hero-direct .aud-hero-direct-phone { font-weight: 500; }
.aud-hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.35); }
.aud-hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.aud-points { background: var(--white); }
.aud-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.aud-point-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.aud-point h2 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.aud-point p { font-size: 0.95rem; line-height: 1.8; color: var(--text-mid); }

.aud-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  background: var(--white);
  padding: 20px 5%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.aud-switch-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid);
}
.aud-switch-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.aud-switch-links a {
  font-size: 0.95rem; color: var(--navy);
  text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.aud-switch-links a:hover { color: var(--gold); }

.aud-cta { background: var(--white); text-align: center; }
.aud-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300; color: var(--navy);
  margin-bottom: 0.9rem;
}
.aud-cta p { color: var(--text-mid); max-width: 520px; margin: 0 auto 2rem; line-height: 1.8; }
.aud-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
/* .btn-outline is white-on-navy by default; this band is white. */
.aud-cta .btn-outline { color: var(--navy); border-color: var(--border); }
.aud-cta .btn-outline:hover { border-color: var(--navy); background: rgba(15,32,64,0.04); }

/* -- FOR NAV: jump list (netped-style "on this page") -- */
.aud-jump {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 13px 5%;
  /* Sticks directly under the fixed site nav, so the section links stay
     reachable the whole way down. */
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
}
.aud-jump-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-light);
}
.aud-jump a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.aud-jump a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* -- FOR NAV: the founding question, now a lead-in to the method -- */
.aud-premise-label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.aud-premise-q {
  font-family: var(--font-display);
  font-size: 1.2rem; font-style: italic; font-weight: 300;
  line-height: 1.45; color: var(--white);
  margin-bottom: 1.5rem;
}

/* -- FOR NAV: HKM method + quote -- */
.aud-method {
  background: var(--navy);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem; align-items: center;
}
.aud-method-text .section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.9rem; color: var(--white); }
.aud-method-text > p { font-size: 0.98rem; line-height: 1.8; color: rgba(255,255,255,0.72); }
.aud-quote {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
  padding: 1.75rem;
}
.aud-quote p {
  font-family: var(--font-display);
  font-size: 1.1rem; font-style: italic; font-weight: 300;
  line-height: 1.6; color: var(--navy);
}

/* -- FOR NAV: offerings as compact two-column lists --
   Sixteen icon cards made this page roughly twice as tall as it needed to be;
   a NAV case worker is scanning for a name, not browsing tiles. -- */
.aud-offers { background: var(--cream); }
.aud-offers + .aud-offers { background: var(--white); }
.aud-offers .section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  text-align: center; max-width: 620px; margin: 0 auto 1.5rem;
}
.aud-offers-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 1180px; margin: 0 auto;
}
/* Alternate which side the diagram sits on, so the two groups do not read
   as one long column. */
.aud-offers + .aud-offers .aud-offers-figure { order: 2; margin: 0 0 0 3rem; }  /* oppfølging: right only */
.aud-offers-figure {
  margin: 2.25rem 0 0 2.5rem;   /* språk: a little right and down */
  /* The list is much taller than the diagram; sticking it to the top keeps it
     on screen while the offerings scroll past, instead of leaving dead space. */
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.aud-offers-figure img { width: 100%; height: auto; display: block; }
.aud-offer-list { display: grid; grid-template-columns: 1fr; }
.aud-offer-row {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.aud-offer-row h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.05rem;
}
.aud-offer-row p { font-size: 0.85rem; line-height: 1.35; color: var(--text-mid); }

/* -- FOR NAV: Bedriftslos bridge -- */
.aud-los { background: var(--cream); color: var(--text-mid); }
.aud-los-head { text-align: center; max-width: 720px; margin: 0 auto 1.5rem; }
.aud-los-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300; color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.aud-los-head h2 sup { font-size: 0.5em; vertical-align: super; }
.aud-los-head p { line-height: 1.75; font-size: 0.98rem; }
.aud-los-figure { margin: 0 auto; max-width: 900px; }
.aud-los-figure img { width: 100%; height: auto; display: block; }

/* -- BEDRIFTSLOS PAGE (/bedriftslos) -- */
.bl-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.bl-wordmark sup { font-size: 0.45em; vertical-align: super; }

.bl-quote-band {
  background: var(--cream);
  text-align: center;
  padding: 38px 5%;
}
.bl-quote-band blockquote { max-width: 860px; margin: 0 auto; }
.bl-quote-band blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300; font-style: italic; line-height: 1.45;
  color: var(--navy);
}
.bl-quote-sub {
  max-width: 620px; margin: 1.1rem auto 0;
  font-size: 0.95rem; line-height: 1.7; color: var(--text-mid);
}

.bl-core { background: var(--white); padding-block: 38px; text-align: center; }
.bl-core .section-title { margin-bottom: 0.7rem; }
.bl-core-intro { color: var(--text-mid); max-width: 620px; margin: 0 auto 1.8rem; }
.bl-gap {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem; align-items: center;
  max-width: 880px; margin: 0 auto 1.8rem;
}
.bl-gap-side {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  min-height: 82px;
  display: flex; align-items: center; justify-content: center;
}
.bl-gap-side span {
  font-family: var(--font-display);
  font-size: 1.02rem; font-style: italic;
  color: var(--navy); line-height: 1.4;
}
.bl-gap-mind {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  position: relative; padding: 0 0.4rem;
}
.bl-gap-mind::before, .bl-gap-mind::after {
  content: ''; display: block; height: 1px; background: var(--border);
  position: absolute; top: 50%; width: 18px;
}
.bl-gap-mind::before { left: -20px; }
.bl-gap-mind::after { right: -20px; }
.bl-core-text { max-width: 720px; margin: 0 auto; color: var(--text-mid); line-height: 1.8; }

.bl-triangle {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding-block: 38px;
}
.bl-triangle h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 300; color: var(--white);
  margin-bottom: 1.6rem;
}
.bl-triangle h2 em { font-style: italic; color: var(--gold-light); }
.bl-tri-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.9rem; margin-bottom: 1.3rem;
}
.bl-tri-node {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  color: var(--white);
  font-size: 0.98rem; font-weight: 500;
}
.bl-tri-node-main {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
}
.bl-tri-node-main sup { font-size: 0.55em; vertical-align: super; }
.bl-tri-link { color: var(--gold); font-size: 1.3rem; }
.bl-triangle > p { max-width: 560px; margin: 0 auto; line-height: 1.75; }

.bl-diff {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
  padding-block: 38px;
}
.bl-diff-text p { color: var(--text-mid); line-height: 1.8; }
.bl-diff-lead {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.bl-diff-list ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.bl-diff-list li {
  position: relative; padding-left: 1.7rem;
  color: var(--navy); font-size: 0.98rem; line-height: 1.55;
}
.bl-diff-list li::before {
  content: ''; position: absolute; left: 0; top: 0.42em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
}
.bl-film { background: var(--white); padding-block: 38px; }
.bl-film .about-film { max-width: 820px; margin: 0 auto; }
.bl-film-caption { text-align: center; margin-top: 0.8rem; font-size: 0.82rem; color: var(--text-light); }
.bl-contact { background: var(--white); }

/* The teaser that sends the For NAV page here. */
.aud-los-more { text-align: center; margin-top: 1.5rem; }
.aud-los-more a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.aud-los-more a:hover { background: var(--gold); transform: translateY(-2px); }

.bl-quote-band, .bl-core, .bl-triangle, .bl-diff { scroll-margin-top: calc(var(--nav-h) + 74px); }

@media (max-width: 900px) {
  .bl-gap { grid-template-columns: 1fr; }
  .bl-gap-mind::before, .bl-gap-mind::after { display: none; }
  .bl-diff { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* -- AUDIENCE PAGE CONTACT FORM -- */
.aud-contact {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 4rem; align-items: start;
}
.aud-contact-facts { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.aud-contact-facts li { display: flex; flex-direction: column; gap: 0.2rem; }
.aud-contact-fact-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light);
}
.aud-contact-facts a {
  font-size: 1rem; color: var(--navy);
  text-decoration: none; font-weight: 500;
}
.aud-contact-facts a:hover { color: var(--gold); }
.aud-contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
}
/* This form has one more field than the front page's and sits on an already
   long page, so it runs tighter. The front page's form is untouched. */
.aud-contact .contact-form { gap: 0.85rem; }
.aud-contact .form-group textarea { min-height: 88px; }
.aud-contact-facts { margin-top: 1.5rem; gap: 0.75rem; }

/* Jump links must clear the fixed nav, or the heading lands underneath it. */
.aud-method, .aud-offers, .aud-los, .aud-contact { scroll-margin-top: calc(var(--nav-h) + 74px); }
/* These pages are long by nature; they get a tighter rhythm than the front page. */
.aud-method, .aud-offers, .aud-los, .aud-contact { padding-block: 38px; }

@media (max-width: 900px) {
  .aud-hero { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .aud-hero-direct { text-align: left; }
  .aud-hero-direct-row { align-items: flex-start; }
  .aud-offers-figure, .aud-offers + .aud-offers .aud-offers-figure { margin: 0; }
  .aud-offers-split { grid-template-columns: 1fr; gap: 2rem; }
  /* Diagram always first on narrow screens, whatever the desktop order. */
  .aud-offers + .aud-offers .aud-offers-figure { order: 0; }
  .aud-offers-figure { position: static; }
}
@media (max-width: 900px) {
  .aud-method { grid-template-columns: 1fr; gap: 2rem; }
  .aud-contact { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .aud-contact-form { padding: 1.5rem; }
  .hero-links-row { flex-direction: column; align-items: stretch; }
  .hero-link { justify-content: center; }
}

/* -- VIDEOS (Hva vi gjør) -- */
.videos { background: var(--white); }
.videos-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.video-card { display: flex; flex-direction: column; }
.video-frame {
  position: relative;
  width: 100%; max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 1px solid var(--border);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  color: rgba(255,255,255,0.85);
}
.video-soon-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.video-soon-icon svg { width: 24px; fill: var(--gold-light); margin-left: 3px; }
.video-soon-text { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.video-title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400; color: var(--navy);
  margin: 1.4rem 0 0.4rem; text-align: center;
}
.video-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; text-align: center; }
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* -- SECTION BASE -- */
section { padding: 64px 5%; }
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}

/* -- ABOUT -- */
.about {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
  padding-bottom: 48px;
}
.about-image-block { position: relative; }
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}
.about-img-inner { text-align: center; color: rgba(255,255,255,0.6); }
.about-img-inner svg { width: 80px; opacity: 0.3; margin-bottom: 1rem; }
.about-tag {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-align: center;
}
.about-tag-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  display: block;
  line-height: 1;
}
.about-tag-text { font-size: 0.8rem; opacity: 0.85; }
.about-content { padding-right: 2rem; }
.about-values { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.about-value { display: flex; gap: 1rem; align-items: flex-start; }
.about-value-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.about-value-icon svg { width: 18px; fill: var(--gold); }
.about-value-text h4 {
  font-weight: 500; font-size: 0.95rem;
  color: var(--navy); margin-bottom: 0.2rem;
}
.about-value-text p { font-size: 0.88rem; color: var(--text-mid); }
/* Om oss -> Integria-IKT callout (clickable) */
.about-ikt { margin-top: 1.4rem; display: flex; gap: 1rem; align-items: center; background: var(--navy); color: var(--white); border-radius: 16px; padding: 1.25rem 1.5rem; text-decoration: none; cursor: pointer; border: 1px solid rgba(255,255,255,0.12); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.about-ikt:hover .about-ikt-arrow { transform: translate(2px, -2px); }
.about-ikt-arrow { transition: transform 0.2s; }
a.about-ikt:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,32,64,0.28); border-color: var(--gold); }
.about-ikt-text { flex: 1; }
.about-ikt-badge { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; color: var(--gold-light); font-size: 0.95rem; letter-spacing: 0.04em; }
.about-ikt h4 { color: var(--white); font-weight: 500; font-size: 0.95rem; margin-bottom: 0.2rem; }
.about-ikt p { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.55; }
.about-ikt-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; font-size: 0.8rem; font-weight: 600; color: var(--gold-light); }
.about-ikt-soon { display: inline-block; margin-left: 0.4rem; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); background: var(--gold-light); border-radius: 50px; padding: 0.15rem 0.5rem; vertical-align: middle; font-weight: 700; }
.about-ikt-arrow { color: var(--gold-light); font-size: 1.3rem; flex-shrink: 0; }
/* Services -> left header + grouped rows */
.services-header--left { display: block; text-align: left; margin-bottom: 2.5rem; }
.services-group { margin-top: 2.75rem; }
.services-group:first-of-type { margin-top: 0; }
.services-group-title { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--navy); margin-bottom: 1.25rem; }
.services-group-count { font-size: 0.68rem; color: var(--gold); border: 1px solid var(--border); border-radius: 50px; padding: 0.1rem 0.55rem; }

/* -- SERVICES -- */
.services { background: var(--white); }
.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--white);
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,32,64,0.08);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: var(--navy); }
.service-icon svg { width: 24px; fill: var(--navy); transition: fill 0.3s; }
.service-card:hover .service-icon svg { fill: var(--gold); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.6rem; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.25rem; }
.service-ikt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--navy); border: 1px solid var(--border);
  flex-shrink: 0; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.service-ikt svg { width: 16px; height: 16px; fill: currentColor; }
.service-ikt:hover { background: var(--gold); color: var(--white); border-color: var(--gold); transform: translateY(-2px); }
.service-card.featured { background: var(--navy); border-color: var(--navy); }
.service-card.featured .service-icon { background: rgba(255,255,255,0.1); }
.service-card.featured .service-icon svg { fill: var(--gold); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,0.6); }
.service-card.featured .service-link { color: var(--gold-light); }
.service-card.featured:hover { border-color: var(--gold); }

/* -- PROCESS -- */
.process { background: var(--white); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 1px;
  background: var(--border);
}
.process-step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--navy);
  margin: 0 auto 1.5rem;
  position: relative; z-index: 1;
}
.process-step.active .step-num {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.process-step h4 {
  font-weight: 500; font-size: 0.95rem;
  color: var(--navy); margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.85rem; color: var(--text-mid); }

/* -- TESTIMONIALS -- */
.testimonials { background: var(--navy); padding: 64px 5%; }
.testimonials .section-title { color: var(--white); }
.testimonials .section-label { color: var(--gold); }
.testi-viewport {
  overflow: hidden;
  margin-top: 3rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.testi-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: testiScroll 45s linear infinite;
}
.testimonials:hover .testi-track { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .testi-track { animation: none; } }
.testimonial-card {
  width: 360px; max-width: 80vw; flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.star { color: var(--gold); font-size: 14px; }
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  border: none;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 0.85rem; color: var(--white);
  flex-shrink: 0;
}
.author-name { font-size: 0.88rem; font-weight: 500; color: var(--white); }
.author-role { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* -- CONTACT -- */
.contact {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--navy); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--gold); }
.form-notice {
  background: #eaf5e1;
  color: #3B6D11;
  border: 1px solid #cfe6bb;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}
.contact-info { padding-top: 1rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.5rem; }
.contact-item { display: flex; gap: 1rem; }
.contact-item-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--cream);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 20px; fill: var(--navy); }
.contact-item h4 { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a {
  font-size: 0.9rem; color: var(--text-mid);
  text-decoration: none;
}
.contact-item a:hover { color: var(--gold); }

/* -- FOOTER -- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 5% 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 1rem; display: block; }
.footer-brand .nav-logo .wm-i { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-visits { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-visits svg { width: 16px; height: 16px; fill: var(--gold); flex-shrink: 0; }
.footer-qr { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.25rem; }
.footer-qr img { width: 104px; height: 104px; padding: 5px; background: var(--white); border-radius: 10px; display: block; }
.footer-qr-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.footer-qr-copy strong { color: var(--white); font-size: 0.82rem; font-weight: 500; line-height: 1.35; }
.footer-qr-copy span { color: rgba(255,255,255,0.5); font-size: 0.72rem; line-height: 1.4; }
.footer-qr-downloads { display: flex; gap: 0.7rem; margin-top: 0.15rem; }
.footer-qr-downloads a { color: var(--gold-light); font-size: 0.72rem; text-decoration: none; }
.footer-qr-downloads a:hover { color: var(--white); }
.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* -- NAV LOGO (emblem + wordmark) -- */
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-emblem {
  height: calc(var(--nav-h, 76px) - 8px);  /* always fits the bar with padding */
  width: auto;
  display: block;
  animation: emblemPulse 3.4s ease-in-out infinite;
  transform-origin: center;
}
.nav-wordmark {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo .nav-wordmark { color: var(--navy); }
.nav-logo .nav-wordmark .dot { color: var(--gold); }
/* The accent "i" of Integria carries the same gold as the full stop. */
.nav-logo .nav-wordmark .wm-i,
.nav-logo .wm-i { color: var(--gold); }
.nav-logo-img,
.custom-logo-link img {
  height: 56px;
  width: auto;
  display: block;
}
@keyframes emblemPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-emblem { animation: none; }
}

/* -- GOOGLE TRANSLATE: hide its banner/tooltip, keep our own UI -- */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }

/* -- LANGUAGE SWITCHER -- */
.nav-lang { display: flex; align-items: center; gap: 0.35rem; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--navy); }
.lang-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lang-code { line-height: 1; }
.flag {
  width: 20px; height: 14px;
  border-radius: 3px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
/* Norway flag (Nordic cross) */
.flag-no {
  background:
    linear-gradient(#00205b, #00205b) center/100% 3px no-repeat,
    linear-gradient(#00205b, #00205b) 35% 0/3px 100% no-repeat,
    linear-gradient(#fff, #fff) center/100% 6px no-repeat,
    linear-gradient(#fff, #fff) 35% 0/6px 100% no-repeat,
    #ba0c2f;
}
/* United Kingdom flag (for English) */
.flag-en {
  background:
    linear-gradient(#c8102e, #c8102e) center/100% 2.5px no-repeat,
    linear-gradient(#c8102e, #c8102e) center/2.5px 100% no-repeat,
    linear-gradient(#fff, #fff) center/100% 5px no-repeat,
    linear-gradient(#fff, #fff) center/5px 100% no-repeat,
    linear-gradient(to bottom right, transparent calc(50% - 0.8px), #c8102e calc(50% - 0.8px), #c8102e calc(50% + 0.8px), transparent calc(50% + 0.8px)),
    linear-gradient(to bottom left, transparent calc(50% - 0.8px), #c8102e calc(50% - 0.8px), #c8102e calc(50% + 0.8px), transparent calc(50% + 0.8px)),
    linear-gradient(to bottom right, transparent calc(50% - 1.8px), #fff calc(50% - 1.8px), #fff calc(50% + 1.8px), transparent calc(50% + 1.8px)),
    linear-gradient(to bottom left, transparent calc(50% - 1.8px), #fff calc(50% - 1.8px), #fff calc(50% + 1.8px), transparent calc(50% + 1.8px)),
    #012169;
}

/* -- NAV SOCIAL ICONS (top right, next to language switcher) -- */
.nav-social { display: flex; align-items: center; gap: 0.35rem; }
.nav-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-social-link:hover { border-color: var(--gold); color: var(--navy); background: rgba(0,0,0,0.03); }
.nav-social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* -- TEAM -- */
.team { background: var(--cream); }
.team-header { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--white);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15,32,64,0.08);
}
.team-avatar {
  width: 104px; height: 104px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-avatar.has-photo { background: var(--cream); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-avatar span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.team-role { font-size: 0.85rem; color: var(--gold); font-weight: 500; }
.team-linkedin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-top: 0.85rem;
  border-radius: 9px; color: var(--navy);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.team-linkedin svg { width: 17px; height: 17px; fill: currentColor; }
.team-linkedin:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
/* -- FEEDBACK FORM (Tilbakemeldinger) -- */
.feedback {
  max-width: 680px; margin: 2.5rem auto 0;
  background: var(--white); border-radius: 18px; padding: 1.6rem 1.75rem;
}
.feedback h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--navy); margin-bottom: 1rem; text-align: center; }
.feedback-form { display: flex; flex-direction: column; gap: 0.7rem; }
.feedback-row { display: flex; gap: 0.7rem; }
.feedback-row > input, .feedback-row > select { flex: 1; min-width: 0; }
.feedback-form input, .feedback-form textarea, .feedback-form select {
  border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.9rem;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text-dark);
  background: var(--cream); outline: none; width: 100%; transition: border-color 0.2s;
}
.feedback-form input:focus, .feedback-form textarea:focus, .feedback-form select:focus { border-color: var(--navy); background: var(--white); }
.feedback-form textarea { resize: vertical; min-height: 76px; }
.feedback-submit {
  background: var(--navy); color: var(--white); border: none; border-radius: 50px;
  padding: 0.7rem 1.8rem; font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s; flex-shrink: 0;
}
.feedback-submit:hover { background: var(--gold); }
.feedback-note { font-size: 0.74rem; color: var(--text-light); line-height: 1.4; }
.feedback-notice { background: #eaf5e1; color: #3B6D11; border: 1px solid #cfe6bb; border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.9rem; margin-bottom: 1rem; }
.feedback-notice--error { background: #fbe9e9; color: #9b2c2c; border-color: #f0c4c4; }

/* -- CHAT WIDGET -- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 200; }
.chat-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(15,32,64,0.32);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  margin-left: auto;
}
.chat-toggle:hover { background: var(--gold); transform: translateY(-2px); }
.chat-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.chat-toggle .chat-icon-close { display: none; }
.chat-widget.open .chat-toggle .chat-icon-open { display: none; }
.chat-widget.open .chat-toggle .chat-icon-close { display: block; }

.chat-panel {
  position: absolute;
  bottom: 76px; right: 0;
  width: 340px; max-width: calc(100vw - 48px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15,32,64,0.22);
  overflow: hidden;
  animation: fadeUp 0.25s ease both;
}
.chat-head {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.chat-head-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--white);
  flex-shrink: 0;
}
.chat-head-title { font-weight: 500; font-size: 0.95rem; }
.chat-head-status { font-size: 0.75rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 0.4rem; }
.chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #57c75e; display: inline-block; }
.chat-body { padding: 1.25rem; background: var(--cream); }
.chat-msg {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  max-width: 85%;
  margin-bottom: 0.9rem;
}
.chat-msg-bot { background: var(--white); color: var(--text-dark); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chat-chip {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  transition: border-color 0.2s, color 0.2s;
}
.chat-chip:hover { border-color: var(--gold); color: var(--gold); }
.chat-foot { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; background: var(--white); border-top: 1px solid var(--border); }
.chat-foot input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: var(--cream);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.chat-foot input:focus { border-color: var(--navy); background: var(--white); }
.chat-foot-row { display: flex; gap: 0.5rem; }
.chat-foot-row input { flex: 1; }
.chat-foot-row button {
  width: 42px; min-width: 42px;
  border: none;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.chat-foot-row button:hover { background: var(--gold); }
.chat-foot-row button svg { width: 20px; height: 20px; fill: currentColor; }

/* -- ANIMATIONS -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text { animation: fadeUp 0.8s ease both; }
.hero-visual { animation: fadeUp 0.8s ease 0.2s both; }

/* -- RESPONSIVE -- */
@media (max-width: 900px) {
  /* Mobile navigation (hamburger) */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    padding: 1.4rem 5% 1.6rem; border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  nav.site-nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav.site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  nav.site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero: keep stats visible, let it flow so nothing is clipped */
  .hero { grid-template-columns: 1fr; min-height: auto; overflow: hidden; padding: 128px 5% 96px; gap: 2rem; }
  .hero-visual { display: flex; }
  .hero-quote { display: none; }

  .about { grid-template-columns: 1fr; }
  .about-tag { right: 0; }
  .about-content { padding-right: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .aud-hero-actions, .aud-cta-actions { gap: 0.75rem; }
}
/* Five footer columns get tight before the 900px breakpoint. */
@media (max-width: 1180px) and (min-width: 901px) {
  .footer-top { grid-template-columns: 2fr repeat(2, 1fr); row-gap: 2.5rem; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-cards-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .chat-panel { width: calc(100vw - 32px); }
  .feedback-row { flex-direction: column; }
  .testimonial-card { width: 80vw; }
}

/* -- OM OSS FILM (sits in the About image column, native 16:9) -- */
.about-film {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy);
  box-shadow: 0 18px 44px rgba(15,32,64,0.15);
}
.about-film img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-film video, .about-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.about-film-cap { font-size: 0.8rem; color: var(--text-light); margin-top: 0.7rem; }
/* With a film above it the photo shortens, so the column still matches the text. */
.about-img-short { aspect-ratio: 16 / 10; margin-top: 1rem; }
.film-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,32,64,0.16); border: 0; cursor: pointer; padding: 0;
  transition: background 0.25s;
}
.film-play:hover, .film-play:focus-visible { background: rgba(15,32,64,0.3); }
.film-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.film-play-ring {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(15,32,64,0.32);
  transition: transform 0.25s;
}
.film-play:hover .film-play-ring { transform: scale(1.08); }
.film-play-ring svg { width: 26px; height: 26px; fill: var(--navy); margin-left: 4px; }
@media (max-width: 700px) { .film-play-ring { width: 60px; height: 60px; } }
