/* The emergency plumbing page's redesign (owner, 2026-11-11, after glazing.london's emergency page): night hero with
   the London skyline, moving tapes, 10-second leak check, price slider, score cards. Every class starts with ep- and
   lives only on /london/emergency/ (content/pages/london/emergency.md); the script is public/assets/js/emergency.js.
   Colours are the site's own: blue #0858AA, copper #C2692A, ink #0F2A3A. */
.ep-wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.ep-center { text-align: center; }
.ep-center > p { max-width: 42rem; margin-left: auto; margin-right: auto; }
.sk-blocks .ep-sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.ep-sec--tint { background: linear-gradient(180deg, #E6F0F7, #F3F8FB); }
.ep-sec h2, .ep-final h2 { margin: .3rem 0 .9rem; font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; }
.ep-sec p { color: #44606F; }
.ep-sec em:only-child, .ep-final em:only-child { font-style: normal; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #C2692A; }

/* Buttons: shine sweep, pulse on the call button */
.ep-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.4rem; margin: .35rem .5rem .35rem 0; padding: .9rem 1.6rem; border-radius: 999px; font-size: 1.06rem; font-weight: 800; transition: transform .2s; }
.ep-btn:hover { transform: translateY(-2px); }
.ep-btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.ep-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .4) 50%, transparent 70%); transform: translateX(-120%); animation: ep-shine 3.6s ease-in-out infinite; }
.sk-btn.ep-btn--call { background: linear-gradient(135deg, #A9561C, #D9823F); border-color: #C2692A; color: #fff; box-shadow: 0 12px 28px -10px rgb(194 105 42 / .85); animation: ep-pulse 2.2s infinite; }
.sk-btn.ep-btn--call::before { display: none; }
.sk-btn.ep-btn--wa { background: linear-gradient(135deg, #0FA958, #25D366); border-color: #1EBE5A; color: #fff; box-shadow: 0 12px 28px -10px rgb(22 196 106 / .7); }
.sk-btn.ep-btn--gold { background: linear-gradient(135deg, #FFC53D, #FF9F1C); border-color: #FFB703; color: #1A1300; box-shadow: 0 12px 28px -10px rgb(255 159 28 / .8); }
.sk-btn.ep-btn--call:hover, .sk-btn.ep-btn--wa:hover { color: #fff; }
@keyframes ep-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes ep-pulse { 0% { box-shadow: 0 0 0 0 rgb(217 130 63 / .6); } 70% { box-shadow: 0 0 0 16px rgb(217 130 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(217 130 63 / 0); } }

/* Hero */
.ep-hero { position: relative; overflow: hidden; padding: 2rem 0 0; color: #fff; background: radial-gradient(1100px 560px at 85% -10%, #12508F 0%, transparent 60%), linear-gradient(180deg, #061A33 0%, #08264A 100%); }
.ep-hero::before { content: ""; position: absolute; inset: 0 0 30% 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent), radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent), radial-gradient(1px 1px at 58% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 72% 8%, #fff, transparent), radial-gradient(1px 1px at 86% 30%, #fff, transparent), radial-gradient(1px 1px at 6% 48%, #fff, transparent), radial-gradient(1.5px 1.5px at 95% 55%, #fff, transparent);
  animation: ep-twinkle 4s ease-in-out infinite alternate; }
@keyframes ep-twinkle { to { opacity: .25; } }
.ep-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.ep-hero p { color: #C9DBEF; }
.ep-hero__copy > p:first-child { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; }
.ep-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); font-size: .82rem; font-weight: 700; color: #E3EEFA; }
.ep-chip--copper { background: rgb(217 130 63 / .16); border-color: rgb(217 130 63 / .6); color: #FFCF9E; }
.ep-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #16C46A; animation: ep-blink 1.6s infinite; }
@keyframes ep-blink { 0% { box-shadow: 0 0 0 0 rgb(22 196 106 / .7); } 70% { box-shadow: 0 0 0 9px rgb(22 196 106 / 0); } 100% { box-shadow: 0 0 0 0 rgb(22 196 106 / 0); } }
.ep-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.04; letter-spacing: -.025em; }
.ep-hl { background: linear-gradient(90deg, #8CC4FF 0%, #BFE0FF 40%, #FFCF9E 80%, #8CC4FF 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ep-sheen 7s linear infinite; }
@keyframes ep-sheen { to { background-position: 200% center; } }
.ep-hero__copy > p:nth-of-type(2) { max-width: 36rem; font-size: 1.12rem; }
.ep-tick { display: inline-flex; align-items: center; gap: .5rem; width: calc(50% - .6rem); margin: .3rem 0; font-weight: 600; color: #EEF5FF; }
.ep-tick::before { content: "✓"; display: grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgb(22 196 106 / .2); color: #4ADE80; font-size: .8rem; font-weight: 900; }
.ep-rating { display: block; margin-top: .6rem; font-size: .95rem; color: #C9DBEF; }
.ep-rating strong { color: #fff; }
.ep-clock { display: block; font-size: .86rem; color: #9FB6CF; }
#ep-time { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }

.ep-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .12); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s; }
.ep-photo:hover { transform: none; }
.ep-photo p { margin: 0; }
.ep-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: ep-kenburns 18s ease-in-out infinite alternate; }
@keyframes ep-kenburns { to { transform: scale(1.1) translate(-3%, -1%); } }
.ep-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(6 26 51 / .85)); pointer-events: none; }
.ep-tape { position: absolute; z-index: 3; left: -20%; width: 140%; overflow: hidden; white-space: nowrap; padding: .55rem 0; font-size: .92rem; font-weight: 900; letter-spacing: .06em; box-shadow: 0 8px 20px rgb(0 0 0 / .4); animation: ep-marquee 18s linear infinite; }
.ep-tape--gold { top: 20%; transform: rotate(-8deg); background: repeating-linear-gradient(135deg, #FFC53D 0 26px, #FFB703 26px 52px); color: #120D00; }
.ep-tape--blue { top: 64%; transform: rotate(6deg); background: linear-gradient(90deg, #0858AA, #2D8CE6); color: #fff; animation-direction: reverse; animation-duration: 22s; }
@keyframes ep-marquee { from { text-indent: 0; } to { text-indent: -60%; } }
.ep-badge { position: absolute; z-index: 4; right: 1rem; bottom: 1rem; padding: .7rem 1rem; border-radius: 16px; background: rgb(6 26 51 / .72); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 1.45rem; }
.ep-badge small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9FB6CF; }

/* The moving London skyline (public/assets/img/london-skyline.svg) */
.ep-skyline { position: relative; z-index: 1; height: 170px; margin-top: 2.5rem; background: url(/assets/img/london-skyline.svg) repeat-x 0 100% / 1200px 170px; animation: ep-drift 90s linear infinite; }
.ep-skyline p { margin: 0; }
.ep-skyline__far { position: absolute; inset: 40% 0 0; background: url(/assets/img/london-skyline.svg) repeat-x 300px 100% / 1200px 170px; opacity: .25; filter: blur(1px); animation: ep-drift 160s linear infinite reverse; }
@keyframes ep-drift { to { background-position-x: -1200px; } }
.ep-places { position: relative; z-index: 2; overflow: hidden; white-space: nowrap; padding: .75rem 0; background: #04142A; border-top: 1px solid rgb(255 255 255 / .08); color: #8FA9C6; font-size: .9rem; font-weight: 600; }
.ep-places p { margin: 0; animation: ep-marquee 70s linear infinite; }

/* Trust strip */
.ep-trust { padding: 1.4rem 0; background: #fff; border-bottom: 1px solid #D3E1EB; }
.ep-trust__grid, .ep-trust__grid > p { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.ep-trust__item { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; font-size: .84rem; color: #44606F; }
.ep-trust__item svg { grid-row: span 2; width: 2rem; height: 2rem; color: #0858AA; }
.ep-trust__item strong { font-size: 1rem; color: #0F2A3A; }

/* 10-second leak check (built by the script into #ep-check) */
.ep-check { max-width: 52rem; margin: 2rem auto 0; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 28px; background: #fff; border: 1px solid #D3E1EB; box-shadow: 0 24px 50px -24px rgb(6 26 51 / .35); text-align: left; position: relative; overflow: hidden; }
.ep-check__bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: #E6F0F7; }
.ep-check__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0858AA, #D9823F); transition: width .5s; }
.ep-check__q { margin: 0 0 1rem; font-family: var(--sk-font-heading); font-size: 1.3rem; font-weight: 800; color: #0F2A3A; }
.ep-check__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.ep-check__opt { padding: 1.1rem .8rem; border: 2px solid #E6F0F7; border-radius: 18px; background: #FAFCFE; font: inherit; font-weight: 700; color: #0F2A3A; cursor: pointer; transition: .2s; }
.ep-check__opt span { display: block; margin-bottom: .3rem; font-size: 1.9rem; }
.ep-check__opt:hover, .ep-check__opt:focus-visible { border-color: #0858AA; transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgb(8 88 170 / .5); }
.ep-check__res { animation: ep-pop .45s; }
@keyframes ep-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.ep-meter { display: flex; align-items: center; gap: .8rem; margin: .5rem 0 1.2rem; font-size: .85rem; font-weight: 700; color: #44606F; }
.ep-meter b { position: relative; flex: 1; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #16C46A, #FFC53D, #E5484D); }
.ep-meter b i { position: absolute; top: -6px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid #061A33; transform: translateX(-50%); transition: left 1s cubic-bezier(.2, 1.4, .4, 1); }
.ep-check__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0 1.3rem; }
.ep-check__grid div { padding: 1rem; border-radius: 16px; background: #F3F8FB; }
.ep-check__grid small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #44606F; }
.ep-check__grid strong { font-size: 1.25rem; color: #0F2A3A; }
.ep-check ul { margin: .4rem 0 1.2rem; padding: 0; list-style: none; }
.ep-check li { position: relative; padding: .35rem 0 .35rem 1.9rem; color: #0F2A3A; }
.ep-check li::before { content: "✓"; position: absolute; left: 0; top: .35rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #E2F8EC; color: #0C8A47; font-size: .75rem; font-weight: 900; }
.ep-check__again { margin-top: .6rem; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #0858AA; cursor: pointer; }
.ep-sos, .ep-sos > p { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 0; }
.ep-sos { margin-top: 2rem; }
.ep-sos__tile { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .9rem 1rem; border: 1px solid #D3E1EB; border-radius: 16px; background: #fff; text-decoration: none; font-size: .82rem; color: #44606F; transition: .2s; }
.ep-sos__tile svg { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: #0858AA; }
.ep-sos__tile strong { font-size: .95rem; color: #0F2A3A; }
.ep-sos__tile:hover { border-color: #0858AA; transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(8 88 170 / .5); }

/* "Ring straight away" cards */
.ep-urgent { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.ep-urgent__item { position: relative; padding: 1.3rem 1.3rem 1.3rem 1.5rem; border: 1px solid #D3E1EB; border-radius: 20px; background: #fff; transition: .25s; }
.ep-urgent__item::before { content: ""; position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #D9823F, #E5484D); }
.ep-urgent__item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgb(6 26 51 / .3); }
.ep-urgent__item p { margin: 0; color: #44606F; }
.ep-urgent__item strong { display: block; margin-bottom: .3rem; font-size: 1.05rem; color: #0F2A3A; }

/* Dark steps section */
.ep-sec--dark { background: #061A33; color: #fff; }
.ep-sec--dark h2 { color: #fff; }
.ep-sec--dark p { color: #B8CCE2; }
.ep-sec--dark em:only-child { color: #FFCF9E; }
.ep-sec--dark a { color: #8CC4FF; }
.ep-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ep-split__photo { margin: 0; }
.ep-split__photo p { margin: 0; }
.ep-split__photo img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px -25px rgb(0 0 0 / .8); }
.ep-step { counter-increment: ep-step; position: relative; margin: .8rem 0; padding: 1rem 1rem 1rem 4.4rem; border-radius: 18px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); }
.ep-step p { margin: 0; font-size: .95rem; }
.ep-step strong { color: #fff; }
.ep-step::before { content: counter(ep-step); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: linear-gradient(135deg, #FFC53D, #FF9F1C); color: #1A1300; font-weight: 900; font-size: 1.1rem; }
.ep-split__text { counter-reset: ep-step; }

/* Price slider + promise */
.ep-price { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.5rem; align-items: stretch; margin: 1.5rem 0; }
.ep-calc { padding: clamp(1.4rem, 4vw, 2rem); border: 1px solid #D3E1EB; border-radius: 22px; background: #fff; box-shadow: 0 24px 50px -30px rgb(6 26 51 / .35); }
.ep-calc__label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; color: #0F2A3A; }
.ep-calc input[type=range] { width: 100%; height: 2.75rem; margin: .5rem 0 0; accent-color: #0858AA; cursor: pointer; }
.ep-calc__scale { display: flex; justify-content: space-between; font-size: .8rem; color: #44606F; }
.ep-calc__total { display: block; margin: 1rem 0 .4rem; font-family: var(--sk-font-heading); font-size: clamp(3rem, 9vw, 4.5rem); font-weight: 800; line-height: 1; color: #0858AA; }
.ep-calc__sum { margin: 0; font-size: .95rem; }
.ep-promise { position: relative; overflow: hidden; padding: 1.6rem; border-radius: 22px; background: linear-gradient(160deg, #0858AA, #061A33); color: #fff; }
.ep-promise p { color: #C9DBEF; }
.ep-sec .ep-promise em:only-child { color: #FFCF9E; }
.ep-promise strong { color: #fff; }
.ep-promise__big { display: block; font-family: var(--sk-font-heading); font-size: 3.4rem; font-weight: 800; line-height: 1; color: #FFC53D; }
.ep-promise .ep-btn { width: 100%; margin-right: 0; }

/* Score cards */
.ep-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 1rem; }
.ep-score { padding: 1.4rem 1.6rem; border: 1px solid #D3E1EB; border-radius: 22px; background: #fff; transition: .25s; }
.ep-score p { display: flex; align-items: center; gap: 1.2rem; margin: 0; }
.ep-score:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgb(6 26 51 / .3); }
.ep-score__big { font-family: var(--sk-font-heading); font-size: clamp(3rem, 8vw, 4rem); font-weight: 800; line-height: 1; color: #0858AA; }
.ep-score__txt { color: #44606F; line-height: 1.4; }
.ep-score__txt strong { display: block; font-size: 1.15rem; color: #0F2A3A; }

/* Area chips, final */
.ep-chips, .ep-chips > p { display: flex; flex-wrap: wrap; gap: .5rem; }
.ep-chips a { padding: .55rem 1rem; border-radius: 999px; border: 1px solid #D3E1EB; background: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; color: #0F2A3A; transition: .2s; }
.ep-chips a:hover { background: #0858AA; border-color: #0858AA; color: #fff; }
.ep-final { padding: clamp(3.5rem, 8vw, 6rem) 0; color: #fff; background: radial-gradient(800px 400px at 50% 0%, #12508F, transparent 70%), #061A33; }
.ep-final h2 { color: #fff; font-size: clamp(2.1rem, 6vw, 3.4rem); }
.ep-final p { color: #B8CCE2; }
.ep-final em:only-child { color: #FFCF9E; }

@media (max-width: 1000px) {
  .ep-sos, .ep-sos > p, .ep-trust__grid, .ep-trust__grid > p { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ep-hero__grid, .ep-split, .ep-price, .ep-scores { grid-template-columns: 1fr; gap: 1.75rem; }
  .ep-photo { transform: none; aspect-ratio: 4 / 3.4; }
  .ep-tape--gold { top: 12%; }
  .ep-tape--blue { top: 52%; }
}
@media (max-width: 560px) {
  .ep-tick { width: 100%; }
  .ep-chip { padding: .3rem .65rem; font-size: .74rem; }
  .ep-hero { padding-top: 1.25rem; }
  .ep-btn { width: 100%; margin-right: 0; }
  .ep-check__grid, .ep-sos, .ep-sos > p { grid-template-columns: 1fr; }
  .ep-skyline { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-hero *, .ep-hero::before, .ep-btn, .ep-btn::after, .ep-skyline, .ep-skyline__far, .ep-places p, .ep-tape, .ep-photo img, .ep-hl { animation: none !important; }
}
