/* Roof extensions landing page. Own classes (rx-) so nothing here touches the rest of the site. */

.rx {
  --ink: #050f15;
  --ink-2: #36424b;
  --muted: #6b757c;
  --line: #e3e6e8;
  --line-2: #eef0f1;
  --brand: #1988ff;
  --sand: #f4f5f6;
  --r: 14px;
  color: var(--ink);
}
.rx section { position: relative; }
/* the same container as the rest of the site, so everything lines up with the nav and the footer */
.rx-wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 1rem; position: relative; }
.rx-inner { max-width: 1240px; }
/* the page uses the site's own section label, so the spacing below it is set here */
.rx .label-wrapper { margin-bottom: 18px; }
.rx-center .label-wrapper { justify-content: center; }
.rx h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 500; }
.rx h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; font-weight: 500; }
.rx p { color: var(--ink-2); line-height: 1.65; margin: 0 0 14px; }
.rx .lead { font-size: 18px; max-width: 62ch; }
.rx-head { max-width: 760px; margin-bottom: 52px; }
.rx-center { margin-left: auto; margin-right: auto; text-align: center; }

/* buttons */
/* the same shape as the site button: 45 high, 2px corner */
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 45px; padding: 0 1.25rem; border-radius: 2px; font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.rx-btn.primary { background: var(--brand); color: #fff; }
.rx-btn.primary:hover { background: #0d76e4; }
.rx-btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.rx-btn.ghost:hover { border-color: var(--ink); }
.rx-btn svg { flex: none; }

/* ---------- hero ---------- */
.rx-hero { padding: 172px 0 96px; background: #fff; }
.rx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.rx-hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 22px; font-weight: 500; }
.rx-hero h1 span { color: var(--brand); }
.rx-hero .lead { font-size: 19px; }
.rx-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; margin-bottom: 26px; align-items: center; }
.rx p.rx-hero-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.rx-hero-media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.rx-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-hero-badge { position: absolute; left: 20px; bottom: 20px; text-align: left; background: rgba(5, 15, 21, .82); backdrop-filter: blur(6px); color: #fff; border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.4; max-width: 260px; }
.rx-hero-badge b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 2px; }

/* ---------- facts strip ---------- */
.rx-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.rx-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.rx-fact { padding: 28px 24px; border-left: 1px solid var(--line-2); }
.rx-fact:first-child { border-left: 0; padding-left: 0; }
.rx-fact b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; }
.rx-fact span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }

/* ---------- plain text section ---------- */
.rx-block { padding: 104px 0; background: #fff; }
.rx-block.sand { background: var(--sand); }
.rx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.rx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rx-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); line-height: 1.6; }
.rx-list li b { color: var(--ink); font-weight: 500; }
.rx-tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(25, 136, 255, .12); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }

/* ---------- before / after ---------- */
.rx-ba { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #0b1319; user-select: none; touch-action: pan-y; }
.rx-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-ba-after { clip-path: inset(0 0 0 var(--split, 50%)); }
.rx-ba-line { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(5, 15, 21, .12); }
.rx-ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(5, 15, 21, .28); cursor: ew-resize; }
.rx-ba-tag { position: absolute; top: 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--ink); padding: 7px 12px; border-radius: 999px; pointer-events: none; }
.rx-ba-tag.left { left: 18px; }
.rx-ba-tag.right { right: 18px; background: var(--brand); color: #fff; }
/* .rx p sets a margin, so this needs the same weight to beat it */
.rx p.rx-ba-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 34px 0 0; }

/* ---------- the four ways ---------- */
.rx-ways { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.rx-tabs { display: grid; gap: 10px; }
.rx-tab { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; cursor: pointer; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; transition: border-color .18s, box-shadow .18s, transform .18s; }
.rx-tab:hover { border-color: #c9d0d5; }
.rx-tab.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.rx-tab-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.rx-tab.on .rx-tab-n { color: var(--brand); }
.rx-tab b { display: block; font-weight: 500; margin-bottom: 3px; }
.rx-tab span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.rx-way-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); position: relative; }
.rx-way-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-way-copy { margin-top: 18px; }
.rx-way-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.rx-way-meta div { font-size: 14px; color: var(--muted); }
.rx-way-meta b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }

/* ---------- steps ---------- */
.rx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rx-step { background: #fff; padding: 28px 26px 30px; }
.rx-step-n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; font-weight: 500; margin-bottom: 14px; }
.rx-step p { margin: 0; font-size: 15px; }

