/* Page layouts for the main trade and local area pages. */

/* Photograph-led trade and city pages place the real project image beside the brief. */
.layout-trade-photo .subhero,
.layout-area-profile .subhero {
  min-height: 600px;
  padding: 0;
  display: flex;
  align-items: stretch;
}
.layout-trade-photo .subhero-shot,
.layout-area-profile .subhero-shot {
  inset: 0 0 0 50%;
}
.layout-trade-photo .subhero-shot::after,
.layout-area-profile .subhero-shot::after,
.layout-trade-photo .subhero-beam,
.layout-area-profile .subhero-beam {
  display: none;
}
.layout-trade-photo .subhero .grid-bg,
.layout-area-profile .subhero .grid-bg {
  right: 50%;
}
.layout-trade-photo .subhero > .wrap,
.layout-area-profile .subhero > .wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding-block: 64px;
}
.layout-trade-photo .subhero-in,
.layout-area-profile .subhero-in {
  max-width: min(600px, 47%);
}
.layout-trade-photo .subhero h1,
.layout-area-profile .subhero h1 {
  font-size: clamp(38px, 4.5vw, 70px);
  text-shadow: none;
}

/* A wider project photograph opens the roof, framing and exterior trade pages. */
.layout-trade-photo .shotband.n4 {
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.layout-trade-photo .shotband.n4 img {
  aspect-ratio: 3 / 4;
}
.layout-trade-photo .prose-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 100px);
}
.layout-trade-photo .prose {
  grid-column: 2;
  grid-row: 1;
}
.layout-trade-photo .wcs {
  grid-column: 1;
  grid-row: 1;
}
.layout-trade-photo .wcgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.layout-trade-photo .wc {
  background: transparent;
  border-radius: 0;
  border-top: 1px solid rgba(243, 239, 230, .24);
  box-shadow: none;
  padding: 18px 0;
}
.layout-trade-photo .wc p {
  color: var(--on-dark-2);
}

/* Method-led trades read like a work brief: sequence first, then the job detail. */
.layout-trade-method .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 100px);
}
.layout-trade-method .steps::before {
  display: none;
}
.layout-trade-method .step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(21, 20, 15, .2);
}
.layout-trade-method .step .n {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 12px;
  font-size: 17px;
}
.layout-trade-method .step h3,
.layout-trade-method .step p {
  grid-column: 2;
  margin: 0;
}
.layout-trade-method .step h3 {
  margin-bottom: 8px;
}
.layout-trade-method .prose-wrap {
  grid-template-columns: 1fr;
  gap: 44px;
}
.layout-trade-method .prose {
  max-width: 82ch;
}
.layout-trade-method .wcs {
  padding-top: 28px;
  border-top: 1px solid rgba(243, 239, 230, .24);
}
.layout-trade-method .wcgrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.layout-trade-method .wc {
  display: block;
  box-shadow: none;
  background: rgba(243, 239, 230, .07);
}
.layout-trade-method .wc .n {
  display: block;
  color: var(--acc-on-dark);
  margin-bottom: 16px;
}
.layout-trade-method .wc p {
  color: var(--on-dark-2);
}

