/* ==========================================================================
   Tømrerfirmaet OG — ogbyg.dk
   Layout inspireret af jbentreprise.dk, farver fra OG-logoet
   ========================================================================== */

/* Selvhostede skrifttyper. Hentes IKKE fra Google, så ingen besøgendes
   IP-adresse sendes til tredjepart uden samtykke (GDPR). Begge er variable
   fonts – én fil dækker hele vægtspændet. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  --color-dark: #251b19;        /* logoets baggrund */
  --color-dark-soft: #322523;
  --color-gold: #edbd17;        /* logoets guld */
  --color-gold-dark: #c79e10;
  --color-white: #ffffff;
  --color-off-white: #f7f5f2;
  --color-sand: #f0ebe4;
  --color-text: #241c18;
  --color-text-muted: #6d625b;
  --color-border: #e6e0d9;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container-width: 1200px;

  --radius-sm: 10px;   /* knapper, felter */
  --radius-md: 14px;   /* kort, billeder */
  --radius-lg: 20px;   /* store paneler */
  --shadow-card: 0 20px 44px -28px rgba(37, 27, 25, 0.35);
  --shadow-gold: 0 14px 30px -12px rgba(237, 189, 23, 0.45);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px; top: 0;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

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

/* ---- Knapper ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; }
.btn-block { width: 100%; }
.btn .arrow { font-size: 1.1em; transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--color-gold); color: var(--color-dark); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--color-gold-dark); }

.btn-light { background: var(--color-white); color: var(--color-dark); }
.btn-light:hover { background: var(--color-gold); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: var(--color-white);
}
.btn-outline-light:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn, .mobile-action, .nav-toggle { -webkit-tap-highlight-color: transparent; }

/* ---- Topbar ---- */
.topbar {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(237, 189, 23, 0.18);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar-left { display: flex; gap: 24px; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.topbar-item svg { color: var(--color-gold); flex-shrink: 0; }
a.topbar-item:hover { color: var(--color-gold); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  box-shadow: 0 2px 14px rgba(0,0,0,0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 58px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav ul a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.main-nav ul a:hover { color: var(--color-white); }
.main-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-action-bar { opacity: 0; pointer-events: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  transform: scale(1.055);
  animation: hero-media-in 1.7s var(--ease-out) forwards;
  will-change: transform;
}
/* Mobil henter en 54% lettere udgave – vigtigt for Googles LCP-måling. */
@media (max-width: 820px) {
  .hero-media { background-image: url("../images/hero-mobile.jpg"); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21,14,12,0.82) 0%, rgba(21,14,12,0.55) 55%, rgba(21,14,12,0.3) 100%);
}
/* Heroens bevægelse understreger hierarkiet uden at sinke indholdet. */
.hero-kicker,
.hero h1 span,
.hero-lead,
.hero-actions,
.hero-proof {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.78s var(--ease-out) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: 0.12s; }
.hero h1 span:nth-child(2) { animation-delay: 0.22s; }
.hero h1 span:nth-child(3) { animation-delay: 0.34s; }
.hero-lead { animation-delay: 0.52s; }
.hero-actions { animation-delay: 0.66s; }
.hero-proof { animation-delay: 0.8s; }
@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-media-in {
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; transform: none; }
  .hero-kicker,
  .hero h1 span,
  .hero-lead,
  .hero-actions,
  .hero-proof {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.hero-inner {
  position: relative;
  padding-top: 104px;
  padding-bottom: 104px;
}
/* Ligger i h1 af hensyn til SEO, men beholder sit eget visuelle udtryk. */
.hero-kicker {
  display: block;
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}
.hero h1 span { display: block; }
.hero-initial { color: var(--color-gold); }
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  margin: 18px 0 0;
}
.hero-proof span:first-child { color: var(--color-gold); font-size: 1.05rem; }

/* ---- Marquee-bånd ---- */
.marquee {
  background: var(--color-dark);
  color: var(--color-white);
  border-top: 1px solid rgba(237,189,23,0.18);
  border-bottom: 1px solid rgba(237,189,23,0.18);
  overflow: hidden;
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,0.92);
}
.marquee-mark {
  height: 26px;
  width: 26px;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Diskret bevægelse, der gør længere sektioner lettere at følge */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Sektioner ---- */
section { scroll-margin-top: 90px; }
.services, .projects, .about, .contact { padding: 96px 0; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.section-eyebrow-light { color: var(--color-gold); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}
.section-head h2, .about h2, .contact h2, .cta-slogan {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.section-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 4px;
  white-space: nowrap;
}
.section-link:hover { color: var(--color-gold-dark); }

/* ---- Ydelser (nummereret liste, JB-stil) ---- */
.services { background: var(--color-sand); }
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
}
.service-item {
  padding: 34px 0;
  border-top: 1px solid var(--color-border);
  transition: border-color .25s ease;
}
.service-item details { display: block; }
.service-item summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  list-style: none;
  cursor: pointer;
}
.service-item summary::-webkit-details-marker { display: none; }
.service-item summary > span:last-child { min-width: 0; }
.service-item summary h3 { margin-bottom: 0; }
.service-item summary::after {
  content: "+";
  display: none;
}
.service-item details > p { margin: 8px 0 0 48px; }
.service-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  padding-top: 3px;
  transition: color .25s ease, transform .25s var(--ease-out);
}
.service-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-item p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .service-item:hover { border-top-color: rgba(199,158,16,0.55); }
  .service-item:hover .service-num {
    color: var(--color-text);
    transform: translateX(4px);
  }
}

