/* Emergency boiler repair page. Loaded only by emergency-boiler-repair.html, on top of styles.css. */

.hb-narrow { display: none; }

/* ===== First paint =====
   This page does not wait for JS: no loader, nothing starts transparent, so the hero copy
   paints with the stylesheet. The entrance is transform only, from an already visible state. */
#page { opacity: 1; transition: none; }
#page .hero--boiler .hero-sub, #page .hero--boiler .hero-ctas, #page .hero--boiler .hero-foot { opacity: 1; transform: none; transition: none; }
#page .hero--boiler .h1-line { overflow: visible; }
#page .hero--boiler .h1-inner { transform: none; transition: none; }
.hero--boiler .h1-inner, .hero--boiler .hero-sub, .hero--boiler .hero-ctas, .hb-gauge { animation: hbRise .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero--boiler .h1-line:nth-child(2) .h1-inner { animation-delay: .06s; }
.hero--boiler .h1-line:nth-child(3) .h1-inner { animation-delay: .12s; }
.hero--boiler .hero-sub { animation-delay: .18s; }
.hero--boiler .hero-ctas { animation-delay: .24s; }
.hb-gauge { animation-delay: .2s; }
@keyframes hbRise { from { transform: translateY(18px); } }
html.shot .hero--boiler .h1-inner, html.shot .hero--boiler .hero-sub, html.shot .hero--boiler .hero-ctas, html.shot .hb-gauge { animation: none !important; }

/* ===== Hero: drawn pressure gauge instead of a photo ===== */
.hero--boiler { min-height: 0; padding: 170px 0 150px; }
.hero--boiler .hero-bg { background: var(--petrol-deep); }
.hero--boiler .hero-bg::after { background:
  radial-gradient(circle, rgba(242,237,227,.05) 1px, transparent 1px) 0 0 / 30px 30px,
  radial-gradient(640px 640px at 82% 52%, rgba(14,58,64,.95), transparent 70%),
  radial-gradient(720px 460px at 6% 100%, rgba(176,108,62,.2), transparent 70%); }
.hero--boiler .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 400px); gap: clamp(32px, 5vw, 84px); align-items: center; }
.hb-copy { position: relative; z-index: 1; }
.hero--boiler h1 { font-size: clamp(42px, 5.7vw, 82px); }
.hero--boiler .hero-sub { max-width: 540px; }

.hb-gauge svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(4,18,20,.5)); }
.hb-num { font-family: var(--mono); font-size: 19px; font-weight: 600; fill: rgba(242,237,227,.82); text-anchor: middle; dominant-baseline: central; }
.hb-unit { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .2em; fill: rgba(242,237,227,.5); text-anchor: middle; }
.hb-needle { transform-origin: 200px 200px; transform: rotate(-47.25deg); animation: hbNeedle 2.2s cubic-bezier(.16, 1, .3, 1) 1.1s both; }
.hero--boiler .hero-foot-item { font-size: 11px; letter-spacing: .15em; }
@keyframes hbNeedle { from { transform: rotate(-121.5deg); } to { transform: rotate(-47.25deg); } }
.hb-read { margin-top: 22px; font-size: 14.5px; line-height: 1.6; color: rgba(242,237,227,.7); text-align: center; }
.hb-read strong { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--aqua); margin-bottom: 4px; }
.hb-read a { color: var(--copper-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hb-read a:hover { color: var(--ink-dark); }

@media (max-width: 940px) {
  .hero--boiler { padding: 132px 0 196px; }
  .hero--boiler .hero-inner { display: block; }
  .hb-gauge { position: absolute; top: -20px; right: -150px; width: 320px; z-index: 0; pointer-events: none; }
  #page .hb-gauge { opacity: .2; }
  .hb-read, .hb-num, .hb-unit, .hb-wide { display: none; }
  .hb-narrow { display: inline-flex; }
  .hero--boiler .hero-foot-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; width: 100%; }
  .hero--boiler .hero-foot-item { white-space: normal; align-items: flex-start; line-height: 1.5; }
  .hero--boiler .hero-foot-item svg { margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) { .hb-needle { animation: none; } }
html.shot .hb-needle { animation: none !important; }

/* ===== Fault finder ===== */
.finder { padding: clamp(80px, 10vw, 130px) 0; }
.finder .section-h2 { max-width: 720px; }
.ff-gas { position: relative; margin-top: 22px; padding-left: 24px; max-width: 620px; font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.ff-gas::before { content: ''; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--copper); }
.ff-gas a { color: var(--copper-deep); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ff { margin-top: 48px; }
.ff-h { position: relative; font-size: inherit; letter-spacing: 0; line-height: inherit; }
.ff-tab { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 60px; padding: 14px 0; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--muted); transition: color .25s; }
.ff-tab:hover, .ff-h.is-open .ff-tab { color: var(--ink); }
.ff-node { position: relative; z-index: 1; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 5px solid var(--copper); background: var(--porcelain); box-shadow: 0 0 0 5px var(--porcelain); transition: background .3s; }
.ff-h.is-open .ff-node { background: var(--copper); }
.ff-tab::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--copper); transition: transform .3s; }
.ff-h.is-open .ff-tab::after { transform: rotate(45deg); }

