/* ============================================
   NORRVIDA — Global Stylesheet
   ============================================ */

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

:root {
  --bg:        #0E0E0E;
  --bg-2:      #141414;
  --bg-3:      #1A1A1A;
  --amber:     #F0B429;
  --amber-dim: #C8941E;
  --white:     #F2EFE9;
  --grey:      #888880;
  --border:    rgba(255,255,255,0.07);
  --font-display: 'Fraunces', serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w: 1280px;
  --pad-x: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (pointer: fine) and (min-width: 1024px) {
  body { cursor: none; }
}

/* ---- Custom cursor ---- */
.cursor {
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  display: none;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(240,180,41,0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: none;
}
@media (pointer: fine) and (min-width: 1024px) {
  .cursor, .cursor-ring { display: block; }
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(14,14,14,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px var(--pad-x);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 28px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo-text span { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  background: var(--amber);
  color: #0E0E0E !important;
  font-weight: 500 !important;
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.2s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amber-dim) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 0 60px;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  padding: 16px 0;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
  width: 80%;
  text-align: center;
}
.nav-mobile a:hover { color: var(--amber); }
.nav-mobile a.mobile-cta {
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--amber);
  color: #0E0E0E;
  padding: 14px 40px;
  border-bottom: none;
  width: auto;
}

/* ---- Shared components ---- */
.section-line {
  height: 1px;
  background: var(--border);
  margin: 0 var(--pad-x);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--amber);
  color: #0E0E0E;
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--amber-dim); transform: translateY(-1px); }

.btn-ghost {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 160px var(--pad-x) 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { display: block; margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-hero p {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--grey);
  max-width: 500px;
  line-height: 1.75;
}

/* ---- Footer ---- */
footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 72px var(--pad-x) 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .footer-logo { display: block; margin-bottom: 16px; }
.footer-brand .footer-logo img { height: 24px; }
.footer-brand .footer-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: block;
}
.footer-brand .footer-logo-text span { color: var(--amber); }
.footer-tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col h5 {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.9;
}
.footer-col address a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col address a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(136,136,128,0.5); }
.footer-certs {
  display: flex;
  gap: 12px;
}
.cert-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(136,136,128,0.5);
  border: 1px solid rgba(136,136,128,0.15);
  padding: 4px 10px;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  nav { padding: 20px var(--pad-x); }
  nav.scrolled { padding: 16px var(--pad-x); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-certs { justify-content: center; }
  .section-line { margin: 0 var(--pad-x); }
  .page-hero { padding: 120px var(--pad-x) 60px; }
}

/* Service items as links */
a.service-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.service-item:hover { background: var(--bg-3); }


/* ---- Trust / credentials strip ---- */
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.trust-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,180,41,0.72);
  margin-bottom: 12px;
}
.trust-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 34px;
}
.trust-note {
  max-width: 700px;
  margin: 28px auto 0;
  color: rgba(242,239,233,0.48);
  font-size: 0.84rem;
  line-height: 1.75;
}
@media (max-width: 1024px) {
  }
@media (max-width: 640px) {
  }


/* Trust strip — real logos */
.trust-strip-real {
  background: #111111;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.trust-strip-real .trust-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.trust-strip-real .trust-label {
  margin: 0 0 40px;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding: 0 24px;
}

/* Marquee container — clips overflow and fades edges */
.trust-marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%);
}

/* The scrolling track — contains 2× the logos for seamless loop */
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  padding: 8px 0;
  animation: trustScroll 28s linear infinite;
  will-change: transform;
}

.trust-marquee-wrap:hover .trust-marquee-track {
  animation-play-state: paused;
}

@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-logo-card img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 24px;
  }
}


/* Norrvida real logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-logo-text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--white);
}

.footer-brand .nav-logo {
  margin-bottom: 18px;
}

.footer-brand .nav-logo-mark {
  width: 42px;
  height: 42px;
}

.footer-brand .nav-logo-text {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-logo-mark {
    width: 30px;
    height: 30px;
  }
  .nav-logo-text {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
}



/* === Norrvida polish fix 2026-05-30 === */

