/* ==========================================================================
   ELEMENT ROOFING CO LTD (no1roofing.com) — Architectural Design System
   Strictly Hand-Coded · Mobile-First · Zero Inline Styles · WCAG 2.2 AA+
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-normal-500-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-normal-400-800.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-normal-400-600.woff2') format('woff2');
}

:root {
  /* Core Brand Palette — Sampled from Real Element Roofing Co Logo & Lewisham Fascia */
  --navy-950: #041126;
  --navy-900: #071B3A;
  --navy-800: #0B2854;
  --navy-700: #123870;
  --cobalt-600: #0971CE;
  --cobalt-500: #2186E0;
  --cobalt-400: #4DA3F0;
  --cobalt-tint: #EBF4FC;

  /* Architectural Stone & Slate Neutrals */
  --stone-50: #F6F5F0;
  --stone-100: #ECEAE2;
  --stone-200: #DCD8CC;
  --white: #FFFFFF;
  --slate-900: #0E1623;
  --slate-700: #2C384B;
  --slate-600: #465368;
  --slate-400: #8D9BB0;

  /* Craftsmanship & Status Accents (<5% usage) */
  --copper-600: #A66324;
  --copper-400: #D48B45;
  --emerald-600: #0D8A5E;
  --emerald-400: #2ED197;
  --crimson-600: #C9352B;

  /* Hairlines & Elevation */
  --rule-light: rgba(14, 22, 35, 0.11);
  --rule-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(4, 17, 38, 0.05);
  --shadow-md: 0 14px 34px rgba(4, 17, 38, 0.09);
  --shadow-lg: 0 28px 64px rgba(4, 17, 38, 0.18);

  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid Rhythm & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container-max: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Scroll & 3D Runtime Custom Properties */
  --scroll-bar: 0%;
  --explode-factor: 0.78;
}

/* --------------------------------------------------------------------------
   1. Reset & Base Mobile-First Foundations (320px+)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--stone-50);
  color: var(--slate-900);
  line-height: 1.62;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 74px; /* Space for mobile sticky quick-bar */
}

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

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

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

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cobalt-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--cobalt-600);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  left: 12px;
}

.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;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-bar);
  background: linear-gradient(90deg, var(--cobalt-600), var(--copper-400));
  z-index: 200;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 18px;
}

/* --------------------------------------------------------------------------
   2. Typography & Editorial Tokens
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--slate-900);
}

.h1-hero {
  font-size: clamp(2.05rem, 6.2vw, 3.85rem);
  color: var(--white);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.h2-section {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  margin-bottom: 14px;
}

.h3-card {
  font-size: clamp(1.2rem, 2.4vw, 1.42rem);
  line-height: 1.22;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cobalt-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.eyebrow-light {
  color: var(--cobalt-400);
}

.section-intro {
  max-width: 64ch;
  color: var(--slate-600);
  font-size: 1.04rem;
}

.section-intro-light {
  color: rgba(246, 245, 240, 0.78);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. Top Precision Utility Bar & Sticky Architectural Header (Mobile First)
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.76rem;
  padding: 8px 0;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.utility-heritage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 4px rgba(46, 209, 151, 0.18);
  flex-shrink: 0;
}

.utility-contacts {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 27, 58, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-dark);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 17, 38, 0.98);
  box-shadow: 0 12px 30px rgba(4, 17, 38, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  flex-shrink: 0;
}

.brand-logo img {
  width: 186px;
  height: auto;
}

.desktop-nav,
.header-cta-group {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--navy-950);
  z-index: 115;
  padding: 24px 20px 100px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease-out), visibility 0.32s;
  border-top: 1px solid var(--rule-dark);
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-list {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--rule-dark);
}

.mobile-nav-list a[aria-current="page"] {
  color: var(--cobalt-400);
}

.drawer-emergency-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--white);
  display: grid;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls (48px+ Mobile Touch Targets)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

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

.btn-primary {
  background: var(--cobalt-600);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(9, 113, 206, 0.32);
}

.btn-primary:hover {
  background: var(--cobalt-500);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

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

.btn-navy:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: var(--white);
  color: var(--slate-900);
  border-color: var(--rule-light);
}

.btn-ghost-dark:hover {
  border-color: var(--cobalt-600);
  color: var(--cobalt-600);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   5. Ultra-Premium Hero Sections (Every Page)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(9, 113, 206, 0.24), transparent 48%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--white);
  padding: 40px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-dark);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-lead {
  color: rgba(246, 245, 240, 0.84);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 16px 0 26px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

/* SSR Hardcoded Proof Strip — Crawlable by Google, ChatGPT, Perplexity */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  color: rgba(246, 245, 240, 0.68);
  margin-top: 3px;
}

/* 3D Perspective Hero Stage */
.hero-stage-3d {
  perspective: 1200px;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  overflow: visible;
}

.hero-frame-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.hero-frame-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,17,38,0) 50%, rgba(4,17,38,0.78) 100%);
}

.hero-caption-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--white);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

.hero-float-badge {
  margin-top: 12px;
  background: rgba(7, 27, 58, 0.94);
  border: 1px solid rgba(77, 163, 240, 0.42);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-md);
}

