/*
 * Standalone layout patch for the wooden-finishing landing page.
 * Its distinct filename bypasses the stale static CSS response on staging.
 */
body.dg-service-seo-page-parent .ddom-site-header.unique-house__margin {
  margin-bottom: 0 !important;
}

body.dg-service-seo-page-parent .padding-header-top {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dg-wood-hero {
  min-height: 100svh;
  min-height: 100dvh;
  align-items: start;
}

.dg-wood-section + .dg-wood-section {
  padding-top: clamp(56px, 5vw, 72px);
}

.dg-wood-section--engineering {
  position: relative;
  isolation: isolate;
  border-block: 1px solid var(--dg-wood-line);
  background: linear-gradient(90deg, rgba(129, 0, 13, .055), transparent 46%), #e7eae8 !important;
}

.dg-wood-section--engineering::before {
  position: absolute;
  z-index: -1;
  inset: 18px 0;
  content: "";
  border-block: 1px solid rgba(29, 36, 39, .07);
  pointer-events: none;
}

.dg-wood-engineering__title {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.dg-wood-engineering__title .dg-wood-eyebrow {
  margin: 0;
}

.dg-wood-engineering__media {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  background: #d8dbd8;
}

.dg-wood-engineering__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.dg-wood-engineering__media img[hidden] {
  display: none !important;
}

.dg-wood-engineering__panels,
.dg-wood-engineering__panels section {
  min-width: 0;
}

.dg-wood-engineering__panels section > * {
  min-width: 0;
  max-width: 100%;
}

.dg-wood-photo--paint {
  position: relative;
}

.dg-wood-photo__paint-control {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: crosshair;
}

.dg-wood-photo__paint-fallback,
.dg-wood-photo__paint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dg-wood-photo__paint-canvas {
  display: block;
  opacity: 0;
  transition: opacity 160ms ease;
}

.dg-wood-photo__paint-control.is-ready .dg-wood-photo__paint-canvas {
  opacity: 1;
}

.dg-wood-photo__paint-control:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 3px var(--dg-wood-red);
}

.dg-wood-photo__paint-control:focus-visible::after {
  position: absolute;
  z-index: 2;
  inset: 7px;
  content: "";
  border: 1px solid rgba(255,255,255,.88);
  border-radius: inherit;
  pointer-events: none;
}

.dg-wood-section--materials .dg-wood-section-head { margin-bottom: 28px; }
.dg-wood-section--materials .dg-wood-type { position: relative; min-height: 0; overflow: hidden; }
.dg-wood-section--materials .dg-wood-type::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: var(--dg-wood-red); }
.dg-wood-section--materials .dg-wood-type__body { gap: 18px; padding: clamp(24px, 2.2vw, 28px); }
.dg-wood-section--materials .dg-wood-type h3 { font-size: clamp(20px, 1.7vw, 24px); }
.dg-wood-section--materials .dg-wood-material-notes { gap: 0; }
.dg-wood-section--materials .dg-wood-material-notes div { gap: 5px; border-top: 1px solid var(--dg-wood-line); padding: 14px 0; }
.dg-wood-section--materials .dg-wood-material-notes div:first-child { border-top: 0; padding-top: 0; }
.dg-wood-section--materials .dg-wood-material-notes div:last-child { padding-bottom: 0; }
.dg-wood-section--materials .dg-wood-material-notes dt { font-size: 11px; }
.dg-wood-section--materials .dg-wood-material-notes dd { font-size: 15px; line-height: 1.45; }
.dg-wood-section--materials .dg-wood-material-summary { margin-top: 14px; padding: clamp(22px, 2.4vw, 28px); }

