/* ==========================================================================
   RTS Painting Services — prospect concept
   Coastal, precise, paint-chip motif. Heavy grotesque display, mono labels.
   ========================================================================== */

:root {
  /* Palette — proposed demo direction (no verified brand colours) */
  --salt: #f7f5f0;          /* limewash off-white */
  --salt-2: #efebe2;
  --driftwood: #d9cdb8;     /* warm sand / putty */
  --driftwood-2: #b9a98d;
  --lagoon: #12393f;        /* deep lagoon blue-green */
  --lagoon-2: #1d4e55;
  --lagoon-3: #5f8a8c;
  --buoy: #c14a26;          /* restrained accent, paint-chip red-orange */
  --buoy-dark: #9f3a1c;

  --ink: #14211f;
  --ink-soft: #4a5654;
  --on-dark: #f2efe7;
  --on-dark-soft: #b8c7c5;
  --line: #ddd6c8;
  --focus: #c14a26;

  --font-display: "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Arial, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --section: clamp(4rem, 9vw, 7.5rem);

  --radius: 4px;
  --container: 71.25rem;
  --container-wide: 85rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--salt);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }

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

.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--container-wide)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--lagoon);
  color: var(--on-dark);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Paint chips ---------- */
.chip {
  display: inline-block;
  width: .85rem; height: .85rem;
  border-radius: 2px;
  background: var(--salt);
  box-shadow: inset 0 0 0 1px rgba(20, 33, 31, .25);
  flex: none;
}
.chip--sand { background: var(--driftwood); box-shadow: none; }
.chip--lagoon { background: var(--lagoon-3); box-shadow: none; }
.chip--accent { background: var(--buoy); box-shadow: none; }
.chip--salt { background: var(--salt-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.eyebrow--light { color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--lg { min-height: 3.4rem; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--accent { background: var(--buoy); color: #fff; }
.btn--accent:hover { background: var(--buoy-dark); }
.btn--dark { background: var(--lagoon); color: var(--on-dark); }
.btn--dark:hover { background: var(--lagoon-2); }
.btn--ghost { border-color: var(--lagoon); color: var(--lagoon); }
.btn--ghost:hover { background: var(--lagoon); color: var(--on-dark); }

.text-link {
  font-weight: 700;
  color: var(--buoy-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  gap: 2px;
  width: 1.6rem;
  padding: 3px;
  background: var(--lagoon);
  border-radius: 3px;
}
.brand-mark i { display: block; height: .3rem; }
.brand-mark i:nth-child(1) { background: var(--salt); }
.brand-mark i:nth-child(2) { background: var(--driftwood); }
.brand-mark i:nth-child(3) { background: var(--buoy); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .2rem;
}

.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--buoy); }

.header-call { padding-inline: .9rem; min-height: 2.6rem; }
.header-call span { display: none; }

@media (min-width: 30rem) {
  .header-call span { display: inline; }
}
@media (min-width: 60rem) {
  .site-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; margin-bottom: var(--space-3); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--space-4) 0 var(--space-2); }
.hero-phone { font-size: .95rem; color: var(--ink-soft); }
.hero-phone a { font-weight: 700; color: var(--ink); }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1.08fr; }
}

/* ---------- Before / after facade ---------- */
.compare { margin: 0; }
.compare-stage {
  position: relative;
  aspect-ratio: 600 / 440;
  background:
    linear-gradient(180deg, #dfe8e6 0%, #eef1ec 70%, var(--salt-2) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(18, 57, 63, .55);
  --pos: 50%;
}
.facade { position: absolute; inset: 0; width: 100%; height: 100%; }

.facade--before {
  --f-ground: #c9c0ad;
  --f-wall: #c8bfac;
  --f-board: #b3a993;
  --f-roof: #5e6461;
  --f-trim: #b0a48d;
  --f-trim-dark: #8c826f;
  --f-accent: #8a9693;
  --f-glass: #8d9a98;
  --f-plinth: #a69b86;
}
.facade--after {
  --f-ground: #cfc4ae;
  --f-wall: #fbfaf6;
  --f-board: #ebe6db;
  --f-roof: #22383c;
  --f-trim: #ffffff;
  --f-trim-dark: #0d2c31;
  --f-accent: var(--lagoon);
  --f-glass: #9fc0c3;
  --f-plinth: var(--driftwood);
}

.weathering .stain { fill: #9f9580; opacity: .35; }
.weathering .peel { fill: #e2dccd; stroke: #9a8f7a; stroke-width: 1; }
.weathering .crack { fill: none; stroke: #5d5445; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 0;
  pointer-events: none;
}
.compare-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -1.5px;
  width: 3px;
  background: var(--buoy);
}
.compare-handle span {
  position: absolute;
  top: 50%; left: 0;
  width: 2.75rem; height: 2.75rem;
  transform: translate(-50%, -50%);
  background: var(--buoy);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  border: 6px solid transparent;
  transform: translateY(-50%);
}
.compare-handle span::before { left: .45rem; border-right-color: #fff; }
.compare-handle span::after { right: .45rem; border-left-color: #fff; }

.compare-tag {
  position: absolute;
  top: .9rem;
  padding: .3rem .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  pointer-events: none;
}
.compare-tag--before { left: .9rem; background: rgba(20, 33, 31, .7); color: #fff; }
.compare-tag--after { right: .9rem; background: #fff; color: var(--lagoon); }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-stage:has(.compare-range:focus-visible) .compare-handle span {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
}

.compare figcaption {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-soft);
}

/* ---------- Reassurance strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--salt-2); }
.strip-list {
  list-style: none;
  margin-block: 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.5rem;
}
.strip-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  font-size: .95rem;
}
@media (min-width: 60rem) {
  .strip-list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }

/* Services: intro left, rule-separated list right */
.services-grid { display: grid; gap: var(--space-6); }
.services-intro p:not(.eyebrow) { color: var(--ink-soft); max-width: 30rem; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.service-list p { color: var(--ink-soft); margin: 0; max-width: 38rem; }
.service-chip {
  width: 3.5rem; height: 4.5rem;
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: .35rem .4rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.service-chip b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .72rem;
  color: var(--ink);
}
.service-chip.chip--lagoon b, .service-chip.chip--accent b { color: #fff; }
.service-chip.chip--salt { box-shadow: inset 0 0 0 1px var(--line); }

@media (min-width: 60rem) {
  .services-grid { grid-template-columns: 1fr 1.5fr; gap: var(--space-8); align-items: start; }
  .services-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Preparation: dark full-width band, numbered sequence */
.prep { background: var(--lagoon); color: var(--on-dark); }
.prep-head { max-width: 46rem; margin-bottom: var(--space-6); }
.prep-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.prep-steps li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) 4rem;
  border-top: 1px solid rgba(242, 239, 231, .18);
}
.prep-steps p { color: var(--on-dark-soft); margin: 0; font-size: 1rem; }
.prep-steps h3 { margin-bottom: .4rem; }
.step-no {
  position: absolute;
  left: 0; top: var(--space-3);
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--driftwood);
}
.step-no::after {
  content: "";
  display: block;
  width: 2.2rem; height: .35rem;
  margin-top: .45rem;
  background: var(--buoy);
}
.prep-steps li:nth-child(1) .step-no::after { background: var(--salt); }
.prep-steps li:nth-child(2) .step-no::after { background: var(--driftwood); }
.prep-steps li:nth-child(3) .step-no::after { background: var(--lagoon-3); }
.prep-steps li:nth-child(4) .step-no::after { background: var(--buoy); }
.prep-steps li:nth-child(5) .step-no::after { background: var(--salt-2); }

@media (min-width: 60rem) {
  .prep-steps { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
  .prep-steps li { padding: var(--space-6) 0 0; border-top: 0; }
  .prep-steps li::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: calc(-1 * var(--space-4));
    border-top: 1px solid rgba(242, 239, 231, .25);
  }
  .prep-steps li:last-child::before { right: 0; }
  .step-no { position: static; display: block; margin-bottom: var(--space-3); }
}

/* Holiday homes: split with colour fan deck */
.away-grid { display: grid; gap: var(--space-6); align-items: center; }
.away-copy p:not(.eyebrow) { color: var(--ink-soft); max-width: 34rem; }
.tick-list { list-style: none; margin: var(--space-3) 0 var(--space-4); padding: 0; }
.tick-list li {
  position: relative;
  padding: .7rem 0 .7rem 2.2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: .2rem; top: 1.05rem;
  width: 1.1rem; height: .55rem;
  border-left: 3px solid var(--buoy);
  border-bottom: 3px solid var(--buoy);
  transform: rotate(-45deg);
}

.away-visual { display: flex; justify-content: center; }
.fan {
  position: relative;
  width: min(100%, 15rem);
  aspect-ratio: 1 / 1.05;
}
.fan-card {
  position: absolute;
  left: 50%; bottom: 6%;
  width: 34%;
  aspect-ratio: 1 / 2.6;
  transform-origin: 50% 92%;
  border-radius: 3px;
  box-shadow: 0 14px 30px -18px rgba(18, 57, 63, .6), inset 0 0 0 1px rgba(20,33,31,.08);
  display: flex;
  align-items: flex-end;
  padding: .55rem;
  margin-left: -17%;
}
.fan-card::after {
  content: "";
  position: absolute;
  left: .55rem; right: .55rem; bottom: 2.1rem;
  height: 2px;
  background: currentColor;
  opacity: .25;
}
.fan-card em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fan-card--1 { background: var(--salt); color: var(--ink); transform: rotate(-33deg); }
.fan-card--2 { background: var(--driftwood); color: var(--ink); transform: rotate(-11deg); }
.fan-card--3 { background: var(--lagoon); color: var(--on-dark); transform: rotate(11deg); }
.fan-card--4 { background: var(--buoy); color: #fff; transform: rotate(33deg); }
.fan::after {
  content: "";
  position: absolute;
  left: 50%; bottom: calc(6% + 1.1rem);
  width: .9rem; height: .9rem;
  margin-left: -.45rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--salt);
}

@media (min-width: 60rem) {
  .away-grid { grid-template-columns: 1fr 1.15fr; gap: var(--space-8); }
  .fan { width: min(100%, 22rem); }
}

/* Neighbour band */
.neighbour {
  background: var(--driftwood);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.neighbour-inner { display: grid; gap: var(--space-2); }
.neighbour h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 22ch; margin: 0; }
.neighbour p { margin: 0; max-width: 32rem; font-size: 1.1rem; }
@media (min-width: 60rem) {
  .neighbour-inner { grid-template-columns: 1.3fr 1fr; align-items: end; gap: var(--space-8); }
}

/* Contact */
.contact-grid { display: grid; gap: var(--space-6); }
.big-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  margin: var(--space-2) 0 var(--space-2);
  border-bottom: 6px solid var(--buoy);
}
.big-phone:hover { color: var(--buoy-dark); }
.contact-meta {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}
.contact-prep {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--lagoon);
  padding: var(--space-4);
}
.contact-prep h3 { font-size: 1.15rem; margin-bottom: var(--space-3); }
.checklist { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.checklist li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  padding: .6rem 0;
  border-top: 1px solid var(--line);
}
.checklist li::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--buoy-dark);
  padding-top: .2rem;
}
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--space-8); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: var(--space-8) 0 calc(var(--space-4) + 4.5rem);
  font-size: .95rem;
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(242, 239, 231, .14);
}
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--on-dark); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclosure { margin: var(--space-3) 0 0; font-size: .8rem; opacity: .75; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-bottom: var(--space-4); }
}

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(247, 245, 240, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.call-bar .btn { width: 100%; }
.call-bar .btn span { font-weight: 500; opacity: .9; }
@media (min-width: 48rem) {
  .call-bar { display: none; }
}

/* ---------- Copied-number toast (desktop) ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 70;
  max-width: calc(100% - 2rem);
  padding: .8rem 1.2rem;
  background: var(--lagoon);
  color: var(--on-dark);
  border-left: 6px solid var(--buoy);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 47.99rem) {
  .toast { bottom: 5.5rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
