/* Penmark Energy — Design System */
/* Google Fonts now loaded via <link> in HTML <head> — @import removed for performance */

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --navy:   #1B2A4A;
  --navy-light: #223460;
  --navy-dark: #111c30;
  --copper: #C8845E;
  --copper-dark: #b5744f;
  --copper-text: #9A6B3A;   /* WCAG AA compliant copper for text on white */
  --steel-text: #4E5D6B;    /* WCAG AA compliant steel for text on white */
  --copper-light: #d9956f;
  --steel:  #6B7B8D;
  --bg:     #F7F5F2;
  --bg-card: #FFFFFF;
  --text:   #2D2D2A;
  --text-muted: #6B7B8D;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

p { line-height: 1.75; }

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

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 3px; }

/* =============================================
   NAVIGATION
   ============================================= */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: var(--navy);
  transition: all 0.3s ease;
}

#main-nav.scrolled {
  background-color: rgba(17, 28, 48, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* =============================================
   LOGO
   ============================================= */
.logo-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-mark .logo-primary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  color: #fff;
  letter-spacing: 0.12em;
}
.logo-mark .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.5625rem;
  color: var(--copper);
  letter-spacing: 0.35em;
  margin-top: 1px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200,132,94,0.35);
}
.btn-primary:hover {
  background: var(--copper-dark);
  box-shadow: 0 6px 20px rgba(200,132,94,0.45);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--copper);
  border: 2px solid var(--copper);
}
.btn-secondary:hover {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200,132,94,0.3);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--copper);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.625rem 1.375rem;
}
.btn-lg {
  font-size: 1.0625rem;
  padding: 1.125rem 2.5rem;
}

/* Pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
}

/* =============================================
   SECTION BACKGROUNDS
   ============================================= */
.section-navy {
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  position: relative;
}
.section-navy-gradient {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
}
.section-light {
  background: var(--bg);
  color: var(--text);
  position: relative;
  z-index: 1;
}
.section-white {
  background: #fff;
  color: var(--text);
  position: relative;
}
.section-copper {
  background: var(--copper);
  color: #fff;
}

/* =============================================
   DIAGONAL SECTION TRANSITIONS
   ============================================= */
/* Navy section with diagonal cut at the top — overlaps the section above */
.diagonal-into-navy {
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  margin-top: -56px;
  position: relative;
  z-index: 2;
  padding-top: calc(6rem + 56px) !important;
}
/* White/light section with diagonal cut at top — overlaps dark section above */
.diagonal-into-light {
  clip-path: polygon(0 0, 100% 56px, 100% 100%, 0 100%);
  margin-top: -56px;
  position: relative;
  z-index: 2;
  padding-top: calc(6rem + 56px) !important;
}

/* =============================================
   COPPER DECORATIVE ELEMENTS
   ============================================= */
/* Short copper bar beneath a heading */
.copper-bar {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--copper);
  border-radius: 2px;
  margin-top: 0.875rem;
  margin-bottom: 1rem;
}
.copper-bar-lg {
  width: 80px;
  height: 5px;
}
/* Left-border copper accent on a panel */
.copper-border-left {
  border-left: 4px solid var(--copper);
  padding-left: 1.5rem;
}

/* =============================================
   HERO
   ============================================= */
.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(17, 28, 48, 0.92) 0%,
    rgba(27, 42, 74, 0.88) 55%,
    rgba(27, 42, 74, 0.65) 100%
  );
}

.hero-stats-strip {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =============================================
   SECTION DIVIDERS (diagonal clips)
   ============================================= */
.clip-bottom-right {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.clip-top-left {
  clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%);
}

/* =============================================
   FEATURE / STAT CARDS
   ============================================= */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.stat-card .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-card .stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}
.service-card .card-img-wrap {
  overflow: hidden;
  height: 220px;
  position: relative;
}
.service-card .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,42,74,0.4) 0%, transparent 50%);
}
.service-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.service-card:hover .card-img-wrap img {
  transform: scale(1.06);
}
.service-card .card-body {
  padding: 1.75rem;
  border-top: 3px solid var(--copper);
}
.service-card .card-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--copper);
  margin: 0.75rem 0 1.25rem;
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-grid {
  position: relative;
}
.process-connector {
  display: none;
}
@media (min-width: 768px) {
  .process-connector {
    display: block;
    position: absolute;
    top: 40px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--copper) 0%, rgba(200,132,94,0.15) 100%);
    z-index: 0;
  }
}
.step-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: #fff;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(200,132,94,0.4);
  transition: transform 0.2s;
}
.process-step:hover .step-circle {
  transform: scale(1.08);
}

