/* Tobias Young — Decking Nottingham page */

.decking-page {
  --deck-ink: #0b0d0c;
  --deck-ink-soft: #171a17;
  --deck-paper: #f3efe8;
  --deck-paper-deep: #e8e0d5;
  --deck-tan: #caa47a;
  --deck-tan-light: #dbc09f;
  --deck-muted: #666a65;
  background: var(--deck-paper);
  color: var(--deck-ink);
}

.deck-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  padding: 150px clamp(24px, 6vw, 96px) 72px;
  background:
    radial-gradient(circle at 22% 20%, rgba(202, 164, 122, .12), transparent 31%),
    var(--deck-paper);
  overflow: hidden;
}

.deck-hero__copy {
  align-self: center;
  max-width: 800px;
  padding-right: clamp(24px, 5vw, 72px);
}

.deck-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 56px;
  color: #70736f;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.deck-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.deck-breadcrumb a:hover {
  color: var(--deck-ink);
}

.deck-hero h1 {
  margin: 18px 0 26px;
  max-width: 760px;
  font-size: clamp(62px, 8vw, 126px);
  line-height: .83;
  letter-spacing: -.065em;
}

.deck-hero h1 em,
.deck-section h2 em,
.deck-cta h2 em {
  display: block;
  color: var(--deck-tan);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.deck-hero__lead {
  max-width: 660px;
  margin: 0;
  color: #4d514d;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
}

.deck-hero__actions,
.deck-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-top: 38px;
}

.deck-phone {
  color: var(--deck-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}

.deck-hero__visual {
  position: relative;
  min-height: 600px;
  align-self: stretch;
  background: #151814;
  overflow: hidden;
  border-radius: 2px;
}

.deck-surface {
  position: absolute;
  inset: -8% -18% 8% 8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  transform: skewY(-9deg) rotate(-4deg);
}

.deck-surface span {
  background:
    linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,0) 20%, rgba(255,255,255,.04) 55%, transparent),
    linear-gradient(180deg, #a98159, #7d5b3d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.deck-surface span:nth-child(even) {
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 28%, rgba(255,255,255,.03)),
    linear-gradient(180deg, #b38d63, #876345);
}

.deck-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,12,.05), rgba(11,13,12,.64));
}

.deck-hero__stamp {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 4vw, 56px);
  bottom: clamp(28px, 4vw, 54px);
  display: grid;
  gap: 9px;
  color: #fff;
}

.deck-hero__stamp small,
.deck-hero__stamp span {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  opacity: .7;
}

.deck-hero__stamp strong {
  font-size: clamp(28px, 4vw, 54px);
  line-height: .94;
  letter-spacing: -.04em;
}

.deck-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(11,13,12,.14);
  border-bottom: 1px solid rgba(11,13,12,.14);
  background: var(--deck-paper);
}

.deck-trust > div {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 28px clamp(24px, 4vw, 56px);
  align-content: center;
  border-right: 1px solid rgba(11,13,12,.14);
}

.deck-trust > div:last-child {
  border-right: 0;
}

.deck-trust strong {
  font-size: 14px;
  letter-spacing: .02em;
}

.deck-trust span {
  color: #6d716c;
  font-size: 12px;
  line-height: 1.45;
}

.deck-section {
  padding: clamp(76px, 9vw, 136px) clamp(24px, 7vw, 112px);
}

.deck-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .72fr);
  gap: clamp(48px, 9vw, 150px);
  align-items: start;
  margin-top: 30px;
}

.deck-section h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: .93;
  letter-spacing: -.055em;
}

.deck-intro__grid > div {
  padding-top: 12px;
  color: #595d58;
  font-size: 16px;
  line-height: 1.8;
}

.deck-large-copy {
  margin-top: 0;
  color: var(--deck-ink);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
}

.deck-materials {
  background: #e9e2d8;
}

.deck-section__heading {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(400px, 1.25fr);
  align-items: end;
  gap: 40px;
}

.deck-section__heading .eyebrow {
  align-self: start;
}