.ff-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); margin: 6px 0 22px; }
.ff--js .ff-panel:not([hidden]) { animation: ffIn .5s var(--ease); }
@keyframes ffIn { from { opacity: 0; transform: translateY(12px); } }
.ff-verdict { font-family: var(--display); font-size: clamp(24px, 2.7vw, 33px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.ff-cause { margin-top: 14px; max-width: 62ch; color: var(--muted); }
.ff-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(22px, 3vw, 40px); margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.ff-cols h4 { font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.ff-cols ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ff-cols li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.ff-cols li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--copper); }
.ff-cols p { font-size: 16px; line-height: 1.6; color: var(--ink); }
.ff-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.ff-cta span { font-size: 14px; color: var(--muted); }

@media (min-width: 861px) {
  .ff--js { display: grid; grid-template-columns: minmax(300px, .7fr) 1.3fr; grid-template-rows: repeat(6, auto) 1fr; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .ff--js .ff-h { grid-column: 1; }
  .ff--js .ff-panel { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  .ff--js .ff-tab::after { content: ''; width: 8px; height: 8px; margin-right: 6px; border-top: 2px solid var(--copper); border-right: 2px solid var(--copper); transform: rotate(45deg); opacity: .4; transition: opacity .25s, transform .25s var(--ease); }
  .ff--js .ff-tab:hover::after, .ff--js .ff-h.is-open .ff-tab::after { opacity: 1; transform: translateX(4px) rotate(45deg); }
  /* copper pipe through the symptom list, filled down to the open junction */
  .ff--js .ff-h::before { content: ''; position: absolute; left: 7.5px; top: 0; bottom: 0; width: 5px; background: var(--line-2); transition: background .3s; }
  .ff--js .ff-h:first-of-type::before { top: 50%; border-radius: 3px 3px 0 0; }
  .ff--js .ff-h:last-of-type::before { bottom: 50%; border-radius: 0 0 3px 3px; }
  .ff--js .ff-h.is-past::before { background: var(--copper); }
  .ff--js .ff-h.is-open::before { background: linear-gradient(180deg, var(--copper) 50%, var(--line-2) 50%); }
  .ff--js .ff-h.is-open:first-of-type::before { background: var(--line-2); }
  .ff--js .ff-h.is-open:last-of-type::before { background: var(--copper); }
}
@media (max-width: 860px) {
  .ff-h { border-top: 1px solid var(--line); }
  .ff-h:first-of-type { border-top: none; }
  .ff-tab { font-size: 18px; }
  .ff-cols { grid-template-columns: 1fr; }
}

/* ===== Process: pulls the shared valve timeline, adds the lead-in ===== */
.process .section-intro { max-width: 560px; }
.finder .section-h2, .process .section-h2, .rr .section-h2, .contact .section-h2 { text-wrap: balance; }
.finder .section-intro, .process .section-intro, .rr .section-intro { text-wrap: pretty; }

/* ===== Repair or replace ===== */
.rr { padding: clamp(80px, 10vw, 130px) 0; }
.rr-grid { display: grid; grid-template-columns: 1fr 1fr minmax(290px, .92fr); gap: clamp(24px, 3.4vw, 48px); margin-top: 54px; align-items: stretch; }
.rr-col h3 { font-size: 21px; font-weight: 700; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.rr-col ul { list-style: none; }
.rr-col li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.rr-g { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; background: var(--petrol); color: var(--ink-dark); border-radius: var(--radius); padding: clamp(28px, 3vw, 38px); box-shadow: 0 22px 48px rgba(8,34,38,.2); }
.rr-g::before { content: ''; position: absolute; top: -56px; right: -56px; width: 210px; height: 210px; border-radius: 50%; border: 26px solid rgba(207,138,85,.14); }
.rr-unit { position: relative; font-size: clamp(27px, 2.5vw, 33px); font-weight: 700; line-height: 1.12; color: var(--copper-bright); text-wrap: balance; }
.rr-g p { position: relative; font-size: 14.5px; line-height: 1.65; color: var(--muted-dark); margin: 14px 0 26px; }
.rr-g .btn { position: relative; margin-top: auto; }
@media (max-width: 1000px) { .rr-grid { grid-template-columns: 1fr 1fr; } .rr-g { grid-column: 1 / -1; } }
@media (max-width: 640px) { .rr-grid { grid-template-columns: 1fr; } }

/* ===== Gas safety band (extends .emergency) ===== */
.gas-steps { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 24px; max-width: 470px; }
.gas-steps li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.6; color: var(--muted-dark); }
.gas-steps li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--copper-bright); }

.faq--pad { padding-top: clamp(80px, 10vw, 120px); }
.faq--pad .section-h2 { max-width: 720px; text-wrap: balance; }
.faq-more { max-width: 760px; margin: 30px auto 0; font-size: 15.5px; color: var(--muted); }
.faq-a a, .faq-more a { color: var(--copper-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cta-actions .btn + .cta-phone { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