/* Remove design-experiment cursor. Keep normal professional UX. */
body {
  cursor: auto !important;
}

.cursor,
.cursor-ring {
  display: none !important;
}

/* Cleaner, calmer header */
nav {
  padding: 30px 56px !important;
}

nav.scrolled {
  padding: 18px 56px !important;
  background: rgba(10,10,9,0.92) !important;
}

/* Use mark + wordmark in a more deliberate way */
.nav-logo {
  gap: 16px !important;
}

.nav-logo-mark {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.20em !important;
  color: #F2EFE9 !important;
}

/* Navigation should feel expensive, not faded-out */
.nav-links {
  gap: 42px !important;
}

.nav-links a {
  color: rgba(242,239,233,0.58) !important;
  font-weight: 500 !important;
}

.nav-links a:hover {
  color: #F2EFE9 !important;
}

/* The old hero had too much empty vertical space. Bring it up. */
.hero {
  min-height: 92vh !important;
  justify-content: center !important;
  padding: 140px 56px 72px !important;
}

.hero::before {
  background:
    radial-gradient(ellipse 45% 55% at 75% 22%, rgba(240,180,41,0.055) 0%, transparent 68%),
    radial-gradient(ellipse 45% 70% at 5% 90%, rgba(240,180,41,0.025) 0%, transparent 58%) !important;
}

.hero-label {
  margin-bottom: 26px !important;
  color: #F0B429 !important;
}

.hero h1 {
  max-width: 980px !important;
  font-size: clamp(4.2rem, 7.3vw, 8.6rem) !important;
  line-height: 0.96 !important;
}

.hero-sub {
  max-width: 560px !important;
  margin-top: 34px !important;
  color: rgba(242,239,233,0.58) !important;
}

.hero-actions {
  margin-top: 42px !important;
}

/* Make buttons a little more solid */
.btn-primary,
.nav-cta {
  background: #F0B429 !important;
  color: #10100E !important;
  box-shadow: 0 10px 32px rgba(240,180,41,0.10);
}

.btn-ghost {
  color: rgba(242,239,233,0.62) !important;
}

/* Remove the strange floating scroll/cursor visual emphasis */
.scroll-indicator {
  opacity: 0.45 !important;
}

/* Footer logo needs different proportions */
.footer-brand .nav-logo-mark {
  width: 52px !important;
  height: 52px !important;
}

.footer-brand .nav-logo-text {
  font-size: 1.02rem !important;
}

/* trust-strip override removed */

@media (max-width: 768px) {
  nav {
    padding: 22px 24px !important;
  }

  .nav-logo-mark {
    width: 36px !important;
    height: 36px !important;
  }

  .nav-logo-text {
    font-size: 0.76rem !important;
    letter-spacing: 0.16em !important;
  }

  .hero {
    min-height: 86vh !important;
    padding: 120px 24px 64px !important;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 13vw, 4.8rem) !important;
  }
}



/* === Logo correction: use only the real Norrvida logo === */
.nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  line-height: 1 !important;
  gap: 0 !important;
}

.nav-logo-img {
  display: block !important;
  width: auto !important;
  height: 64px !important;
  max-width: 190px !important;
  object-fit: contain !important;
}

.nav-logo-mark,
.nav-logo-text {
  display: none !important;
}

nav {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

nav.scrolled .nav-logo-img {
  height: 52px !important;
}

.footer-brand .nav-logo-img {
  height: 82px !important;
  max-width: 240px !important;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 50px !important;
    max-width: 160px !important;
  }

  nav.scrolled .nav-logo-img {
    height: 44px !important;
  }

  .footer-brand .nav-logo-img {
    height: 68px !important;
  }
}



/* === Trust logo loop / marquee === */
.trust-marquee-section {
  overflow: hidden;
}

.trust-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  width: max-content;
  animation: trustMarquee 34s linear infinite;
  will-change: transform;
}

