:root {
  /* Colour */
  --red: #D12727;           /* CTAs, accents. Adjusted from #D62828 so off-white text passes AA */
  --red-on-dark: #E86464;   /* small red text on black only */
  --black: #141414;
  --white: #F4F1EA;
  --concrete: #8C8C88;      /* borders and muted text on black */
  --concrete-dark: #5E5E5B; /* muted text and form borders on off-white */
  --sand: #C8A46A;          /* tape divider, focus ring on dark, sparingly */

  /* Type */
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-h2: clamp(2rem, 1.55rem + 2vw, 3.25rem);
  --text-display: clamp(2.5rem, 1.3rem + 5.2vw, 6rem);
  --leading-tight: 1.02;
  --leading-body: 1.6;

  /* Space and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --gutter: 1rem;
  --measure: 65ch;
  --border: 3px;
  --radius: 0;

  /* Motion */
  --dur-press: 90ms;
  --dur-reveal: 480ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-shift: 16px;
  --parallax-max: 40px;

  /* Concrete grain: a static tile */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .55 0 0 0 0 .53 0 0 0 .55 -.12'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");

  /* Context: the defaults are for off-white sections */
  --bg: var(--white);
  --fg: var(--black);
  --muted: var(--concrete-dark);
  --focus: var(--black);
  --press-shadow: var(--black);
}

.on-dark {
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--concrete);
  --focus: var(--sand);
  --press-shadow: var(--white);
}

/* Surfaces */
.surface { background-color: var(--bg); background-image: var(--grain); color: var(--fg); }

/* Type */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: var(--leading-tight); text-transform: uppercase; letter-spacing: -0.01em; }
.display { font-size: var(--text-display); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
body { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body); }

/* Focus */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0.75rem 1.5rem; min-height: 48px; line-height: 1.1;
  font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; text-decoration: none;
  border: var(--border) solid var(--press-shadow); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--press-shadow);
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out);
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--secondary { background: var(--bg); color: var(--fg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--press-shadow); }

/* Stock photo treatment */
.photo { position: relative; display: block; overflow: hidden; background: var(--black); isolation: isolate; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3) brightness(0.72); }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--red); opacity: 0.92; mix-blend-mode: multiply; pointer-events: none; }
.photo--text::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--black); opacity: 0.35; pointer-events: none; }
.photo__content { position: absolute; z-index: 3; }

/* Dividers: decorative, always aria-hidden */
.rule-tape {
  height: 22px; background-color: var(--sand); background-repeat: repeat-x; background-position: 0 0;
  background-image:
    linear-gradient(90deg, var(--black) 2px, transparent 2px),
    linear-gradient(90deg, var(--black) 2px, transparent 2px),
    linear-gradient(90deg, var(--black) 2px, transparent 2px);
  background-size: 80px 16px, 40px 11px, 8px 6px;
}
.rule-hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--black) 14px 28px); }

/* Motion. Content is only hidden once JS has added .js to <html> */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.parallax-layer { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .parallax-layer { transform: none !important; will-change: auto; }
  .btn:active { transform: none; }
}

/* ---------- Page ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--black); color: var(--white); }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: 0.2em; }
strong, th { font-weight: 700; }

.container { width: 100%; max-width: 75rem; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-6); }
.flow > * + * { margin-top: var(--space-3); }
.flow > h2 + * { margin-top: var(--space-4); }
.lead { font-size: var(--text-lg); line-height: 1.4; }
.split { display: grid; gap: var(--space-5); align-items: center; }
.split--top { align-items: start; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-3); top: -5rem; z-index: 100; padding: 0.75rem 1rem; background: var(--white); color: var(--black); font-weight: 700; }
.skip-link:focus { top: var(--space-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: 0.625rem; }
.site-header__logo { display: block; flex: none; }
.site-header__logo img { display: block; height: 40px; width: auto; }
.btn--compact { flex: none; padding-inline: 1rem; font-size: 0.875rem; box-shadow: 3px 3px 0 var(--press-shadow); }
.site-nav { display: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(calc(100svh - 4rem), 44rem); overflow: hidden; isolation: isolate; background: var(--black); color: var(--white); }
.hero__photo { position: absolute; inset: -40px 0 0; z-index: 0; }
.hero__photo picture { display: contents; }
.hero__photo img { object-position: 50% 40%; }
.hero__plumb { position: absolute; top: -40px; right: var(--space-4); z-index: 1; width: 48px; height: clamp(150px, 28svh, 400px); color: var(--white); }
.hero__content { position: relative; z-index: 2; padding-block: var(--space-5) 5.5rem; }
.hero__sub { max-width: 36rem; margin-top: var(--space-3); font-size: var(--text-lg); line-height: 1.4; }
.hero .btn-row { margin-top: var(--space-4); }
.hero__punch { display: block; }

/* ---------- Photos in the page ---------- */
.photo--frame { aspect-ratio: 3 / 2; }
.bulk__photo { aspect-ratio: 4 / 3; }
.bulk__photo img { position: absolute; inset: 0; object-position: 50% 100%; }

