/* MW Contracting Yorkshire Ltd
   Navy from the logo, workshop red as the working colour. */

:root {
  --ink: #070d16;
  --navy: #0b1624;
  --steel: #16314d;
  --blue: #2f7cc0;
  --ice: #9ec8ee;
  --red: #c4122f;
  --red-hot: #e31b3a;
  --paper: #eef2f6;
  --fog: #d7dee7;
  --white: #f6f8fb;
  --muted: #8b98a8;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --wrap: min(1180px, calc(100% - 2.4rem));
  --head: 4.6rem;
  --display: "Teko", "Arial Narrow", sans-serif;
  --text: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head) + 0.6rem);
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-rail {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0 42%, var(--blue) 42% 100%);
}
.head-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: var(--head);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img {
  width: 58px;
  height: auto;
  background: #07101c;
}
.brand-type { display: flex; flex-direction: column; line-height: 0.95; }
.brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.15rem 1.15rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 0.35rem 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.25s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after { right: 0; }
.site-nav a[aria-current="true"] { color: #fff; }

.head-cta { display: flex; gap: 0.45rem; }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.85rem 1.15rem;
  min-height: 2.8rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #3a8bd4; }
.btn-wa { background: #128c7e; color: #fff; }
.btn-wa:hover { background: #0e7a6e; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: #fff; }

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,13,22,0.92) 0 38%, rgba(7,13,22,0.35) 72%, rgba(7,13,22,0.55) 100%),
    linear-gradient(180deg, rgba(7,13,22,0.15) 0%, rgba(7,13,22,0.72) 100%);
}
.hero-copy {
  padding: 1.35rem 0 2.4rem;
  max-width: 40rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.8rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--red);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.hero h1 span {
  display: block;
  color: var(--blue);
  font-size: 0.42em;
  letter-spacing: 0.18em;
  margin-top: 0.15em;
}
.lede {
  font-size: 1.08rem;
  color: var(--fog);
  max-width: 34rem;
  margin: 1.1rem 0 1.6rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
}
.hero-meta dd { margin: 0; font-weight: 600; }

/* Bay tiles */
.bays {
  background: var(--navy);
  padding: 0 0 4.5rem;
}
.bays-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 16.5rem 16.5rem;
  gap: 0.7rem;
}
.bay {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  min-height: 16rem;
  isolation: isolate;
}
.bay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  z-index: -2;
}
.bay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,13,22,0.05), rgba(7,13,22,0.82));
  z-index: -1;
}
.bay:hover img { transform: scale(1.06); }
.bay-wide { grid-row: auto; min-height: 16.5rem; }
.bay-body { padding: 1.3rem 1.4rem; }
.bay-num {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}
.bay h2 {
  font-family: var(--display);
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.1rem 0 0.2rem;
  font-weight: 600;
  line-height: 0.95;
}
.bay p { margin: 0; color: var(--fog); font-size: 0.95rem; }