/* The area profile turns the local information into an editorial lead. */
.layout-area-profile .split {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  align-items: start;
  gap: clamp(36px, 6vw, 96px);
}
.layout-area-profile .localnotes {
  border-radius: 0;
  border-top: 3px solid var(--acc);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  padding: 24px 0 0;
}
.layout-area-profile .localnotes li {
  color: var(--ink-2);
  border-bottom: 1px solid rgba(21, 20, 15, .14);
  padding-block: 8px 14px;
}
.layout-area-profile .localnotes li::before {
  top: 1em;
}
.layout-area-profile .localcall {
  color: var(--ink);
  border-top-color: rgba(21, 20, 15, .18);
}
.layout-area-profile .localcall span {
  color: var(--ink-2);
}
.layout-area-profile .svcs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}
.layout-area-profile .svc {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 24px;
  min-height: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid rgba(243, 239, 230, .22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.layout-area-profile .svc:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}
.layout-area-profile .svcshot {
  grid-column: 1;
  grid-row: 1 / 5;
  height: 170px;
  margin: 0;
  border-radius: 12px;
}
.layout-area-profile .svcshot img {
  height: 100%;
  aspect-ratio: auto;
}
.layout-area-profile .svc .ic,
.layout-area-profile .svc .n {
  display: none;
}
.layout-area-profile .svc h3,
.layout-area-profile .svc p,
.layout-area-profile .svc .go {
  grid-column: 2;
}
.layout-area-profile .svc h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 26px);
}
.layout-area-profile .svc p {
  margin: 0 0 14px;
  font-size: 15px;
}
.layout-area-profile .svc--acc {
  color: var(--on-dark);
}
.layout-area-profile .svc--acc h3 {
  color: var(--on-dark);
}
.layout-area-profile .svc--acc p {
  color: var(--on-dark-2);
}
.layout-area-profile .svc--acc .go {
  color: var(--acc-on-dark);
}

/* The area work layout opens with a large job photograph and a featured service. */
.layout-area-work .subhero-in {
  margin-left: auto;
  max-width: min(650px, 58%);
}
.layout-area-work .subhero-shot::after {
  background: linear-gradient(270deg, var(--dark) 2%, rgba(20, 20, 19, .95) 34%, rgba(20, 20, 19, .55) 75%, rgba(20, 20, 19, .42));
}
.layout-area-work .shotband.n3 {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  grid-template-rows: repeat(2, 190px);
}
.layout-area-work .shotband.n3 figure:first-child {
  grid-row: 1 / 3;
}
.layout-area-work .shotband.n3 img {
  aspect-ratio: auto;
}
.layout-area-work .svcs .svc:first-child {
  grid-column: span 2;
}
.layout-area-work .svcs .svc:first-child .svcshot img {
  aspect-ratio: 16 / 6;
}

@media (max-width: 900px) {
  .layout-trade-photo .prose-wrap,
  .layout-area-profile .split {
    grid-template-columns: 1fr;
  }
  .layout-trade-photo .prose,
  .layout-trade-photo .wcs {
    grid-column: 1;
  }
  .layout-trade-photo .prose { grid-row: 1; }
  .layout-trade-photo .wcs { grid-row: 2; }
  .layout-trade-method .wcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-area-profile .svcs { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .layout-trade-photo .subhero,
  .layout-area-profile .subhero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 0 22px;
  }
  .layout-trade-photo .subhero > .wrap,
  .layout-area-profile .subhero > .wrap {
    order: 1;
    gap: 18px;
    padding-block: 42px 28px;
  }
  .layout-trade-photo .subhero-in,
  .layout-area-profile .subhero-in {
    max-width: 100%;
  }
  .layout-trade-photo .subhero-shot,
  .layout-area-profile .subhero-shot {
    position: relative;
    order: 2;
    inset: auto;
    height: clamp(220px, 65vw, 360px);
    margin-inline: var(--m);
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .layout-area-work .subhero-in {
    margin-left: 0;
    max-width: 100%;
  }
  .layout-area-work .subhero-shot::after {
    background: rgba(20, 20, 19, .72);
  }
  .layout-trade-photo .shotband.n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layout-trade-photo .shotband.n4 img {
    aspect-ratio: 1;
  }
  .layout-area-work .shotband.n3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }
  .layout-area-work .shotband.n3 figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .layout-area-work .shotband.n3 figure:first-child img {
    aspect-ratio: 16 / 9;
  }
  .layout-area-work .shotband.n3 figure:not(:first-child) img {
    aspect-ratio: 1;
  }
  .layout-area-work .svcs .svc:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .layout-trade-method .steps,
  .layout-trade-method .wcgrid,
  .layout-trade-photo .wcgrid {
    grid-template-columns: 1fr;
  }
  .layout-area-profile .svc {
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 16px;
  }
  .layout-area-profile .svcshot { height: 128px; }
  .layout-area-profile .svc p { font-size: 14px; }
  .layout-area-work .svcs .svc:first-child .svcshot img { aspect-ratio: 3 / 2; }
}
