/* Demo website: Redbrook Plumbing & Drainage (fictional).
   Generated page, hand-written stylesheet. Deliberately light and plain — the
   real site is dark, and a demo that looks like the agency does not read as
   "this could be yours".

   Everything is prefixed .pl- so it can never collide with the site's own CSS,
   which shares the same origin. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --pl-ink: #0b1b2b;
  --pl-body: #3b4c5f;
  --pl-muted: #64768a;
  --pl-line: #e2e8f0;
  --pl-bg: #ffffff;
  --pl-alt: #f5f8fb;
  --pl-blue: #1263d2;
  --pl-blue-dark: #0d4ea8;
  --pl-red: #d92d20;
  --pl-red-dark: #b42318;
  --pl-green: #0b8a4b;
  --pl-radius: 14px;
  --pl-callbar: 0px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pl-body);
  background: var(--pl-bg);
  font-size: 17px;
  line-height: 1.65;
  /* room for the sticky call bar so the footer is never trapped under it */
  padding-bottom: var(--pl-callbar);
}

h1, h2, h3 { color: var(--pl-ink); line-height: 1.2; margin: 0 0 .6rem; font-weight: 800; }
h1 { font-size: clamp(2rem, 6vw, 3.15rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); letter-spacing: -.015em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--pl-blue); }

/* Visible focus everywhere. Keyboard users are not an edge case. */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--pl-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.pl-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--pl-ink); color: #fff; padding: .8rem 1.2rem;
  text-decoration: none; border-radius: 0 0 8px 0;
}
.pl-skip:focus { left: 0; }

.pl-wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.pl-narrow { width: min(720px, 100% - 2.5rem); }

