/*
Theme Name: ST-1 Contractors
Theme URI: https://st-1contractors.co.uk
Author: ST-1 Contractors
Author URI: https://st-1contractors.co.uk
Description: Professional multi-trade property maintenance theme for ST-1 Contractors — damp proofing specialists serving social housing and private clients across Shropshire. Navy and sky blue branding.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: st1-contractors
Tags: custom-menu, custom-logo, one-column, responsive-layout, translation-ready
*/

/* ST-1 Contractors — premium navy / sky blue */
:root {
  --navy: #0a1c36;
  --navy-mid: #122a4d;
  --navy-light: #1a3a66;
  --sky: #7eb8e8;
  --sky-dark: #3d8bc4;
  --sky-mid: #5a9fd4;
  --sky-soft: #eef5fb;
  --sky-glow: rgba(126, 184, 232, 0.22);
  --white: #ffffff;
  --off-white: #f5f8fc;
  --surface: #fafcfe;
  --text: #152033;
  --muted: #5c6b80;
  --border: #d9e4f0;
  --border-strong: #c5d4e6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 54, 0.04), 0 4px 12px rgba(10, 28, 54, 0.06);
  --shadow: 0 4px 6px rgba(10, 28, 54, 0.04), 0 12px 28px rgba(10, 28, 54, 0.1);
  --shadow-lg: 0 8px 16px rgba(10, 28, 54, 0.06), 0 24px 48px rgba(10, 28, 54, 0.12);
  --max: 1120px;
  --header-h: 80px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.015rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--sky-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 28, 54, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  border-bottom: 1px solid rgba(126, 184, 232, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--white);
}

.logo-img-lockup {
  width: 64px;
  height: 64px;
  max-width: min(72px, 22vw);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.015em;
  max-width: 11.5rem;
}

.header-phone {
  font-size: 0.9rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;

  display: none;
  align-items: center;
  gap: 0.45rem;
  color: var(--sky);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 0.85rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.header-phone:hover {
  color: #b8daf5;
  background: rgba(126, 184, 232, 0.1);
}

.header-phone-mobile {
  display: none;
  color: var(--sky);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (min-width: 960px) {
  .header-phone {
    display: inline-flex;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  align-items: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--sky);
  background: rgba(126, 184, 232, 0.08);
}

.nav a.is-active {
  color: var(--sky);
  background: rgba(126, 184, 232, 0.12);
}

.nav-cta {
  background: var(--sky) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.05rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  margin-left: 0.35rem;
  box-shadow: 0 2px 8px rgba(126, 184, 232, 0.35);
}

.nav-cta:hover,
.nav-cta.is-active {
  background: #a8d4f0 !important;
  color: var(--navy) !important;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--sky);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.4rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
  letter-spacing: 0.01em;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--sky);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(126, 184, 232, 0.35);
}

.btn-primary:hover {
  background: #a8d4f0;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(126, 184, 232, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(126, 184, 232, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--sky-dark);
  color: var(--sky-dark);
  background: var(--sky-soft);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
}

/* ——— Hero (home) ——— */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% -10%, var(--sky-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(30, 63, 111, 0.5), transparent 50%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3rem;
  }
}

.hero-logo {
  width: min(168px, 42vw);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 1.25rem;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero-line {
  margin: 0 0 0.9rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 650;
  line-height: 1.3;
  color: var(--sky);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.22;
  font-weight: 750;
  color: var(--white);
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.hero .lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sky);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.hero-phone-cta:hover {
  color: #b8daf5;
  background: rgba(126, 184, 232, 0.1);
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-card li:first-child {
  padding-top: 0;
}

.hero-card li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ——— Page hero (inner pages) ——— */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, var(--sky-glow), transparent 50%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.25rem 0 2.85rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.7;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: var(--sky);
  margin-bottom: 0.55rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 18ch;
}

.page-hero .lede {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
  line-height: 1.65;
}

.page-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Trust strip ——— */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 2rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(126, 184, 232, 0.25);
  flex-shrink: 0;
}

/* ——— Sections ——— */
section {
  padding: 4rem 0;
}

section h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 750;
  line-height: 1.25;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-dark);
}

/* ——— Highlights (home) ——— */
.highlights {
  background: var(--white);
}

