/* ============================================
   MALERFIRMAET HANS LARSEN — STYLES
   ============================================ */

:root {
  --red: #D8262C;
  --red-dark: #B01D22;
  --red-soft: #FBEAEB;
  --black: #1A1A1A;
  --gray-900: #2A2A2A;
  --gray-700: #4A4A4A;
  --gray-600: #6B6B6B;
  --gray-400: #A0A0A0;
  --gray-200: #E5E5E5;
  --gray-100: #F2F2F0;
  --gray-50: #F8F8F6;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --container-max: 1140px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: white;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

a { color: inherit; text-decoration: none; transition: color 0.2s var(--transition); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: white;
  padding: 8px 16px;
  z-index: 200;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--black);
  color: white;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 3px solid var(--red);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
}
.topbar-info a:hover { color: var(--red); }
.topbar-info svg { color: var(--red); flex-shrink: 0; }
.topbar-extras { display: flex; align-items: center; gap: 18px; }
.topbar-meta { color: rgba(255,255,255,0.65); font-size: 12px; }
.topbar-malermestre {
  display: flex;
  align-items: center;
  height: 26px;
  transition: opacity 0.2s var(--transition);
}
.topbar-malermestre:hover { opacity: 0.8; }
.topbar-malermestre img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ============ NAV ============ */
nav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  transition: padding 0.25s var(--transition);
}
nav.scrolled { padding: 12px 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--transition);
}
.logo:hover { transform: translateY(-1px); }
.logo-mark {
  width: 220px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: auto;
  align-items: center;
}
.nav-menu a {
  padding: 10px 13px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  color: var(--gray-700);
  border-radius: 6px;
  position: relative;
  transition: all 0.2s var(--transition);
}
.nav-menu a:hover { color: var(--red); background: var(--red-soft); }
.nav-menu a.active {
  color: var(--red);
  background: var(--red-soft);
}
.nav-menu .nav-cta {
  background: var(--red) !important;
  color: white !important;
  padding: 10px 20px !important;
  margin-left: 8px;
}
.nav-menu .nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(216,38,44,0.25);
}

.menu-toggle {
  display: none;
  color: var(--black);
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s var(--transition);
}
.menu-toggle:hover { background: var(--gray-100); }
.menu-toggle .icon-close { display: none; }
.menu-toggle.active .icon-open { display: none; }
.menu-toggle.active .icon-close { display: block; }

/* Six menu items no longer fit beside the logo on a small laptop, so the
   menu collapses into the toggle a good deal earlier than the rest of the
   mobile layout does. */
@media (max-width: 1040px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: white;
    box-shadow: var(--shadow);
    padding: 12px;
    border-top: 1px solid var(--gray-200);
    align-items: stretch;
  }
  .nav-menu.open { display: flex; animation: slideDown 0.3s var(--transition); }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 18px;
    border-radius: 6px;
    text-align: left;
  }
  .nav-menu .nav-cta {
    margin-left: 0 !important;
    margin-top: 4px;
    text-align: center !important;
  }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 72px 0;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 70%);
  opacity: 0.6;
  z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1,
.page-header h2 {
  font-size: clamp(32px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--black);
  /* "Arbejdsmiljøorganisation" is one word and wider than a phone screen. */
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-header p {
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.65;
  max-width: 60ch;
}

.page-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
}
.page-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--red);
}

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
section.compact { padding: 56px 0; }
section.alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.section-head.center .section-tag { padding-left: 0; }
.section-head.center .section-tag::before { display: none; }
.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head p {
  margin-top: 14px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.7;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: white;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(216,38,44,0.3);
}
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.btn-outline:hover { background: white; color: var(--black); box-shadow: 0 12px 24px rgba(255,255,255,0.2); }
.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-ghost:hover { background: var(--red); color: white; }
.btn svg { transition: transform 0.25s var(--transition); }
.btn:hover svg { transform: translateX(3px); }

/* ============ FOOTER ============ */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  margin-top: auto;
  border-top: 4px solid var(--red);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.footer-brand .footer-brand-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 38ch;
  color: rgba(255,255,255,0.6);
}
.footer-col h2 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--red);
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}
.footer-list a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s var(--transition);
}
.footer-list a:hover { color: var(--red); }
.footer-list .icon-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-list .icon-row svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-meta { color: rgba(255,255,255,0.55); }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  padding: 9px 16px;
  border: 1px solid var(--red);
  border-radius: 6px;
  transition: background 0.2s var(--transition);
}
.footer-link:hover { background: var(--red); color: white !important; }

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s var(--transition);
}
.team-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-photo {
  aspect-ratio: 1;
  background: var(--gray-100);
  background-size: cover;
  background-position: center top;
  border-bottom: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}
