/* ============================================================
   GASTECH HEATING SOLUTIONS LTD - BRAND STYLESHEET
   Clean, Calm, Authoritative British Trade Web Design
   Gas Safe Register No: 976339 | Hull & East Yorkshire
   ============================================================ */

:root {
  /* 60-30-10 Color System */
  /* 60% Canvas & Neutrals */
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-subtle: #f8fafc;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  
  /* 30% Deep Trade Navy & Text Hierarchy */
  --navy: #081a2e;
  --navy-deep: #05111e;
  --navy-surface: #0f253d;
  --ink: #0b1520;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --white: #ffffff;
  
  /* 10% Purposeful Conversion Accent (Amber/Orange) */
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-subtle: #fff7ed;
  --accent-border: #fed7aa;
  
  /* Trust Signals */
  --gas-safe-yellow: #ffcc00;
  --gas-safe-dark: #1a1a1a;
  --success: #16a34a;
  --success-subtle: #f0fdf4;
  --danger: #dc2626;
  --danger-subtle: #fef2f2;
  
  /* Elevation & Rhythm */
  --shadow-sm: none;
  --shadow: 0 1px 3px rgba(8, 26, 46, 0.05);
  --shadow-hover: 0 2px 8px rgba(8, 26, 46, 0.08);
  --shadow-lg: 0 4px 16px rgba(8, 26, 46, 0.1);
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  
  /* Layout Spacing */
  --section-pad: 100px;
  --section-pad-mobile: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Accessible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 14px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, p {
  margin-top: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--white);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--ink);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 580px;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow.dark-theme {
  color: #fb923c;
}

/* Badges - Unified, Calm Neutral Styling */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.badge.gas-safe {
  background: var(--gas-safe-yellow);
  color: var(--gas-safe-dark);
  border-color: #eab308;
}

.badge.accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent-border);
}

.badge.success {
  background: var(--success-subtle);
  color: var(--success);
  border-color: #bbf7d0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  background: var(--accent);
  color: var(--white);
}

.button:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  background: var(--navy-surface);
  color: var(--white);
}

.button.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.button.outline-dark {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.outline-dark:hover {
  background: var(--surface-alt);
  border-color: var(--muted-light);
  color: var(--ink);
}

.button.sm {
  padding: 9px 16px;
  font-size: 0.88rem;
}

/* ============================================================
   TOP UTILITY BAR & SITE HEADER
   ============================================================ */

.top-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}

.top-bar-right a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.top-bar-right a:hover {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #081a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 140px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.91rem;
}

.nav-text-mobile {
  display: none;
}

.nav-text-desktop {
  display: inline;
}