.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: clamp(50px, 7vw, 92px);
  background: rgba(11,13,12,.18);
  border: 1px solid rgba(11,13,12,.18);
}

.material-card {
  position: relative;
  min-height: 570px;
  padding: clamp(34px, 5vw, 64px);
  background: var(--deck-paper);
}

.material-card--composite {
  background: #151815;
  color: #fff;
}

.material-card__number,
.material-card__label {
  display: block;
  color: #858983;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 10px;
}

.material-card__label {
  margin-top: 56px;
  color: var(--deck-tan);
}

.material-card h3 {
  max-width: 550px;
  margin: 18px 0 26px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.material-card p {
  max-width: 590px;
  color: #60645f;
  line-height: 1.75;
}

.material-card--composite p {
  color: #b8bdb9;
}

.material-card ul {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.material-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
}

.material-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--deck-tan);
}

.deck-planning {
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(420px, 1.15fr);
  padding: 0;
  background: #101210;
  color: #fff;
}

.deck-planning__visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #b18a60;
}

.plan-lines {
  position: absolute;
  inset: -8% -20%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  transform: rotate(20deg);
}

.plan-lines span {
  border-left: 1px solid rgba(255,255,255,.18);
  border-right: 1px solid rgba(0,0,0,.16);
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(0,0,0,.08));
}

.deck-planning__visual small {
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 2;
  letter-spacing: .22em;
  font-size: 10px;
  color: rgba(255,255,255,.76);
}

.deck-planning__copy {
  align-self: center;
  padding: clamp(60px, 8vw, 120px);
}

.deck-planning__copy h2 {
  margin: 22px 0 30px;
}

.deck-planning__copy > p:not(.eyebrow) {
  max-width: 670px;
  color: #b8bdb9;
  line-height: 1.8;
}

.deck-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 42px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.deck-points span {
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  color: #e4e5e1;
  font-size: 13px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(50px, 7vw, 90px);
  background: rgba(11,13,12,.14);
  border: 1px solid rgba(11,13,12,.14);
}

.process-card {
  min-height: 310px;
  padding: 34px 30px;
  background: var(--deck-paper);
}

.process-card > span {
  color: var(--deck-tan);
  font-size: 11px;
  letter-spacing: .15em;
}

.process-card h3 {
  margin: 70px 0 16px;
  font-size: 25px;
  letter-spacing: -.025em;
}

.process-card p {
  margin: 0;
  color: #686c67;
  font-size: 14px;
  line-height: 1.7;
}

.deck-local {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(48px, 10vw, 150px);
  align-items: center;
  background: #e9e2d8;
}

.deck-local__copy h2 {
  margin: 22px 0 30px;
}

.deck-local__copy > p:not(.eyebrow) {
  max-width: 760px;
  color: #5c605b;
  line-height: 1.8;
}

.deck-local__card {
  display: grid;
  gap: 18px;
  padding: clamp(34px, 5vw, 58px);
  background: #111311;
  color: #fff;
}

.deck-local__card small {
  color: var(--deck-tan);
  letter-spacing: .18em;
  font-size: 10px;
}