/* =============================================
   TRUST / ACCREDITATION BADGES
   ============================================= */
.accred-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 0.625rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 110px;
}
.accred-badge:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
  border-color: var(--copper);
}
.accred-badge .accred-icon {
  width: 36px; height: 36px;
  background: rgba(200,132,94,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.accred-badge .accred-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  letter-spacing: 0.05em;
}

/* =============================================
   REVIEW CARDS
   ============================================= */
.review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 2rem 2rem 1.75rem;
  position: relative;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.review-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(200,132,94,0.45);
  transform: translateY(-3px);
}
.review-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--copper);
  opacity: 0.3;
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-weight: 700;
}
.review-card .review-body {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.review-card .reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* =============================================
   BENEFIT / FEATURE CARDS
   ============================================= */
.benefit-card {
  background: #fff;
  border-radius: 0.625rem;
  padding: 1.75rem;
  border: 1px solid #ede9e3;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.benefit-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.09);
  border-color: var(--copper);
  transform: translateY(-3px);
}
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 0.5rem;
  background: rgba(200,132,94,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
}
.benefit-icon svg { width: 26px; height: 26px; stroke: var(--copper); fill: none; }

/* Dark benefit cards (on navy bg) */
.benefit-card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s;
}
.benefit-card-dark:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(200,132,94,0.4);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
  border-bottom: 1px solid #e5e0d8;
}
.faq-item:first-child { border-top: 1px solid #e5e0d8; }

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  gap: 1rem;
  user-select: none;
}
.faq-question .faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(200,132,94,0.1);
  border: 2px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--copper);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.faq-question.active .faq-icon {
  background: var(--copper);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}
.faq-answer.open {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

/* =============================================
   PRICING CONFIGURATOR
   ============================================= */
.config-card {
  background: #fff;
  border: 2px solid #e5e0d8;
  border-radius: 0.625rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
}
.config-card:hover {
  border-color: var(--copper);
  box-shadow: 0 4px 16px rgba(200,132,94,0.15);
  transform: translateY(-2px);
}
.config-card.selected {
  border-color: var(--copper);
  background: rgba(200,132,94,0.06);
  box-shadow: 0 0 0 2px var(--copper);
}
.config-card .config-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--copper);
  color: #fff;
  font-size: 0.6875rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.config-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--copper);
  display: block;
  margin-top: 0.5rem;
}

.total-display {
  background: var(--navy);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.total-display .total-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--copper);
  line-height: 1;
}

/* =============================================
   FORM INPUTS
   ============================================= */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid #d8d3cc;
  border-radius: 0.4375rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200,132,94,0.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-success.show { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* =============================================
   PROJECT CARDS (gallery)
   ============================================= */
.project-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}
.project-card .img-wrap {
  overflow: hidden;
  height: 220px;
}
.project-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .img-wrap img {
  transform: scale(1.06);
}

/* =============================================
   GRANT HIGHLIGHT
   ============================================= */
.grant-card {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.grant-card::before {
  content: '£7,500';
  position: absolute;
  right: -20px; bottom: -30px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 7rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

/* =============================================
   SECTION LABEL (eyebrow text)
   ============================================= */
.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

/* =============================================
   HERO KEYFRAME ANIMATIONS (auto-play on load)
   ============================================= */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-animate-1 { animation-delay: 0.15s; }
.hero-animate-2 { animation-delay: 0.35s; }
.hero-animate-3 { animation-delay: 0.55s; }
.hero-animate-4 { animation-delay: 0.75s; }

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* =============================================
   UTILITY
   ============================================= */
/* =============================================
   FOCUS & ACCESSIBILITY
   ============================================= */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--copper);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 0.375rem 0.375rem;
  z-index: 200;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.text-copper { color: var(--copper); }
.text-navy { color: var(--navy); }
.text-steel { color: var(--steel); }
.bg-navy { background-color: var(--navy); }
.bg-copper { background-color: var(--copper); }

.checkmark-list { list-style: none; padding: 0; }
.checkmark-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  color: rgba(255,255,255,0.88);
}
.checkmark-list li::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--copper);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkmark-list-light li { color: var(--text); }
.checkmark-list-light li::before { background-color: var(--copper); }

/* =============================================
   TRUST STRIP (compact accreditation bar)
   ============================================= */
