/**
 * Property Developer UK — hero only (isolated from commercial csuk hero)
 */

.pdevuk-wrap .pdevuk-hero-mid,
.pdevuk-wrap .pdevuk-hero-mid-bg,
.pdevuk-wrap #pdevuk-canvas,
.pdevuk-wrap .csuk-x-mirror-hero {
  display: none !important;
}

/* ── Hero shell ── */
.pdevuk-wrap .pdevuk-hero-stack {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pdevuk-wrap #pdevuk-hero.pdevuk-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: clamp(560px, 78vh, 820px);
  padding: clamp(96px, 10vh, 120px) clamp(20px, 4vw, 48px) clamp(44px, 5vh, 60px);
  box-sizing: border-box;
  overflow: hidden;
  display: block;
}

.pdevuk-wrap .pdevuk-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pdevuk-wrap .pdevuk-hero-bg {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  filter: brightness(1.12) contrast(1.06) saturate(1.08);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease;
  animation: pdevukHeroKen 28s ease-in-out infinite alternate;
}

.pdevuk-wrap .pdevuk-hero.csuk-hero-ready .pdevuk-hero-bg,
.pdevuk-wrap .pdevuk-hero-bg.csuk-bg-ready {
  opacity: 1;
}

@keyframes pdevukHeroKen {
  0% { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.2%, -0.6%); }
}

/* Background ambient (behind overlay, no layout impact) */
.pdevuk-wrap .pdevuk-hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.pdevuk-wrap .pdevuk-hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0;
  animation: pdevukHeroOrb 14s ease-in-out infinite;
}

.pdevuk-wrap .pdevuk-hero.csuk-hero-ready .pdevuk-hero-ambient-orb,
.pdevuk-wrap .pdevuk-hero-bg.csuk-bg-ready ~ .pdevuk-hero-ambient .pdevuk-hero-ambient-orb {
  opacity: 1;
}

.pdevuk-wrap .pdevuk-hero-ambient-orb-1 {
  width: clamp(220px, 28vw, 380px);
  height: clamp(220px, 28vw, 380px);
  top: 8%;
  right: 12%;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.22) 0%, transparent 70%);
  animation-delay: 0s;
}

.pdevuk-wrap .pdevuk-hero-ambient-orb-2 {
  width: clamp(180px, 22vw, 300px);
  height: clamp(180px, 22vw, 300px);
  bottom: 18%;
  right: 28%;
  background: radial-gradient(circle, rgba(31, 111, 92, 0.35) 0%, transparent 72%);
  animation-delay: -4s;
}

.pdevuk-wrap .pdevuk-hero-ambient-orb-3 {
  width: clamp(140px, 18vw, 240px);
  height: clamp(140px, 18vw, 240px);
  top: 42%;
  left: 55%;
  background: radial-gradient(circle, rgba(160, 255, 212, 0.14) 0%, transparent 70%);
  animation-delay: -7s;
}

.pdevuk-wrap .pdevuk-hero-ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(rgba(160, 255, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 255, 212, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 72% 40%, #000 0%, transparent 72%);
  animation: pdevukHeroGrid 20s linear infinite;
}

.pdevuk-wrap .pdevuk-hero.csuk-hero-ready .pdevuk-hero-ambient-grid {
  opacity: 0.55;
}

@keyframes pdevukHeroOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.08); }
}

@keyframes pdevukHeroGrid {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.pdevuk-wrap .pdevuk-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    95deg,
    rgba(4, 12, 22, 0.72) 0%,
    rgba(4, 12, 22, 0.45) 38%,
    rgba(4, 12, 22, 0.18) 62%,
    rgba(4, 12, 22, 0.06) 100%
  );
  opacity: 0;
  transition: opacity 0.9s ease 0.1s;
}

.pdevuk-wrap .pdevuk-hero.csuk-hero-ready .pdevuk-hero-overlay {
  opacity: 1;
}

.pdevuk-wrap .pdevuk-hero-shell {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.pdevuk-wrap .pdevuk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

/* ── Left: copy ── */
.pdevuk-wrap .pdevuk-hero .csuk-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  align-self: start;
}