/* ---- Referencer / projekter ---- */
.projects { background: var(--color-off-white); }
.projects > .cta-band { margin-bottom: 72px; }

/* Før/efter-slider */
.ba-feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-card);
}
.ba-text h3 { font-size: 1.5rem; margin-bottom: 12px; }
.ba-text p { color: var(--color-text-muted); font-size: 0.98rem; }
.ba-hint {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  color: var(--color-gold-dark) !important;
  margin: 18px 0 0;
}
.ba-hint-badge {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 4px 12px -2px rgba(237,189,23,0.55);
  animation: ba-hint-nudge 1.7s ease-in-out infinite;
}
.ba-hint-badge::before,
.ba-hint-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
}
.ba-hint-badge::before { left: 4px; border-right-color: var(--color-dark); }
.ba-hint-badge::after { right: 4px; border-left-color: var(--color-dark); }
@keyframes ba-hint-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .ba-hint-badge { animation: none; }
}
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  touch-action: none;
}
.ba-slider > img,
.ba-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--color-gold);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.ba-slider.hint-active .ba-handle span {
  animation: ba-handle-hint 2.2s var(--ease-out) 0.25s 2;
}
@keyframes ba-handle-hint {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  }
  34% {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow: 0 0 0 12px rgba(237,189,23,0.28), 0 0 0 22px rgba(237,189,23,0.1), 0 4px 14px rgba(0,0,0,0.35);
  }
  62% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  }
}
.ba-slider:has(.ba-range:focus-visible) .ba-handle span { animation: none; }
.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
}
.ba-handle span::before {
  left: 4px;
  border-right-color: var(--color-dark);
}
.ba-handle span::after {
  right: 4px;
  border-left-color: var(--color-dark);
}
.ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(37, 27, 25, 0.78);
  color: var(--color-white);
  pointer-events: none;
}
.ba-label-foer { left: 14px; }
.ba-label-efter { right: 14px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
}
.ba-range:focus-visible ~ .ba-handle,
.ba-slider:has(.ba-range:focus-visible) .ba-handle {
  outline: 2px solid var(--color-gold);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.project-card:hover {
  border-color: rgba(199,158,16,0.42);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-dark-soft);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.project-card:hover .project-media img { transform: scale(1.055); }
.reveal {
  transition: opacity .62s ease, transform .62s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
.project-body { padding: 26px 26px 30px; }
.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 10px;
}
.project-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.project-body p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
.project-scroll-note { display: none; }

/* ---- Om os ---- */
.about { background: var(--color-white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.about h2 { margin-bottom: 18px; }
.about-media { min-height: 560px; }
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-erhverv {
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--color-off-white);
  border-left: 3px solid var(--color-gold);
}
.about-erhverv h3 { font-size: 1.15rem; margin-bottom: 10px; }
.about-erhverv p { font-size: 0.97rem; margin-bottom: 18px; }
.about-erhverv .section-link { font-size: 0.8rem; }
.about-text p { color: var(--color-text-muted); font-size: 1.02rem; }
.about-text .about-intro { color: var(--color-text); font-weight: 500; }

/* ---- CTA-bånd ---- */
.cta-band {
  position: relative;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 150px 0;
  overflow: hidden;
}
.cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37,27,25,0.88) 0%, rgba(37,27,25,0.72) 55%, rgba(37,27,25,0.45) 100%);
}
.cta-band-inner { position: relative; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
/* Slogan, ikke sektionsoverskrift – derfor <p>, men med overskrifternes udtryk. */
.cta-slogan { font-family: var(--font-display); line-height: 1.1; margin-bottom: 10px; max-width: 620px; }
.cta-accent { color: var(--color-gold); }
.cta-lead { color: rgba(255,255,255,0.75); margin: 0; max-width: 440px; }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Kontakt ---- */
.contact { background: var(--color-off-white); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--color-text-muted); }
.contact-details { margin-top: 36px; display: grid; gap: 26px; }
.contact-details li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #f0e9dd;
  color: var(--color-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
a.contact-value:hover { color: var(--color-gold-dark); }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-title {
  font-size: 1.45rem;
  margin-bottom: 24px;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-row { margin-bottom: 20px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row-split > div { margin-bottom: 0; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: #fdfcfa;
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: #b3a99e; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(237, 189, 23, 0.25);
}
button:disabled { cursor: wait; opacity: 0.7; }
textarea { resize: vertical; }
.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}
.form-status {
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 10px 0 0;
  min-height: 1.2em;
}
.form-status.success { color: #2f7a3d; }
.form-status.error { color: #b8402b; }

/* ---- Tillid / badges ---- */
.badges {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 72px 0;
}
.badges-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.badges-text h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.badges-text p:last-child { color: var(--color-text-muted); margin: 0; max-width: 520px; }
.badges-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}
.badges-logos img { height: 72px; width: auto; }

@media (max-width: 900px) {
  .badges { padding: 56px 0; }
  .badges-inner { grid-template-columns: 1fr; gap: 32px; }
  .badges-logos { justify-content: flex-start; gap: 36px; }
  .badges-logos img { height: 58px; }
}

/* ---- Footer ---- */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,0.75); }
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 52px 0 34px;
}
.footer-logo img { height: 50px; width: auto; }
.footer-inner nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-inner nav a { font-size: 0.9rem; font-weight: 600; }
.footer-inner nav a:hover { color: var(--color-gold); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-size: 0.9rem;
}
.footer-contact a:hover { color: var(--color-gold); }
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease-out);
}
.footer-social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom p { margin: 0; }
.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.footer-cookie-link:hover { color: var(--color-gold); }

