/* =========================================================
   FÆLLES SERVICE-UNDERSIDER
   Bruges på: Kirker, Herregårdsrenovering,
   Skræddersyede snedkerløsninger
   ========================================================= */

/* =========================================================
   FÆLLES SEKTION – Hero + intro
   Bruges af shortcodes:
   [ng_kirker_hero], [ng_herregaard_hero], [ng_snedkerlosninger_hero]
   ========================================================= */
.subpage-hero {
  position: relative;
  min-height: 520px;
  background-image: url("https://nielsgroth.dk/wp-content/uploads/2026/05/IMG_0546-scaled.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  overflow: hidden;
  font-family: "Times New Roman", Times, serif;
}

/* Side-specifikke hero-billeder */
.herregaard-hero {
  background-image: url("https://nielsgroth.dk/wp-content/uploads/2026/05/IMG_0546-scaled.jpg");
}

.kirker-hero {
  background-image: url("https://nielsgroth.dk/wp-content/uploads/2026/05/kirker-hero.jpg");
}

.snedkerlosninger-hero {
  background-image: url("https://nielsgroth.dk/wp-content/uploads/2026/05/snedker-hero-dark-2.jpg");
}

.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 19, 38, 0.38),
    rgba(2, 19, 38, 0.68)
  );
  z-index: 1;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  text-align: center;
  color: #fff;
}

.snedkerlosninger-hero .subpage-hero-content {
  max-width: 1120px;
}

.subpage-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e3c19c;
  font-weight: 600;
}

.subpage-hero h1 {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 700;
  color: #fff;
}

.snedkerlosninger-title {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(52px, 5.4vw, 82px);
}


.mobile-title-break { display: none; }

.subpage-hero p {
  max-width: 620px;
  margin: 24px auto 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* ================================
   CONTENT SECTION
================================ */

.subpage-content {
  background: #f7f5f1;
  padding: 110px 24px 68px;
  font-family: "Times New Roman", Times, serif;
}

.subpage-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.subpage-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(118, 82, 56, 0.10);
  color: #765238;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.subpage-text h2 {
  margin: 0 0 26px;
  max-width: 560px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.98;
  color: #004073;
  font-weight: 700;
}

.subpage-text p {
  max-width: 590px;
  margin: 0 0 20px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.8;
  color: #19324a;
}

.subpage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 60px;
  background: #004073;
  color: #fff;
  border-radius: 4px;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.subpage-button:hover {
  background: #071D2E;
  color: #fff;
  transform: translateY(-2px);
}

/* ================================
   IMAGE GRID
================================ */

.subpage-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.subpage-image-card {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 24px 50px rgba(2, 19, 38, 0.16);
}

.subpage-image-card.large {
  grid-row: span 2;
  min-height: 520px;
}