/* ---------- Stock ---------- */
.stock-grid { display: grid; gap: var(--space-4); padding: 0; list-style: none; margin-block: var(--space-5) !important; }
.stock-grid li { padding-top: var(--space-3); border-top: var(--border) solid var(--red); }
.stock-grid p { margin-top: var(--space-2); }

/* ---------- Custom and bulk ---------- */
.bulk { display: grid; gap: var(--space-5); }
.steps { display: grid; gap: var(--space-3); padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 2.5rem; padding-left: 3rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.2rem; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--red); }

.quote-form { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-4); }
.field label { display: block; margin-bottom: var(--space-2); font-weight: 700; }
.field input, .field select {
  display: block; width: 100%; min-height: 48px; padding: 0.625rem 0.75rem;
  font: inherit; color: var(--black); background-color: var(--white);
  border: var(--border) solid var(--concrete); border-radius: var(--radius);
}
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23141414' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 12px 8px;
}

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: var(--space-4); }
.review { padding-left: var(--space-4); border-left: 6px solid var(--red); }
.review blockquote { font-size: var(--text-lg); line-height: 1.4; }
.review figcaption { margin-top: var(--space-2); font-weight: 700; }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th[scope="row"], .hours td { padding: 0.625rem 0; border-bottom: 2px solid var(--concrete-dark); }
.hours th[scope="row"] { text-align: left; font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
address { font-size: var(--text-lg); line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer__inner { display: grid; gap: var(--space-5); padding-block: var(--space-6); }
.site-footer img { display: block; height: 48px; width: auto; }
.site-footer p { margin-top: var(--space-3); color: var(--muted); }
.contact-list { display: grid; gap: var(--space-2); padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 6rem 1fr; align-items: center; min-height: 44px; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 40;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.125rem;
  font-family: var(--font-display); font-size: 0.9375rem; line-height: 1.1; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--black); border: var(--border) solid var(--white); box-shadow: 4px 4px 0 var(--black);
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) var(--ease-out);
}
.wa-float:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--black); }
.wa-float:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.site-footer__inner { padding-bottom: 7rem; }
@media (prefers-reduced-motion: reduce) { .wa-float:active { transform: none; } }

/* ---------- Larger screens ---------- */
@media (max-width: 359px) {
  .site-header__inner { gap: 0.75rem; }
  .site-header__logo img { height: 36px; }
  .btn--compact { padding-inline: 0.75rem; }
}
@media (min-width: 600px) {
  .stock-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .hero { align-items: center; }
  .hero__photo img { object-position: 60% 45%; }
  .hero__content { padding-block: var(--space-6); }
  .hero .display { max-width: 14.5em; font-size: clamp(3rem, 1.3rem + 4.4vw, 5.25rem); }
  .hero__plumb { display: none; right: 6vw; width: 72px; }
  .section { padding-block: var(--space-7); }
}
@media (min-width: 1200px) {
  .hero__plumb { display: block; }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .stock-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav { display: flex; gap: var(--space-4); margin-left: auto; }
  .btn--compact { margin-left: var(--space-3); }
  .bulk { grid-template-columns: 1fr 26rem; grid-template-areas: "text photo" "form photo"; gap: var(--space-5) var(--space-6); }
  .bulk__text { grid-area: text; }
  .quote-form { grid-area: form; }
  .bulk__photo { grid-area: photo; aspect-ratio: auto; min-height: 100%; }
  .bulk__photo img { object-position: 85% 100%; }
  .site-footer__inner { grid-template-columns: 1fr 1.4fr; }
}