@media (min-width: 821px) {
  .dg-wood-engineering__head {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .dg-wood-engineering__title h2 {
    max-width: 650px;
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: .98;
  }

  .dg-wood-engineering__head .dg-wood-copy {
    max-width: 500px;
    padding-top: 31px;
  }

  .dg-wood-section--materials .dg-wood-type-grid {
    align-items: stretch;
  }

  .dg-wood-section--materials .dg-wood-type {
    min-height: 0;
    grid-template-rows: 1fr;
  }

  .dg-wood-service .dg-wood-hero__content {
    padding: clamp(32px, 5vh, 56px) 0 clamp(32px, 5vh, 54px);
  }

  .dg-wood-section--surface {
    position: relative;
    isolation: isolate;
    min-height: clamp(460px, 45vw, 620px);
    overflow: hidden;
    background: #e5e7e4 !important;
  }

  .dg-wood-section--surface::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #e5e7e4 0%, #e5e7e4 36%, rgba(229, 231, 228, .98) 43%, rgba(229, 231, 228, .72) 51%, rgba(229, 231, 228, .16) 62%, rgba(229, 231, 228, 0) 71%);
    pointer-events: none;
  }

  .dg-wood-section--surface .dg-wood-surface-grid {
    position: relative;
    z-index: 2;
    min-height: clamp(460px, 45vw, 620px);
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }

  .dg-wood-section--surface .dg-wood-copy {
    max-width: 510px;
  }

  .dg-wood-section--surface .dg-wood-photo {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 47%;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    background: #e5e7e4;
  }

  .dg-wood-section--surface .dg-wood-photo img {
    object-position: center;
  }
}

@media (min-width: 981px) {
  .dg-wood-section--materials .dg-wood-section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 14px clamp(36px, 5vw, 72px); align-items: end; max-width: none; }
  .dg-wood-section--materials .dg-wood-section-head .dg-wood-eyebrow { grid-column: 1 / -1; }
  .dg-wood-section--materials .dg-wood-material-title { max-width: 760px !important; font-size: clamp(36px, 3.8vw, 52px); }
  .dg-wood-section--materials .dg-wood-section-lead { align-self: end; max-width: 500px; margin: 0; }
}

@media (min-width: 1081px) {
  .dg-wood-engineering__explorer {
    grid-template-columns: minmax(200px, .4fr) minmax(0, .82fr) minmax(250px, .55fr);
  }

  .dg-wood-engineering__media {
    height: clamp(300px, 26vw, 340px);
    border-left: 1px solid var(--dg-wood-line);
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .dg-wood-engineering__media {
    order: -1;
    grid-column: 1 / -1;
    height: clamp(190px, 22vw, 238px);
    border-bottom: 1px solid var(--dg-wood-line);
  }
}

@media (max-width: 820px) {
  .dg-wood-engineering__title h2 {
    font-size: clamp(31px, 9vw, 38px);
    line-height: 1;
  }

  .dg-wood-engineering__panels h3 {
    font-size: clamp(27px, 8vw, 30px);
  }

  .dg-wood-engineering__head .dg-wood-copy {
    padding-top: 0;
  }

  .dg-wood-engineering__media {
    order: -1;
    height: clamp(200px, 55vw, 280px);
    border-bottom: 1px solid var(--dg-wood-line);
  }

  .dg-wood-hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .dg-wood-hero__content {
    padding-top: clamp(32px, 5vh, 56px);
  }

  .dg-wood-section + .dg-wood-section {
    padding-top: 48px;
  }
}

@media (min-width: 621px) and (max-width: 820px) {
  .dg-wood-section--materials .dg-wood-type__body { grid-template-columns: minmax(200px, .6fr) minmax(0, 1.4fr); gap: 24px; }
  .dg-wood-section--materials .dg-wood-material-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-wood-section--materials .dg-wood-material-notes div { align-content: start; border-top: 0; border-left: 1px solid var(--dg-wood-line); padding: 0 14px; }
  .dg-wood-section--materials .dg-wood-material-notes div:first-child { border-left: 0; padding: 0 14px 0 0; }
  .dg-wood-section--materials .dg-wood-material-notes div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--dg-wood-line); border-left: 0; margin-top: 14px; padding: 14px 0 0; }
}

@media (max-width: 520px) {
  .dg-wood-hero__content {
    padding-top: 58px;
    padding-bottom: 32px;
  }
}

@media (max-width: 340px) {
  .dg-wood-service h1 { font-size: 28px; }

  .dg-wood-engineering__tabs button {
    gap: 8px;
  }
}