.pdevuk-wrap .pdevuk-hero .csuk-hero-h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.14;
}

.pdevuk-wrap .pdevuk-hero .csuk-hero-lead {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.pdevuk-wrap .pdevuk-hero .csuk-hero-checks {
  margin-bottom: 14px;
}

.pdevuk-wrap .pdevuk-hero .csuk-hero-trust {
  margin-bottom: 18px;
}

.pdevuk-wrap .pdevuk-hero .csuk-hero-cta {
  margin-bottom: 14px;
}

.pdevuk-wrap .pdevuk-hero .csuk-hero-note-box {
  margin: 0;
}

/* AORO green primary CTA */
.pdevuk-wrap #pdevuk-hero .csuk-btn-primary.pdevuk-btn-aoro,
.pdevuk-wrap #pdevuk-hero .pdevuk-btn-aoro {
  background: #1f6f5c !important;
  color: #fff !important;
  border: 1px solid rgba(160, 255, 212, 0.35);
  box-shadow: 0 10px 28px rgba(31, 111, 92, 0.42);
}

.pdevuk-wrap #pdevuk-hero .csuk-btn-primary.pdevuk-btn-aoro:hover,
.pdevuk-wrap #pdevuk-hero .pdevuk-btn-aoro:hover {
  background: #268a72 !important;
  color: #fff !important;
  box-shadow: 0 14px 36px rgba(31, 111, 92, 0.55);
}

/* ── Right: compliance panel (desktop lower + larger) ── */
.pdevuk-wrap .pdevuk-hero .csuk-hero-aside {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  align-self: start;
  margin: 0;
  padding: 0;
}