.highlight-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 700px) {
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.45rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.highlight-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.highlight-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.highlight-card p {
  margin: 0 0 1.15rem;
  font-size: 0.94rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.6;
}

.highlight-card .text-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sky-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.highlight-card .text-link:hover {
  color: var(--navy);
}

.highlight-card .text-link::after {
  content: "→";
  transition: transform 0.15s var(--ease);
}

.highlight-card .text-link:hover::after {
  transform: translateX(3px);
}

/* ——— Services ——— */
.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  height: 100%;
}

.service-card:hover {
  border-color: #b0c8e0;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card.featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow);
}

.service-card.featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card.featured h3 {
  color: var(--white);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card.featured .service-icon {
  background: rgba(126, 184, 232, 0.18);
  border: 1px solid rgba(126, 184, 232, 0.35);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  background: var(--sky-soft);
  border: 1px solid rgba(126, 184, 232, 0.35);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.notice strong {
  color: var(--navy);
}

/* ——— How we work ——— */
.how {
  background: var(--off-white);
}

.steps {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  transition: box-shadow 0.2s var(--ease);
}

.step:hover {
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sky);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 0 4px rgba(126, 184, 232, 0.15);
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ——— Areas ——— */
.areas {
  background: var(--white);
}

.area-panel {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .area-panel {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
    gap: 2rem;
  }
}

.area-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.area-list li {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}

.area-list li:last-child {
  border-bottom: none;
}

.area-list li:hover {
  background: var(--sky-soft);
}

.map-placeholder {
  background:
    radial-gradient(circle at 80% 20%, rgba(126, 184, 232, 0.25), transparent 45%),
    linear-gradient(160deg, var(--navy-mid), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.map-placeholder::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(126, 184, 232, 0.2);
  border-radius: 50%;
  right: -40px;
  bottom: -40px;
}

.map-placeholder strong {
  color: var(--sky);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.map-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 28rem;
  position: relative;
  z-index: 1;
}


/* ——— Work photo ——— */
.work-photo {
  margin: 1.75rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.work-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.work-photo figcaption {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted, #5a6a7a);
  background: var(--white);
}

/* ——— About ——— */
.about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 1.5rem;
  }
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.about-card h3 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-card p,
.about-card ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.about-card ul {
  padding-left: 1.2rem;
}

.about-card li + li {
  margin-top: 0.45rem;
}

.about-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .about-meta {
    grid-template-columns: repeat(3, 1fr);
  }
}

.meta-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.meta-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.meta-stat span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
}

/* ——— Contact ——— */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.25fr;
    gap: 2rem;
    align-items: start;
  }
}

.contact-details {
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 184, 232, 0.2), transparent 50%),
    var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.65rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.contact-details h3 {
  margin: 0 0 1.15rem;
  color: var(--sky);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.contact-details p {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-details p strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--sky);
  font-weight: 700;
  word-break: break-word;
  text-decoration: none;
  font-size: 1.02rem;
}

.contact-details a:hover {
  color: #b8daf5;
  text-decoration: underline;
}

.contact-meta {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--navy);
}

.field .hint {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(126, 184, 232, 0.25);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ——— CTA band ——— */
.cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(126, 184, 232, 0.18), transparent 55%),
    linear-gradient(120deg, var(--navy), var(--navy-light));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  line-height: 1.6;
}

.cta-band a.link-accent {
  color: var(--sky);
  font-weight: 700;
  text-decoration: none;
}

.cta-band a.link-accent:hover {
  color: #b8daf5;
  text-decoration: underline;
}

.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Footer ——— */
.site-footer {
  background: #06111f;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.75rem 0 1.75rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.site-footer strong {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.site-footer a {
  color: var(--sky);
  text-decoration: none;
}

.site-footer a:hover {
  color: #b8daf5;
  text-decoration: underline;
}

.footer-brand p {
  margin: 0.65rem 0 0;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 550;
}

.footer-nav a:hover {
  color: var(--sky);
}

.footer-contact p {
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.footer-contact span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.legal-line {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ——— Mobile nav ——— */
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0 0.85rem;
    gap: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.35rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border-bottom: none;
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem !important;
    margin-left: 0 !important;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-phone-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 0.55rem;
  }

  .logo-tagline {
    display: none;
  }
}

@media (min-width: 861px) and (max-width: 959px) {
  .header-phone-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 0.55rem;
  }
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-soft {
  background: var(--off-white);
}