/* ---------- weight ---------- */
.rx-bars { display: grid; gap: 18px; margin-top: 8px; }
.rx-bar-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: center; font-size: 15px; }
.rx-bar { height: 12px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.rx-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.rx-bar-row.on i { background: var(--brand); }
.rx-bar-row span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- gallery ---------- */
.rx-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rx-gal figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.rx-gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rx-gal figcaption { padding: 20px 20px 24px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.rx-gal figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 6px; }

/* ---------- faq ---------- */
.rx-faq { max-width: 860px; margin: 0 auto; }
.rx-q { border-bottom: 1px solid var(--line); }
.rx-q summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 18px; font-weight: 500; position: relative; }
.rx-q summary::-webkit-details-marker { display: none; }
.rx-q summary:after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.rx-q[open] summary:after { transform: translateY(-30%) rotate(-135deg); }
.rx-q p { padding-bottom: 22px; margin: 0; max-width: 72ch; }

/* ---------- closing form ---------- */
.rx-cta { padding: 108px 0 116px; background: var(--ink); color: #fff; }
.rx-cta h2 { color: #fff; }
.rx-cta p { color: rgba(255, 255, 255, .72); }
.rx-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; }
.rx-form { display: grid; gap: 14px; background: #fff; padding: 30px; border-radius: var(--r); }
/* the fields are the contact page fields, on a white card instead of a dark one */
.rx-form input, .rx-form textarea { width: 100%; font: inherit; font-size: 1rem; line-height: 1; color: var(--ink); background: #f4f5f6; border: 1px solid var(--line); border-radius: 6px; padding: 26px 20px 22px; }
.rx-form input::placeholder, .rx-form textarea::placeholder { color: #939393; }
.rx-form textarea { min-height: 150px; line-height: 1.5; padding-top: 22px; resize: vertical; }
.rx-form input:focus, .rx-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(25, 136, 255, .18); }
.rx-form .rx-btn { justify-content: center; width: 100%; border: 0; cursor: pointer; }
.rx-form small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.rx-cta-points { display: grid; gap: 18px; margin-top: 30px; }
.rx-cta-point { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.55; }
.rx-cta-point b { color: #fff; font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .rx-hero { padding-top: 112px; }
  .rx-hero-grid, .rx-two, .rx-ways, .rx-cta-grid { grid-template-columns: 1fr; gap: 34px; }
  .rx-facts { grid-template-columns: 1fr 1fr; }
  .rx-fact { border-left: 0; padding-left: 0; }
  .rx-steps { grid-template-columns: 1fr 1fr; }
  .rx-gal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rx-wrap { padding: 0 1rem; }
  .rx-block, .rx-cta { padding: 60px 0; }
  .rx-facts, .rx-steps, .rx-gal { grid-template-columns: 1fr; }
  .rx-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .rx-bar-row span { justify-self: start; }
  .rx-hero-cta .rx-btn { width: 100%; justify-content: center; }
}

/* this page has a white hero, so the fixed nav needs a background once it leaves it */
body.rx-page .navbar { transition: background-color .25s ease, box-shadow .25s ease; }
body.rx-page .navbar.rx-solid { background-color: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(5, 15, 21, .09); }
body.rx-page { background-color: #fff; }
.rx-consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; color: #6b757c; line-height: 1.5; }
.rx-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #1988ff; }

/* nothing on this page scrolls sideways, so a stray wide element can never pull a scrollbar in */
.rx { overflow-x: clip; }

/* the site's own blue button, used as the form's submit */
.rx-submit { width: 100%; border: 0; cursor: pointer; font: inherit; margin-top: 4px; }
.rx-submit .cta-text-wrapper { flex: 1; }
.rx-hero-cta .cta-button.primary { margin: 0; }
.rx-hero-cta .rx-btn.ghost { height: 45px; }
@media (max-width: 640px) {
  .rx-hero-cta { display: grid; grid-template-columns: 1fr; }
  .rx-hero-cta .cta-button.primary { width: 100%; }
  .rx-hero-cta .rx-btn.ghost { width: 100%; height: 45px; }
}

/* the photo the client sends with the enquiry */
.rx-file { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: center; border: 1px dashed #c9d0d5; border-radius: 6px; padding: 18px 20px; cursor: pointer; color: var(--muted); transition: border-color .18s, background-color .18s; }
.rx-file:hover { border-color: var(--brand); background: rgba(25, 136, 255, .04); }
.rx-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rx-file-t b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.rx-file-t small { display: block; font-size: 12.5px; line-height: 1.4; }
.rx-file.has-file { border-style: solid; border-color: var(--brand); background: rgba(25, 136, 255, .05); }

/* the reveal: one quiet move, nothing jumps */
.rx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); will-change: opacity, transform; }
.rx-reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.rx-bar i { transition: width 1s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  .rx-reveal { opacity: 1; transform: none; transition: none; }
  .rx-bar i { transition: none; }
}

/* The middle of the job is the part people actually ask about, so it gets its
   own step beside the finished house rather than being left out. */
.rx-ba-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto 26px; }
.rx-ba-step { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.rx-ba-step:hover { border-color: var(--ink); }
.rx-ba-step.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 10px 26px rgba(25, 136, 255, .14); }
.rx-ba-step-n { font-size: 12px; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rx-ba-step.on .rx-ba-step-n { color: var(--brand); }
.rx-ba-step b { font-size: 16px; font-weight: 500; letter-spacing: -.2px; }
.rx-ba-step small { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* The second note on the hero picture. It sits in the opposite corner and wears
   the brand colour, because it is an offer rather than a caption. */
.rx-hero-badge.second { left: auto; bottom: auto; right: 20px; top: 20px; background: var(--brand); max-width: 250px; }
.rx-hero-badge.second b { display: flex; align-items: center; gap: 7px; }
.rx-hero-badge.second b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }
@media (max-width: 860px) {
  .rx-ba-steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  .rx-ba-step { padding: 13px 15px; }
  .rx-hero-badge.second { position: static; max-width: none; margin-top: 10px; border-radius: 10px; }
}

/* ==========================================================================
   Three moments cut into one block. All three are on screen at once, each as a
   slice; point at one and it opens out and takes the width, while the other two
   stay as slivers so nobody loses the thread.
   ========================================================================== */
.rx-tri { display: flex; gap: 4px; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #0b1319; }
.rx-tri-p { position: relative; flex: 1 1 0; min-width: 0; border: 0; padding: 0; background: none; cursor: pointer; overflow: hidden; transition: flex-grow .55s cubic-bezier(.22, 1, .36, 1); }
.rx-tri-p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* every slice shows the part of its picture that matters, not its left edge */
.rx-tri-p[data-i="0"] img { object-position: 62% center; }
.rx-tri-p[data-i="1"] img { object-position: 50% center; }
.rx-tri-p[data-i="2"] img { object-position: 38% center; }
.rx-tri[data-open="0"] .rx-tri-p[data-i="0"],
.rx-tri[data-open="1"] .rx-tri-p[data-i="1"],
.rx-tri[data-open="2"] .rx-tri-p[data-i="2"] { flex-grow: 22; }
.rx-tri[data-open="0"] .rx-tri-p[data-i="0"] img,
.rx-tri[data-open="1"] .rx-tri-p[data-i="1"] img,
.rx-tri[data-open="2"] .rx-tri-p[data-i="2"] img { object-position: center; }
.rx-tri-p img { transition: object-position .55s cubic-bezier(.22, 1, .36, 1); }
.rx-tri-tag { position: absolute; left: 14px; top: 14px; z-index: 1; max-width: calc(100% - 28px); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--ink); padding: 7px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-tri-p:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.rx-tri-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.rx-tri-legend button { display: grid; gap: 4px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.rx-tri-legend b { font-size: 15px; font-weight: 500; letter-spacing: -.2px; }
.rx-tri-legend small { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.rx-tri-legend button:hover b { color: var(--brand); }

@media (max-width: 860px) {
  /* on a phone the three stack, because a sliver of a photo on a small screen
     is not a photo at all */
  .rx-tri { display: grid; grid-template-columns: 1fr; gap: 8px; aspect-ratio: auto; background: none; }
  .rx-tri-p { aspect-ratio: 16 / 10; border-radius: var(--r); }
  .rx-tri-p img, .rx-tri[data-open] .rx-tri-p img { object-position: center; }
  .rx-tri-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-tri-p, .rx-tri-p img { transition: none; }
}

/* Under the four ways, the thing that matters more than any of them: none of
   this is a catalogue. It sits with the choices, not on a photograph. */
.rx-own { margin-top: 6px; padding: 18px 20px; border: 1.5px dashed var(--line); border-radius: var(--r); background: #fff; }
.rx-own b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.2px; margin-bottom: 6px; }
.rx-own p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.rx-own-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--brand); }
.rx-own-link:hover { gap: 11px; }
.rx-own-link svg { transition: transform .2s; }
.rx-own:hover { border-color: var(--brand); }
