/* Internal service and portfolio layouts */
.detail-mast {
  position: relative;
  overflow: hidden;
  background: #0e250f;
  color: #fff;
}
.detail-mast-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  min-height: 416px;
  padding-block: clamp(34px, 4.1vw, 65px);
}
.detail-mast-copy { position: relative; z-index: 1; padding-block: 4px 12px; }
.detail-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: #e6ede5;
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: clamp(19px, 2.3vw, 35px);
}
.detail-crumbs a:hover { color: #bad432; }
.detail-crumbs i { height: 11px; width: 1px; background: #9ba79a; transform: rotate(22deg); }
.detail-crumbs [aria-current] { color: #bad432; }
.detail-glyph, .quote-symbol {
  display: inline-grid;
  width: 45px;
  height: 45px;
  place-items: center;
  background: #bad432;
  color: #0e250f;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px #bad432, inset 0 0 0 3px white;
}
.detail-glyph svg, .quote-symbol svg { width: 26px; height: 26px; }
.detail-mast h1 {
  color: white;
  max-width: 18ch;
  margin: 14px 0;
  font-size: clamp(2rem, 3.75vw, 3.7rem);
  line-height: 1.4;
  letter-spacing: -.035em;
}
.detail-mast-copy > p { margin: 0; max-width: 54ch; color: #e6ede5; font-size: 1rem; line-height: 1.95; }
.detail-mast a.detail-mast-action {
  display: inline-flex;
  margin-top: 23px;
  padding: 8px 20px;
  min-height: 44px;
  border: 1px solid #bad432;
  border-radius: 99px;
  background: #bad432;
  color: #0e250f;
}
.detail-mast a.detail-mast-action:hover { background: #fff; color: #0e250f; border-color: #fff; }
.detail-mast-art {
  position: relative;
  min-width: 0;
  isolation: isolate;
  padding: 0 0 12px 12px;
}
.detail-mast-art::before {
  content: "";
  position: absolute;
  inset: 17px 20% 0 0;
  z-index: -1;
  background: repeating-linear-gradient(135deg, #bad432 0 1px, transparent 1px 7px);
}
.detail-mast-art .service-visual,
.detail-mast-art > img,
.detail-mast-art .banner-illustration {
  margin: 0;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}
.detail-mast-art .service-visual { padding: 0; min-height: 0; background: #222222; }
.detail-mast-art .service-visual img, .detail-mast-art > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.banner-illustration {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.7;
  overflow: hidden;
  background-color: #d9e2d8;
  background-image: repeating-linear-gradient(75deg, transparent 0 25px, #3a8e3c30 25px 27px);
}
.banner-support {
  position: relative;
  width: 76%;
  height: 63%;
  border: clamp(4px, .6vw, 9px) solid #222222;
  box-shadow: 9px 15px 0 #2222221f;
  transform: skewY(-5deg);
}
.banner-support::before, .banner-support::after {
  content: "";
  position: absolute;
  top: 100%;
  width: clamp(5px, .6vw, 9px);
  height: 30%;
  background: #222222;
}
.banner-support::before { left: -4px; }
.banner-support::after { right: -4px; }
.banner-sheet {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  background: #eff5ef;
}
.banner-sheet i { position: absolute; inset: -25% auto -25% 10%; width: 32%; transform: skewX(-28deg); background: #3a8e3c; }
.banner-sheet i:nth-child(2) { left: 44%; width: 12%; background: #0e250f; }
.banner-sheet i:nth-child(3) { left: 60%; width: 4%; background: #bad432; }
.detail-section-nav { border-bottom: 1px solid #d9e2d8; background: #eff5ef; }
.detail-section-nav .wrap { display: flex; flex-wrap: wrap; gap: 0 24px; }
.detail-section-nav a { padding-block: 13px; line-height: 1.6; color: #0e250f; font-size: .9rem; font-weight: 700; }
.detail-section-nav a:hover { color: #306e30; text-decoration: underline; text-underline-offset: 5px; }
.detail-body { background: #fff; padding-block: clamp(44px, 6vw, 90px); }
.detail-body-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .43fr); gap: clamp(45px, 8vw, 128px); align-items: start; }
.detail-text h2, .related-services h2 { margin: 0 0 13px; color: #0e250f; font-size: clamp(1.5rem,2.4vw,2.4rem); line-height: 1.55; }
.detail-text p { margin: 0 0 19px; font-size: 1rem; color: #5b5757; line-height: 2; }
.detail-checklist { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 24px 0 32px; }
.detail-checklist .service-check { align-items: center; padding: 12px 15px; background: #eff5ef; color: #0e250f; border-color: #d9e2d8; border-radius: 12px; }
.detail-checklist .service-check svg { color: #3a8e3c; }
.detail-sections h2 { padding-top: 25px; border-top: 1px solid #d9e2d8; font-size: clamp(1.15rem,1.65vw,1.5rem); margin-top: 23px; }
.detail-location { display: flex; align-items: flex-start; padding: 17px 20px; gap: 12px; background: #eff5ef; border-inline-start: 3px solid #3a8e3c; }
.detail-location svg { color: #3a8e3c; margin-top: 4px; }
.detail-location p { margin: 0; font-size: .95rem; }
.detail-quote { position: sticky; top: 120px; background: #222222; padding: clamp(23px, 3.2vw, 42px); color: white; border-radius: 16px; }
.detail-quote h2 { color: white; margin: 18px 0 5px; font-size: clamp(1.4rem,2.1vw,2rem); line-height: 1.5; }
.detail-quote > p { color: #e6ede5; margin: 0 0 21px; font-size: .98rem; }
.detail-quote .btn { width: 100%; margin-block: 4px; justify-content: center; border-radius: 99px; min-height: 46px; }
.detail-quote .btn[data-contact="phone"] { background: #bad432; color: #0e250f; }
.detail-quote .btn[data-contact="whatsapp"] { border: 1px solid #bad432; color: white; background: #0e250f; }
.detail-quote .btn[data-contact]:hover { color: #0e250f; background: white; }
.detail-quote small { display: flex; gap: 9px; align-items: center; color: #e6ede5; margin-top: 16px; line-height: 1.8; }
.detail-quote small svg { width: 15px; height: 15px; }
.related-services { background: #eff5ef; padding-block: clamp(36px,5vw,68px); }
.related-services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-block-start: 18px; border-top: 1px solid #d9e2d8; }
.related-services-grid a { display: flex; align-items: center; gap: 13px; padding: 20px 0; color: #0e250f; font-weight: 700; }
.related-services-grid a:hover { color: #306e30; }
.related-services-grid svg { width: 25px; height: 25px; color: #3a8e3c; }
.detail-text [id], #related-services, #service-quote, #project-grid, .project-card[id] { scroll-margin-block-start: 110px; }
.selected-projects.project-section { background: #eff5ef; }
.selected-projects .project-section-head { border-color: #d9e2d8; align-items: center; }
.selected-projects .project-section-head h2 { color: #0e250f; }
.work-index-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 99px;
  background: #bad432;
  color: #0e250f;
  font-size: .94rem;
  font-weight: 700;
}
.work-index-link:hover { color: white; background: #0e250f; }
.selected-projects .project-featured { grid-template-columns: 1.25fr 1fr 1fr; align-items: start; }
.project-section .project-image { border-radius: 16px; }
.project-section .project-zoom {
  inset-inline-end: 10px;
  bottom: 10px;
  border: 0;
  border-radius: 99px;
  background: #0e250ff0;
  color: #fff;
}
.project-section .project-caption { padding-inline: 0; border-bottom-color: #d9e2d8; }
.project-section .project-caption strong { color: #0e250f; }
.project-section .project-caption > span { color: #5b5757; }
.archive-mast .detail-mast-layout { min-height: 360px; }
.archive-mast h1 { margin-block: 0 8px; }
.archive-mast-art > img { aspect-ratio: 2.05; }
.work-archive { background: #fff; }
.work-archive .project-filters {
  align-items: center;
  gap: 5px 10px;
  padding: 0 0 17px;
  margin-bottom: 32px;
  border-bottom: 1px solid #d9e2d8;
}
.work-archive .project-filters button, .work-archive .project-filters a {
  min-height: 43px;
  padding: 8px 16px;
  border: 1px solid #d9e2d8;
  border-radius: 99px;
  background: #fff;
  color: #0e250f;
}
.work-archive .project-filters button[aria-pressed="true"] { color: #0e250f; background: #bad432; border-color: #bad432; }
.work-archive .project-filters a { color: #306e30; border-color: #c4d1c3; }
.work-archive .project-filters button:hover, .work-archive .project-filters a:hover { border-color: #3a8e3c; }
.work-archive .project-archive { gap: 32px 23px; }
.project-section .project-card:target .project-image { outline: 3px solid #3a8e3c; outline-offset: 3px; }
.video-section { background: #eff5ef; }
.video-layout video { border-radius: 16px; }
.project-dialog { border: 1px solid #637162; border-radius: 16px; background: #0e250f; }
.project-dialog-image { background: #222222; border-radius: 1px; }
.project-close, .project-dialog-controls button { color: #fff; background: #333a33; border-color: #637162; border-radius: 99px; }
.project-dialog-controls button:hover, .project-close:hover { border-color: #bad432; }
main > .page-hero { position: relative; overflow: hidden; background: #222222; }
main > .page-hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  opacity: .26;
  pointer-events: none;
  background: repeating-linear-gradient(125deg, transparent 0 22px, #d6eacd 22px 24px);
  clip-path: polygon(0 0, 100% 0, 45% 100%, 0 100%);
}
main > .page-hero > .wrap { position: relative; z-index: 1; }
main > .page-hero + .section > article.page-content { max-width: 870px; }
main > .page-hero + .section > article.page-content h2 { margin-block: 1.5em .35em; color: #0e250f; }
@media (max-width: 850px) {
  .detail-mast-layout { gap: 26px; min-height: auto; }
  .detail-body-layout { grid-template-columns: minmax(0,1fr) minmax(220px,.54fr); gap: 30px; }
  .selected-projects .project-featured { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .selected-projects .project-featured .project-card:first-child { grid-column: auto; }
}
@media (max-width: 680px) {
  .detail-mast-layout, .detail-body-layout { grid-template-columns: minmax(0,1fr); }
  .detail-mast-layout { padding-block: 22px 28px; gap: 20px; }
  .detail-mast-copy { padding-block: 0; }
  .detail-crumbs { margin-bottom: 14px; }
  .detail-glyph { display: none; }
  .detail-mast h1 { max-width: 23ch; margin-top: 6px; font-size: clamp(1.75rem,6.6vw,2.45rem); }
  .detail-mast-art { padding-bottom: 8px; padding-left: 8px; }
  .detail-mast-art .service-visual img, .detail-mast-art > img, .detail-mast-art .banner-illustration { aspect-ratio: 2.1; }
  .detail-section-nav .wrap { gap: 0 15px; }
  .detail-section-nav a { padding-block: 11px; font-size: .86rem; }
  .detail-quote { position: static; }
  .related-services-grid { grid-template-columns: 1fr; }
  .related-services-grid a { border-bottom: 1px solid #d9e2d8; padding-block: 14px; }
  .work-archive .project-filters { gap: 6px; }
  .work-archive .project-filters a { margin-inline-start: 0; }
  .work-archive .project-filters button, .work-archive .project-filters a { padding: 6px 11px; }
  .work-archive .project-archive { gap: 24px 14px; }
}
@media (max-width: 600px) {
  .detail-checklist { grid-template-columns: 1fr; }
  .selected-projects .project-featured { grid-template-columns: minmax(0,1fr); }
  .selected-projects .project-section-head { display: flex; align-items: center; gap: 15px; }
  .selected-projects .project-section-head h2 { font-size: 1.6rem; }
  .selected-projects .work-index-link { font-size: .86rem; }
}