/* ---------- demo bar : the honest label, always on screen ---------- */
.pl-demobar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, #4f46e5, #0891b2);
  color: #fff; font-size: .78rem;
}
.pl-demobar-in {
  width: min(1140px, 100% - 1.5rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: center;
  gap: .35rem .9rem; flex-wrap: wrap; padding: .42rem 0; text-align: center;
  line-height: 1.35;
}
.pl-demobar p { margin: 0; }
.pl-demobar span { opacity: .82; }
.pl-demobar a {
  color: #fff; font-weight: 700; white-space: nowrap;
  border-bottom: 1.5px solid rgba(255,255,255,.55); text-decoration: none;
}
.pl-demobar a:hover { border-bottom-color: #fff; }

/* ---------- header ---------- */
.pl-head { border-bottom: 1px solid var(--pl-line); background: #fff; }
.pl-head-in {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .85rem 0; flex-wrap: wrap;
}
.pl-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.pl-brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: var(--pl-blue); color: #fff;
  display: grid; place-items: center;
}
.pl-brand-mark svg { width: 23px; height: 23px; }
.pl-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.pl-brand-text strong { color: var(--pl-ink); font-size: 1.02rem; }
.pl-brand-text small { color: var(--pl-muted); font-size: .8rem; }

.pl-nav { display: none; gap: 1.4rem; margin-inline-start: auto; }
.pl-nav a { color: var(--pl-body); text-decoration: none; font-weight: 600; font-size: .93rem; }
.pl-nav a:hover { color: var(--pl-blue); }

.pl-head-call {
  display: none; align-items: center; gap: .5rem;
  color: var(--pl-ink); font-weight: 800; text-decoration: none; font-size: 1.05rem;
}
.pl-head-call svg { width: 18px; height: 18px; color: var(--pl-blue); }

/* ---------- hero ---------- */
.pl-hero {
  padding: 3rem 0 2.6rem;
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(18,99,210,.10), transparent 65%),
    linear-gradient(180deg, #fbfdff, #fff);
}
.pl-eyebrow {
  display: inline-flex; align-items: center; gap: .42rem;
  color: var(--pl-blue); font-weight: 700; font-size: .87rem;
  background: rgba(18,99,210,.09); padding: .38rem .8rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.pl-eyebrow svg { width: 15px; height: 15px; }
.pl-hero h1 { max-width: 17ch; }
.pl-lede { font-size: 1.1rem; max-width: 56ch; margin-bottom: 1.7rem; }

.pl-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.7rem; }

.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 56px; padding: .85rem 1.5rem; border-radius: var(--pl-radius);
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  font-size: 1rem; transition: background-color .15s, border-color .15s, transform .15s;
}
.pl-btn-call {
  background: var(--pl-red); color: #fff; text-align: start;
  box-shadow: 0 10px 26px -12px rgba(217,45,32,.85);
}
.pl-btn-call:hover { background: var(--pl-red-dark); }
.pl-btn-call svg { width: 21px; height: 21px; flex: none; }
.pl-btn-call span { display: flex; flex-direction: column; line-height: 1.25; }
.pl-btn-call strong { font-size: 1.18rem; }
.pl-btn-call small { font-weight: 600; opacity: .9; font-size: .78rem; }
.pl-btn-ghost { background: #fff; color: var(--pl-ink); border-color: var(--pl-line); }
.pl-btn-ghost:hover { border-color: var(--pl-blue); color: var(--pl-blue); }

.pl-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pl-trust li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-weight: 600; color: var(--pl-ink); font-size: .95rem;
}
.pl-trust svg { width: 17px; height: 17px; color: var(--pl-green); flex: none; margin-top: .22rem; }

/* ---------- emergency band ---------- */
.pl-emergency { background: var(--pl-ink); color: #cfe0f0; }
.pl-emergency-in {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.6rem 0; flex-wrap: wrap;
}
.pl-emergency-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: rgba(217,45,32,.18); color: #ff8a7d;
  display: grid; place-items: center;
}
.pl-emergency-icon svg { width: 25px; height: 25px; }
.pl-emergency h2 { color: #fff; font-size: 1.2rem; margin-bottom: .2rem; }
.pl-emergency p { margin: 0; font-size: .95rem; max-width: 62ch; }
.pl-emergency div { flex: 1 1 320px; }
.pl-btn-emergency { background: var(--pl-red); color: #fff; margin-inline-start: auto; }
.pl-btn-emergency:hover { background: var(--pl-red-dark); }

/* ---------- generic section ---------- */
.pl-section { padding: 3.4rem 0; }
.pl-alt { background: var(--pl-alt); }
.pl-section-intro { max-width: 62ch; color: var(--pl-muted); margin-bottom: 2rem; }
.pl-sample {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--pl-muted); background: #fff; border: 1px solid var(--pl-line);
  padding: .22rem .55rem; border-radius: 999px; vertical-align: middle;
}

/* ---------- services ---------- */
.pl-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pl-card {
  background: #fff; border: 1px solid var(--pl-line); border-radius: 16px;
  padding: 1.5rem 1.35rem; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.pl-card:hover { border-color: rgba(18,99,210,.45); transform: translateY(-2px); }
.pl-card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: .9rem;
  background: rgba(18,99,210,.10); color: var(--pl-blue);
  display: grid; place-items: center;
}
.pl-card-icon svg { width: 24px; height: 24px; }
.pl-card > p:not(.pl-price) { font-size: .95rem; flex: 1; }
.pl-price {
  margin: .6rem 0 0; padding-top: .85rem; border-top: 1px solid var(--pl-line);
  font-weight: 800; color: var(--pl-ink);
}

/* ---------- why ---------- */
.pl-why { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pl-why-icon {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: .75rem;
  background: rgba(11,138,75,.12); color: var(--pl-green);
  display: grid; place-items: center;
}
.pl-why-icon svg { width: 21px; height: 21px; }
.pl-why p { font-size: .95rem; margin: 0; }

/* ---------- process ---------- */
.pl-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: none;
}
.pl-step-no {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--pl-blue); color: #fff; font-weight: 800; margin-bottom: .7rem;
}
.pl-steps p { font-size: .94rem; margin: 0; }

/* ---------- areas ---------- */
.pl-areas {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.pl-areas li {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--pl-line); border-radius: 10px;
  padding: .7rem .9rem; font-weight: 600; color: var(--pl-ink); font-size: .94rem;
}
.pl-areas svg { width: 16px; height: 16px; color: var(--pl-blue); flex: none; }

/* ---------- reviews ---------- */
.pl-reviews { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pl-reviews figure {
  margin: 0; background: var(--pl-alt); border: 1px solid var(--pl-line);
  border-radius: 16px; padding: 1.5rem 1.35rem;
}
.pl-reviews blockquote { margin: 0 0 1rem; }
.pl-reviews blockquote p { margin: 0; color: var(--pl-ink); font-size: .97rem; }
.pl-reviews figcaption { font-weight: 700; color: var(--pl-ink); font-size: .9rem; }
.pl-reviews figcaption span { display: block; font-weight: 500; color: var(--pl-muted); font-size: .85rem; }

/* ---------- faq : <details>, so it works with no JavaScript ---------- */
.pl-faq { display: grid; gap: .7rem; }
.pl-faq details {
  background: #fff; border: 1px solid var(--pl-line); border-radius: 12px;
}
.pl-faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.2rem;
  font-weight: 700; color: var(--pl-ink); position: relative; padding-inline-end: 3rem;
  min-height: 52px; display: flex; align-items: center;
}
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after {
  content: ""; position: absolute; inset-inline-end: 1.2rem; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-inline-end: 2.5px solid var(--pl-muted); border-block-end: 2.5px solid var(--pl-muted);
  transform: rotate(45deg); transition: transform .18s;
}
.pl-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.pl-faq details div { padding: 0 1.2rem 1.15rem; }
.pl-faq details p { margin: 0; font-size: .96rem; }

/* ---------- booking form ---------- */
.pl-book { padding: 3.4rem 0; background: var(--pl-bg); }
.pl-form { display: grid; gap: 1.1rem; }
.pl-field { display: grid; gap: .4rem; margin: 0; }
.pl-field label { font-weight: 700; color: var(--pl-ink); font-size: .93rem; }
.pl-field input, .pl-field textarea {
  font: inherit; font-size: 16px;  /* 16px stops iOS zooming the page on focus */
  color: var(--pl-ink); background: #fff;
  border: 1.5px solid var(--pl-line); border-radius: 10px;
  padding: .85rem .95rem; min-height: 52px; width: 100%;
}
.pl-field textarea { min-height: 118px; resize: vertical; }
.pl-field input:focus, .pl-field textarea:focus { border-color: var(--pl-blue); }
.pl-btn-submit {
  background: var(--pl-blue); color: #fff; cursor: pointer; width: 100%;
  font: inherit; font-weight: 700; font-size: 1.02rem;
}
.pl-btn-submit:hover { background: var(--pl-blue-dark); }
.pl-reassure {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  color: var(--pl-muted); font-size: .87rem; margin: 0;
}
.pl-reassure svg { width: 16px; height: 16px; color: var(--pl-green); flex: none; }
.pl-urgent {
  margin: 1.6rem 0 0; text-align: center; font-weight: 700; color: var(--pl-ink);
}
.pl-urgent a { margin-inline-start: .35rem; }

/* ---------- footer ---------- */
.pl-foot { background: var(--pl-ink); color: #a9bed3; padding: 2.8rem 0 0; font-size: .93rem; }
.pl-foot-in { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pl-foot strong { color: #fff; display: block; margin-bottom: .5rem; }
.pl-foot h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.pl-foot a { color: #7fb2f5; }
.pl-foot p { margin: 0 0 .5rem; }
.pl-licence { color: #7e93a8; font-size: .85rem; }
.pl-hours { list-style: none; margin: .7rem 0; padding: 0; display: grid; gap: .3rem; }
.pl-hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.pl-emg-note { color: #ffb4ab; font-weight: 600; font-size: .87rem; }
.pl-foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pl-foot-bottom {
  border-top: 1px solid rgba(255,255,255,.11); margin-top: 2.4rem;
  padding: 1.1rem 0; font-size: .84rem; color: #7e93a8;
}
.pl-foot-bottom p { margin: 0; }

/* ---------- sticky call bar : mobile only, in the thumb zone ---------- */
.pl-callbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--pl-line);
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(6px);
}
.pl-callbar a {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--pl-red); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.05rem;
  min-height: 54px; border-radius: 12px;
}
.pl-callbar svg { width: 19px; height: 19px; }

@media (min-width: 700px) {
  .pl-nav { display: flex; }
  .pl-head-call { display: inline-flex; }
  .pl-hero { padding: 4.5rem 0 3.6rem; }
  .pl-trust { grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
  .pl-callbar { display: none; }
}

@media (max-width: 620px) {
  /* "Demo design by Virtual Vanguards" already labels the page; the second
     sentence pushed the bar to three lines and ate the fold. */
  .pl-demobar span { display: none; }
}

@media (max-width: 699px) {
  :root { --pl-callbar: 82px; }
  .pl-head-in { justify-content: space-between; }
  .pl-btn-call { width: 100%; }
  .pl-btn-ghost { width: 100%; }
  .pl-btn-emergency { margin-inline-start: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .pl-demobar, .pl-callbar, .pl-skip { display: none; }
}

/* ---------- touch targets ----------
   Every interactive element needs ~44px of reachable height. On inline links
   padding-block grows the hit area without moving the layout, which is how the
   footer phone number gets thumb-sized without becoming a button. */
.pl-demobar a { padding-block: .78rem; }
.pl-brand { min-height: 48px; }
.pl-foot a, .pl-urgent a { padding-block: .8rem; }
.pl-head-call { padding-block: .5rem; }