.deck-local__card strong {
  font-size: clamp(34px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -.045em;
}

.deck-local__card span {
  max-width: 310px;
  color: #b8bdb9;
  line-height: 1.6;
  font-size: 13px;
}

.faq-list {
  margin-top: clamp(50px, 7vw, 86px);
  border-top: 1px solid rgba(11,13,12,.17);
}

.faq-list details {
  border-bottom: 1px solid rgba(11,13,12,.17);
}

.faq-list summary {
  position: relative;
  padding: 26px 46px 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  color: var(--deck-tan);
  font-size: 28px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  max-width: 820px;
  margin: 0;
  padding: 0 0 28px;
  color: #5b5f5a;
  line-height: 1.75;
}

.faq-source {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: -12px 0 26px;
  color: var(--deck-ink);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.deck-cta {
  position: relative;
  min-height: 570px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(78px, 9vw, 132px) clamp(24px, 8vw, 128px);
  background: #0d0f0d;
  color: #fff;
}

.deck-cta__pattern {
  position: absolute;
  inset: -20% -10% -30% 46%;
  opacity: .32;
  transform: rotate(13deg);
  background: repeating-linear-gradient(
    90deg,
    #bc946a 0,
    #bc946a 90px,
    #0d0f0d 90px,
    #0d0f0d 98px
  );
}

.deck-cta__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.deck-cta h2 {
  margin: 20px 0 26px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .9;
  letter-spacing: -.055em;
}

.deck-cta__content > p:not(.eyebrow) {
  max-width: 650px;
  color: #c1c5c0;
  font-size: 17px;
  line-height: 1.7;
}

.deck-phone--light {
  color: #fff;
}

@media (max-width: 980px) {
  .deck-hero {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 128px;
  }

  .deck-hero__copy {
    padding-right: 0;
  }

  .deck-hero__visual {
    min-height: 470px;
  }

  .deck-trust {
    grid-template-columns: 1fr;
  }

  .deck-trust > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(11,13,12,.14);
  }

  .deck-trust > div:last-child {
    border-bottom: 0;
  }

  .deck-intro__grid,
  .deck-section__heading,
  .deck-planning,
  .deck-local {
    grid-template-columns: 1fr;
  }

  .deck-section__heading {
    align-items: start;
  }

  .deck-planning__visual {
    min-height: 440px;
  }

  .material-grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    min-height: auto;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .deck-hero {
    min-height: 0;
    padding: 112px 20px 50px;
  }

  .deck-breadcrumb {
    margin-bottom: 36px;
    font-size: 10px;
  }

  .deck-hero h1 {
    font-size: clamp(56px, 18vw, 82px);
  }

  .deck-hero__lead {
    font-size: 17px;
  }

  .deck-hero__visual {
    min-height: 390px;
  }

  .deck-hero__actions,
  .deck-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .deck-phone,
  .deck-phone--light {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .deck-section {
    padding: 72px 20px;
  }

  .deck-section h2 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .deck-intro__grid {
    gap: 36px;
  }

  .material-card {
    padding: 34px 24px;
  }

  .material-card__label {
    margin-top: 38px;
  }

  .deck-planning__copy {
    padding: 64px 20px;
  }

  .deck-points {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: 240px;
  }

  .process-card h3 {
    margin-top: 46px;
  }

  .deck-local {
    gap: 40px;
  }

  .deck-cta {
    padding: 76px 20px 96px;
  }

  .deck-cta__pattern {
    inset: 42% -40% -30% 25%;
    opacity: .2;
  }

  .faq-list summary {
    padding-right: 38px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck-surface,
  .plan-lines {
    transform: none;
  }
}


/* Real project photography */
.deck-hero__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
}

.deck-hero__visual::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,13,12,.04), rgba(11,13,12,.7));
}

.deck-project {
  background: #111311;
  color: #fff;
}

.deck-project .eyebrow {
  color: #d7dad5;
}

.deck-project__lead {
  max-width: 760px;
  margin: 34px 0 0 auto;
  color: #b8bdb9;
  font-size: 16px;
  line-height: 1.8;
}

.deck-project__grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(18px, 2vw, 30px);
  margin-top: clamp(48px, 7vw, 88px);
  align-items: stretch;
}

.deck-project__photo {
  margin: 0;
}

.deck-project__photo img {
  display: block;
  width: 100%;
  height: clamp(520px, 64vw, 820px);
  object-fit: cover;
}

.deck-project__photo--wide img {
  object-position: 50% 42%;
}

.deck-project__photo:not(.deck-project__photo--wide) img {
  object-position: 56% 50%;
}

.deck-project__photo figcaption {
  padding-top: 16px;
  color: #aeb3ad;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 780px) {
  .deck-project__grid {
    grid-template-columns: 1fr;
  }

  .deck-project__photo img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .deck-project__lead {
    margin-left: 0;
  }
}