.trust-marquee:hover .trust-marquee-track {
  animation-play-state: paused;
}

.trust-marquee .trust-logo-card {
  flex: 0 0 clamp(210px, 16vw, 280px);
  min-height: 118px !important;
}

.trust-static-list {
  display: none;
}

@keyframes trustMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - clamp(9px, 1vw, 17px)));
  }
}

@media (max-width: 760px) {
  .trust-marquee {
    display: none;
  }

  .trust-static-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee {
    display: none;
  }

  .trust-static-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: clamp(16px, 2.5vw, 32px);
  }
}

@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .trust-static-list {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}



/* === Footer logo hard fix === */
.footer-brand .nav-logo {
  display: inline-flex !important;
  align-items: center !important;
  margin-bottom: 20px !important;
  text-decoration: none !important;
  border: 0 !important;
}

.footer-brand .nav-logo-img {
  display: block !important;
  height: 96px !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
}

.footer-brand .nav-logo,
.footer-brand .nav-logo:visited,
.footer-brand .nav-logo:hover {
  color: transparent !important;
  text-decoration: none !important;
}

.footer-brand .nav-logo::before,
.footer-brand .nav-logo::after {
  content: none !important;
}

.footer-brand .nav-logo-text,
.footer-brand .nav-logo-mark {
  display: none !important;
}

.footer-tagline {
  margin-top: 8px !important;
  max-width: 340px !important;
}

@media (max-width: 768px) {
  .footer-brand .nav-logo-img {
    height: 78px !important;
    max-width: 220px !important;
  }
}



/* === Definitive real logo replacement === */
.nav-logo,
.footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  border: 0 !important;
  line-height: 1 !important;
}

.nav-logo-img {
  display: block !important;
  height: 72px !important;
  width: auto !important;
  max-width: 230px !important;
  object-fit: contain !important;
}

.footer-logo-img {
  display: block !important;
  height: 110px !important;
  width: auto !important;
  max-width: 300px !important;
  object-fit: contain !important;
  margin-bottom: 20px !important;
}

.footer-brand .nav-logo-text,
.footer-brand .nav-logo-mark {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 56px !important;
    max-width: 190px !important;
  }
  .footer-logo-img {
    height: 90px !important;
    max-width: 260px !important;
  }
}

/* ---- Service card read-more label ---- */
.service-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.7;
  transition: opacity 0.2s, gap 0.25s;
}
.service-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
a.service-item:hover .service-read-more {
  opacity: 1;
  gap: 14px;
}
a.service-item:hover .service-arrow {
  transform: translateX(4px);
}

/* ======================================
   TEAM / KONTAKTPERSONER
   ====================================== */
.team-section {
  padding: 100px var(--pad-x) 120px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.team-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.team-header {
  margin-bottom: 72px;
}
.team-header .section-label { display: block; margin-bottom: 16px; }
.team-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}

.team-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  pointer-events: none;
  user-select: none;
}

/* Portrait image — fixed aspect ratio */
.team-card-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
  overflow: hidden;
}
.team-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: grayscale(15%);
  transition: filter 0.4s ease, transform 0.5s ease;
}
.team-card:hover .team-card-img-wrap img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Gradient overlay at bottom */
.team-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(14,14,14,0.97) 0%, rgba(14,14,14,0.4) 60%, transparent 100%);
  pointer-events: none;
}

/* Info overlaid on image */
.team-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
  z-index: 2;
}
.team-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 4px;
}
.team-card-role {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.85;
  margin-bottom: 16px;
}
.team-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.team-card-contacts a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  pointer-events: all;
}
.team-card-contacts a:hover {
  color: var(--amber);
}

/* Amber accent line top */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
}
.team-card:hover::before { opacity: 1; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-card-info { padding: 20px 16px 24px; }
  .team-card-name { font-size: 1rem; }
}

/* ======================================
   INSTAGRAM SECTION
   ====================================== */