@media (min-width: 1025px) {
  .pdevuk-wrap .pdevuk-hero .csuk-hero-aside {
    margin-top: clamp(56px, 9vh, 112px);
    align-self: start;
  }

  .pdevuk-wrap .pdevuk-hero-grid {
    align-items: start;
  }
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine {
  width: 100%;
  padding: 22px 20px 16px !important;
  border-radius: 22px;
  border: 1px solid rgba(160, 255, 212, 0.32);
  background: rgba(6, 18, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48);
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-head {
  margin-bottom: 14px !important;
  padding-bottom: 2px;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-live {
  font-size: 10px !important;
  letter-spacing: 0.08em;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-logo {
  height: 22px !important;
  max-width: 88px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-compare {
  margin-bottom: 14px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-compare-row {
  margin-bottom: 10px !important;
  gap: 10px 12px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-compare-ico {
  width: 28px !important;
  height: 28px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-compare-lbl {
  font-size: 11px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-compare-val {
  font-size: 14px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-compare-note {
  font-size: 10px !important;
  line-height: 1.45 !important;
  margin-top: 6px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-flow {
  margin-bottom: 14px !important;
  padding: 4px 0;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-ce-flow-5 .csuk-ce-step-title {
  font-size: 11px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-ce-flow-5 .csuk-ce-step-sub {
  font-size: 9px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-ce-flow-5 .csuk-ce-step-ico {
  width: 30px !important;
  height: 30px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-ce-flow-5 .csuk-ce-step-ico svg {
  width: 15px !important;
  height: 15px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-ce-flow-5 .csuk-ce-flow-step {
  padding: 10px 5px 8px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-metrics {
  grid-template-columns: 108px 1fr !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  align-items: center;
}

/* EPC donut — readable on circle + ring loads */
.pdevuk-wrap .pdevuk-hero .pdevuk-ce-donut,
.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-donut {
  width: 108px !important;
  height: 108px !important;
  flex-shrink: 0;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-donut-ring {
  stroke: #a0ffd4;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 251.33 !important;
  stroke-dashoffset: 251.33 !important;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.pdevuk-wrap .pdevuk-hero.csuk-ce-animated .pdevuk-donut-ring,
.pdevuk-wrap .pdevuk-hero.csuk-hero-ready .pdevuk-donut-ring,
.pdevuk-wrap .pdevuk-hero.csuk-ce-animated .csuk-ce-donut-ring {
  stroke-dashoffset: 55.29 !important;
}

.pdevuk-wrap .pdevuk-hero .csuk-ce-donut-center {
  padding: 4px;
  box-sizing: border-box;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-donut-val {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-donut-epc {
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.pdevuk-wrap .pdevuk-hero .pdevuk-donut-band {
  font-size: 22px !important;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-donut-lbl {
  font-size: 8px !important;
  max-width: 80px !important;
  line-height: 1.3 !important;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-stat-grid {
  gap: 8px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-stat {
  padding: 10px 8px !important;
  border-radius: 11px !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-stat-val {
  font-size: 12px !important;
  line-height: 1.25 !important;
  word-break: normal;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-stat-lbl {
  font-size: 8px !important;
  margin-top: 4px !important;
  line-height: 1.3 !important;
}

.pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-foot {
  font-size: 9px !important;
  line-height: 1.4 !important;
  margin-top: 6px;
  padding-top: 4px;
}

.pdevuk-wrap .pdevuk-hero.csuk-hero-ready .csuk-hero-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.pdevuk-wrap #pdevuk-hero .csuk-ce-bar-grid {
  width: 100% !important;
}

.pdevuk-wrap #pdevuk-hero .csuk-ce-bar-solar {
  width: 50% !important;
}

/* Elementor shortcode full width */
.elementor-widget-shortcode:has(.pdevuk-wrap) {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-widget-shortcode:has(.pdevuk-wrap) .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .pdevuk-wrap .pdevuk-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pdevuk-wrap .pdevuk-hero .csuk-hero-aside {
    max-width: none;
    justify-self: stretch;
    margin-top: 0;
  }
}

/* Override legacy pdevuk / commercial hero positioning */
.pdevuk-wrap #pdevuk-hero .csuk-hero-inner,
.pdevuk-wrap #pdevuk-hero .pdevuk-hero-grid {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  align-items: start !important;
  padding-top: 0 !important;
}

.pdevuk-wrap #pdevuk-hero .csuk-hero-bg,
.pdevuk-wrap #pdevuk-hero .pdevuk-hero-bg {
  filter: brightness(1.12) contrast(1.06) saturate(1.08) !important;
}

.pdevuk-wrap #pdevuk-hero .csuk-hero-overlay,
.pdevuk-wrap #pdevuk-hero .pdevuk-hero-overlay {
  background: linear-gradient(
    95deg,
    rgba(4, 12, 22, 0.68) 0%,
    rgba(4, 12, 22, 0.4) 40%,
    rgba(4, 12, 22, 0.12) 70%,
    transparent 100%
  ) !important;
}

@media (max-width: 960px) {
  .pdevuk-wrap .csuk-hero#pdevuk-hero,
  .pdevuk-wrap #pdevuk-hero.pdevuk-hero {
    min-height: 0 !important;
  }

  .pdevuk-wrap #pdevuk-hero .csuk-hero-inner,
  .pdevuk-wrap #pdevuk-hero .pdevuk-hero-grid {
    padding-top: 0 !important;
    width: 100% !important;
  }

  .pdevuk-wrap .pdevuk-hero-bg {
    animation: none;
  }
}

@media (max-width: 640px) {
  .pdevuk-wrap #pdevuk-hero.pdevuk-hero {
    padding-top: 88px;
    min-height: 0;
  }

  .pdevuk-wrap .pdevuk-hero .csuk-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .pdevuk-wrap .pdevuk-hero .csuk-btn {
    width: 100%;
    justify-content: center;
  }

  .pdevuk-wrap .pdevuk-hero .pdevuk-compliance-engine .csuk-ce-metrics {
    grid-template-columns: 96px 1fr !important;
  }

  .pdevuk-wrap .pdevuk-hero .pdevuk-ce-donut {
    width: 96px !important;
    height: 96px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdevuk-wrap .pdevuk-hero-bg,
  .pdevuk-wrap .pdevuk-hero-ambient-orb,
  .pdevuk-wrap .pdevuk-hero-ambient-grid {
    animation: none !important;
  }

  .pdevuk-wrap .pdevuk-hero .pdevuk-donut-ring {
    transition: none;
    stroke-dashoffset: 55.29 !important;
  }
}
