/* ==========================================================
   Boye Murerservice ApS – stylesheet
   ========================================================== */

:root {
  --cream: #f6efe4;
  --cream-light: #fbf7f0;
  --sand: #e9dcc8;
  --stone: #d8c7ad;
  --bordeaux: #6b1e23;
  --bordeaux-dark: #4a1418;
  --bordeaux-light: #8c3a3f;
  --ink: #2a2523;
  --muted: #6d625a;
  --line: rgba(42, 37, 35, .12);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(74, 20, 24, .28);
  --shadow-sm: 0 8px 24px -12px rgba(74, 20, 24, .25);
  --header-h: 76px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bordeaux); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--bordeaux); }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.lead { font-size: 1.15rem; color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--bordeaux);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 0; height: 0;
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid var(--bordeaux-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--bordeaux);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--bordeaux-dark); }

.btn-outline {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}
.btn-outline:hover { background: var(--bordeaux); color: #fff; }

.btn-sm { padding: .6rem 1.15rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 228, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(42, 37, 35, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 56px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: .35rem; line-height: 1.1; }
.brand-name { width: 230px; height: auto; }
.brand-sub {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s 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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  /* blød fugelinje-tekstur i baggrunden */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000 0%, transparent 65%);
  opacity: .55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-text .lead { max-width: 34em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 2rem 0 1.8rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 500;
  font-size: .95rem;
}
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bordeaux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-visual { position: relative; }

.tile-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 5px;
  aspect-ratio: 1 / 1.08;
  background: var(--stone);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.tile-wall span {
  border-radius: 4px;
  background: linear-gradient(145deg, #fbf7f0 0%, #efe5d4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 6px rgba(120, 90, 50, .08);
  transition: background .6s ease;
}
.tile-wall span.t-sand { background: linear-gradient(145deg, #eee2cf 0%, #e0cfb5 100%); }
.tile-wall span.t-accent { background: linear-gradient(145deg, var(--bordeaux-light) 0%, var(--bordeaux) 100%); }

.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.3rem;
  background: var(--cream-light);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-badge img { width: 54px; height: auto; }
.hero-badge strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; }
.hero-badge span { font-size: .85rem; color: var(--muted); }

/* ---------- Sektioner ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* ---------- Ydelser ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service {
  position: relative;
  padding: 2rem;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service p { color: var(--muted); margin: 0; }
.service .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  fill: none;
  stroke: var(--bordeaux);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.4rem;
  color: var(--cream);
  background:
    linear-gradient(160deg, rgba(74, 20, 24, .25), rgba(74, 20, 24, .95) 60%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .12) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .12) 46px 48px),
    var(--bordeaux);
  border: 0;
}
.service-featured h3 { color: #fff; font-size: 1.75rem; }
.service-featured p { color: rgba(246, 239, 228, .85); }
.service-featured .icon { stroke: var(--cream); width: 56px; height: 56px; }
.service-featured .tag {
  position: absolute;
  top: 1.6rem;
  left: 2.4rem;
  padding: .35rem .8rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--bordeaux);
  border-radius: 999px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: .45rem;
}
.checklist li { display: flex; gap: .6rem; align-items: baseline; }
.checklist li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  transform: rotate(45deg) translateY(-2px);
  background: var(--cream);
}

/* ---------- Hvorfor (mørk sektion) ---------- */
.section-dark {
  position: relative;
  background: var(--bordeaux-dark);
  color: var(--cream);
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 239, 228, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 228, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark h2 em { color: var(--stone); }
.section-dark .eyebrow { color: var(--stone); }

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}
.reason { border-top: 1px solid rgba(246, 239, 228, .25); padding-top: 1.6rem; }
.reason p { color: rgba(246, 239, 228, .75); margin: 0; }
.reason-num {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--stone);
}

/* ---------- Proces ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: var(--cream-light);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  background: var(--bordeaux);
  border-radius: 10px;
  transform: rotate(45deg);
}
.step::after {
  /* nummeret, lagt oven på den roterede flise */
  content: counter(step);
  position: absolute;
  top: 2rem;
  left: 1.6rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Om mig ---------- */
.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-image {
  position: relative;
  margin: 0;
}
.about-image::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 2px solid var(--bordeaux);
  border-radius: 30px;
}
.about-image img:first-child {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.about-image .chest-logo {
  position: absolute;
  left: 64%;
  top: 83%;
  width: 11%;
  height: auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}
.facts div {
  padding: 1.1rem 1rem;
  background: var(--cream-light);
  border-radius: var(--radius-sm);
}
.facts dt {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--bordeaux);
  line-height: 1.2;
}
.facts dd { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Galleri ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.gallery-wide { grid-column: span 2; }
.gallery-item {
  position: relative;
  margin: 0;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .8s ease;
}
.gallery-item:hover svg { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: .7rem 1.1rem;
  background: rgba(251, 247, 240, .94);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}
.gallery-item figcaption span {
  display: block;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */
.contact-section { padding-top: 0; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(140, 58, 63, .55), transparent 55%),
    var(--bordeaux);
  color: var(--cream);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.contact-card h2 { color: #fff; }
.contact-card .eyebrow { color: var(--stone); }
.contact-card .lead { color: rgba(246, 239, 228, .85); }

.contact-meta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .3rem;
  font-size: .95rem;
  color: rgba(246, 239, 228, .8);
}
.contact-meta strong { color: #fff; font-weight: 600; }

.contact-actions { display: grid; gap: 1rem; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  background: var(--cream-light);
  color: var(--ink);
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  word-break: break-word;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-btn:hover { transform: translateX(6px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.contact-btn small {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bordeaux);
}
.contact-icon svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0;
  background: var(--sand);
  color: var(--muted);
  font-size: .93rem;
  border-top: 4px solid var(--bordeaux);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer-brand img { width: 220px; height: auto; }
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-info a { color: var(--bordeaux); font-weight: 600; text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }
.copyright { width: 100%; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Mobil kontaktbjælke ---------- */
.mobile-bar { display: none; }

/* ---------- Animationer ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsivt
   ========================================================== */
@media (max-width: 1024px) {
  .reasons, .steps { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-featured { grid-row: auto; grid-column: span 2; min-height: 380px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(42, 37, 35, .35);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    z-index: -1;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a {
    display: block;
    padding: 1rem .25rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a::after { display: none; }

  .hero-inner, .about, .contact-card { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 1rem auto 0; width: 100%; }
  .hero-badge { left: -.5rem; }

  .about-image { max-width: 400px; margin-inline: auto; }

  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: span 2; }

  /* plads til mobilbjælken */
  body { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bordeaux);
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .4);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    padding: .65rem 0 .7rem;
    color: #fff;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
  }
  .mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
  .mobile-bar svg { width: 22px; height: 22px; fill: currentColor; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand-mark { width: 46px; }
  .brand-name { width: 190px; }
  .brand-sub { font-size: .62rem; }

  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  .services, .reasons, .steps, .facts { grid-template-columns: 1fr; }
  .service-featured { grid-column: auto; }

  .gallery { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; }
  .gallery-item { min-height: 220px; }
}
