

  /* ===== ROOT / EDITABLE SETTINGS ======================== */
  .wwep-hero{
    --wwep-image: url("https://pjhestateplanning.co.uk/wp-content/uploads/2026/12/pjh-glastonbury-street-hero.jpg");
    --wwep-radius: clamp(22px, 3vw, 40px);
    --wwep-gutter: clamp(12px, 3vw, 32px);
    --wwep-container: 1180px;
    --wwep-green: #10b981;
    --wwep-green-deep: #0f766e;
    --wwep-gradient-strength: .68;                 /* green tint (0 = photo only, 1 = full) */
    --wwep-scrim-strength: .32;                    /* dark readability wash             */
    --wwep-mobile-gradient: linear-gradient(180deg,#0b2135 0%,#1c4a72 50%,#0a1e31 100%);
    --wwep-font: "Poppins","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;

    --wwep-card-bg:#ffffff;
    --wwep-card-title:#123c47;
    --wwep-card-text:#3f7d84;
    --wwep-card-link:#0f766e;
    --wwep-card-icon-bg:#e0f0e9;
    --wwep-card-icon:#0f766e;
    --wwep-arrow-bg:#0f766e;
    --wwep-arrow-bg-hover:#0b5851;
    --wwep-dot:#cdd8d6;
    --wwep-dot-active:#0f766e;

    /* glass panel behind the headline/intro — desktop only */
    --wwep-glass-bg: rgba(255,255,255,.10);
    --wwep-glass-border: rgba(255,255,255,.28);
    --wwep-glass-blur: 18px;
    --wwep-glass-radius: clamp(18px, 2.4vw, 30px);
    --wwep-glass-shadow: 0 12px 40px -12px rgba(0,0,0,.45);

    position:relative !important;
    display:block !important;
    margin:var(--wwep-gutter) !important;
    padding:0 0 clamp(64px,7vw,112px) !important;   /* room for the overhanging cards + shadow */
    width:auto !important;
    max-width:100% !important;
    border:0 !important;
    border-radius:var(--wwep-radius) !important;
    overflow:visible !important;
    isolation:isolate;
    font-family:var(--wwep-font) !important;
    font-size:16px !important;
    color:#fff !important;
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  /* ===== SCOPED RESET (beats all non-!important theme CSS) = */
  .wwep-hero *,
  .wwep-hero *::before,
  .wwep-hero *::after{
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    outline:0;
    background:none !important;
    box-shadow:none !important;
    text-shadow:none !important;
    text-decoration:none !important;
    text-transform:none !important;
    letter-spacing:normal !important;
    list-style:none !important;
    float:none !important;
    max-width:100%;
    min-width:0;
    font-family:var(--wwep-font) !important;
    font-style:normal !important;
    color:inherit;
    line-height:1.4;
    transform:none;
    transition:none;
    animation:none;
    filter:none;
    opacity:1;
  }
  .wwep-hero button{cursor:pointer;-webkit-appearance:none !important;appearance:none !important;}
  .wwep-hero img,
  .wwep-hero svg{display:block;max-width:100%;height:auto;}

  /* screen-reader / crawler-visible only */
  .wwep-hero .wwep-sr-only{
    position:absolute !important;
    width:1px !important;height:1px !important;
    overflow:hidden !important;
    clip:rect(0 0 0 0) !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
  }

  /* ===== PANEL ========================================= */
  .wwep-hero .wwep-hero__frame{
    --wwep-panel-inset: clamp(80px, 10vw, 128px);   /* desktop card overhang */
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    min-height:max(580px, 70svh) !important;
    border-radius:var(--wwep-radius) !important;
    overflow:visible !important;            /* let the card shadows show in full */
    padding:clamp(60px,8vw,116px) clamp(24px,6vw,72px) clamp(12px,2vw,22px) !important;
    text-align:center !important;
  }
  .wwep-hero .wwep-hero__image,
  .wwep-hero .wwep-hero__gradient,
  .wwep-hero .wwep-hero__scrim{
    position:absolute !important;
    left:0 !important;right:0 !important;top:0 !important;
    bottom:var(--wwep-panel-inset) !important;
    border-radius:inherit !important;
  }
  .wwep-hero .wwep-hero__image{
    z-index:0;
    background-color:#12211b !important;
    background-color:#22383f !important;
    background-image:none !important;
    overflow:hidden !important;
    container-type:size;
    --wwep-image-ratio: 1280 / 720;                  /* the photo's shape (width / height) */
  }
  /* Photo sits on the right at its natural shape. Its left, top and bottom
     edges fade into a blurred, mirrored copy of the same photo (::before),
     matching the Areas we cover hero. */
  .wwep-hero .wwep-hero__image::before,
  .wwep-hero .wwep-hero__image::after{
    content:"" !important;
    position:absolute !important;
    background-image:var(--wwep-image) !important;
    background-repeat:no-repeat !important;
  }
  .wwep-hero .wwep-hero__image::before{
    inset:-60px !important;
    background-size:cover !important;
    background-position:60% 50% !important;
    transform:scaleX(-1);
    filter:blur(28px) saturate(115%) brightness(1.05);
  }
  .wwep-hero .wwep-hero__image::after{
    inset:0 !important;
    background-size:cover !important;
    background-position:center !important;
  }
  @media (min-width:981px){
    .wwep-hero .wwep-hero__image::after{
      inset:auto 0 auto auto !important;
      top:50% !important;
      width:min(72%, calc(100cqh * var(--wwep-image-ratio))) !important;
      max-width:none !important;
      aspect-ratio:var(--wwep-image-ratio) !important;
      transform:translateY(-50%);
      -webkit-mask-image:
        linear-gradient(90deg, transparent 0, #000 40%),
        linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
      -webkit-mask-composite:source-in;
      mask-image:
        linear-gradient(90deg, transparent 0, #000 40%),
        linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent 100%);
      mask-composite:intersect;
    }
  }
  .wwep-hero .wwep-hero__gradient{
    z-index:1;
    background:linear-gradient(115deg,#04120c 0%,var(--wwep-green-deep) 22%,var(--wwep-green) 42%,#03100a 62%,var(--wwep-green-deep) 82%,#050d0a 100%) !important;
    background-size:300% 300% !important;
    mix-blend-mode:multiply;
    opacity:var(--wwep-gradient-strength);
    animation:wwepGradientShift 22s ease-in-out infinite !important;
  }
  @keyframes wwepGradientShift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
  @keyframes wwepBlueShift{0%{background-position:50% 0%}50%{background-position:50% 100%}100%{background-position:50% 0%}}

  .wwep-hero .wwep-hero__scrim{
    z-index:2;
    background:linear-gradient(180deg,
      rgba(0,0,0,calc(var(--wwep-scrim-strength) + .05)) 0%,
      rgba(0,0,0,var(--wwep-scrim-strength)) 45%,
      rgba(0,0,0,calc(var(--wwep-scrim-strength) + .12)) 100%) !important;
  }

  /* ===== CENTRED COPY ================================== */
  .wwep-hero .wwep-hero__content{
    position:relative !important;
    z-index:3;
    flex:1 1 auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:60ch !important;
    margin:0 auto !important;
    padding-bottom:clamp(18px,3vw,34px) !important;
  }

  /* Glass panel wrapper around the headline/intro — see desktop media
     query below for the actual frosted-glass look. On tablet/mobile
     this stays a plain transparent wrapper (no visual change there). */
  .wwep-hero .wwep-hero__glass{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    width:100% !important;
  }

  .wwep-hero .wwep-hero__text h1{
    font-size:clamp(1.9rem,4.6vw,3.4rem) !important;
    line-height:1.12 !important;
    font-weight:600 !important;
    letter-spacing:-.005em !important;
    color:#fff !important;
    text-align:center !important;
    margin:0 auto 20px !important;
    max-width:20ch;
    text-wrap:balance;
  }
  .wwep-hero .wwep-hero__sub{
    font-size:clamp(1rem,1.05rem + .3vw,1.15rem) !important;
    line-height:1.7 !important;
    font-weight:400 !important;
    color:rgba(255,255,255,.92) !important;
    text-align:center !important;
    max-width:54ch;
    margin:0 auto 14px !important;
  }
  .wwep-hero .wwep-hero__sub:last-child{margin-bottom:0 !important;}
  .wwep-hero .wwep-hero__sub strong{font-weight:700 !important;color:#fff !important;}

  /* ===== DECK (cards) ================================= */
  .wwep-hero .wwep-hero__deck{
    position:relative !important;
    z-index:5;
    flex:0 0 auto !important;
    width:100% !important;
    max-width:var(--wwep-container) !important;
    margin:clamp(18px,3vw,34px) auto 0 !important;
    padding:0 clamp(10px,2.5vw,22px) !important;
  }

  .wwep-hero .wwep-carousel{
    position:relative !important;
    width:100% !important;
    background:none !important;
    box-shadow:none !important;
    padding:0 !important;
    overflow:visible !important;
  }
  .wwep-hero .wwep-carousel__viewport{overflow:visible !important;width:100% !important;}
  .wwep-hero .wwep-carousel__track{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    gap:clamp(14px,1.6vw,22px) !important;
    transform:none !important;
    transition:transform .5s cubic-bezier(.4,.14,.3,1) !important;
    will-change:transform;
    touch-action:pan-y;
  }
  .wwep-hero .wwep-carousel__slide{
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    display:flex !important;
  }
  .wwep-hero .wwep-carousel__card{
    flex:1 1 auto !important;
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    text-align:center !important;
    background:var(--wwep-card-bg) !important;
    border-radius:16px !important;
    border:1px solid rgba(15,23,42,.06) !important;
    box-shadow:0 24px 52px -22px rgba(0,0,0,.42) !important;
    padding:clamp(24px,2.2vw,34px) clamp(16px,1.4vw,22px) !important;
    min-height:clamp(240px,20vw,280px) !important;
  }
  .wwep-hero .wwep-carousel__icon{
    width:64px !important;height:64px !important;
    border-radius:16px !important;
    background:linear-gradient(160deg,var(--wwep-card-icon-bg),#ffffff) !important;
    box-shadow:0 12px 26px -14px rgba(15,118,110,.5), inset 0 0 0 1px rgba(15,118,110,.08) !important;
    display:flex !important;align-items:center !important;justify-content:center !important;
    margin:0 0 16px !important;
    flex:0 0 auto !important;
  }
  .wwep-hero .wwep-carousel__icon img,
  .wwep-hero .wwep-carousel__icon svg{
    width:34px !important;height:34px !important;max-width:34px !important;
    object-fit:contain !important;
  }
  .wwep-hero .wwep-carousel__title{
    font-size:clamp(1.15rem,1.05rem + .5vw,1.4rem) !important;
    font-weight:700 !important;
    line-height:1.25 !important;
    color:var(--wwep-card-title) !important;
    text-align:center !important;
    margin:0 0 12px !important;
    min-height:2.5em !important;          /* 2 lines — keeps every card's body text aligned */
  }
  .wwep-hero .wwep-carousel__desc{
    font-size:.92rem !important;
    line-height:1.6 !important;
    font-weight:400 !important;
    color:var(--wwep-card-text) !important;
    text-align:center !important;
    margin:0 0 18px !important;
    text-wrap:pretty;                     /* avoid a single word alone on the last line */
  }
  .wwep-hero .wwep-carousel__link{
    margin-top:auto !important;            /* pin to card bottom so pills line up */
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-size:.88rem !important;
    font-weight:600 !important;
    line-height:1.2 !important;
    color:var(--wwep-card-link) !important;
    border:1.5px solid var(--wwep-card-link) !important;
    border-radius:999px !important;
    padding:9px 20px !important;
    transition:background-color .18s ease,color .18s ease !important;
  }
  .wwep-hero .wwep-carousel__link:hover,
  .wwep-hero .wwep-carousel__link:focus,
  .wwep-hero .wwep-carousel__link:focus-visible{
    background:var(--wwep-card-link) !important;
    color:#fff !important;
  }
  .wwep-hero .wwep-carousel__link:focus-visible{outline:3px solid #a7f3d0 !important;outline-offset:3px;}

  /* arrows + dashes — hidden on desktop */
  .wwep-hero .wwep-carousel__arrow{display:none !important;}
  .wwep-hero .wwep-carousel__dots{display:none !important;}

  .wwep-hero .wwep-carousel__arrow{
    position:absolute !important;top:50% !important;
    transform:translateY(-50%) !important;
    width:40px !important;height:40px !important;
    border-radius:50% !important;
    background:var(--wwep-arrow-bg) !important;
    color:#fff !important;
    align-items:center !important;justify-content:center !important;
    transition:background-color .18s ease !important;
    box-shadow:0 6px 16px -4px rgba(0,0,0,.35) !important;
    z-index:4 !important;
  }
  .wwep-hero .wwep-carousel__arrow:hover,
  .wwep-hero .wwep-carousel__arrow:focus,
  .wwep-hero .wwep-carousel__arrow:focus-visible{background:var(--wwep-arrow-bg-hover) !important;color:#fff !important;}
  .wwep-hero .wwep-carousel__arrow:focus-visible{outline:3px solid #a7f3d0 !important;outline-offset:2px;}
  .wwep-hero .wwep-carousel__arrow svg{
    width:16px !important;height:16px !important;
    stroke:#fff !important;fill:none !important;
    stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;
    pointer-events:none;
  }
  .wwep-hero .wwep-carousel__arrow--prev{left:10px !important;right:auto !important;}
  .wwep-hero .wwep-carousel__arrow--next{right:10px !important;left:auto !important;}

  .wwep-hero .wwep-carousel__dots{
    justify-content:center !important;
    gap:8px !important;
    margin:20px 0 0 !important;
  }
  .wwep-hero .wwep-carousel__dot{
    width:20px !important;height:4px !important;
    border-radius:999px !important;
    background:var(--wwep-dot) !important;
    transition:background-color .25s ease,width .25s ease !important;
    flex:0 0 auto !important;
  }
  .wwep-hero .wwep-carousel__dot.is-active{width:30px !important;background:var(--wwep-dot-active) !important;}
  .wwep-hero .wwep-carousel__dot:focus-visible{outline:3px solid #a7f3d0 !important;outline-offset:4px;}

  /* =====================================================
     DESKTOP (>= 981px) — glass panel behind headline/intro
     ===================================================== */
  @media (min-width:981px){
    .wwep-hero .wwep-hero__glass{
      background:var(--wwep-glass-bg) !important;
      -webkit-backdrop-filter:blur(var(--wwep-glass-blur)) saturate(140%) !important;
      backdrop-filter:blur(var(--wwep-glass-blur)) saturate(140%) !important;
      border:1px solid var(--wwep-glass-border) !important;
      border-radius:var(--wwep-glass-radius) !important;
      box-shadow:var(--wwep-glass-shadow) !important;
      padding:clamp(28px,3.4vw,48px) clamp(28px,4.4vw,60px) !important;
    }
  }

  /* =====================================================
     TABLET / MOBILE (<= 980px) — one-card carousel
     Glass panel is a desktop-only enhancement, so nothing here
     changes: headline/intro stay plain on the scrim, same as before.
     ===================================================== */
  @media (max-width:980px){
    .wwep-hero{overflow:hidden !important;padding:0 !important;}
    .wwep-hero .wwep-hero__frame{
      --wwep-panel-inset:0px !important;
      min-height:0 !important;
      padding:clamp(44px,10vw,68px) clamp(20px,7vw,40px) clamp(40px,10vw,58px) !important;
    }
    .wwep-hero .wwep-hero__content{
      flex:0 0 auto !important;
      justify-content:flex-start !important;
      padding-bottom:0 !important;
    }
    .wwep-hero .wwep-hero__scrim{
      background:linear-gradient(180deg,rgba(0,0,0,.34) 0%,rgba(0,0,0,.58) 55%,rgba(0,0,0,.72) 100%) !important;
    }

    .wwep-hero .wwep-hero__deck{
      margin:clamp(28px,7vw,40px) auto 0 !important;
      max-width:460px !important;
      padding:0 !important;
    }
    .wwep-hero .wwep-carousel{
      background:var(--wwep-card-bg) !important;
      border-radius:20px !important;
      box-shadow:0 24px 60px -18px rgba(0,0,0,.45) !important;
      padding:clamp(26px,6vw,38px) clamp(46px,10vw,54px) clamp(20px,5vw,26px) !important;
      overflow:hidden !important;
    }
    .wwep-hero .wwep-carousel__viewport{overflow:hidden !important;}
    .wwep-hero .wwep-carousel__track{gap:0 !important;}
    .wwep-hero .wwep-carousel__slide{
      flex:0 0 100% !important;
      width:100% !important;
    }
    .wwep-hero .wwep-carousel__card{
      background:none !important;
      border:0 !important;
      box-shadow:none !important;
      border-radius:0 !important;
      min-height:0 !important;
      padding:4px 2px !important;
    }
    .wwep-hero .wwep-carousel__arrow{display:flex !important;}
    .wwep-hero .wwep-carousel__dots{display:flex !important;}
  }

  /* =====================================================
     PHONE (<= 600px) — navy-blue background
     ===================================================== */
  @media (max-width:600px){
    .wwep-hero .wwep-hero__image{display:none !important;}
    .wwep-hero .wwep-hero__gradient{
      background:var(--wwep-mobile-gradient) !important;
      background-size:100% 220% !important;
      mix-blend-mode:normal !important;
      opacity:1 !important;
      animation:wwepBlueShift 16s ease-in-out infinite !important;
    }
    .wwep-hero .wwep-hero__scrim{
      background:linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.3) 100%) !important;
    }
    .wwep-hero .wwep-hero__frame{padding-top:clamp(40px,12vw,56px) !important;}
    .wwep-hero .wwep-carousel__arrow{width:34px !important;height:34px !important;}
    .wwep-hero .wwep-carousel__arrow--prev{left:5px !important;}
    .wwep-hero .wwep-carousel__arrow--next{right:5px !important;}
  }

  @media (prefers-reduced-motion:reduce){
    .wwep-hero .wwep-hero__gradient{animation:none !important;background-position:30% 50% !important;}
    .wwep-hero .wwep-carousel__track,
    .wwep-hero .wwep-carousel__arrow,
    .wwep-hero .wwep-carousel__dot,
    .wwep-hero .wwep-carousel__link{transition:none !important;}
  }
  