/* ---- Cookie-samtykke ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--color-dark);
  border-top: 1px solid rgba(237,189,23,0.25);
  box-shadow: 0 -14px 34px rgba(0,0,0,0.28);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  margin: 0;
  max-width: 620px;
}
.cookie-banner a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
/* Samtykke skal være frivilligt: begge knapper har samme vægt, størrelse og
   fylde – ingen "glød" eller fremhævning der nudger mod Accepter. */
.cookie-banner-actions .btn {
  min-width: 140px;
  box-shadow: none;
}
.cookie-banner-actions .btn:hover { box-shadow: none; }
@media (max-width: 560px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---- Mobil hurtigkontakt ---- */
.mobile-action-bar {
  display: none;
}

/* ---- Responsivt ---- */
@media (max-width: 1060px) {
  .main-nav { gap: 20px; }
  .main-nav ul { gap: 20px; }
}

@media (max-width: 900px) {
  .service-list { grid-template-columns: 1fr; gap: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .ba-feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-media { min-height: 0; }
  .about-media img { height: auto; aspect-ratio: 4 / 5; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 820px) {
  .topbar-left { gap: 14px; }
  .topbar-item span { font-size: 0.8rem; }
  .topbar-location { display: none; }
  .topbar { display: none; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 63px;
    left: 0; right: 0; bottom: 0;
    background: var(--color-dark);
    border-top: 1px solid rgba(237,189,23,0.18);
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    animation: mobile-nav-in .28s var(--ease-out);
  }
  @keyframes mobile-nav-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
  }
  .site-header.nav-open .main-nav ul a {
    display: block;
    padding: 18px 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-cta {
    width: 100%;
    min-height: 52px;
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark);
    box-shadow: var(--shadow-gold);
  }
  .nav-cta:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); }
  @media (max-width: 520px) {
    .site-header.nav-open .main-nav { top: 57px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .site-header.nav-open .main-nav { animation: none; }
  }

  .logo img { height: 46px; }
  .hero { min-height: 540px; }
  .hero-inner { padding-top: 82px; padding-bottom: 82px; }
  .services, .projects, .about, .contact { padding: 72px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 40px;
  }
  .form-row-split { grid-template-columns: 1fr; }
  .cta-band { padding: 64px 0; }
  .cta-video {
    /* The van sits on the left side of the source video; keep it in frame on narrow screens. */
    object-position: 14% center;
  }
  .cta-overlay {
    background: linear-gradient(90deg, rgba(37,27,25,0.84) 0%, rgba(37,27,25,0.64) 56%, rgba(37,27,25,0.42) 100%);
  }
  .projects > .cta-band { margin-bottom: 48px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .project-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .project-grid::-webkit-scrollbar { display: none; }
  .project-card {
    flex: 0 0 min(84vw, 340px);
    scroll-snap-align: start;
    border: 0;
    background: transparent;
  }
  .project-media { border-radius: 14px; }
  .project-body { padding: 16px 4px 4px; }
  .project-body p { font-size: 0.9rem; }
  .project-scroll-note {
    display: block;
    margin: 18px 0 0;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
  }
  .project-scroll-note span { color: var(--color-gold-dark); font-size: 1rem; }
  .service-item { padding: 22px 0; }
  .service-item summary {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
  }
  .service-item summary h3 { font-size: 1.06rem; }
  .service-item summary::after {
    display: block;
    grid-column: 3;
    justify-self: end;
    grid-row: 1;
    color: var(--color-gold-dark);
    font-family: var(--font-body);
    font-size: 1.35rem;
    line-height: 1;
    margin-left: auto;
  }
  .service-item details[open] summary::after { content: "–"; }
  .service-item details:not([open]) > p { display: none; }
  .service-item details > p { margin: 14px 0 0 40px; font-size: 0.92rem; }
  .badges { padding: 42px 0; }
  .badges-inner { gap: 20px; }
  .badges-text h2 { font-size: 1.35rem; margin-bottom: 0; }
  .badges-text p:last-child { display: none; }
  .badges-logos { gap: 24px; }
  .badges-logos img { height: 42px; }
  .reveal, .reveal.is-visible { filter: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { align-items: flex-start; }

  .mobile-action-bar {
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(37, 27, 25, 0.96);
    border-top: 1px solid rgba(237, 189, 23, 0.22);
    box-shadow: 0 -14px 30px rgba(21, 14, 12, 0.2);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s var(--ease-out), opacity .3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mobile-action-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .mobile-action-call {
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.38);
  }
  .mobile-action-call svg { color: var(--color-gold); }
  .mobile-action-quote {
    color: var(--color-dark);
    background: var(--color-gold);
  }
  .mobile-action-arrow { font-size: 1.1rem; line-height: 1; }
  .site-footer { padding-bottom: 82px; }
}

@media (max-width: 520px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .logo img { height: 40px; }
  .nav-toggle {
    width: 38px;
    height: 38px;
  }
  .hero {
    min-height: 500px;
    align-items: flex-end;
  }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(21,14,12,0.88) 0%, rgba(21,14,12,0.68) 58%, rgba(21,14,12,0.42) 100%);
  }
  .hero-inner {
    padding-top: 56px;
    padding-bottom: 58px;
  }
  /* 0.78rem er det største, der holder søgeordslinjen på én linje på iPhone. */
  .hero-kicker { font-size: 0.78rem; letter-spacing: 0.05em; margin-bottom: 14px; }
  .hero h1 {
  font-size: clamp(2rem, 9.4vw, 2.7rem);
    max-width: 11em;
    margin-bottom: 18px;
  }
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .hero-actions {
    display: grid;
    gap: 12px;
    max-width: 300px;
  }
  .hero-proof { flex-wrap: wrap; gap: 6px; font-size: 0.74rem; max-width: 300px; }
  .btn-lg { padding: 14px 22px; }
  .hero-actions .btn { min-height: 48px; }
  input, select, textarea { font-size: 16px; }
  .cta-band { padding: 42px 0; }
  .cta-slogan { font-size: 1.65rem; max-width: 300px; }
  .cta-lead { display: none; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { width: 100%; min-height: 48px; }
  .cta-band-actions .btn-outline-light { display: none; }
  .marquee { padding: 14px 0; }
  .marquee-track { display: flex; animation-duration: 48s; }
  .marquee-group { gap: 36px; padding-right: 36px; }
  .marquee-item { font-size: 0.82rem; }
  .marquee-mark { display: block; height: 20px; width: 20px; }
  .services, .projects, .about, .contact { padding: 60px 0; }
  .ba-feature { padding: 20px; margin-bottom: 36px; }
  .contact-form { padding: 28px 22px; }
  .mobile-action-bar {
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: transparent;
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mobile-action {
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(21, 14, 12, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .ba-handle span { animation: none; }
}

/* ---- Privatlivspolitik ---- */
.form-privacy {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}
.form-privacy a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
}
.legal-hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 92px 0 84px;
}
.legal-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-bottom: 14px;
}
.legal-updated {
  color: rgba(255,255,255,0.66);
  margin: 0;
  font-size: 0.92rem;
}
.legal-content {
  padding: 88px 0 112px;
  background: var(--color-white);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
  gap: 88px;
  align-items: start;
}
.legal-document {
  min-width: 0;
  font-size: 0.98rem;
}
.legal-lead {
  color: var(--color-text);
  font-size: 1.12rem;
  line-height: 1.65;
  margin-bottom: 42px;
}
.legal-document h2 {
  font-size: 1.35rem;
  margin: 42px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.legal-document h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-document p,
.legal-document ul,
.legal-document address {
  color: var(--color-text-muted);
}
.legal-document p { max-width: 720px; }
.legal-document ul {
  list-style: disc;
  margin: 0 0 1em;
  padding-left: 1.25rem;
}
.legal-document li { padding-left: 0.25rem; margin-bottom: 5px; }
.legal-document address {
  font-style: normal;
  line-height: 1.8;
}
.legal-document a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
}
.legal-aside {
  position: sticky;
  top: 120px;
  border-left: 3px solid var(--color-gold);
  padding: 22px 0 22px 26px;
}
.legal-aside h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.legal-aside p { color: var(--color-text-muted); }
.legal-aside .section-link {
  display: table;
  margin-top: 14px;
  white-space: normal;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .legal-aside {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  .legal-hero { padding: 64px 0 58px; }
  .legal-hero h1 { font-size: 2.45rem; }
  .legal-content { padding: 60px 0 76px; }
  .legal-document { font-size: 0.95rem; }
  .legal-lead { font-size: 1.04rem; margin-bottom: 32px; }
  .legal-document h2 { font-size: 1.2rem; margin-top: 34px; padding-top: 20px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.45rem; }
}