@media (min-width: 1081px) {
  .dg-wood-engineering__panels [data-dg-wood-panel="water"] h3 {
    font-size: clamp(34px, 2.8vw, 40px);
  }
}

@media (max-width: 389px) {
  .dg-wood-engineering__panels h3 {
    font-size: clamp(22px, 6.4vw, 25px);
  }
}

@media (min-width: 981px) {
  .dg-wood-case-study {
    grid-template-columns: minmax(0, 1fr);
  }

  .dg-wood-case-study__overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    height: min(640px, calc(100dvh - 104px));
  }

  .dg-wood-case-study__visual {
    min-height: 0;
    height: 100%;
  }

  .dg-wood-case-study__content {
    gap: clamp(12px, 1.7vh, 20px);
  }

  .dg-wood-case-study__facts div {
    min-height: clamp(78px, 12vh, 108px);
    padding: clamp(12px, 1.5vh, 18px);
  }

  /* Keep the four construction notes as one compact, peer-level set. The
     previous lead-card treatment made the first note dominate the section and
     pushed the remaining two notes below the first viewport. */
  .dg-wood-case-study__diary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .dg-wood-case-study__diary-card,
  .dg-wood-case-study__diary-card--wall {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(118px, 10vw, 148px) minmax(0, 1fr);
    min-height: 0;
  }

  .dg-wood-case-study__diary-card > img,
  .dg-wood-case-study__diary-card--wall > img {
    align-self: stretch;
    height: 100% !important;
    min-height: 0;
    aspect-ratio: auto !important;
  }

  .dg-wood-case-study__diary-card > div {
    gap: 8px;
    padding: clamp(16px, 1.35vw, 20px);
  }

  .dg-wood-case-study__diary-card h4 {
    font-size: clamp(16px, 1.32vw, 19px);
    line-height: 1.2;
  }

  .dg-wood-case-study__diary-card > div > p:last-child {
    font-size: clamp(13px, 1.02vw, 15px);
    line-height: 1.42;
  }
}

@media (min-width: 521px) and (max-width: 980px) {
  .dg-wood-case-study__diary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .dg-wood-case-study__diary-card,
  .dg-wood-case-study__diary-card--wall {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(160px, 27vw, 230px) minmax(0, 1fr);
  }

  .dg-wood-case-study__diary-card > img,
  .dg-wood-case-study__diary-card--wall > img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

.dg-wood-case-study__solutions {
  display: grid;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--dg-wood-line);
}

.dg-wood-price-estimate {
  display: grid;
  gap: 14px;
  border: 1px solid var(--dg-wood-line);
  border-radius: 20px;
  padding: clamp(20px, 2.4vw, 28px);
  background: #fbfaf6;
}

.dg-wood-price-estimate .dg-wood-eyebrow {
  margin: 0;
}

.dg-wood-price-estimate h3 {
  margin: 0;
  color: var(--dg-wood-text);
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dg-wood-price-estimate > p:last-of-type {
  max-width: 680px;
  margin: 0;
  color: var(--dg-wood-muted);
  font-size: 17px;
  line-height: 1.55;
}

.dg-wood-price-estimate .dg-wood-button {
  justify-self: start;
}

.dg-wood-price-card {
  position: relative;
  container-type: inline-size;
  min-height: 196px;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(22px, 2vw, 28px);
  background: #fbfaf6;
}

.dg-wood-price-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: #81000d;
}

.dg-wood-price-card__label {
  color: #81000d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dg-wood-price-card strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: var(--dg-wood-text);
  font: 300 28px / .96 "Haval", "Involve", Arial, sans-serif;
  letter-spacing: -.02em;
}

@supports (width: 1cqi) {
  .dg-wood-price-card strong {
    font-size: clamp(28px, 15cqi, 48px);
  }
}

.dg-wood-price-card strong small {
  color: #81000d;
  font: inherit;
  font-size: .56em;
  letter-spacing: 0;
  white-space: nowrap;
}

.dg-wood-price-card__description {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--dg-wood-line);
  color: var(--dg-wood-muted);
  font-size: 15px;
  line-height: 1.45;
}