.bg-white {
  background: var(--white);
}

/* ——— WordPress / housing-contractor polish ——— */
.wp-block-group,
.entry-content {
  max-width: var(--max);
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Stronger contractor identity on logo mark */
.logo-img-lockup {
  border-radius: 10px;
  border: 2px solid rgba(126, 184, 232, 0.35);
  object-fit: cover;
  background: var(--navy-mid);
}

.hero-logo {
  border-radius: 16px;
  border: 3px solid rgba(126, 184, 232, 0.4);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* Tighter professional type on page heroes */
.page-hero h1 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page-hero .lede {
  max-width: 40rem;
}

/* Featured damp service card emphasis */
.service-card.featured {
  border-color: var(--sky);
  box-shadow: 0 0 0 1px rgba(126, 184, 232, 0.35), var(--shadow);
}

.service-card.featured h3::after {
  content: " — lead specialism";
  font-weight: 500;
  font-size: 0.85em;
  color: var(--sky-dark);
}

.legal-line {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(126, 184, 232, 0.12);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}


/* ——— Checkatrade widget placeholder ——— */
.checkatrade-widget-slot {
  flex-shrink: 0;
}
.checkatrade-badge-placeholder {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 9.5rem;
  min-height: 3.1rem;
  padding: 0.4rem 0.7rem;
  border: 1.5px dashed rgba(126, 184, 232, 0.65);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.checkatrade-badge-placeholder:hover {
  border-color: var(--sky);
  background: rgba(126, 184, 232, 0.12);
}
.checkatrade-badge-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: #00a651;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.checkatrade-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.checkatrade-badge-copy strong {
  font-size: 0.78rem;
  color: var(--white);
  font-weight: 700;
}
.checkatrade-badge-copy span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}
.checkatrade-widget-slot--footer .checkatrade-badge-placeholder {
  background: var(--white);
  border-color: rgba(11, 31, 58, 0.2);
}
.checkatrade-widget-slot--footer .checkatrade-badge-copy strong {
  color: var(--navy);
}
.checkatrade-widget-slot--footer .checkatrade-badge-copy span {
  color: var(--muted);
}
@media (max-width: 900px) {
  .checkatrade-widget-slot:not(.checkatrade-widget-slot--footer) {
    display: none;
  }
}

/* ——— Service tiles: blue / white on scroll ——— */
.service-card {
  opacity: 0.55;
  transform: translateY(12px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.service-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.service-card.is-inview:nth-child(odd):not(.featured) {
  background: var(--navy);
  border-color: transparent;
  color: var(--white);
}
.service-card.is-inview:nth-child(odd):not(.featured) h3 {
  color: var(--white);
}
.service-card.is-inview:nth-child(odd):not(.featured) p {
  color: rgba(255, 255, 255, 0.82);
}
.service-card.is-inview:nth-child(odd):not(.featured) .service-icon {
  background: rgba(126, 184, 232, 0.18);
  border: 1px solid rgba(126, 184, 232, 0.35);
}
.service-card.is-inview:nth-child(even):not(.featured) {
  background: var(--white);
  border-color: var(--border);
  color: var(--text);
}
.service-card.is-inview:nth-child(even):not(.featured) h3 {
  color: var(--navy);
}
.service-card.is-inview:nth-child(even):not(.featured) p {
  color: var(--muted);
}
.service-card.is-inview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}


/* ——— Hero Checkatrade square (top, visible) ——— */
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
}
.checkatrade-hero-slot {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
}
.checkatrade-hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 1.25rem;
  border: 2px dashed rgba(126, 184, 232, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  text-align: center;
  color: var(--white);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.checkatrade-hero-box:hover {
  border-color: var(--sky);
  background: rgba(126, 184, 232, 0.14);
  transform: translateY(-2px);
}
.checkatrade-hero-logo {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: #00a651;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.checkatrade-hero-box strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.checkatrade-hero-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.checkatrade-hero-cta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky);
}
.hero-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-width: 280px;
  margin-left: auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-trust-list li {
  padding-left: 1rem;
  position: relative;
}
.hero-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--sky);
}
@media (max-width: 900px) {
  .checkatrade-hero-slot,
  .hero-trust-list {
    margin-left: 0;
    max-width: none;
  }
}


.town-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .town-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .town-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.town-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
