/* ===========================================================
   M&B Haveservice — fælles stylesheet
   Cream/beige · serif overskrifter · sans-serif brødtekst
   =========================================================== */

:root {
  --cream: #FAF3EA;
  --cream-deep: #F3E9DA;
  --ink: #1C1B19;
  --charcoal: #2E2C28;
  --gray: #6E6A63;
  --line: #DED3C2;
  --accent: #3E4A3D;        /* dæmpet skovgrøn til detaljer */
  --accent-soft: #8A9784;
  --max: 1180px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

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

/* ---------- Knapper ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: all .25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand .monogram {
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--ink);
}
.brand .brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--ink);
}
.brand .brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { border-bottom-color: var(--ink); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 26px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: .3s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 12px; }
.nav-toggle span:nth-child(3) { top: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,.30), rgba(20,18,15,.55));
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 40px 32px;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(255,255,255,.85);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero .slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  color: rgba(255,255,255,.95);
  margin-bottom: 36px;
}
.hero .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .btn:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Sektioner ---------- */
section { padding: 110px 0; }
.section-tight { padding: 80px 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-head { max-width: 680px; margin: 0 auto 70px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.section-head p { color: var(--gray); font-size: 18px; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Intro split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split img { width: 100%; height: 520px; object-fit: cover; }
.split .text p { color: var(--gray); margin-bottom: 20px; }

/* ---------- Why choose us ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.feature { text-align: center; }
.feature .num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.6rem; margin-bottom: 14px; }
.feature p { color: var(--gray); }

.band { background: var(--cream-deep); }

/* ---------- Services ---------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--cream);
  padding: 48px 44px;
}
.service-card .idx {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
}
.service-card h3 { font-size: 1.8rem; margin: 14px 0 14px; }
.service-card p { color: var(--gray); margin-bottom: 22px; }
.service-card .price {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: inline-block;
}

/* ---------- Kategori-navigation (referencer) ---------- */
.cat-nav-wrap {
  position: sticky;
  top: 84px;
  z-index: 90;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.cat-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-pill {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line);
  color: var(--gray);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.active { border-color: var(--accent); color: var(--accent); background: var(--cream-deep); }
.cat-section { padding: 72px 0 0; }
.refs-soon { color: var(--gray); font-size: 15px; padding: 40px 0 72px; border-top: 1px solid var(--line); }

/* ---------- Referencer / galleri ---------- */
.gallery-category { margin-bottom: 72px; }
.gallery-category + .gallery-category { border-top: 1px solid var(--line); padding-top: 72px; }
.category-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.case figure { margin: 0; background: var(--cream); }
.case-img { width: 100%; height: 300px; object-fit: cover; display: block; border-radius: 2px; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(28,27,25,.93); z-index: 1000; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; cursor: default; border-radius: 2px; }
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: rgba(255,255,255,.8); font-size: 28px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.lb-close:hover { color: #fff; }
.beforeafter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--cream);
  position: relative;
}
.beforeafter .ba-item { position: relative; }
.beforeafter img { width: 100%; height: 300px; object-fit: cover; }
.img-wrap { position: relative; }
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(250,243,234,.92);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  z-index: 1;
}
.tag-right { left: calc(50% + 14px); }
.case-img-auto { height: auto; object-fit: unset; }
.case figcaption {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.case .sub { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* ---------- Om os ---------- */
.founders { display: grid; grid-template-columns: repeat(2,1fr); gap: 60px; margin-top: 30px; }
.founder img { width: 100%; height: 460px; object-fit: cover; margin-bottom: 24px; }
.founder h3 { font-size: 1.7rem; margin-bottom: 6px; }
.founder .role { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.founder p { color: var(--gray); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info dt {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-info dd { margin: 0 0 30px; font-size: 19px; color: var(--ink); }

form .field { margin-bottom: 24px; }
form label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
form input, form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--ink); }
form textarea { resize: vertical; min-height: 140px; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 22px; }
.cta p { color: var(--gray); max-width: 560px; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-footer .brand-name { color: var(--cream); }
.site-footer .monogram { border-color: var(--cream); color: var(--cream); }
.site-footer .brand-name small { color: rgba(255,255,255,.6); }
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; list-style: none; }
.footer-nav a { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.8); }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsivt ---------- */
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split img { height: 380px; }
  .features { grid-template-columns: 1fr; gap: 48px; }
  .services-list, .gallery, .founders { grid-template-columns: 1fr; }
  .gallery { gap: 48px; }
  .founders { gap: 48px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active { border-bottom-color: var(--line); }
  section { padding: 72px 0; }
  .container { padding: 0 22px; }
  .service-card { padding: 36px 28px; }
}

@media (max-width: 460px) {
  .beforeafter { grid-template-columns: 1fr; }
  .beforeafter img { height: 240px; }
  .brand .brand-name { font-size: 18px; }
}