.dg-wood-price-layout {
  display: grid;
  gap: clamp(28px, 3.6vw, 48px);
}

.dg-wood-price-head {
  max-width: none;
}

.dg-wood-price-head h2 {
  max-width: 100%;
}

.dg-wood-price-body {
  display: grid;
  grid-template-areas: "estimate prices";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 44px);
  align-items: start;
}

.dg-wood-price-summary {
  display: grid;
  grid-area: prices;
  gap: 18px;
}

.dg-wood-price-summary > p {
  max-width: 600px;
  margin: 0;
  color: var(--dg-wood-muted);
  font-size: 17px;
  line-height: 1.55;
}

.dg-wood-price-estimate {
  grid-area: estimate;
}

@media (max-width: 820px) {
  .dg-wood-price-body {
    grid-template-areas:
      "prices"
      "estimate";
    grid-template-columns: 1fr;
  }

  .dg-wood-price-summary > p {
    font-size: 16px;
  }

  .dg-wood-price-card {
    min-height: 0;
  }
}

.dg-wood-case-study__solutions > .dg-wood-eyebrow {
  margin: 0;
}

.dg-wood-final {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--dg-wood-bg);
}

.dg-wood-final__box {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, .76fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding: clamp(30px, 6vw, 78px);
  border: 1px solid var(--dg-wood-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fbfaf6 0%, #fbfaf6 56%, #e5e7e4 100%);
}

.dg-wood-final__intro {
  display: grid;
  min-width: 0;
  max-width: 790px;
  gap: 18px;
}

.dg-wood-final__eyebrow {
  width: fit-content;
  margin: 0;
  border: 1px solid var(--dg-wood-line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--dg-wood-text);
  background: #fbfaf6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.dg-wood-final h2 {
  max-width: 760px;
  margin: 0;
  color: var(--dg-wood-text);
  font-family: "Haval", "Involve", Arial, sans-serif;
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: none;
}

.dg-wood-final__intro > p {
  max-width: 610px;
  margin: 0;
  color: var(--dg-wood-muted);
  font-size: 18px;
  line-height: 1.55;
}

.dg-wood-final__checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.dg-wood-final__checklist li {
  border: 1px solid rgba(37, 42, 45, .20);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--dg-wood-text);
  background: #fbfaf6;
  font-size: 13px;
  line-height: 1.2;
}

.dg-wood-final__action {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 430px;
  gap: 14px;
  align-self: center;
  justify-self: end;
}

.dg-wood-final__chat-label,
.dg-wood-final__phone > span {
  margin: 0;
  color: var(--dg-wood-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.dg-wood-final__chats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dg-wood-final__chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(37, 42, 45, .20);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--dg-wood-text);
  background: #fbfaf6;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.dg-wood-final__chat:hover,
.dg-wood-final__chat:focus-visible {
  border-color: rgba(103, 0, 9, .50);
  color: #670009;
}

.dg-wood-final__phone {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--dg-wood-line);
}

.dg-wood-final__action .dg-wood-button {
  width: 100%;
  min-height: 58px;
}

.dg-wood-final__action small {
  display: block;
  color: var(--dg-wood-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.dg-wood-final__repair {
  max-width: 920px;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--dg-wood-line);
  color: var(--dg-wood-muted) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.dg-wood-final__repair a {
  color: #670009;
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .dg-wood-final__box {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dg-wood-final__action {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .dg-wood-engineering__panels [data-dg-wood-panel="water"] h3 {
    max-width: 100%;
    font-size: clamp(20px, 6.1vw, 27px);
  }

  .dg-wood-final__box {
    gap: 28px;
    padding: 24px;
  }

  .dg-wood-final__intro {
    gap: 16px;
  }

  .dg-wood-final h2 {
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.04;
  }

  .dg-wood-final__intro > p {
    font-size: 16px;
  }

  .dg-wood-final__checklist li {
    font-size: 12px;
  }

  .dg-wood-final__action {
    max-width: none;
  }

  .dg-wood-final__action .dg-wood-button {
    min-height: 56px;
  }

  .dg-wood-final__repair {
    font-size: 15px !important;
  }
}
