/* Hero-image preview: full-bleed editorial photography with a text-safe overlay. */
body[data-sector="home"] {
  --hero-image: url("assets/hero-home-canary-wharf-v3.jpg");
  --hero-tint: rgba(20, 33, 61, .26);
}

body[data-sector="energy"] {
  --hero-image: url("assets/hero-energy.png");
  --hero-tint: rgba(23, 78, 166, .22);
}

body[data-sector="telecoms"] {
  --hero-image: url("assets/hero-telecoms.png");
  --hero-tint: rgba(230, 106, 36, .18);
}

body[data-sector="health"] {
  --hero-image: url("assets/hero-health.png");
  --hero-tint: rgba(46, 139, 104, .22);
}

body[data-sector="estate"] {
  --hero-image: url("assets/hero-estate.png");
  --hero-tint: rgba(122, 78, 125, .24);
}

body[data-sector="housing"] {
  --hero-image: url("assets/hero-housing.png");
  --hero-tint: rgba(13, 100, 104, .24);
  --brand: #147a7e;
  --brand-strong: #0d5558;
  --brand-soft: #e4f3f2;
  --brand-wash: #f3fbfa;
  --accent: #e8794f;
  --ink: #173536;
}

.hero {
  position: relative;
  min-height: 565px;
  border-bottom: 5px solid var(--brand);
  background-color: #111b2d;
  background-image:
    linear-gradient(90deg, rgba(8, 15, 28, .94) 0%, rgba(8, 15, 28, .86) 31%, rgba(8, 15, 28, .58) 53%, rgba(8, 15, 28, .18) 76%, rgba(8, 15, 28, .08) 100%),
    linear-gradient(180deg, var(--hero-tint), var(--hero-tint)),
    var(--hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-grid {
  min-height: 565px;
  display: flex;
  align-items: center;
  padding-block: 44px 52px;
}

.hero-copy {
  width: min(66%, 770px);
  color: #fff;
}

.hero h1 {
  max-width: 740px;
  color: #fff;
  font-size: clamp(3.3rem, 5.6vw, 5.15rem);
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.hero .eyebrow {
  color: color-mix(in srgb, var(--brand) 38%, white);
}

.hero .hero-lead {
  max-width: 690px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.hero .button {
  border-color: transparent;
  background: var(--brand);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  color: #fff;
}

body[data-sector="energy"] .hero .button {
  background: var(--accent);
  color: #14213d;
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(8, 15, 28, .18);
  box-shadow: none;
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, .12);
}

.hero .proof-row {
  margin-top: 26px;
  padding-top: 18px;
  border-color: rgba(255, 255, 255, .24);
}

.hero .proof {
  color: rgba(255, 255, 255, .92);
}

.hero .proof-icon {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(8px);
}

.visual-wrap {
  display: none;
}

/* Tight page rhythm. */
.intake {
  padding: 22px 24px;
}

.intake-top {
  margin-bottom: 14px;
}

.search-field {
  min-height: 54px;
}

.chip-row {
  gap: 7px;
  margin-top: 10px;
}

.section,
.section.compact {
  padding-block: 48px;
}

.section.compact {
  padding-block: 40px;
}

.section-head {
  margin-bottom: 24px;
}

/* The four service descriptions now use the same photo + overlay language as the hero. */
.promise-grid {
  gap: 10px;
}

.promise-card {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  padding: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(13, 23, 42, .14);
  color: #fff;
}

.promise-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 27, .18) 0%, rgba(7, 14, 27, .44) 42%, rgba(7, 14, 27, .94) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 34%, transparent), transparent 64%);
}

.promise-card:nth-child(1) { background-image: url("assets/promise-route-v2.png"); }
.promise-card:nth-child(2) { background-image: url("assets/promise-acknowledged-v2.png"); }
.promise-card:nth-child(3) { background-image: url("assets/promise-case-v2.png"); }
.promise-card:nth-child(4) { background-image: url("assets/promise-manager-v2.png"); }

.promise-card .number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  margin: 0;
  background: rgba(255, 255, 255, .17);
  color: #fff;
  backdrop-filter: blur(9px);
}

.promise-card h3 {
  color: #fff;
  font-size: 1.3rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.promise-card p {
  margin-top: 9px;
  color: rgba(255, 255, 255, .83);
  font-size: .87rem;
  line-height: 1.45;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.process-intro {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  margin: 0 auto 10px;
  text-align: center;
}

.process-intro p:last-child {
  max-width: 610px;
  margin-inline: auto;
}

.process-step {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 15, 28, .10);
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, .10) 18%, rgba(8, 15, 28, .88) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 26%, transparent), transparent 62%);
}