.nav-item-mobile-only {
  display: none !important;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-mobile-call,
.nav-mobile-quote,
.nav-mobile-trust {
  display: none;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.nav-phone-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.nav-phone-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* ============================================================
   HERO SECTION - CALM & FOCUSED
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy);
  background-image: 
    linear-gradient(135deg, rgba(8, 26, 46, 0.90) 0%, rgba(8, 26, 46, 0.85) 60%, rgba(8, 26, 46, 0.78) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center 58%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  padding: 96px 0 100px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-secondary-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.hero-secondary-link:hover {
  color: var(--white);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.hero-trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero Services Panel - Clean Trade Styling */
.hero-triage {
  background: #0b1f36;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.hero-triage-header {
  margin-bottom: 20px;
}

.hero-triage-header h3 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.hero-triage-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin: 0;
}

.hero-triage-options {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.triage-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.triage-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.triage-option-tag {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.hero-triage-callout {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-triage-callout-text {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-triage-callout-text strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
}

/* ============================================================
   VERIFICATION BAR
   ============================================================ */

.verification-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.verification-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.verification-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.verification-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.3;
}

.verification-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}

.verification-item a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   SECTIONS & LAYOUT RHYTHM
   ============================================================ */

.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: 80px;
}

.section.surface-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.dark {
  background: var(--navy);
  color: var(--white);
}

.section.dark h2,
.section.dark h3 {
  color: var(--white);
}

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header p.intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

.section.dark .section-header p.intro {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   CORE SERVICES - UNIFORM 3-COLUMN GRID
   ============================================================ */

.services-grid-uniform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.service-card-clean {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card-clean:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.service-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.service-card-clean:hover .service-card-media img {
  opacity: 0.96;
}

.service-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  margin-bottom: 8px;
  color: var(--ink);
}

.service-card-desc {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.service-card-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.service-card-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.service-card-clean:hover .service-card-link {
  color: var(--accent-hover);
  transform: translateX(4px);
}

/* Secondary Services Row (2 columns) */
.secondary-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.secondary-service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.secondary-service-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.secondary-service-info h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.secondary-service-info p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================
   STANDALONE PRICING SECTION
   ============================================================ */

.pricing-grid-clean {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card-clean {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card-clean:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card-clean.most-popular {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.12);
}

.pricing-card-badge-slot {
  height: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.pricing-service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
}

.pricing-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex: 1 1 auto;
}

.pricing-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.pricing-checklist li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card-clean .button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.pricing-finance-banner {
  margin-top: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ============================================================
   MEET MIKE - ENGINEER PROFILE
   ============================================================ */

.engineer-grid-clean {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.engineer-photo-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-deep);
}

.engineer-photo-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.engineer-id-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #081a2e;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.engineer-id-chip strong {
  font-size: 0.88rem;
  color: var(--white);
}

.engineer-quote-clean {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

.engineer-assurances {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}

.engineer-assurances li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.engineer-assurances li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.engineer-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.engineer-cta-group .button {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  font-size: 1rem;
}

/* ============================================================
   RECENT WORK - CASE STUDIES
   ============================================================ */

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.work-card-media {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.work-card:hover .work-card-media img {
  opacity: 0.96;
}

.work-card-badge {
  display: none !important;
}

.work-card-body {
  padding: 20px 24px;
}

.work-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.work-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.work-card-meta {
  font-size: 0.82rem;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-cta-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   REVIEWS & SOCIAL PROOF
   ============================================================ */

.reviews-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.google-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.google-rating-pill:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.google-rating-pill svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.reviews-badges-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.checkatrade-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.checkatrade-rating-pill img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
}

.checkatrade-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.checkatrade-score-badge .score-number {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0b1520;
  line-height: 1;
}

.checkatrade-score-badge .score-total {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.reviews-grid-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card-clean {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #f59e0b;
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.review-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.review-location {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
}

/* ============================================================
   POSTCODE COVERAGE TOOL - COMPACT & SLEEK
   ============================================================ */

.coverage-tool-sleek {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}

.coverage-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.coverage-input-bar input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface-alt);
  box-sizing: border-box;
}

.coverage-input-bar input:focus {
  background: var(--surface);
  border-color: var(--navy);
}

.geo-btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.geo-btn:hover {
  background: var(--surface);
  border-color: var(--navy);
  color: var(--accent);
}

.coverage-input-bar .button {
  height: 48px;
  padding: 0 20px;
  box-sizing: border-box;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.coverage-quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.coverage-quick-chips span.label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-right: 4px;
}

.quick-chip {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.coverage-result-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.coverage-result-box.active {
  display: block;
}

.coverage-result-box.success {
  background: var(--success-subtle);
  border: 1px solid #bbf7d0;
  color: #14532d;
}

.coverage-result-box.info {
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: #9a3412;
}

/* ============================================================
   SMART QUOTE FORM & URGENCY TOGGLE
   ============================================================ */

.quote-wrap-clean {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.quote-form-card-clean {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

/* Segmented Urgency Switch */
.urgency-segmented-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.urgency-segment {
  padding: 10px 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--muted);
  border: none;
  background: transparent;
}

.urgency-segment.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.urgency-segment.active.emergency-mode {
  background: var(--danger);
  color: var(--white);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--surface);
  border-color: var(--accent);
}

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

.field-error {
  display: none;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 4px;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
  background: var(--danger-subtle);
}

.field.has-error .field-error {
  display: block;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

/* Form Success State */
.form-success {
  text-align: center;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeInSuccess 0.35s ease-out forwards;
}

@keyframes fadeInSuccess {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success .success-tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-subtle);
  border: 2px solid #bbf7d0;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
}

.form-success .success-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 6px;
}

.form-success .success-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.form-success .success-message {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 24px;
}

.form-success .success-message strong {
  color: var(--ink);
}

.form-success-emergency-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.form-success-emergency-box .emergency-box-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}

.form-success-emergency-box .button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
}

/* Side form variations (dark container in aside.side-box) */
.side-form-success {
  padding: 16px 8px;
}

.side-form-success .success-tick {
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.side-form-success .success-eyebrow {
  color: #4ade80;
}

.side-form-success .success-heading {
  color: var(--white);
  font-size: 1.4rem;
}

.side-form-success .success-message {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.side-form-success .success-message strong {
  color: var(--white);
}

.side-form-success .form-success-emergency-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 16px;
}

.side-form-success .form-success-emergency-box .emergency-box-title {
  color: rgba(255, 255, 255, 0.75);
}

/* Contact Sidebar */
.contact-sidebar-clean {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-sidebar-clean h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.contact-sidebar-clean p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.direct-call-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}

.direct-call-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.direct-call-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 4px 0 10px;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-points li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   SUBPAGE EDITORIAL & SIDEBAR (SERVICES & LOCATIONS)
   ============================================================ */

.service-hero {
  position: relative;
  background-color: var(--navy);
  background-image: 
    linear-gradient(135deg, rgba(8, 26, 46, 0.92) 0%, rgba(8, 26, 46, 0.82) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 64px 0 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.prose h2 {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.prose ul.trade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.prose ul.trade-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.prose ul.trade-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
}

.side-box {
  position: sticky;
  top: 96px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.side-box h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.side-box p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.phone-highlight {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.side-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-form .field label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.side-form .field input,
.side-form .field textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 9px 12px;
  font-size: 0.9rem;
}

.side-form .field input:focus,
.side-form .field textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */

.lightbox,
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 17, 30, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox.is-open,
.lightbox-modal.is-open,
.lightbox:not([hidden]) {
  display: flex !important;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.lightbox-content img,
.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #081a2e;
  display: block;
}

.lightbox-caption {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 26, 46, 0.85);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.15s ease, background 0.15s ease;
}

.lightbox-close:hover {
  background: #081a2e;
  transform: scale(1.08);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-about .footer-logo,
.footer-about > img {
  width: 140px;
  height: auto;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.footer-badge-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.footer-badge-link img {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  border-radius: 3px;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--gas-safe-yellow);
  font-weight: 700;
}

/* ============================================================
   SCROLL TO TOP & MOBILE BAR
   ============================================================ */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  opacity: 0.45;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  background: var(--accent);
}

/* Mobile Action Bar - Hidden on desktop */
.mobile-cta {
  display: none !important;
}

/* Hero Mini Review Pill */
.hero-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
}

.hero-review-pill .stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* Boiler Brand Badges Strip */
.brand-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-strip-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
}

/* WhatsApp Button */
.button.whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
}

.button.whatsapp:hover {
  background: #20ba5a;
  color: #ffffff;
}

/* Category Filter Tabs (Services & Case Studies) */
.filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Before & After Transformations Showcase */
.before-after-showcase {
  margin-bottom: 48px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.before-after-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.before-after-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.before-after-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--line);
}

.before-after-col {
  position: relative;
  overflow: hidden;
}

.before-after-col:first-child {
  border-right: 2px solid rgba(255, 255, 255, 0.15);
}

.before-after-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-alt);
}