.hero-float-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
}

.hero-float-badge span {
  font-size: 0.76rem;
  color: rgba(246, 245, 240, 0.75);
}

.price-chip {
  background: var(--cobalt-600);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Breadcrumb inside inner-page heroes */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 16px;
}

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

/* --------------------------------------------------------------------------
   6. Verified Accreditations Strip (Real Badges + Fixed Links)
   -------------------------------------------------------------------------- */
.accreditation-strip {
  background: var(--white);
  border-bottom: 1px solid var(--rule-light);
  padding: 22px 0;
}

.accreditation-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-600);
  text-align: center;
  margin-bottom: 16px;
}

.badge-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: center;
}

.badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-height: 62px;
  background: var(--stone-50);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.badge-item:hover {
  border-color: var(--cobalt-600);
  transform: translateY(-2px);
}

.badge-item img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   7. Section Wrappers & Architectural Grids
   -------------------------------------------------------------------------- */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule-light);
}

.section-stone {
  background: var(--stone-100);
}

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

.section-dark {
  background: var(--navy-950);
  color: var(--white);
  border-bottom-color: var(--rule-dark);
}

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

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 38px;
}

/* --------------------------------------------------------------------------
   8. 3D Scroll-Exploded Roof Engineering Section (BS 5534 / Part L)
   -------------------------------------------------------------------------- */
.engineering-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.roof-3d-viewport {
  position: relative;
  min-height: 410px;
  background: radial-gradient(circle at 50% 45%, rgba(9, 113, 206, 0.22), rgba(4, 17, 38, 0.92) 72%);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  perspective: 1300px;
  overflow: hidden;
}

.roof-stack-3d {
  position: relative;
  width: 250px;
  height: 290px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-35deg);
  transition: transform 0.35s var(--ease-out);
}

.roof-layer-plane {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 48px;
  height: 175px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  box-shadow: -14px 16px 28px rgba(0, 0, 0, 0.52);
  transition: transform 0.28s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
}

.roof-layer-plane[data-layer="5"] {
  background: linear-gradient(135deg, #2C3B52 0%, #16202E 100%);
  transform: translateZ(calc(var(--explode-factor) * 155px));
}
.roof-layer-plane[data-layer="4"] {
  background: linear-gradient(135deg, #64768C 0%, #3E4C5E 100%);
  transform: translateZ(calc(var(--explode-factor) * 82px));
}
.roof-layer-plane[data-layer="3"] {
  background: linear-gradient(135deg, #A86F38 0%, #73481F 100%);
  transform: translateZ(calc(var(--explode-factor) * 10px));
}
.roof-layer-plane[data-layer="2"] {
  background: linear-gradient(135deg, #0E7AE0 0%, #074C8C 100%);
  transform: translateZ(calc(var(--explode-factor) * -62px));
}
.roof-layer-plane[data-layer="1"] {
  background: linear-gradient(135deg, #D1A350 0%, #916B28 100%);
  transform: translateZ(calc(var(--explode-factor) * -134px));
}

.roof-layer-plane.is-active {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 2px var(--emerald-400), -14px 18px 32px rgba(0, 0, 0, 0.6);
}

.viewport-hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.layer-spec-list {
  display: grid;
  gap: 10px;
}

.layer-spec-btn {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.layer-spec-btn:hover,
.layer-spec-btn.is-active {
  background: rgba(9, 113, 206, 0.16);
  border-color: var(--cobalt-400);
  transform: translateX(4px);
}

.layer-spec-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.layer-spec-top strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.layer-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cobalt-400);
}

.layer-spec-btn p {
  font-size: 0.86rem;
  color: rgba(246, 245, 240, 0.74);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Services Architectural Bento / Editorial Cards (Real Photos)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 113, 206, 0.45);
}

.service-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-num {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(4, 17, 38, 0.86);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.service-warranty-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--cobalt-600);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
}

.service-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.service-body p {
  color: var(--slate-600);
  font-size: 0.93rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cobalt-600);
  margin-top: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* Detailed Service Rows on services.html */
.spec-detail-block {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  display: grid;
}

.spec-detail-media {
  min-height: 260px;
}

.spec-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-detail-content {
  padding: 26px 22px;
  display: grid;
  gap: 14px;
}

.spec-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-pill {
  background: var(--stone-100);
  border: 1px solid var(--rule-light);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--slate-700);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  color: var(--slate-700);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-600);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   10. Interactive 60-Second Roof Triage & Survey Estimator
   -------------------------------------------------------------------------- */
.triage-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
}

.triage-form-side {
  padding: 26px 20px;
}

