/*
 * EasyCooling — canon premium home-services (Heatable-class craft)
 * THESIS: Postcode-first quote path on a white, photography-led trades site.
 * OWN-WORLD: Logo blue #5987b6, DM Sans, pill CTAs, equal service tiles, sticky mobile quote bar.
 * STORY: Trust → choose service → understand process → read proof → start quote.
 * FORM: Play it straight — category-standard layout at full fidelity.
 */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  color-scheme: light;
  --ec-green: #5987b6;
  --ec-green-dark: #476d94;
  --ec-green-soft: #eef3fa;
  --ec-text: #18181b;
  --ec-muted: #52575c;
  --ec-line: #dce8f4;
  --ec-bg: #f7f9fc;
  --ec-white: #ffffff;
  --ec-shadow: 0 4px 24px rgba(24, 24, 27, 0.06);
  --ec-shadow-lg: 0 12px 40px rgba(24, 24, 27, 0.1);
  --ec-font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ec-max: 1140px;
  --ec-section-y: clamp(56px, 8vw, 88px);
  --ec-focus: 0 0 0 3px rgba(89, 135, 182, 0.28);
  --ec-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--ec-font);
  color: var(--ec-text);
  background: var(--ec-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


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

a {
  color: var(--ec-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ec-focus);
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
  color: var(--ec-muted);
  max-width: 65ch;
}

.legal-content p {
  max-width: none;
  width: 100%;
}

.legal-content > p,
.legal-content > ul,
.legal-content > ol,
.legal-content > h3,
.legal-content > h4,
.legal-content > table {
  max-width: none;
  width: 100%;
}

main {
  flex: 1;
}

.container {
  width: min(var(--ec-max), calc(100vw - clamp(40px, 6vw, 48px)));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ec-line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(24, 24, 27, 0.06);
}

.header-inner {
  min-height: var(--ec-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ec-text);
  font-weight: 700;
  font-size: 21px;
  text-decoration: none;
  white-space: nowrap;
}

.brand--logo {
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--ec-line);
  background: var(--ec-white);
  border-radius: var(--ec-radius-sm, 8px);
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--ec-text);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.site-nav a {
  color: var(--ec-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ec-green);
}

.site-nav a[aria-current="page"] {
  color: var(--ec-green);
}

.site-nav .nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ec-green);
  color: var(--ec-white) !important;
  margin-left: 4px;
}

.site-nav .nav-cta:hover {
  background: var(--ec-green-dark);
}

/* Hero */
.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 72px);
  background: linear-gradient(180deg, var(--ec-white) 0%, var(--ec-bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-rating {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  max-width: 36rem;
}

.hero-rating-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-rating-score {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ec-text);
}

.hero-rating-detail {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ec-muted);
  line-height: 1.45;
  max-width: none;
}

.hero-rating .stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 0.875rem;
  line-height: 1;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 1.0625rem;
  margin-bottom: 1.25rem;
}

.hero-copy .ease {
  color: var(--ec-green);
}

.hero-copy .btn-row {
  justify-content: center;
}

.hero-trust-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.hero-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ec-muted);
}

.hero-trust-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ec-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 11.2 3.8 8.5l-.9.9 3.6 3.6 7.2-7.2-.9-.9z'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ec-shadow-lg);
  aspect-ratio: 4 / 3;
}

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

/* Postcode hero form */
.postcode-form {
  margin-top: 4px;
  max-width: 520px;
}

.postcode-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ec-muted);
  margin-bottom: 8px;
}

.postcode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.postcode-row input {
  flex: 1 1 160px;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid var(--ec-line);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ec-text);
  background: var(--ec-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.postcode-row input::placeholder {
  color: #9aa3ab;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.postcode-row input:hover {
  border-color: var(--ec-green);
}

.postcode-row .btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 28px;
}

.postcode-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ec-muted);
}

/* Trust strip */
.trust-strip {
  padding: 36px 0;
  background: var(--ec-white);
  border-top: 1px solid var(--ec-line);
  border-bottom: 1px solid var(--ec-line);
}