.before-after-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.before-after-media:hover img {
  transform: scale(1.04);
}

.before-after-media img[src*="1000061941"],
.gallery-card-media img[src*="1000061941"] {
  object-position: center bottom;
}

.ba-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ba-pill.before {
  background: rgba(15, 23, 42, 0.9);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.ba-pill.after {
  background: #15803d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.before-after-details {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.before-after-header {
  margin-bottom: 8px;
}

.before-after-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.3;
}

.gallery-card-badge-inline {
  display: inline-block;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.before-after-details p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.before-after-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.gallery-item {
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.gallery-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-media img {
  opacity: 0.95;
}

.gallery-card-badge,
.gallery-card-badge-inline {
  display: none !important;
}

.gallery-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.gallery-card-body p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.triage-option:hover svg {
  transform: translateX(4px);
}

.triage-option svg {
  transition: transform 0.2s ease;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 0 72px;
  }
  
  .verification-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .services-grid-uniform {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid-clean {
    grid-template-columns: repeat(2, 1fr);
  }

  .before-after-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .engineer-grid-clean {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .engineer-photo-wrap {
    max-width: 480px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .side-box {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  body {
    padding-bottom: 58px;
  }
  
  .top-bar-right {
    display: none;
  }
  
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #081a2e !important;
    z-index: 10000 !important;
  }

  .brand {
    position: relative;
    z-index: 10001;
  }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #081a2e !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 86px 24px 32px !important;
    gap: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s !important;
    z-index: 9999 !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    visibility: hidden !important;
  }
  
  .nav-links.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
  
  .nav-links a:not(.button) {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--white);
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
  }

  .nav-text-desktop {
    display: none !important;
  }

  .nav-text-mobile {
    display: inline !important;
  }

  .nav-item-mobile-only {
    display: flex !important;
  }

  .nav-links a::after {
    display: none !important;
  }

  .nav-links a:not(.button)::after {
    display: block !important;
    position: static !important;
    content: "→" !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .nav-links a:not(.button):hover,
  .nav-links a:not(.button):active {
    color: var(--accent);
    padding-left: 6px;
  }

  .nav-links a:not(.button):hover::after,
  .nav-links a:not(.button):active::after {
    color: var(--accent);
    transform: translateX(4px);
  }
  
  .nav-cta-group {
    display: none;
  }
  
  .nav-mobile-call {
    display: flex !important;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
    box-sizing: border-box;
  }

  .nav-mobile-quote {
    display: flex !important;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
    min-height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    box-sizing: border-box;
  }

  .nav-mobile-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
  }
  
  .nav-toggle {
    display: block !important;
    position: relative;
    z-index: 10001 !important;
  }
  
  .work-gallery-grid,
  .reviews-grid-clean {
    grid-template-columns: 1fr;
  }
  
  .quote-wrap-clean {
    grid-template-columns: 1fr;
  }
  
  .reviews-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .mobile-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 26, 46, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  
  .mobile-cta .button {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .back-to-top {
    bottom: 74px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: var(--section-pad-mobile);
  }
  
  .container {
    width: min(100% - 28px, 1180px);
  }
  
  .brand img {
    width: 125px;
    height: 44px;
  }
  
  .hero {
    background-position: center 30%;
    background-image: 
      linear-gradient(180deg, rgba(8, 26, 46, 0.94) 0%, rgba(8, 26, 46, 0.84) 45%, rgba(8, 26, 46, 0.96) 100%),
      var(--hero-image);
  }

  .hero .container {
    padding: 20px 0 28px;
    gap: 18px;
  }

  .hero-review-pill {
    padding: 4px 10px;
    font-size: 0.74rem;
    gap: 6px;
    margin-bottom: 8px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
  }

  .hero .eyebrow.dark-theme {
    font-size: 0.76rem;
    color: #fb923c;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 5.5vw, 1.85rem);
    line-height: 1.22;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
  }

  .hero p.lead {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(224, 83, 24, 0.4);
  }

  .hero-secondary-link {
    text-align: center;
    font-size: 0.82rem;
    padding: 4px 0;
  }

  .hero-trust-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-trust-item {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    gap: 8px;
  }

  .hero-trust-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .brand-strip {
    margin-top: 14px;
    padding-top: 12px;
    gap: 6px;
  }

  .brand-strip-label {
    font-size: 0.72rem;
    width: 100%;
    margin-bottom: 2px;
  }

  .brand-pill {
    font-size: 0.72rem;
    padding: 3px 8px;
  }

  .hero-triage {
    padding: 18px 14px;
    border-radius: var(--radius);
  }

  .hero-triage-header {
    margin-bottom: 12px;
  }

  .hero-triage-header h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .hero-triage-header p {
    font-size: 0.84rem;
  }

  .hero-triage-options {
    gap: 8px;
    margin-bottom: 12px;
  }

  .triage-option {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .triage-option-tag {
    font-size: 0.72rem;
  }

  .hero-triage-callout {
    padding-top: 12px;
  }

  .hero-triage-callout-text span {
    font-size: 0.76rem;
  }

  .hero-triage-callout-text strong {
    font-size: 0.86rem;
  }
  
  .verification-grid,
  .services-grid-uniform,
  .secondary-services-grid,
  .pricing-grid-clean {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .coverage-tool-sleek {
    padding: 24px 20px;
  }
  
  .coverage-input-bar {
    flex-direction: column;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .quote-form-card-clean,
  .contact-sidebar-clean,
  .prose {
    padding: 24px 20px;
  }
  
  .before-after-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
  }

  .gallery-cta-wrap .button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    font-size: 1rem;
  }

  .secondary-service-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .secondary-service-card .button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   REFINEMENT LAYER — quieter, more premium
   Lighter type weights, calmer labels, more air, no hover bounce
   ============================================================ */
h1 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-weight: 700; letter-spacing: -0.028em; line-height: 1.16; }
h3 { font-weight: 650; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.section { padding-top: 120px; padding-bottom: 120px; }
.section-header { margin-bottom: 56px; }
.section-header p.intro { font-size: 1.06rem; line-height: 1.7; }

/* Hero review line: plain text, no boxed pill */
.hero-review-pill {
  background: none;
  border: 0;
  padding: 0;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}
.hero-review-pill strong { font-weight: 600; color: #fff; }

/* Hairlines instead of shadows; no lift on hover */
.pricing-card-clean:hover,
.before-after-card:hover,
.gallery-card:hover { transform: none; box-shadow: none; }
.pricing-card-clean,
.review-card-clean,
.before-after-card,
.gallery-card { box-shadow: none; border-color: var(--line); }

/* Engineer panel */
.engineer-photo-wrap { border-color: rgba(255, 255, 255, 0.08); }
.engineer-photo-wrap img { object-position: center; }
.engineer-id-chip { background: rgba(5, 17, 30, 0.92); border-color: rgba(255, 255, 255, 0.1); }
.engineer-quote-clean { font-style: normal; font-weight: 400; border-left-width: 2px; }

.button, .nav-cta { font-weight: 600; letter-spacing: 0; }

@media (max-width: 760px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-header { margin-bottom: 36px; }
}