/* Trust */
.trust {
  background: var(--red);
  color: #fff;
}
.trust-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
}
.trust a {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,0.4);
}
.trust a:hover { border-color: #fff; }
.trust p { margin: 0; font-weight: 600; }

/* Sections common */
.section { padding: 4.8rem 0 5.4rem; }
.section-dark { background: var(--navy); }
.section-ink { background: var(--ink); }
.section-paper {
  background: var(--paper);
  color: var(--ink);
}
.section-paper .muted { color: #536171; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.4rem;
}
.section-paper .eyebrow { color: var(--red); }
h2.display {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  font-weight: 600;
}
.muted { color: var(--muted); }
.prose { max-width: 38rem; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.2rem;
  align-items: center;
}
.frame {
  position: relative;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 28rem;
  transition: transform 0.6s ease;
}
.frame:hover img { transform: scale(1.04); }
.frame {
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 0.45rem;
  background: var(--red);
  z-index: 2;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.3rem 0 0;
}
.chip {
  border: 1px solid currentColor;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Services bands */
.svc {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 28rem;
}
.svc:nth-of-type(even) { grid-template-columns: 0.95fr 1.05fr; }
.svc:nth-of-type(even) .svc-media { order: 2; }
.svc-media {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}
.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s ease;
}
.svc:hover .svc-media img { transform: scale(1.05); }
.svc-copy {
  padding: clamp(1.6rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
}
.svc:nth-of-type(odd) .svc-copy { background: #101c2c; }
.svc-copy h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  line-height: 0.92;
  font-weight: 600;
}
.svc-copy p { color: var(--fog); margin: 0 0 1.2rem; max-width: 32rem; }
.svc-head { padding: 4.2rem 0 1.4rem; }

/* Portfolio */
.folio {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 15.2rem;
  gap: 0.65rem;
}
.shot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: block;
  margin: 0;
  height: 100%;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}
.shot:hover img { transform: scale(1.05); filter: saturate(1.06); }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8rem 0.95rem 0.75rem;
  background: linear-gradient(transparent, rgba(7,13,22,0.92));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shot-lg { grid-row: span 2; }
.folio-lead { margin: 0 0 1.6rem; max-width: 36rem; }

/* Reviews */
.reviews-head {
  margin-bottom: 2.2rem;
  max-width: 36rem;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
}
.quote {
  background: #101c2c;
  padding: 1.6rem 1.5rem 1.3rem;
  border-left: 4px solid var(--red);
}
.quote.big { padding: 2rem 1.8rem; grid-row: span 2; }
.stars {
  color: #e7b53c;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  color: var(--fog);
}
.quote footer {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact */
.contact-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 34rem;
}
.map iframe,
.map {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}
.contact-panel {
  background: var(--navy);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.contact-panel h2 { margin-bottom: 0.6rem; }
.contact-cta { margin-top: 1.1rem; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
}
.contact-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.6rem;
}
.contact-list span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { color: var(--ice); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-foot {
  background: #050910;
  border-top: 4px solid var(--red);
  padding: 3rem 0 1.4rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.foot-brand img { width: 160px; height: auto; margin-bottom: 0.8rem; }
.foot-brand p { color: var(--muted); margin: 0; max-width: 24rem; }
.foot-h {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.foot-list { list-style: none; padding: 0; margin: 0; color: var(--fog); }
.foot-list li { margin: 0.35rem 0; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: #fff; }
.foot-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-legal a { color: var(--ice); }

.wa-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  background: #128c7e;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.9rem 1.05rem;
  box-shadow: var(--shadow);
}
.wa-dock:hover { background: #0e7a6e; }

/* Privacy */
.legal {
  padding: 5.5rem 0 4rem;
  background: var(--paper);
  color: var(--ink);
}
.legal h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  line-height: 0.92;
}
.legal h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.7rem;
  margin: 1.8rem 0 0.5rem;
}
.legal p, .legal li { color: #334050; max-width: 46rem; }
.legal a { color: var(--red); }

@media (max-width: 1100px) and (min-width: 921px) {
  .site-nav { gap: 0.1rem 0.65rem; }
  .site-nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
  .brand-sub { max-width: 12rem; }
}

/* Mobile */
@media (max-width: 920px) {
  .head-inner { grid-template-columns: auto 1fr auto; }
  .brand { order: 1; }
  .head-cta { order: 2; justify-self: end; }
  .nav-toggle { order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0b1624;
    flex-direction: column;
    padding: 0.6rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--line);
    z-index: 60;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  .nav-toggle { display: block; justify-self: end; }
  .bays-grid,
  .split,
  .svc,
  .svc:nth-of-type(even),
  .folio,
  .quote-grid,
  .contact-shell,
  .foot-grid,
  .trust-row {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .bay-wide { grid-row: auto; min-height: 18rem; }
  .svc:nth-of-type(even) .svc-media { order: 0; }
  .svc-media { min-height: 16rem; }
  .shot-lg { grid-row: auto; min-height: 16rem; }
  .folio { grid-auto-rows: 14rem; }
  .quote.big { grid-row: auto; }
  .frame img { min-height: 20rem; }
  .hero { min-height: auto; }
  .hero-copy { padding: 1.15rem 0 2rem; }
}

@media (max-width: 640px) {
  :root { --wrap: min(1180px, calc(100% - 1.4rem)); }
  .head-cta .btn-ghost { display: none; }
  .hero h1 { font-size: 3.1rem; }
  .wa-dock { right: 0.7rem; bottom: 0.7rem; }
  .brand-sub { letter-spacing: 0.1em; max-width: 11rem; }
  .site-nav a { min-height: 2.75rem; display: flex; align-items: center; }
  .folio { grid-auto-rows: 12.5rem; }
  .contact-list li { grid-template-columns: 5.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bay img, .shot img, .svc-media img, .frame img { transition: none; }
}
