:root {
  --ink: #17221f;
  --muted: #5f6b66;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d8d6cd;
  --brand: #0f6b5f;
  --brand-dark: #0a413b;
  --accent: #c98945;
  --clay: #b95035;
  --shadow: 0 22px 60px rgba(20, 31, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 52px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header[data-scrolled="true"] {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 10px 30px rgba(20, 31, 28, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.08;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.94rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-cta {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 18, 0.78), rgba(10, 20, 18, 0.34) 48%, rgba(10, 20, 18, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 84vh;
  max-width: 880px;
  flex-direction: column;
  justify-content: center;
  padding: 108px clamp(18px, 6vw, 76px) 48px;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c38a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 5.8vw, 5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 28px clamp(18px, 4vw, 46px);
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span,
.section-heading p,
.intro p,
.service-grid p,
.process-list span,
.contact-copy p,
.form-note,
.site-footer {
  color: var(--muted);
}

.section {
  padding: clamp(66px, 10vw, 124px) clamp(18px, 6vw, 76px);
}

.intro {
  max-width: 980px;
}

.intro p {
  max-width: 760px;
  font-size: 1.16rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.portfolio,
.process,
.locations {
  background: #fff;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  box-shadow: 0 14px 42px rgba(20, 31, 28, 0.08);
}

.featured-project__content {
  position: sticky;
  top: 100px;
}

.featured-project__content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.featured-project__content li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.featured-project__media {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.project-poster {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.project-poster img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center;
}

.project-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(23, 34, 31, 0.82);
  font-weight: 900;
}

.project-gallery-dialog {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.project-gallery-dialog[hidden] {
  display: none;
}

.project-gallery-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 18, 0.76);
  backdrop-filter: blur(6px);
}

.project-gallery-dialog__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1040px);
  max-height: calc(100vh - 36px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 26px);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-gallery-dialog__header,
.project-gallery-dialog__controls {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.project-gallery-dialog__header h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.project-gallery-dialog__close {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.project-gallery-viewer {
  display: grid;
  min-height: 0;
  gap: 10px;
  align-content: center;
}

.project-gallery-viewer p {
  margin-bottom: 0;
  color: var(--muted);
  text-align: center;
}

.project-gallery-dialog__media {
  width: 100%;
  max-height: min(68vh, 760px);
  border-radius: 8px;
  background: var(--ink);
  object-fit: contain;
}

.gallery-nav-button {
  width: auto;
}

.project-gallery-dialog__controls span {
  color: var(--muted);
  font-weight: 850;
}

.project-gallery-dialog .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.stockport-project-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.stockport-project-card {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stockport-project-card img {
  width: 100%;
  max-height: 620px;
  border-radius: 8px;
  object-fit: cover;
}

.stockport-project-card h3 {
  margin: 0;
  font-size: 1rem;
}

.stockport-project-preview .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-grid article div {
  padding: 22px;
}

.region-list,
.area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.region-list a,
.area-grid a,
.local-proof article {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.region-list a:hover,
.area-grid a:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 34px rgba(20, 31, 28, 0.1);
}

.region-list a {
  font-weight: 850;
}

.area-grid strong,
.area-grid span,
.local-proof strong,
.local-proof span {
  display: block;
}

.area-grid span,
.local-proof span {
  margin-top: 8px;
  color: var(--muted);
}

.landing-main .hero-content {
  max-width: 980px;
}

.landing-main h1 {
  max-width: 940px;
}

.local-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-services {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.landing-services ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-services li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.process-list li {
  min-height: 210px;
  padding: 26px;
  background: #fff;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.quote-band {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(44px, 7vw, 78px) clamp(18px, 6vw, 76px);
  color: #fff;
  background: var(--brand-dark);
}

.quote-band h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 560px);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.section-heading > *,
.contact > *,
.landing-services > * {
  min-width: 0;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-details a {
  color: var(--brand-dark);
  font-size: 1.14rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9c6ba;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(15, 107, 95, 0.18);
  border-color: var(--brand);
}

.form-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.form-note[data-state="pending"] {
  color: var(--brand-dark);
}

.form-note[data-state="success"] {
  color: var(--brand);
  font-weight: 800;
}

.form-note[data-state="error"] {
  color: var(--clay);
  font-weight: 800;
}

.dialog-open {
  overflow: hidden;
}

.success-dialog {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.success-dialog[hidden] {
  display: none;
}

.success-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 18, 0.66);
  backdrop-filter: blur(6px);
}

.success-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 40px);
  background: #fff;
  box-shadow: var(--shadow);
}

.success-dialog__panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.success-dialog__panel p:not(.section-kicker) {
  color: var(--muted);
}

.success-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.success-dialog__close:hover {
  border-color: var(--brand);
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .trust-strip,
  .featured-project,
  .section-heading,
  .service-grid,
  .process-list,
  .contact,
  .region-list,
  .area-grid,
  .local-proof,
  .landing-services {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region-list,
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    gap: 1px;
  }

  .featured-project__content {
    position: static;
  }

  .stockport-project-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .hero,
  .hero-content {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(10, 20, 18, 0.45), rgba(10, 20, 18, 0.84));
  }

  .hero-content {
    justify-content: end;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

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

  .region-list,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-dialog__header,
  .project-gallery-dialog__controls {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-nav-button {
    width: 100%;
  }

  .quote-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
