/* Urgent Plumbing and Electrical
   Layout: black and blue bands with left-aligned heavy type. One house-shaped photo frame in the
   hero echoes the roofline in the logo. Services are split by trade: plumbing on light, electrical on black, building on paper. */
:root {
  color-scheme: light;
  --blue: #029DFA;        /* logo blue: always carries black text */
  --blue-lift: #46B7FF;
  --blue-deep: #0563AD;   /* blue for text and links on white */
  --blue-tint: #E3F2FE;
  --black: #000000;
  --coal: #0E161E;        /* raised surface on black */
  --ink: #0B1218;
  --slate: #44546A;
  --mist: #AEBCCA;        /* quiet text on black */
  --line: #D3DDE6;
  --line-dark: #25313D;
  --paper: #F1F5F9;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-ink: #05290F;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(56px, 8vw, 104px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--display); font-stretch: 114%; font-weight: 800; line-height: 1.06; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-stretch: 106%; font-weight: 700; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-blue :focus-visible { outline-color: var(--black); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
svg.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--paper { background: var(--paper); }
.band--black { background: var(--black); color: var(--white); }
.band--black p { color: var(--mist); }
.band--black a { color: var(--blue-lift); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 60ch; color: var(--slate); }
.band--black .lede, .hero .lede { color: var(--mist); }
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }

/* Buttons: text colour always contrasts the fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--call { background: var(--blue); color: var(--black); border-color: var(--blue); }
.btn--call:hover { background: var(--blue-lift); border-color: var(--blue-lift); color: var(--black); }
.btn--wa { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.btn--wa:hover { background: #4BE285; border-color: #4BE285; color: var(--wa-ink); }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: var(--coal); color: var(--white); }
.btn--white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--white:hover { background: var(--blue-tint); color: var(--black); }
.btn--line { background: transparent; color: var(--white); border-color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--black); }
.btn--line-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn--line-dark:hover { background: var(--black); color: var(--white); }
.band--black a.btn--call, .band--black a.btn--wa { color: var(--black); }
.band--black a.btn--wa { color: var(--wa-ink); }
.band--black a.btn--line { color: var(--white); }
.band--black a.btn--line:hover { color: var(--black); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--black); color: var(--white); font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 8px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .open { display: inline-flex; align-items: center; gap: 8px; }
.topbar .open::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 87px; height: 58px; border-radius: 6px; flex: none; }
.brand span { font: 800 1.02rem/1.1 var(--display); font-stretch: 112%; }
.brand small { display: block; font: 500 .8rem/1.3 var(--body); font-stretch: 100%; color: var(--slate); }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blue); border-radius: 6px 6px 0 0; }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { min-height: 46px; padding: 8px 16px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 2px solid var(--black); border-radius: var(--radius); background: var(--white); color: var(--black); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 1040px) { .brand span { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .header-cta .btn--wa { display: none; }
  .header-cta .btn span { display: none; }
  .header-cta .btn { width: 46px; padding: 0; }
  .site-header .wrap { min-height: 68px; gap: 10px; }
  .brand img { width: 78px; height: 52px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(11, 18, 24, .45); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); padding-left: 14px; border-radius: 0; }
  .topbar .mail { display: none; }
}

/* Hero */
.hero { background: var(--black); color: var(--white); padding-block: clamp(40px, 6vw, 80px) clamp(44px, 6vw, 72px); }
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--blue); }
.house { background: var(--blue); padding: 11px; width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 5 / 6;
  clip-path: polygon(50% 0, 72% 11.4%, 72% 3%, 83% 3%, 83% 17.2%, 100% 26%, 100% 100%, 0 100%, 0 26%); }
.house img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  clip-path: polygon(50% 0, 72% 11.4%, 72% 3%, 83% 3%, 83% 17.2%, 100% 26%, 100% 100%, 0 100%, 0 26%); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-dark); margin-top: clamp(32px, 5vw, 56px); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; }
.facts svg { color: var(--blue); width: 22px; height: 22px; }
@media (min-width: 900px) {
  .hero .wrap.hero-grid { grid-template-columns: 1.15fr .85fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li { border-bottom: 0; padding: 20px 24px; border-left: 1px solid var(--line-dark); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}
.hero--page { padding-block: clamp(40px, 6vw, 76px); }
.hero--page .hero-copy { max-width: 820px; }

/* Trades */
.trade-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 780px; }
.trade-mark { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem/1 var(--body); color: var(--blue-deep); }
.band--black .trade-mark { color: var(--blue); }
.trade-mark svg { width: 26px; height: 26px; }
.tiles { display: grid; gap: clamp(24px, 3vw, 36px) clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.tiles--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); }
.tile { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper); margin-bottom: 6px; }
.tile p { color: var(--slate); font-size: 1rem; }
/* Service with no job photo yet: swap the <div class="tile-ph"> for an <img> when one arrives */
.tile-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--black); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.tile-ph svg { width: 34%; height: auto; fill: currentColor; }
.band--black .tile p { color: var(--mist); }
.more { margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.band--black .more { border-color: var(--line-dark); }
.more ul { display: grid; gap: 8px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.more li { display: flex; gap: 10px; align-items: baseline; }
.more li::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; transform: translateY(-1px); }

/* Emergency band */
.urgent { background: var(--blue); color: var(--black); padding-block: clamp(40px, 6vw, 68px); }
.urgent .wrap { display: grid; gap: 24px; align-items: center; }
.urgent h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); }
.urgent p { font-weight: 500; font-size: 1.15rem; max-width: 56ch; margin-top: 14px; }
@media (min-width: 900px) { .urgent .wrap { grid-template-columns: 1fr auto; } .urgent .actions { flex-direction: column; } }