.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.05) 100%);
}
.team-info { padding: 22px; }
.team-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.team-info .role {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-contact-info {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.team-contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
  padding: 4px 0;
  transition: color 0.2s var(--transition);
}
.team-contact-info a:hover { color: var(--red); }
.team-contact-info svg { color: var(--red); flex-shrink: 0; width: 13px; height: 13px; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  border-left: 4px solid var(--red);
  transition: all 0.25s var(--transition);
}
.contact-info-item:hover {
  border-color: var(--red);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-text small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.contact-info-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
.contact-info-text a { color: inherit; }
.contact-info-text a:hover { color: var(--red); }

/* ============ MAP ============ */
.map-wrap {
  height: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s var(--transition);
}
.map-wrap:hover iframe { filter: grayscale(0%); }

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.13s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.29s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.37s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.53s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.61s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.69s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.77s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 0.85s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 0.93s; opacity: 1; transform: translateY(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  section { padding: 64px 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .topbar-info { gap: 14px; font-size: 12px; }
  .topbar-extras { gap: 12px; }
  .topbar-meta { display: none; }
  .topbar-malermestre { height: 22px; }
  
  .logo-mark { width: 170px; height: 50px; }
  
  .page-header { padding: 56px 0; }
  section { padding: 48px 0; }
  .section-head { margin-bottom: 36px; }
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .map-wrap { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ FOOTER LOGO ============
   The dark footer needs the knockout variant — the standard mark is black
   type and would be invisible against #1A1A1A. */
.footer-logo {
  width: 210px;
  max-width: 100%;
  margin-bottom: 18px;
}
.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============ TEAM: PHOTO PLACEHOLDER ============
   Used for colleagues whose photo has not been taken yet. Keeps the card
   the same height as the rest of the grid instead of collapsing it. */
.team-photo.placeholder {
  background-color: var(--gray-100);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(216,38,44,0.05) 0 12px,
      transparent 12px 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.team-photo.placeholder .initials {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--red);
  line-height: 1;
}
.team-photo.placeholder .pending {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: rgba(255,255,255,0.85);
  padding: 5px 10px;
  border-radius: 99px;
}
.team-photo.placeholder::after { display: none; }

/* ============ SPLIT SECTION (image + text) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: var(--gray-100);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-media.portrait { aspect-ratio: 3 / 4; }
.split-media.wide { aspect-ratio: 16 / 10; }
.split-content p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Floating badge reused on top of any .split-media */
.media-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--red);
  color: white;
  padding: 16px 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.media-badge .num { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.media-badge .label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.media-badge.green { background: #2E7D5B; }

/* ============ GRØN OMSTILLING ============ */
.section.green-band,
section.green-band {
  background: linear-gradient(135deg, #F1F7F3 0%, var(--white) 100%);
  border-top: 1px solid #DCE9E1;
  border-bottom: 1px solid #DCE9E1;
}
.green-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2E7D5B;
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
}
.green-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #2E7D5B;
}
.green-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.green-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
}
.green-points svg {
  color: #2E7D5B;
  flex-shrink: 0;
  margin-top: 3px;
}
.green-quote {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid #2E7D5B;
  background: rgba(46,125,91,0.06);
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  color: #1F5A41;
  line-height: 1.5;
}

/* ============ ARBEJDSMILJØORGANISATION (AMO) ============ */
.amo-lead {
  max-width: 62ch;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.75;
}
.amo-roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.amo-person {
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 14px 16px;
  transition: all 0.25s var(--transition);
}
.amo-person:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.amo-person .navn {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.amo-person .rolle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 3px;
}
.amo-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.amo-values span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.amo-values svg { color: var(--red); flex-shrink: 0; }
.amo-values span.lead {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.amo-values span.lead svg { color: white; }
.amo-figure { margin-top: 32px; }
.amo-figure a {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--transition);
}
.amo-figure a:hover { border-color: var(--red); box-shadow: var(--shadow); }
.amo-figure img { width: 100%; height: auto; display: block; }
.amo-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-600);
  text-align: center;
}

/* ============ NO-JS FALLBACK ============
   Without JS the IntersectionObserver never runs, so anything marked for
   reveal would stay at opacity:0. Show it all instead. */
.no-js .reveal,
.no-js .reveal-left,
.no-js .reveal-right,
.no-js .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ============ RESPONSIVE (new components) ============ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .split-media.portrait { aspect-ratio: 4 / 3; }
  .amo-roster { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .amo-roster { grid-template-columns: 1fr; }
  .amo-values span { font-size: 12px; padding: 8px 13px; }
  .media-badge { bottom: 14px; left: 14px; padding: 12px 16px; }
  .media-badge .num { font-size: 24px; }
}

/* ============ FULL-WIDTH PHOTO BAND ============
   The group shot has ~50 people in it; at half the container width nobody
   is recognisable, so it gets the full width. */
.photo-figure { margin: 0; }
.photo-band {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--gray-100);
}
.photo-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.photo-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
}