.process-step:nth-child(2) { background-image: url("assets/process-tell-v2.png"); }
.process-step:nth-child(3) { background-image: url("assets/process-build-v2.png"); }
.process-step:nth-child(4) { background-image: url("assets/process-move-v2.png"); }

.process-step .number {
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .17);
  color: #fff;
  backdrop-filter: blur(9px);
}

.process-step h3 {
  color: #fff;
  font-size: 1.3rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.process-step p {
  margin-top: 9px;
  color: rgba(255, 255, 255, .83);
  font-size: .87rem;
  line-height: 1.45;
}

.process-step:not(:last-child)::after {
  display: none;
}

.guide-card {
  padding: 20px;
}

.guide-card h3 {
  margin-top: 16px;
}

.guide-card p {
  min-height: 52px;
  margin-top: 7px;
}

.text-link {
  margin-top: 12px;
}

.support-prompt {
  padding: 24px;
}

.closing {
  padding-block: 38px;
}

.site-footer {
  padding-block: 25px;
}

@media (max-width: 860px) {
  .hero,
  .hero-grid {
    min-height: 555px;
  }

  .hero {
    background-position: 64% center;
    background-image:
      linear-gradient(90deg, rgba(8, 15, 28, .94) 0%, rgba(8, 15, 28, .84) 58%, rgba(8, 15, 28, .48) 100%),
      linear-gradient(180deg, var(--hero-tint), var(--hero-tint)),
      var(--hero-image);
  }

  .hero-grid {
    display: flex;
    padding-block: 42px 48px;
  }

  .hero-copy {
    width: min(92%, 690px);
  }

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

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

  .process-step:last-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    width: min(calc(100% - 24px), 1180px);
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .logo {
    min-width: 0;
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .sector-select {
    width: 112px;
    min-width: 0;
    padding-inline: 9px 24px;
    font-size: .72rem;
  }

  .hero {
    background-position: 68% center;
    background-image:
      linear-gradient(90deg, rgba(8, 15, 28, .95) 0%, rgba(8, 15, 28, .87) 68%, rgba(8, 15, 28, .64) 100%),
      linear-gradient(180deg, var(--hero-tint), var(--hero-tint)),
      var(--hero-image);
  }

  .hero,
  .hero-grid {
    min-height: 610px;
  }

  .hero-grid {
    padding-block: 38px 42px;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12.6vw, 3.25rem);
  }

  .hero .hero-lead {
    font-size: 1.02rem;
  }

  .hero .proof-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 14px;
    margin-top: 25px;
    padding-top: 18px;
  }

  .section,
  .section.compact {
    padding-block: 38px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .promise-card {
    width: 100%;
    min-width: 0;
    min-height: 228px;
  }

  .intake h2 {
    font-size: clamp(1.85rem, 9.8vw, 2.35rem);
  }

  .process-intro {
    margin-bottom: 4px;
    text-align: left;
  }

  .process-intro p:last-child {
    margin-inline: 0;
  }

  .process-step {
    min-height: 250px;
  }
}

/* Linked sector rail directly beneath every hero. */
.sector-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.sector-strip-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sector-strip-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sector-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sector-links::-webkit-scrollbar { display: none; }

.sector-links a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.sector-links a:hover,
.sector-links a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* Compact, sector-specific provider logo panel. */
.provider-section {
  padding-block: 30px 8px;
}

.provider-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.provider-heading h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.provider-heading p {
  max-width: 390px;
  color: var(--muted);
  font-size: .84rem;
  text-align: right;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.provider-card {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 750 .78rem/1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.provider-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 10px 24px rgba(8, 15, 28, .08);
}

.provider-logo {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 11px;
  background: #fff;
}

.provider-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.provider-fallback {
  display: none;
  color: var(--brand);
  font: 800 1rem/1 var(--sans);
}

.provider-card.logo-missing img { display: none; }
.provider-card.logo-missing .provider-fallback { display: block; }

@media (max-width: 860px) {
  .provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sector-strip-inner {
    min-height: 54px;
    display: block;
    padding-block: 9px;
  }

  .sector-strip-label { display: none; }
  .sector-links { width: 100%; }

  .provider-section {
    padding-block: 25px 4px;
  }

  .provider-heading {
    display: block;
    margin-bottom: 12px;
  }

  .provider-heading p {
    margin-top: 7px;
    text-align: left;
  }

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

  .provider-card {
    min-height: 70px;
    padding: 8px;
    font-size: .73rem;
  }
}