.trust-strip-title {
  text-align: center;
  margin-bottom: 28px;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

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

.trust-strip-item {
  text-align: center;
  padding: 8px 12px;
}

.trust-strip-item::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ec-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%235987b6' d='M6.5 11.2 3.8 8.5l-.9.9 3.6 3.6 7.2-7.2-.9-.9z'/%3E%3C/svg%3E") center/18px no-repeat;
}

.trust-strip-item strong {
  display: block;
  color: var(--ec-text);
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-strip-item span {
  color: var(--ec-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Service tiles */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-tile {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ec-white);
  min-height: 280px;
  box-shadow: var(--ec-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-tile:focus-visible {
  transform: translateY(-3px);
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.service-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 24, 27, 0.88) 0%, rgba(24, 24, 27, 0.15) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.service-tile h3 {
  color: var(--ec-white);
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.service-tile .tile-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.45;
}

.service-tile .tile-price {
  display: inline-block;
  align-self: flex-start;
  background: var(--ec-green);
  color: var(--ec-white);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* How pillars */
.how-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}

.how-pillar {
  padding-top: 8px;
}

.how-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ec-green-soft);
  color: var(--ec-green);
  margin-bottom: 16px;
}

.how-pillar-icon svg {
  width: 24px;
  height: 24px;
}

.how-pillar h3 {
  color: var(--ec-text);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.how-pillar p {
  margin: 0;
  font-size: 0.975rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--ec-shadow);
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ec-text);
  line-height: 1.55;
}

.testimonial-card blockquote::before {
  content: "\201C";
  color: var(--ec-green);
  font-size: 1.5rem;
  margin-right: 2px;
}

.testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ec-muted);
}

.testimonial-meta .service-tag {
  background: var(--ec-green-soft);
  color: var(--ec-green-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}

/* USP strip */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.usp-card {
  text-align: center;
  padding: 8px 12px;
}

.usp-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--ec-text);
}

.usp-card p {
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Trust badges */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-badge {
  background: var(--ec-white);
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  padding: 22px 24px;
  transition: border-color 0.15s ease;
}

.trust-badge:hover {
  border-color: var(--ec-green);
}

.trust-badge h4 {
  color: var(--ec-text);
  font-size: 1rem;
  margin-bottom: 8px;
}

.trust-badge p {
  margin: 0;
  font-size: 0.9rem;
}

/* FAQ */
.faq-preview {
  max-width: 820px;
  margin: 0 auto;
}

.faq-preview-footer {
  text-align: center;
  margin-top: 24px;
  max-width: none;
  width: 100%;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--ec-white);
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--ec-text);
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--ec-green);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item div {
  padding: 0 20px 18px;
  color: var(--ec-muted);
}

/* Installer callout */
.installer-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.installer-callout img {
  border-radius: 12px;
  box-shadow: var(--ec-shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ec-green);
  color: var(--ec-white);
}

.btn-primary:hover {
  background: var(--ec-green-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--ec-green);
  color: var(--ec-green);
}

.btn-outline:hover {
  background: var(--ec-green-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Sections */
.section {
  padding: var(--ec-section-y) 0;
}

.section-muted {
  background: var(--ec-bg);
}

.section-soft {
  background: var(--ec-green-soft);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.section-title p {
  margin: 0 auto;
}

.about-offerings {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--ec-muted);
}

.about-offerings li {
  margin-bottom: 0.5rem;
}

.about-finance-note {
  max-width: 720px;
  margin: clamp(24px, 4vw, 32px) auto 0;
  text-align: center;
  color: var(--ec-muted);
}

.about-values-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ec-muted);
}

.about-values-body p {
  margin-bottom: 1rem;
}

.about-values-body p:last-child {
  margin-bottom: 0;
}

.section-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-green);
}

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

.card {
  background: var(--ec-white);
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--ec-shadow);
  height: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ec-green-soft);
  color: var(--ec-green);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--ec-text);
  font-size: 1.125rem;
}

.card img {
  border-radius: 8px;
  margin-bottom: 16px;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 16px;
  background: var(--ec-white);
  border: 1px solid var(--ec-line);
  box-shadow: var(--ec-shadow);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  margin: 0;
}

/* Steps */
.steps {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--ec-muted);
}

.steps li {
  margin-bottom: 0.875rem;
  padding-left: 4px;
}

.steps strong {
  color: var(--ec-text);
}