.triage-result-side {
  background: var(--navy-900);
  color: var(--white);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.choice-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.choice-chip {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--stone-200);
  background: var(--stone-50);
  border-radius: var(--radius-sm);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.choice-chip.is-selected {
  background: var(--cobalt-tint);
  border-color: var(--cobalt-600);
  color: var(--navy-900);
  box-shadow: inset 0 0 0 1px var(--cobalt-600);
}

.triage-recommendation {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.triage-recommendation h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.triage-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.86rem;
}

.triage-kv span:first-child {
  color: rgba(255, 255, 255, 0.68);
}

.triage-kv strong {
  font-family: var(--font-mono);
  color: var(--emerald-400);
  text-align: right;
}

/* --------------------------------------------------------------------------
   11. Verbatim Verified Reviews (SSR Crawlable — Google 4.8★ & Checkatrade 10/10)
   -------------------------------------------------------------------------- */
.rating-summary-banner {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 28px;
  display: grid;
  gap: 18px;
}

.rating-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.rating-score-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.rating-score-box strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--white);
  display: block;
}

.rating-score-box span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.74);
}

.stars {
  color: #F5B335;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.reviews-grid {
  display: grid;
  gap: 18px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.review-quote {
  color: var(--slate-700);
  font-size: 0.94rem;
  line-height: 1.64;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--rule-light);
  font-size: 0.84rem;
}

.review-author strong {
  color: var(--slate-900);
}

.verified-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald-600);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. London Postcodes & Heritage Shopfront Showcase
   -------------------------------------------------------------------------- */
.locations-showcase {
  display: grid;
  gap: 28px;
}

.borough-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.borough-tab {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule-light);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

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

.area-cards-grid {
  display: grid;
  gap: 16px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  gap: 8px;
}

.area-card.is-hidden {
  display: none;
}

.area-postcode {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cobalt-600);
  font-weight: 600;
}

.shopfront-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule-dark);
}

.shopfront-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shopfront-body {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.shopfront-body h3 {
  color: var(--white);
}

.shopfront-body p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

/* --------------------------------------------------------------------------
   13. AEO / GEO Direct-Answer FAQ Accordions
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--stone-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--cobalt-600);
  color: var(--white);
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--slate-600);
  font-size: 0.95rem;
  border-top: 1px solid var(--stone-100);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   14. Forms & Copy-Verified Contact Architecture
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: 28px;
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate-900);
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
  background: var(--stone-50);
  font-size: 0.96rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.field-input:focus {
  background: var(--white);
  border-color: var(--cobalt-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 113, 206, 0.15);
}

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

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--slate-600);
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--cobalt-600);
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
  background: rgba(13, 138, 94, 0.12);
  border: 1px solid var(--emerald-600);
  color: #085E40;
}

.contact-info-stack {
  display: grid;
  gap: 16px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  gap: 8px;
}

.info-card-emergency {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-800);
}

.info-card-emergency h3 {
  color: var(--white);
}

.email-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.copy-email-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--stone-100);
  border: 1px solid var(--rule-light);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-email-btn:hover {
  border-color: var(--cobalt-600);
  color: var(--cobalt-600);
}

/* --------------------------------------------------------------------------
   15. Architectural Footer & Sticky Mobile Bottom Action Bar
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(246, 245, 240, 0.76);
  padding: 56px 0 36px;
  border-top: 1px solid var(--rule-dark);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-dark);
}

.footer-brand img {
  width: 200px;
  margin-bottom: 14px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
}

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

.footer-legal {
  padding-top: 24px;
  font-size: 0.79rem;
  color: rgba(246, 245, 240, 0.56);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: rgba(4, 17, 38, 0.97);
  border-top: 1px solid var(--rule-dark);
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.mobile-sticky-bar .btn {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* Scroll-Reveal 3D Choreography — Zero Content Hiding for Crawlers & Full-Page Renders */
.reveal-3d {
  opacity: 1;
  transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0deg);
  transition: opacity 0.6s var(--ease-out), transform 0.65s var(--ease-out);
  will-change: transform;
}

.reveal-3d.is-staged {
  opacity: 0.94;
  transform: perspective(1000px) translate3d(0, 26px, -18px) rotateX(6deg);
}

.reveal-3d.is-visible {
  opacity: 1;
  transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0deg);
}

/* Finance Calculator Cards */
.finance-calc-grid {
  display: grid;
  gap: 24px;
}

.calc-range {
  width: 100%;
  accent-color: var(--cobalt-600);
  height: 8px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   16. Progressive Breakpoints — Tablet (640px+) & Desktop (900px+ / 1160px+)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding: 0 28px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .badge-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .choice-chips {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .area-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 900px) {
  .utility-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.73rem;
  }

  .utility-contacts a:hover {
    color: var(--cobalt-400);
  }

  .hero {
    padding: 68px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
  }

  .badge-row {
    grid-template-columns: repeat(7, 1fr);
  }

  .section {
    padding: 88px 0;
  }

  .section-head-split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .engineering-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
  }

  .roof-stack-3d {
    width: 300px;
    height: 330px;
  }

  .services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .spec-detail-block {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .triage-card {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

  .locations-showcase {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .finance-calc-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }

  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1120px) {
  body {
    padding-bottom: 0;
  }

  .mobile-sticky-bar,
  .menu-toggle,
  .mobile-drawer {
    display: none;
  }

  .header-inner {
    min-height: 80px;
    gap: 18px;
  }

  .brand-logo img {
    width: 196px;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .desktop-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.09);
  }

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

  .header-cta-group .btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-3d {
    opacity: 1;
    transform: none;
  }
}