/* Two-column prose under a full-width figure */
.prose-2col {
  columns: 2;
  column-gap: 48px;
  margin-top: 40px;
}
.prose-2col p {
  break-inside: avoid;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .prose-2col { columns: 1; column-gap: 0; margin-top: 32px; }
  .photo-band img { aspect-ratio: auto; }
}

/* ============ MOBILE POLISH ============ */
@media (max-width: 760px) {
  /* A horizontal slide-in on a narrow screen both reads badly and pushes
     the document 28px wider than the viewport before it settles. */
  .reveal-left, .reveal-right { transform: translateY(20px); }
  .reveal-left.visible, .reveal-right.visible { transform: translateY(0); }

  /* Footer menu links were 17px tall -- too small to hit reliably. */
  .footer-list { gap: 6px; }
  .footer-list li:not(.icon-row) a { display: block; padding: 7px 0; }
  .footer-list .icon-row { align-items: center; }
  .footer-list .icon-row svg { margin-top: 0; }
  .footer-list .icon-row a { padding: 5px 0; }
  .contact-info-text strong a { display: inline-block; padding: 4px 0; }
}

/* ============ DIREKTE KONTAKT (erstatter formularen) ============ */
.contact-cta {
  background: white;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-cta h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.contact-cta > p {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.contact-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 15px;
}
.contact-cta-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.contact-cta-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}
.contact-cta-points svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ============ HÅNDVERKSGRUPPEN ============ */
:root { --hg-green: #64A202; --hg-green-dark: #4A7A01; }

section.hg-band {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.hg-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hg-green-dark);
  margin-bottom: 14px;
  position: relative;
  padding-left: 36px;
}
.hg-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--hg-green);
}
.hg-quote {
  margin-top: 26px;
  padding: 22px 26px;
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--hg-green);
  border-radius: 0 8px 8px 0;
}
.hg-quote p {
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.hg-quote cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* Fact card beside the text */
.hg-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.hg-card > img {
  height: 44px;
  width: auto;
  margin-bottom: 22px;
}
.hg-card-lead {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hg-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.hg-facts strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hg-green-dark);
  margin-bottom: 5px;
}
.hg-facts span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-700);
  line-height: 1.35;
}
.hg-card-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Compact strip for the front page */
.hg-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--hg-green);
  border-radius: 8px;
  padding: 26px 32px;
  box-shadow: var(--shadow-sm);
}
.hg-strip > img { height: 40px; width: auto; flex-shrink: 0; }
.hg-strip-text h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.hg-strip-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}
.hg-strip .btn { flex-shrink: 0; }

/* Footer badge */
.footer-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-hg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s var(--transition);
}
.footer-hg:hover { opacity: 0.75; }
.footer-hg span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.footer-hg img { height: 26px; width: auto; }

@media (max-width: 960px) {
  .hg-strip { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .hg-strip .btn { justify-self: start; }
}

@media (max-width: 760px) {
  .contact-cta { padding: 26px 22px; }
  .hg-card { padding: 26px 22px; }
  .hg-facts { gap: 16px 12px; }
  .hg-facts strong { font-size: 22px; }
  .footer-badges { gap: 16px; }
}

/* Green ghost button, so the CTA inside the Håndverksgruppen section does
   not fight the group's own colour. */
.btn-hg {
  background: transparent;
  color: var(--hg-green-dark);
  border: 2px solid var(--hg-green);
}
.btn-hg:hover {
  background: var(--hg-green);
  color: white;
  box-shadow: 0 12px 24px rgba(100,162,2,0.28);
}

/* ============ GRØN OMSTILLING (egen side) ============ */
.btn-groen {
  background: #2E7D5B;
  color: white;
  border: 2px solid #2E7D5B;
}
.btn-groen:hover {
  background: #246247;
  border-color: #246247;
  color: white;
  box-shadow: 0 12px 24px rgba(46,125,91,0.3);
}
.groen-subhead {
  margin-top: 30px;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.groen-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 3px solid #2E7D5B;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
}
.groen-closing {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.groen-closing h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.groen-closing p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 26px;
}

/* ============ AMO: brødtekst ============ */
.amo-intro {
  max-width: 68ch;
  margin-bottom: 8px;
}
.amo-intro p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.amo-subhead {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ============ UNDERSIDER (kort der linker videre) ============ */
.undersider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.undersider-kort {
  display: block;
  background: white;
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 28px 26px;
  transition: all 0.3s var(--transition);
}
.undersider-kort:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}
.undersider-kort h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.undersider-kort p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.undersider-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}
.undersider-kort:hover .undersider-link svg { transform: translateX(3px); }
.undersider-link svg { transition: transform 0.25s var(--transition); }

@media (max-width: 760px) {
  .undersider-grid { grid-template-columns: 1fr; gap: 16px; }
}