/* Steps: a real sequence, so numbered */
.steps { display: grid; gap: 28px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 4px solid var(--black); }
.steps li::before { content: counter(step); font: 800 2.4rem/1 var(--display); font-stretch: 120%; color: var(--blue-deep); }
.steps p { color: var(--slate); }

/* Gallery */
.gallery { columns: 3 160px; column-gap: clamp(14px, 2vw, 22px); }
.gallery figure { margin: 0 0 clamp(18px, 2.4vw, 26px); break-inside: avoid; }
.gallery img { width: 100%; border-radius: var(--radius); background: var(--paper); }
.gallery figcaption { padding-top: 8px; font-size: .95rem; color: var(--slate); }
.gallery figcaption b { color: var(--ink); font-weight: 700; display: block; }

/* Areas */
.areas { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); margin-block: 8px 20px; }
.areas li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.band--black .areas li { border-color: var(--line-dark); }
.areas svg { color: var(--blue-deep); }
.band--black .areas svg { color: var(--blue); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } }
@media (min-width: 900px) { .split--3 { grid-template-columns: repeat(3, 1fr); } }
.split > * { min-width: 0; }
.prose { display: grid; gap: 16px; }
.prose p { max-width: 62ch; }
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair figure { margin: 0; }
.pair img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.pair figcaption { font-size: .95rem; color: var(--slate); padding-top: 8px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font: 700 1.1rem/1.3 var(--body); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 1.8rem/1 var(--body); color: var(--blue-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--slate); max-width: 68ch; }

/* Contact */
.ways { display: grid; gap: 0; border-top: 4px solid var(--black); }
.way { display: grid; gap: 14px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.way h2 { font-size: 1rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--slate); display: flex; align-items: center; gap: 10px; }
.way h2 svg { color: var(--blue-deep); width: 22px; height: 22px; }
.way .big { font: 800 clamp(1.5rem, 4.6vw, 2.5rem)/1.1 var(--display); font-stretch: 112%; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.way .big.is-long { font-size: clamp(1.1rem, 3.4vw, 1.7rem); }
.way p { color: var(--slate); }
@media (min-width: 800px) { .way { grid-template-columns: 200px 1fr auto; } }
.quote-list { display: grid; gap: 14px; counter-reset: q; margin-block: 8px; }
.quote-list li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.quote-list li::before { content: counter(q); width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue); color: var(--black); font: 800 1.1rem/1 var(--display); border-radius: 50%; }
.band--black .quote-list li { color: var(--white); }

/* Closing call to action */
.closer .wrap { display: grid; gap: 24px; }
.closer h2 { max-width: 20ch; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding-block: clamp(44px, 6vw, 72px) 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue-lift); text-decoration: underline; }
.foot-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.foot-grid h2 { font: 700 1rem/1.2 var(--body); font-stretch: 100%; letter-spacing: 0; color: var(--blue); margin-bottom: 14px; }
.foot-grid ul { display: grid; gap: 10px; }
.foot-grid li { display: flex; gap: 10px; align-items: flex-start; color: var(--mist); }
.foot-grid li svg { margin-top: .28em; color: var(--blue); }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.1fr .6fr 1.4fr 1.15fr; } }
.foot-brand img { width: 150px; height: 100px; border-radius: 6px; margin-bottom: 16px; }
.foot-brand p { color: var(--mist); max-width: 34ch; }
.legal { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line-dark); padding-block: 20px; color: var(--mist); font-size: .92rem; }

/* Floating contact buttons: hidden while the footer is on screen */
.float { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: none; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -14px rgba(11, 18, 24, .5); transition: transform .25s ease, opacity .25s ease, visibility .25s; }
.float .btn { flex: 1 1 0; min-width: 0; }
.float.is-hidden { transform: translateY(120%); opacity: 0; visibility: hidden; pointer-events: none; }
.float-wa { position: fixed; z-index: 60; right: 24px; bottom: 24px; box-shadow: 0 12px 26px -10px rgba(5, 41, 15, .7); transition: transform .25s ease, opacity .25s ease, visibility .25s; }
.float-wa.is-hidden { transform: translateY(160%); opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 860px) {
  .float { display: flex; }
  .float-wa { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .float-wa, .btn { transition: none; }
}