.trust-strip {
  background: #fff;
  border-top: 1px solid #ede9e3;
  border-bottom: 1px solid #ede9e3;
  padding: 1.125rem 0;
}
.accred-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(200,132,94,0.07);
  border: 1px solid rgba(200,132,94,0.25);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  transition: background 0.2s, border-color 0.2s;
}
.accred-pill:hover {
  background: rgba(200,132,94,0.13);
  border-color: var(--copper);
}
.accred-pill svg { width: 14px; height: 14px; stroke: var(--copper); fill: none; }

/* =============================================
   PROCESS — VERTICAL STEP LIST (2-col layout)
   ============================================= */
.step-v {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-bottom: 1px solid #ede9e3;
  position: relative;
}
.step-v:last-child { border-bottom: none; padding-bottom: 0; }
.step-v:first-child { padding-top: 0; }
.step-num-lg {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--copper);
  flex-shrink: 0;
  width: 4rem;
  text-align: right;
  opacity: 0.85;
}
.step-v-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
  margin-top: 0.5rem;
}
.step-v-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* =============================================
   SERVICE CARD — FEATURED (landscape)
   ============================================= */
.service-card-featured {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}
.service-card-featured:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.16);
}
.service-card-featured .card-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.service-card-featured .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card-featured:hover .card-img-wrap img {
  transform: scale(1.05);
}
.service-card-featured .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(27,42,74,0.15));
}
.service-card-featured .card-body-featured {
  padding: 2.75rem 2.5rem;
  border-left: 4px solid var(--copper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.service-card-featured .featured-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
.service-card-featured .card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.service-card-featured .card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.service-card-featured .card-price-lg {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--copper);
  margin: 0.75rem 0 1.5rem;
}
@media (max-width: 767px) {
  .service-card-featured { grid-template-columns: 1fr; }
  .service-card-featured .card-img-wrap { min-height: 220px; }
  .service-card-featured .card-body-featured { padding: 1.75rem; }
}

/* =============================================
   PROJECT SPLIT (full-bleed 2-col)
   ============================================= */
.project-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 500px;
  background: var(--navy); /* fallback while children animate in */
}
.project-split .ps-image {
  position: relative;
  overflow: hidden;
}
.project-split .ps-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-split:hover .ps-image img {
  transform: scale(1.03);
}
.ps-image-labels {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}
.ps-label-pill {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.ps-label-pill:hover, .ps-label-pill.active {
  background: var(--copper);
}
.project-split .ps-info {
  background: var(--navy);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-split .ps-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.project-split .ps-thumbs img {
  height: 64px;
  width: 100%;
  object-fit: cover;
  border-radius: 0.375rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  cursor: pointer;
}
.project-split .ps-thumbs img:hover { opacity: 1; }
.ps-stat {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}
.ps-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--copper);
  line-height: 1;
}
.ps-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
@media (max-width: 767px) {
  .project-split { grid-template-columns: 1fr; min-height: auto; }
  .project-split .ps-image { height: 260px; }
  .project-split .ps-info { padding: 2rem 1.5rem; }
}

/* =============================================
   REVIEWS — FEATURED LAYOUT
   ============================================= */
.reviews-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 1023px) {
  .reviews-split { grid-template-columns: 1fr; gap: 2.5rem; }
}
.review-featured {
  position: relative;
  padding: 1rem 0;
}
.review-featured .quote-giant {
  font-family: Georgia, serif;
  font-size: 10rem;
  line-height: 0.75;
  color: var(--copper);
  opacity: 0.18;
  position: absolute;
  top: -1.5rem; left: -1rem;
  pointer-events: none;
  user-select: none;
}
.review-featured blockquote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.375rem);
  color: #fff;
  line-height: 1.65;
  font-style: italic;
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  margin: 0 0 2rem 0;
}
.review-mini {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.625rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.875rem;
  transition: background 0.2s, border-color 0.2s;
}
.review-mini:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(200,132,94,0.4);
}
.review-mini .mini-body {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.review-mini .mini-stars { color: #f59e0b; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 0.5rem; }
.google-rating-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.625rem;
  padding: 1.125rem 1.5rem;
  margin-top: 0.5rem;
}
.google-rating-box .google-score {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.google-rating-box .google-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 1px; }
.google-rating-box .google-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.google-rating-box .google-link {
  margin-left: auto;
  color: var(--copper);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}
.google-rating-box .google-link:hover { color: #fff; }

/* =============================================
   MOBILE PHONE BAR (sticky bottom on mobile)
   ============================================= */
.mobile-phone-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--copper);
  padding: 0.75rem 1rem;
  text-align: center;
}
.mobile-phone-bar a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
/* Add bottom padding to body on mobile so content isn't hidden behind phone bar */
@media (max-width: 1023px) {
  body { padding-bottom: 3.25rem; }
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 3.25rem; /* above mobile phone bar */
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
}
@media (min-width: 1024px) {
  .cookie-banner { bottom: 0; }
}
.cookie-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}
.cookie-banner-text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-link {
  color: var(--copper);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* =============================================
   COOKIE PREFERENCES MODAL
   ============================================= */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

/* Toggle switch */
.consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.consent-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.2s;
}
.consent-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.consent-toggle input:checked + .consent-toggle-slider {
  background: var(--copper);
}
.consent-toggle input:checked + .consent-toggle-slider::before {
  transform: translateX(20px);
}