/* Forms */
.form-panel {
  background: var(--ec-white);
  border: 1px solid var(--ec-line);
  border-radius: 12px;
  box-shadow: var(--ec-shadow);
  padding: 32px;
}

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

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

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ec-text);
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--ec-line);
  border-radius: 8px;
  font: inherit;
  color: var(--ec-text);
  background: var(--ec-white);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ec-green);
}

.form-note {
  font-size: 14px;
  color: var(--ec-muted);
  margin-top: 12px;
}

/* Quote demo shell */
.quote-shell {
  max-width: 760px;
  margin: 0 auto;
}

.quote-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.quote-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--ec-line);
  overflow: hidden;
}

.quote-progress-fill {
  height: 100%;
  background: var(--ec-green);
  border-radius: inherit;
}

.quote-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--ec-muted);
  white-space: nowrap;
}

.quote-step {
  display: none;
}

.quote-step.active {
  display: block;
}

.quote-landing {
  text-align: center;
  padding: 48px 0 24px;
}

.quote-landing h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  text-wrap: balance;
}

.quote-landing h1 strong {
  font-weight: 700;
}

.quote-landing .ease {
  color: var(--ec-green);
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 2px solid var(--ec-line);
  border-radius: 10px;
  background: var(--ec-white);
  color: var(--ec-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover,
.option-card.selected {
  border-color: var(--ec-green);
  background: var(--ec-green-soft);
}

.quote-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.back-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--ec-text);
  color: var(--ec-white);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--ec-shadow-lg);
  display: none;
}

.back-fab.visible {
  display: grid;
  place-items: center;
}

/* Footer */
.site-footer {
  background: var(--ec-text);
  color: #b8bec3;
  padding: 56px 0 32px;
  margin-top: auto;
}

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

.site-footer h4,
.site-footer h5 {
  color: var(--ec-white);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #b8bec3;
  text-decoration: none;
}

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

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #b8bec3;
}

.footer-cert strong {
  color: var(--ec-white);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  text-align: center;
}

.legal-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.legal-content h1 {
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
  text-align: justify;
  text-justify: inter-word;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
  text-align: justify;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--ec-text);
  text-align: left;
}

.legal-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--ec-text);
  text-align: left;
}

.legal-content table {
  display: table !important;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.legal-content thead {
  display: table-header-group !important;
}

.legal-content tbody {
  display: table-row-group !important;
}

.legal-content tr {
  display: table-row !important;
}

.legal-content th,
.legal-content td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  border: 1px solid var(--ec-border, #dce8f4);
  padding: 0.625rem 0.75rem;
  vertical-align: top;
}

.legal-content th {
  background: var(--ec-bg, #f4f8fc);
  font-weight: 600;
  text-align: left;
}

.legal-content td {
  text-align: justify;
}

/* Page header */
.page-hero {
  padding: clamp(40px, 6vw, 56px) 0 24px;
  background: linear-gradient(180deg, var(--ec-white) 0%, var(--ec-bg) 100%);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero--about {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--ec-bg);
}

.about-hero-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: clamp(32px, 5vw, 56px);
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.about-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  box-shadow: var(--ec-shadow);
}

.about-hero-body {
  text-align: left;
}

.about-hero-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ec-text);
  font-weight: 500;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.split-grid img {
  border-radius: 12px;
  box-shadow: var(--ec-shadow);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--ec-muted);
}

.contact-list li {
  margin-bottom: 8px;
}

/* Quote page body */
body.page-quote {
  background: var(--ec-bg);
}

body.page-quote .site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .footer-grid,
  .split-grid,
  .about-hero-panel,
  .form-grid,
  .trust-strip-grid,
  .service-tiles,
  .how-pillars-grid,
  .testimonials-grid,
  .usp-grid,
  .trust-badges-grid,
  .installer-callout {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
    max-height: 280px;
  }

  .hero-image img {
    max-height: 280px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--ec-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    background: var(--ec-white);
    border-bottom: 1px solid var(--ec-line);
    box-shadow: var(--ec-shadow-lg);
  }

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

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .postcode-row .btn {
    width: 100%;
  }

  .cta-band {
    text-align: center;
    justify-content: center;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