.instagram-section {
  padding: 100px var(--pad-x) 120px;
  border-top: 1px solid var(--border);
}
.instagram-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.instagram-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.instagram-header-text .section-label { display: block; margin-bottom: 12px; }
.instagram-header-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.instagram-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, gap 0.25s;
  white-space: nowrap;
}
.instagram-follow-link:hover { opacity: 1; gap: 16px; }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: grayscale(10%);
  pointer-events: none;
  -webkit-user-drag: none;
}
.instagram-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
/* Placeholder when no image */
.instagram-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 1.5rem;
}

/* Loading state */
.instagram-loading {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--grey);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Notice banner */
.instagram-notice {
  margin-top: 20px;
  padding: 16px 24px;
  background: rgba(240,180,41,0.06);
  border: 1px solid rgba(240,180,41,0.15);
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.7;
}
.instagram-notice strong { color: rgba(240,180,41,0.8); }

@media (max-width: 900px) {
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-header { flex-direction: column; align-items: flex-start; }
}

/* === Mobile overflow & footer fix === */
html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  a, p, li, span, address {
    overflow-wrap: anywhere;
  }
}

/* === Overflow & mobile final fix === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
* { box-sizing: border-box; }

@media (max-width: 768px) {
  :root { --pad-x: 24px; }
  .contact-layout {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .page-hero {
    width: 100%;
    overflow: hidden;
  }
  .contact-info h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }
}


/* === Contact/mobile final hardening === */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip !important;
  }
}

body {
  position: relative;
  touch-action: pan-y;
}

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

img, video, iframe, svg {
  max-width: 100%;
}

nav,
main,
section,
footer,
.page-hero,
.contact-layout,
.contact-info,
.contact-details,
.contact-form-wrap,
.footer-top,
.footer-bottom,
.mobile-nav,
.instagram-section {
  max-width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.visible {
  display: block !important;
}

.footer-address-label {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  font-style: normal;
}

.footer-address-label:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
  }

  body {
    overflow-x: hidden !important;
  }

  .page-hero,
  .contact-layout,
  .footer-top,
  .footer-bottom,
  .mobile-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-hero {
    padding-left: var(--pad-x) !important;
    padding-right: var(--pad-x) !important;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem) !important;
    line-height: 0.98 !important;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .page-hero p,
  .contact-info h2,
  .form-title,
  .footer-tagline,
  .detail-value,
  .footer-col address {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .contact-info h2 {
    font-size: clamp(2.1rem, 9vw, 3.1rem) !important;
    line-height: 1.12 !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    padding-left: var(--pad-x) !important;
    padding-right: var(--pad-x) !important;
  }

  .contact-form-wrap {
    width: 100%;
    max-width: 100%;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-certs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cert-badge {
    display: block;
    width: 100%;
    text-align: center;
  }
}


/* === Norrvida final package fixes === */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  position: relative;
}

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

img,
video,
iframe {
  max-width: 100%;
}

.footer-address-label {
  display: inline-block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-style: normal;
}

.footer-address-label:first-of-type {
  margin-top: 0;
}

.contact-form-wrap.form-submitted .form-title,
.contact-form-wrap.form-submitted .form-subtitle {
  display: none !important;
}

.contact-form-wrap.form-submitted {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.form-success {
  display: none;
  width: 100%;
  min-height: 220px;
  padding: 24px 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.form-success.visible {
  display: flex !important;
}

.form-success h3 {
  margin: 0 0 18px 0;
}

.form-success p {
  margin: 0;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    touch-action: pan-y;
  }

  .site-header,
  .mobile-nav,
  main,
  section,
  footer,
  .page-hero,
  .contact-layout,
  .contact-info,
  .contact-form-wrap,
  .footer-top,
  .footer-bottom {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .contact-form-wrap.form-submitted {
    min-height: 360px;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .form-success {
    min-height: 180px;
    padding: 0;
  }

  .footer-col address {
    overflow-wrap: normal;
    word-break: normal;
  }
}
