:root {
  --ink: #062016;
  --deep: #083923;
  --green: #006b37;
  --mint: #d9f2e6;
  --mist: #f3f8f4;
  --white: #ffffff;
  --line: #c7ddcf;
  --amber: #f0b429;
  --copper: #a9522d;
  --blue: #0d5f78;
  --shadow: 0 24px 70px rgba(2, 40, 23, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 12px clamp(16px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(6, 32, 22, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 62px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
}

.brand img,
.contact-card img,
.site-footer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links a,
.mobile-nav a,
.button,
.text-link,
.site-footer a,
.contact-card a {
  text-decoration: none;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  content: "";
  transition: width 170ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.header-actions,
.hero-actions,
.panel-actions,
.form-actions,
.checker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 950;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible,
.work-thumb:hover,
.work-thumb:focus-visible,
.service-tab:hover,
.service-tab:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--amber);
}

.button-outline {
  color: inherit;
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.button-dark {
  color: var(--white);
  background: var(--deep);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  z-index: 29;
  top: 82px;
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 18px 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: clamp(24px, 5vw, 54px);
  align-items: end;
  min-height: 94vh;
  padding: 138px clamp(16px, 5vw, 64px) 58px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 27, 17, 0.92), rgba(2, 39, 23, 0.67) 47%, rgba(2, 39, 23, 0.3)),
    linear-gradient(180deg, rgba(2, 27, 17, 0.62), rgba(2, 27, 17, 0.16) 46%, rgba(2, 27, 17, 0.86));
}

.hero-content,
.emergency-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 880px;
  padding-bottom: 18px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.emergency-panel {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.emergency-panel h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.triage {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #24533a;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bad3c3;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(0, 107, 55, 0.16);
}

.triage-result,
.checker-result,
.form-status {
  min-height: 32px;
  margin: 18px 0;
  color: var(--blue);
  font-weight: 900;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--deep);
  color: var(--white);
}

.proof-strip div {
  min-height: 122px;
  padding: 24px clamp(18px, 4vw, 38px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

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

.proof-strip strong {
  font-size: clamp(1.9rem, 3vw, 3.3rem);
  line-height: 1;
}

.proof-strip span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 126px) clamp(16px, 5vw, 64px);
}

.service-section,
.area-section,
.quote-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.35fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.section-intro,
.quote-copy {
  position: sticky;
  top: 110px;
}

.section-intro p,
.section-heading p,
.area-copy p,
.quote-copy p,
.route-grid p,
.work-feature p:not(.kicker) {
  max-width: 650px;
  color: #476153;
  font-size: 1.05rem;
}

.service-app,
.area-checker,
.quote-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(4, 55, 31, 0.1);
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.service-tab {
  min-height: 66px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  font-weight: 950;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.service-tab:last-child {
  border-right: 0;
}

.service-tab.is-active {
  color: var(--white);
  background: var(--green);
}

.service-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  min-height: 510px;
}

.service-display > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.service-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 50px);
}

.service-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 8px 0 28px;
  list-style: none;
}

.service-copy li {
  position: relative;
  padding-left: 24px;
}

.service-copy li::before {
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  content: "";
}

.text-link {
  display: inline-flex;
  align-self: flex-start;
  color: var(--green);
  font-weight: 950;
}

.route-section {
  color: var(--white);
  background: var(--ink);
}

.route-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

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

.route-grid article {
  min-height: 250px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.route-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--amber);
  font-weight: 950;
}

.route-grid p {
  color: rgba(255, 255, 255, 0.73);
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 930px;
  margin-bottom: 36px;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 22px;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-thumb {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--white);
  background: var(--deep);
  transition: transform 160ms ease, outline-color 160ms ease;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 220ms ease, opacity 180ms ease;
}

.work-thumb span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  font-weight: 950;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}

.work-thumb:hover img,
.work-thumb:focus-visible img,
.work-thumb.is-selected img {
  transform: scale(1.04);
  opacity: 1;
}

.work-thumb.is-selected {
  outline: 4px solid var(--amber);
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(4, 55, 31, 0.1);
}

.work-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}

.area-section {
  background: #e8f4ed;
}

.area-checker {
  padding: clamp(24px, 4vw, 42px);
}

.checker-row input {
  flex: 1 1 240px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(42px, 7vw, 78px) clamp(16px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(rgba(6, 32, 22, 0.82), rgba(6, 32, 22, 0.82)),
    url("https://hh-plumbers.co.uk/wp-content/uploads/2026/05/boiler-and-repair.webp") center / cover;
}

.cta-band h2 {
  max-width: 920px;
  margin-bottom: 0;
}

.reviews-section {
  background: var(--white);
}

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

.review-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 310px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  box-shadow: 0 14px 38px rgba(4, 55, 31, 0.08);
}

.review-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.reviewer {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.reviewer-avatar {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.92rem;
  font-weight: 950;
}

.reviewer h3 {
  margin-bottom: 2px;
  font-size: 1.08rem;
  line-height: 1.15;
}

.reviewer p,
.review-card blockquote p {
  margin-bottom: 0;
  color: #476153;
}

.review-source {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(240, 180, 41, 0.22);
  font-size: 0.78rem;
  font-weight: 950;
}

.star-row {
  display: flex;
  gap: 4px;
}

.star-row i {
  width: 17px;
  height: 17px;
  background: var(--amber);
  clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 70%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
}

.review-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
}

.review-tag {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.quote-section {
  background: var(--mist);
}

.contact-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px 16px;
  align-items: center;
  max-width: 430px;
  margin-top: 28px;
  padding: 16px;
}

.contact-card img {
  grid-row: span 2;
  height: 82px;
}

.contact-card a {
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 950;
}

.contact-card span {
  color: #476153;
  font-weight: 850;
}

.quote-form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
}

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

.site-footer {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px clamp(16px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.8);
  background: #041a11;
}

.site-footer img {
  height: 78px;
  padding: 4px;
  border-radius: 6px;
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--amber);
  font-weight: 950;
}

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

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .hero,
  .service-section,
  .area-section,
  .quote-section,
  .service-display,
  .work-feature {
    grid-template-columns: 1fr;
  }

  .section-intro,
  .quote-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    padding: 9px 16px;
  }

  .brand {
    width: 158px;
    height: 54px;
  }

  .mobile-nav {
    top: 72px;
  }

  .hero {
    min-height: 100vh;
    padding: 108px 16px 34px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.4rem);
  }

  .proof-strip,
  .service-tabs,
  .route-grid,
  .review-grid,
  .form-grid,
  .cta-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .work-layout {
    grid-template-columns: 1fr;
  }

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

  .proof-strip div,
  .service-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div {
    min-height: auto;
  }

  .work-thumb {
    min-height: 148px;
  }

  .site-footer img {
    width: 86px;
  }
}

@media (max-width: 460px) {
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .work-thumb {
    min-height: 180px;
  }
}
