/* Witt Byg & Service */
:root {
  --green: #3a7d44;
  --green-dark: #2c5e34;
  --blue: #4a90b8;
  --blue-dark: #356585;
  --ink: #1f2a23;
  --muted: #5b6660;
  --bg: #ffffff;
  --bg-alt: #f3f6f2;
  --line: #e2e8e0;
  --radius: 12px;
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
a { color: inherit; }

/* ── Header (floating pill on desktop) ── */
.site-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 68px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s;
}
.nav a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s;
}

/* ── Main offset for fixed header ── */
main { padding-top: 112px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: background .2s, transform .1s;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
  padding: 10px 20px;
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* ── Hero ── */
.hero {
  background:
    linear-gradient(160deg, rgba(74, 144, 184, .78) 0%, rgba(58, 125, 68, .84) 100%),
    url('img/hero.jpeg') center 22% / cover no-repeat;
  color: #fff;
  padding: 80px 0 100px;
  min-height: 480px;
}
.hero-inner { max-width: 900px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  opacity: .9;
  margin-bottom: .6em;
}
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); margin-bottom: .3em; }
.lead { font-size: 1.15rem; opacity: .96; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .8); }
.hero .btn-outline:hover { background: #fff; color: var(--green-dark); }

/* ── Sections ── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 620px; margin-bottom: 2em; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.card h3 { color: var(--green-dark); }
.card p { color: var(--muted); margin: 0; }

.card-icon {
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}

/* ── About (no photo) ── */
.about-solo { max-width: 760px; }
.about-body {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
}
.about-body p:last-child { margin-bottom: 0; }
.about-list {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.about-list li { margin-bottom: .4em; }
.about-body a {
  color: var(--green-dark);
  font-weight: 600;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 40px;
  margin: 1.8em 0 1.6em;
  padding: 1.4em 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 4px;
}
.fact-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── Gallery (grouped bento) ── */
.gallery-group { margin-top: 40px; }
.gallery-group:first-of-type { margin-top: 8px; }
.gallery-group-title {
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  display: inline-block;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  gap: 12px;
}
/* 4-image bento: big lead + two stacked + one wide */
figure.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
figure.gallery-item:nth-child(4) { grid-column: span 2; }
figure.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  cursor: zoom-in;
}
figure.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
figure.gallery-item:hover img { transform: scale(1.06); }
figure.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  transform: translateY(100%);
  transition: transform .3s ease;
}
figure.gallery-item:hover figcaption { transform: translateY(0); }

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  figure.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  figure.gallery-item:nth-child(4) { grid-column: span 1; }
}

/* Extra images: only shown inside the lightbox, hidden in the grid */
figure.gallery-item.extra { display: none; }

/* "+N" badge on the last visible thumbnail */
.more-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 12, .92);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: #1b1f1d;
}
.lightbox-caption {
  color: #e7ece8;
  font-size: .95rem;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #cdd6cf;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 46px; height: 46px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-img { max-height: 72vh; }
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.contact-card { cursor: pointer; }
a.contact-card:hover { border-color: var(--green); transform: translateY(-2px); }
a.contact-card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-value { font-size: 1.15rem; font-weight: 600; color: var(--green-dark); word-break: break-word; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: #cdd6cf;
  padding: 28px 0;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: #cdd6cf; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .site-header {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--line);
  }
  .header-inner { height: 64px; }
  .brand-logo { height: 46px; }
  /* Hold "Område" og "Kontakt" i samme kolonne, så de står lige over hinanden */
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  main { padding-top: 64px; }
  html { scroll-padding-top: 74px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 8px; }
}

/* ── Improvements ── */

/* CTA accent button */
.btn-cta { background: #e8852b; }
.btn-cta:hover { background: #cf7220; }
.hero .btn-cta { background: #e8852b; color: #fff; }
.hero .btn-cta:hover { background: #cf7220; }

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.step { position: relative; padding-left: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 12px;
}
.step h3 { color: var(--green-dark); margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review {
  margin: 0;
  background: var(--bg-alt);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
}
.review p { font-size: 1.05rem; margin-bottom: .6em; }
.review cite { color: var(--muted); font-style: normal; font-weight: 600; }
.reviews-note { margin-top: 1.6em; color: var(--muted); }
.reviews-note a { color: var(--green-dark); font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--green);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.quote-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote-form h3 { margin: 0; color: var(--green-dark); }
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: .92rem;
}
.quote-form input,
.quote-form textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.quote-form input:focus,
.quote-form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.quote-form button { align-self: flex-start; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; font-weight: 400; }

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* Floating call button (mobile) */
.call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: #e8852b;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  display: none;
  align-items: center;
  gap: 8px;
  transition: background .2s;
}
.call-fab:hover { background: #cf7220; }
@media (max-width: 760px) {
  .call-fab { display: flex; }
}

/* Legal / text pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; color: var(--green-dark); }
.legal p { color: var(--ink); }
.legal a { color: var(--green-dark); }

/* Secondary services block */
.services-also {
  margin-top: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.services-also h3 { color: var(--blue-dark); margin-bottom: .3em; }
.services-also p { color: var(--muted); margin: 0; }


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
