/* Billy Stewart's Handyman Services
   Colours come from the BSHS badge: workwear black, tool-handle red, steel grey, white. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3 Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  --black: #121212;
  --black-2: #1e1e1f;
  --red: #c62032;
  --red-dark: #a3182a;
  --steel: #9aa0a6;
  --white: #ffffff;
  --paper: #f3f4f5;
  --ink: #151516;
  --muted: #555b62;
  --line: #dde0e3;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Source Sans 3 Variable", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 600; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 2.9rem; padding: .6rem 1.2rem; border: 2px solid transparent; border-radius: var(--radius); font: 700 1.05rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--lg { min-height: 3.4rem; padding-inline: 1.5rem; font-size: 1.15rem; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--black); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--white); border-bottom: 1px solid #2c2c2e; }
.top__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand__badge { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.brand__name span { display: block; color: var(--steel); font-weight: 600; font-size: .95rem; letter-spacing: .06em; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: #d9dbde; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--red); }
.top__call { flex: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .top__call { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.1rem; }
  .brand__name span { font-size: .8rem; }
  .top__call span { display: none; }
  .top__call { padding-inline: .8rem; }
}

/* Hero */
.hero { background: var(--black); color: var(--white); padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 4rem; } }
.kicker { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: .9rem; }
.hero .lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: #e4e6e8; max-width: 34em; margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.proof { margin-top: 1.5rem; color: #c3c7cb; }
.proof strong { color: var(--white); }
.hero__photo { position: relative; justify-self: center; width: min(100%, 26rem); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 14px 14px 0 var(--red); }
@media (max-width: 600px) { .hero__photo { width: calc(100% - 10px); justify-self: start; } .hero__photo img { box-shadow: 10px 10px 0 var(--red); } }
.hero__photo figcaption { margin-top: 1.4rem; font-size: .95rem; color: #b9bdc2; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--paper); }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__head p { margin-top: .9rem; color: var(--muted); font-size: 1.15rem; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.service { border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.service__icon { width: 2.4rem; height: 2.4rem; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); }

/* Recent work */
.job { display: grid; gap: 1.5rem; }
.job + .job { margin-top: clamp(3rem, 7vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line); }
.job__head { max-width: 38rem; }
.job__head p { margin-top: .5rem; color: var(--muted); }
.steps, .trio { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps, .trio { grid-template-columns: minmax(0, 1fr); } }
.steps img, .trio img, .pair img { width: 100%; border-radius: var(--radius); background: var(--line); }
.steps img { aspect-ratio: 4 / 3; object-fit: cover; }
.trio img { aspect-ratio: 1; object-fit: cover; }
.steps figcaption { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; font-weight: 600; }
.tag { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 3px; background: var(--black); color: var(--white); }
.tag--done { background: var(--red); }
@media (min-width: 900px) {
  .job--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 3rem; }
}
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pair img { aspect-ratio: 4 / 5; object-fit: cover; }
.more { margin-top: 2.5rem; font-weight: 700; }
.more a { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* Areas */
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.area-list li { font-family: var(--display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; padding: .45rem 1rem; border: 2px solid var(--black); border-radius: 999px; }
.area-list li:first-child { background: var(--black); color: var(--white); }
.areas__note { margin-top: 1.5rem; color: var(--muted); }

/* Reviews band */
.band { background: var(--black); color: var(--white); padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.band__figure { font-family: var(--display); font-weight: 700; font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: .9; color: var(--red); }
.band__text { flex: 1 1 18rem; font-size: 1.3rem; line-height: 1.35; max-width: 26rem; }

/* Contact */
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.contact .section__head { margin-bottom: 0; }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-weight: 600; }
.contact__list dd { font-weight: 600; overflow-wrap: anywhere; }
.contact__list a { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .2em; }
@media (max-width: 480px) { .contact__list > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }

/* Footer */
.foot { background: var(--black-2); color: #cfd2d6; padding-block: 2.5rem; font-size: .98rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.foot__badge { width: 96px; height: 96px; border-radius: 50%; }
.foot__name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--white); }
.foot__small { margin-top: .4rem; font-size: .88rem; color: #a2a7ad; }
.foot a { color: var(--white); }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px)); }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--black); border-top: 1px solid #333; }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.6rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--white); }
  .callbar a:first-child { background: var(--red); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