.subpage-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.subpage-image-card:hover img {
  transform: scale(1.05);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .subpage-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .subpage-text {
    max-width: 760px;
  }

  .subpage-image-card.large {
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .subpage-hero {
    min-height: 430px;
    padding: 90px 18px 75px;
    align-items: center;
  }

  .subpage-hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .subpage-kicker {
    font-size: 10px;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
  }

  .subpage-hero h1 {
    font-size: clamp(30px, 8.8vw, 38px);
    line-height: 1.02;
    max-width: min(92vw, 360px);
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .snedkerlosninger-title {
    max-width: 305px;
    transform: translateX(-4px);
    font-size: clamp(30px, 8.8vw, 38px);
  }

  .herregaard-title {
    max-width: 340px;
  }

  .snedkerlosninger-title span,
  .herregaard-title span {
    display: inline-block;
  }

  .snedkerlosninger-title .mobile-title-break,
  .herregaard-title .mobile-title-break {
    display: block;
  }

  .subpage-hero p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 92%;
  }

  .subpage-content {
    padding: 75px 20px 56px;
  }

  .subpage-text h2 {
    font-size: 38px;
  }

  .subpage-text p {
    font-size: 15px;
  }

  .subpage-image-grid {
    grid-template-columns: 1fr;
  }

  .subpage-image-card,
  .subpage-image-card.large {
    min-height: 300px;
  }
}

/* =========================================================
   FÆLLES SEKTION – Showcase
   Bruges af shortcodes:
   [ng_kirker_showcase], [ng_herregaard_showcase], [ng_snedkerlosninger_showcase]
   ========================================================= */
.subpage-showcase {
  background: #021326;
  padding: 110px 24px 68px;
  font-family: "Times New Roman", Times, serif;
  color: #fff;
}

.subpage-showcase-inner {
  width: min(1400px, 100%);
  margin: 0 auto;
}


.subpage-showcase .subpage-label {
  background: rgba(199, 162, 122, 0.12);
  color: #c7a27a;
}

.subpage-showcase-header {
  max-width: 760px;
  margin-bottom: 60px;
}

.subpage-showcase-header h2 {
  margin: 0 0 22px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.98;
  color: #fff;
  font-weight: 700;
}

.subpage-showcase-header p {
  max-width: 620px;
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.subpage-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.subpage-showcase-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
  min-width: 0;
}

.subpage-showcase-card.image-card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.subpage-showcase-card.image-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.subpage-showcase-card.image-card:hover img {
  transform: scale(1.05);
}

.subpage-showcase-card.tall {
  grid-row: span 2;
  height: 578px;
}

.subpage-showcase-card.text-card {
  background: #f7f5f1;
  color: #021326;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Times New Roman", Times, serif;
}

.subpage-showcase-card.text-card.dark {
  background: linear-gradient(145deg, #09233d, #020c18);
  color: #fff;
}

.subpage-showcase-card.text-card span {
  display: inline-block;
  margin-bottom: 14px;
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  line-height: 1;
  color: #765238;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.subpage-showcase-card.text-card.dark span {
  color: #c7a27a;
}

.subpage-showcase-card.text-card h3 {
  margin: 0 0 14px;
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  line-height: 1.05;
  color: inherit;
}

.subpage-showcase-card.text-card p {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.7;
  color: inherit;
  opacity: 0.78;
}

/* ================================
   RESPONSIVE SHOWCASE
================================ */

@media (max-width: 1024px) {
  .subpage-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-showcase-card {
    height: 320px;
  }

  .subpage-showcase-card.tall {
    grid-row: span 1;
    height: 320px;
  }
}

@media (max-width: 767px) {
  .subpage-showcase {
    padding: 75px 20px 56px;
  }

  .subpage-showcase-header {
    margin-bottom: 42px;
  }

  .subpage-showcase-header h2 {
    font-size: 38px;
  }

  .subpage-showcase-header p {
    font-size: 15px;
  }

  .subpage-showcase-grid {
    grid-template-columns: 1fr;
  }

  .subpage-showcase-card,
  .subpage-showcase-card.tall {
    height: 300px;
  }

  .subpage-showcase-card.text-card {
    height: auto;
    min-height: 260px;
    padding: 28px;
  }
}

/* =========================================================
   KIRKER – foldbar referenceliste
   ========================================================= */
.church-reference-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #f8f5ef;
  padding: 36px 24px 96px;
}
.church-reference-inner { max-width: 1120px; margin: 0 auto; }
.church-reference-card {
  border: 1px solid rgba(2,19,38,.1);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}
.church-reference-card summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 32px;
  position: relative;
}
.church-reference-card summary::-webkit-details-marker { display: none; }
.church-reference-card summary h2 { margin: 8px 0 0; }
.church-reference-card summary em {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  color: #765238;
  font-style: normal;
  font-weight: 600;
}
.church-reference-card[open] summary em { font-size: 0; }
.church-reference-card[open] summary em::after { content: 'Skjul liste'; font-size: 14px; }
.church-reference-list {
  columns: 3;
  column-gap: 28px;
  border-top: 1px solid rgba(2,19,38,.08);
  padding: 28px 32px 32px;
}
.church-reference-list span {
  display: block;
  break-inside: avoid;
  margin-bottom: 10px;
  color: #334155;
}
@media (max-width: 900px) { .church-reference-list { columns: 2; } }
@media (max-width: 640px) {
  .church-reference-card summary em { position: static; display: block; transform: none; margin-top: 10px; }
  .church-reference-list { columns: 1; }
}