/* PHASE11B DECKING HEADER CONTRAST V3
   Keep the warm decking header and make the brand subtitle and desktop
   navigation as clear as the main Tobias Young wordmark.
CSS-END-PHASE11B */
.decking-page-body .brand__text strong,
.decking-page-body .brand__text small,
.decking-page-body .desktop-nav a {
  color: #ffffff !important;
  opacity: 1 !important;
}

.decking-page-body .desktop-nav a:hover,
.decking-page-body .desktop-nav a:focus-visible {
  color: #ffffff !important;
  opacity: 1 !important;
}


/* PHASE11C DECKING MENU HOVER V2
   Keep the navigation treatment consistent with the rest of the site:
   no underline or movement, just a restrained colour change. */
.decking-page-body .desktop-nav a {
  transition: color 160ms ease;
}

.decking-page-body .desktop-nav a:hover,
.decking-page-body .desktop-nav a:focus-visible {
  color: #d8ae82 !important;
}

@media (prefers-reduced-motion: reduce) {
  .decking-page-body .desktop-nav a {
    transition: none;
  }
}


/* PHASE11D DECKING BUILD QUALITY V1 */
.deck-quality {
  background: #f3efe8;
}

.deck-quality__lead {
  max-width: 790px;
  margin: 38px 0 0 auto;
  color: #5b5f5a;
  font-size: 17px;
  line-height: 1.8;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(52px, 7vw, 90px);
  background: rgba(11, 13, 12, .15);
  border: 1px solid rgba(11, 13, 12, .15);
}

.quality-card {
  min-height: 500px;
  padding: clamp(30px, 4vw, 52px);
  background: #ebe4da;
}

.quality-card:nth-child(2) {
  background: #d8d2c9;
}

.quality-card:nth-child(3) {
  background: #171917;
  color: #fff;
}

.quality-card__number,
.quality-card__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 10px;
}

.quality-card__number {
  color: #8a8e88;
}

.quality-card__label {
  margin-top: 54px;
  color: #a97849;
  font-weight: 700;
}

.quality-card:nth-child(3) .quality-card__label {
  color: #d8ae82;
}

.quality-card h3 {
  margin: 18px 0 26px;
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.quality-card p:last-child {
  margin: 0;
  color: #5c605b;
  line-height: 1.75;
}

.quality-card:nth-child(3) p:last-child {
  color: #c3c7c2;
}

.deck-quality__note {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 34px;
  margin-top: 1px;
  padding: 28px clamp(26px, 4vw, 48px);
  background: #cfa477;
  color: #111311;
}

.deck-quality__note strong {
  font-size: 14px;
}

.deck-quality__note span {
  max-width: 820px;
  font-size: 13px;
  line-height: 1.65;
}

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

  .quality-card {
    min-height: 0;
  }

  .deck-quality__note {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .deck-quality__lead {
    margin-left: 0;
    font-size: 16px;
  }

  .quality-card {
    padding: 34px 24px;
  }

  .quality-card__label {
    margin-top: 34px;
  }
}

/* PHASE11E DECKING CARD ALIGNMENT V1
   Desktop-only rhythm: equal vertical zones keep adjacent card copy aligned
   even when headings wrap to a different number of lines. */
@media (min-width: 981px) {
  .material-card h3 {
    min-height: 3.12em;
    display: flex;
    align-items: flex-start;
  }

  .material-card > p:not(.material-card__label) {
    min-height: 7em;
  }

  .quality-card h3 {
    min-height: 4.16em;
    display: flex;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .material-card h3,
  .material-card > p:not(.material-card__label),
  .quality-card h3 {
    min-height: 0;
  }
}

/* PHASE13A RESPONSIVE DECKING HERO V2 */
.deck-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.deck-hero__picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 48%;
}

/* PHASE14A DECKING CONTRAST V1
   Targeted accessibility correction for the warm Decking template.
   Keep the palette, increase foreground contrast only. */
.deck-trust span {
  color: #4f514d;
}

.deck-intro h2 em {
  color: #8f5d33;
}
