/*
  Gaard Byg ApS - mockup design system
  Sort + warm wood + cream palette. Playfair Display headlines, Inter body.
  Delt af b2c.html og b2b.html. Klassenavne har valgfri --b2b modifier på <body>
  for B2B-variant (lidt strammere/forretningsorienteret stilforskel).
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --ink: #0d0d0d;
  --ink-soft: #2a2624;
  --muted: #6b5e54;
  --cream: #faf6ef;
  --cream-deep: #f3ece0;
  --paper: #ffffff;
  --line: #e6dec9;
  --line-strong: #c9b89a;

  --wood: #8B5A2B;
  --wood-dark: #6b4220;
  --wood-light: #C9985B;
  --wood-pale: #e8dcc4;

  --shadow-sm: 0 1px 2px rgba(43, 30, 20, 0.06);
  --shadow: 0 18px 40px -20px rgba(43, 30, 20, 0.25), 0 4px 12px rgba(43, 30, 20, 0.06);
  --shadow-lg: 0 40px 80px -30px rgba(43, 30, 20, 0.35);

  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --radius: 6px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--ink-soft); }
.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wood);
  font-family: var(--sans);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--wood);
}

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

section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: all 0.25s var(--ease);
  font-family: var(--sans);
  letter-spacing: 0.01em;
}
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover { background: var(--wood-dark); }
.btn--wood {
  background: var(--wood);
  color: #fff;
}
.btn--wood:hover { background: var(--wood-dark); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 0.6rem 0;
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
}
.btn--ghost:hover { color: var(--wood); border-color: var(--wood); }
.btn--lg { padding: 1.2rem 2.2rem; font-size: 1.05rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wood);
  font-weight: 600;
}
.nav { display: flex; }
.nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.nav a:hover { color: var(--wood); }
.nav a.active {
  color: var(--wood);
}
.header-cta { display: inline-flex; gap: 0.6rem; align-items: center; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.header-phone svg { color: var(--wood); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Variant-switch in header (B2C ↔ B2B) */
.variant-switch {
  display: inline-flex;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.variant-switch a {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s;
}
.variant-switch a.active {
  background: var(--ink);
  color: var(--cream);
}
.variant-switch a:not(.active):hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-phone span { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__copy { max-width: 580px; }
.hero h1 { margin: 1.4rem 0 1.4rem; }
.hero h1 em {
  font-style: italic;
  color: var(--wood);
  font-weight: 500;
}
.hero__lede { margin-bottom: 2rem; }
.hero__ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero__meta-item strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
}
.hero__meta-item span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 560px;
  margin-left: auto;
}
.hero__visual img.main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__visual .stamp {
  position: absolute;
  bottom: 1.8rem;
  left: -1.5rem;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  display: flex;
  gap: 0.9rem;
  align-items: center;
  box-shadow: var(--shadow);
  max-width: 250px;
}
.hero__visual .stamp .stamp__num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--wood);
  line-height: 1;
}
.hero__visual .stamp .stamp__txt {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
.hero__visual .accent-shape {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 110px;
  height: 110px;
  background: var(--wood-pale);
  border-radius: 50%;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 4 / 3.5; max-width: 100%; margin: 0 auto; }
  .hero__visual .stamp { left: 1rem; max-width: 220px; }
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
.trust-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-item svg { color: var(--wood); flex-shrink: 0; }

/* ============ SERVICES ============ */
.services { background: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-deep);
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__image img { transform: scale(1.06); }
.service-card__body {
  padding: 1.6rem 1.5rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card__body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.service-card__body p {
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}
.service-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wood);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ============ GALLERY (før/efter) ============ */
.gallery { background: var(--cream-deep); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.4rem 1.2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.85) 100%);
  color: #fff;
}
.gallery-item__caption h4 { color: #fff; margin-bottom: 0.2rem; font-family: var(--serif); }
.gallery-item__caption p { color: rgba(255,255,255,0.78); font-size: 0.85rem; }
.gallery-item--lg { grid-column: span 7; }
.gallery-item--md { grid-column: span 5; aspect-ratio: 4 / 3; }
.gallery-item--sm { grid-column: span 4; aspect-ratio: 1 / 1; }

@media (max-width: 900px) {
  .gallery-item--lg, .gallery-item--md, .gallery-item--sm { grid-column: span 6; }
}
@media (max-width: 560px) {
  .gallery-item--lg, .gallery-item--md, .gallery-item--sm { grid-column: span 12; }
}

/* ============ PROCESS ============ */
.process { background: var(--paper); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-top: 2.2rem;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--wood);
  line-height: 1;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 1.1rem;
  left: 3.6rem;
  right: -1.4rem;
  height: 1px;
  background: var(--line-strong);
}
.process-step:last-child::after { display: none; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
}
@media (max-width: 540px) {
  .process__steps { grid-template-columns: 1fr; }
}

/* ============ TESTIMONIALS / CASES ============ */
.testimonials { background: var(--cream); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: var(--wood);
  margin-bottom: 1rem;
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.4rem;
  flex: 1;
}
.testimonial-card__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wood-pale);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  font-family: var(--serif);
}
.testimonial-card__name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.testimonial-card__role { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 900px) { .testimonials__grid { grid-template-columns: 1fr; } }

/* ============ USP / WHY US ============ */
.usp {
  background: var(--ink);
  color: var(--cream);
}
.usp .eyebrow { color: var(--wood-light); }
.usp .eyebrow::before { background: var(--wood-light); }
.usp h2 { color: var(--cream); }
.usp p { color: rgba(250, 246, 239, 0.72); }
.usp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
.usp-card {
  padding: 2rem;
  background: rgba(250, 246, 239, 0.04);
  border: 1px solid rgba(250, 246, 239, 0.12);
  border-radius: var(--radius-lg);
}
.usp-card svg {
  color: var(--wood-light);
  margin-bottom: 1.2rem;
}
.usp-card h3 { color: var(--cream); margin-bottom: 0.6rem; font-size: 1.2rem; }
.usp-card p { color: rgba(250, 246, 239, 0.72); font-size: 0.95rem; }

@media (max-width: 900px) { .usp__grid { grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.contact__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
  margin-top: 3rem;
}
.contact-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.contact-info li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info li .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wood-pale);
  color: var(--wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info li strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.2rem; }
.contact-info li span { font-size: 1.05rem; color: var(--ink); font-weight: 500; }

.contact-form {
  background: var(--paper);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.98rem;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--wood);
  background: #fff;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 1.4rem; }

@media (max-width: 900px) { .contact__split { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(250, 246, 239, 0.7);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand .brand__name { color: var(--cream); }
.footer__brand .brand__sub { color: var(--wood-light); }
.footer__brand p {
  margin-top: 1rem;
  color: rgba(250, 246, 239, 0.6);
  font-size: 0.95rem;
  max-width: 320px;
}
.footer h5 {
  font-family: var(--sans);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.93rem; }
.footer a { color: rgba(250, 246, 239, 0.7); }
.footer a:hover { color: var(--cream); }
.footer__bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.5);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ B2B variant tweaks ============ */
body.b2b {
  /* B2B er en tand mere formel - lidt mere dæmpet wood-accent */
  --wood: #6b4220;
  --wood-light: #b88a4a;
}
body.b2b h1, body.b2b h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}
body.b2b h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
}
body.b2b .hero__visual img.main { border-radius: var(--radius); }
body.b2b .btn { border-radius: 2px; }