/* =============================================
   FORM VALIDATION
   ============================================= */
.field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

/* =============================================
   HERO HEIGHT — MOBILE FIX
   ============================================= */
@media (max-width: 767px) {
  .hero-mobile-fix {
    min-height: 75vh !important;
  }
}

/* =============================================
   BLOCK L — MOBILE CONVERSION FIXES
   ============================================= */
/* Contact page: the Tally form column wins the fold on mobile.
   Desktop 2-column order is unchanged (grid order resets at lg). */
@media (max-width: 1023px) {
  #enquiry-form { order: -1; }
}

/* Heat-pumps hero: keep the first CTA inside the first mobile viewport.
   The secondary MCS badge duplicates hero info the grant badge + subhead
   already carry; hiding it (plus a tighter subhead margin) pulls the
   CTA row above the fold at 375x812. */
@media (max-width: 639px) {
  .hp-badge-secondary { display: none; }
  .hp-hero-sub { margin-bottom: 1.5rem; }
}

/* Nav: with the longer "Request a Free Survey" CTA label the phone number
   leaves zero breathing room between 1024–1279px. Hide it in that band only —
   the CTA is the action; the phone stays in the hero, footer, and mobile bar. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-phone { display: none; }
}

/* Compact cookie banner on mobile — the banner + phone bar were eating
   ~230px (28%) of a 812px viewport until dismissed. Pre-launch item 6. */
@media (max-width: 639px) {
  .cookie-banner { padding: 0.625rem 0.875rem; }
  .cookie-banner-inner { gap: 0.5rem; }
  .cookie-banner-text { min-width: 0; flex-basis: 100%; }
  .cookie-banner-text p { font-size: 0.71875rem; line-height: 1.4; }
  .cookie-banner-actions { flex-wrap: nowrap; width: 100%; }
  .cookie-banner-actions .btn {
    font-size: 0.71875rem;
    padding: 0.5rem 0.625rem;
    flex: 1 1 0;
    justify-content: center;
    white-space: nowrap;
  }
}

/* =============================================
   ACCREDITATION LOGOS (.trust-logo + .trust-card)
   Used in footer accreditations rows, the upper
   trust strip on index, and the about page block.
   Static row, no carousel.
   ============================================= */
.trust-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.trust-logo:hover {
  transform: translateY(-2px);
}

/* Smaller variant — used in the upper trust strip on index.html
   where vertical space is tight. */
.trust-logo-sm {
  height: 36px;
  max-width: 110px;
}

/* Variant for use on the warm-white background of the about page
   accreditations section and the index upper trust strip. Full
   opacity since logos sit on a light background. */
.trust-logo-on-light {
  opacity: 1;
}

/* White card wrapper for logos sitting on the navy footer.
   Most supplied logos are full-colour JPGs/PNGs that aren't
   designed to sit on dark backgrounds — the white card gives
   each logo a clean, intentional "credential pill" look and
   protects readability of fine type (e.g. "Government Endorsed
   Quality" on the TrustMark mark). */
.trust-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.trust-card .trust-logo {
  height: 40px;
  max-width: 120px;
  opacity: 1;
}

.trust-card .trust-logo:hover {
  transform: none;
}

@media (max-width: 768px) {
  .trust-logo {
    height: 36px;
    max-width: 110px;
  }
  .trust-logo-sm {
    height: 28px;
    max-width: 84px;
  }
  .trust-card {
    padding: 0.45rem 0.7rem;
  }
  .trust-card .trust-logo {
    height: 30px;
    max-width: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-logo,
  .trust-card {
    transition: none;
  }
  .trust-logo:hover,
  .trust-card:hover {
    transform: none;
  }
}
