/* ==========================================================================
   Rainbowfix (Rainbow Fix Pty Ltd) main stylesheet
   1. Design tokens      6. Services          11. Promise band
   2. Base & type        7. Paint layers      12. Areas & FAQ
   3. Layout & spacing   8. Our work gallery    13. Contact
   4. Header & nav       9. Process           14. Footer
   5. Hero & stats      10. Comparison / reviews
   ========================================================================== */

/* 1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* colour */
  --ink: #1b2130;
  --ink-2: #394155;
  --muted: #5f6678;
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #e7dfd0;
  --accent: #d62828;      /* Rainbowfix red (from logo): passes WCAG AA with white text */
  --accent-dark: #b21e1e;
  --accent-soft: #fce4e2;
  --gold: #f2b01c;        /* logo yellow/orange */
  --success: #2f7a4a;
  /* rainbow gradient taken from the logo, for brand accents */
  --rainbow: linear-gradient(90deg, #e4231e 0%, #f26a1b 20%, #f4b81e 40%, #33a65b 60%, #1f7fb2 80%, #3b4fa0 100%);
  /* deeper rainbow for filled surfaces that carry white text */
  --rainbow-strong: linear-gradient(90deg, #d81f1f 0%, #e0561a 20%, #cf9411 40%, #1f9455 60%, #1c6ea6 80%, #34459a 100%);
  /* rainbow band muted with a dark veil so white text stays readable */
  --rainbow-band: linear-gradient(rgba(23, 26, 40, .52), rgba(23, 26, 40, .52)), var(--rainbow-strong);
  /* call-to-action buttons: warm two-tone (logo red -> orange), keeps white text crisp */
  --btn-grad: linear-gradient(135deg, #d81f1f 0%, #e35a17 100%);

  /* type */
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  /* one value controls the gap between every section on the page */
  --section-y: clamp(48px, 6vw, 84px);
  --head-gap: clamp(28px, 3.5vw, 44px);   /* section heading → content */

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgba(27, 33, 48, .25);
  --shadow-sm: 0 6px 18px -8px rgba(27, 33, 48, .18);
  --header-h: 92px;
}

/* 2. Base & typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* safety net: decorative animation layers must never make the page scroll sideways on phones.
   "clip" (unlike "hidden") keeps the sticky header working */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; overflow-wrap: anywhere; }  /* long emails/URLs wrap instead of widening the page */
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section--cream .eyebrow { color: var(--accent-dark); }

.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  white-space: nowrap;  /* button labels always stay on one line */
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--btn-grad); color: var(--white); text-shadow: 0 1px 1px rgba(0, 0, 0, .18); box-shadow: 0 12px 24px -12px rgba(214, 40, 40, .55); transition: filter .2s, transform .2s, box-shadow .2s; }
.btn--primary:hover { filter: brightness(1.06) saturate(1.05); }
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left center / 0% 100%;
  transition: transform .2s, background-size .35s ease, color .25s;
}
.btn--outline:hover { background-size: 100% 100%; color: var(--white); }  /* fills like a brush stroke */
.btn--block { width: 100%; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* 3. Layout & spacing
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-y); }
/* two plain (same-background) sections in a row: drop the doubled gap between them */
.section:not([class*="--"]) + .section:not([class*="--"]) { padding-top: 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--accent { background: var(--rainbow-band); color: var(--white); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--head-gap);
}
.section-head h2 { max-width: 18ch; margin-bottom: 0; }
.section-head .lead { max-width: 46ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { max-width: 22ch; }

/* 4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rainbow); }
.site-header.is-scrolled { border-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__img { display: block; height: 72px; width: auto; }

.nav__links { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.nav__links-cta { display: none; }   /* shown only inside the mobile burger menu */
.nav__links a { position: relative; font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--rainbow); transition: width .25s; }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__phone svg { color: var(--accent); }

.burger { display: none; padding: 8px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .35s;
  }
  .nav__links.is-open { transform: none; }
  .nav__links { gap: 0; box-shadow: 0 18px 30px -18px rgba(27, 33, 48, .3); }
  .nav__links li + li { border-top: 1px solid var(--line); }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.05rem; }  /* 48px touch targets */
  .nav__links a::after { display: none; }
  .nav__links-cta { display: block; }
  .nav__links-cta a { margin-top: 8px; text-align: center; background: var(--btn-grad); color: var(--white); font-weight: 700; border-radius: 999px; }
  .burger { display: block; }
  .nav__phone { display: none; }
}
@media (max-width: 520px) {
  :root { --header-h: 80px; }
  .nav { gap: 10px; }
  .logo { gap: 10px; min-width: 0; }
  .logo__img { height: 50px; }
  .nav__actions { gap: 6px; flex: none; }
  .nav__actions .btn { padding: .55em .95em; font-size: .85rem; box-shadow: none; }
  .burger { padding: 8px 0 8px 4px; }
}
@media (max-width: 360px) {
  .logo__img { height: 44px; }
  .nav__actions .btn { padding: .5em .8em; font-size: .78rem; }
}

/* Paint roller icon (used by the scroll bar and the hero)
   -------------------------------------------------------------------------- */
.roller__frame { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.roller__grip { fill: var(--ink); }
.roller__cover { fill: var(--accent); }
.roller__shine { fill: #fff; opacity: .35; }

/* scroll progress: a paint line under the header, painted by a roller */
.paint-progress {
  --p: 0;
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 51;              /* above the sticky header so the roller can sit on its edge */
  width: calc(var(--p) * 100%);
  height: 3px;
  background: var(--rainbow);
  background-size: 100vw 100%;      /* gradient spans the viewport, so the line reveals a full rainbow left→right */
  background-repeat: no-repeat;
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.paint-progress.is-active { opacity: 1; }
.paint-progress__roller { position: absolute; right: -8px; bottom: -3px; width: 30px; height: 30px; transform: translateX(15%); }
.paint-progress__roller svg { width: 100%; height: 100%; animation: roller-bob .5s ease-in-out infinite alternate; animation-play-state: paused; }
.paint-progress.is-rolling .paint-progress__roller svg { animation-play-state: running; }
@keyframes roller-bob { to { transform: translateY(-1.5px) rotate(-3deg); } }

/* 5. Hero & stats
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 80px) var(--section-y); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }

.hero h1 .highlight { position: relative; white-space: nowrap; color: var(--accent); background: var(--rainbow); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .highlight > svg { position: absolute; left: -2%; bottom: -.14em; width: 104%; height: .32em; }
.hero h1 .highlight > svg path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.4s .5s linear forwards; }
.hero-roller { position: absolute; left: -4%; bottom: -.2em; width: 1em; height: 1em; opacity: 0; animation: hero-roll 1.4s .5s linear forwards, fade-out .4s 2s forwards; }
.hero-roller svg { width: 100%; height: 100%; overflow: visible; transform: translate(-78%, -18%); }
@keyframes hero-roll { 0% { left: -4%; opacity: 1; } 100% { left: 100%; opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-4); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 12px var(--space-4); font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { color: var(--success); }

.hero__media { position: relative; display: flex; }
.hero__photo { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 50%; border-radius: 28px; box-shadow: var(--shadow); }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.35;
}
.chip small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.chip--bottom { left: -18px; bottom: 28px; }
.chip--top { right: -14px; top: 24px; }
.chip__big { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }

.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .45; }
.blob--warm { width: 420px; height: 420px; top: -120px; right: -80px; background: #f3c9a8; }
.blob--cool { width: 360px; height: 360px; bottom: -140px; left: -120px; background: #cfe0d2; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .chip--bottom { left: 12px; }
  .chip--top { right: 12px; }
}
@media (max-width: 520px) { .chip--top { display: none; } }

.marquee { overflow: hidden; padding-block: 18px; background: var(--ink); color: var(--cream); }
.marquee__track { display: flex; gap: var(--space-5); width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { display: flex; align-items: center; gap: var(--space-5); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; white-space: nowrap; }
.marquee__track span::after { content: "\2726"; font-size: .9rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats sit in their own padded band so they never touch the marquee */
.stats-band { padding-top: var(--space-6); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.stat { padding: var(--space-4) var(--space-3); text-align: center; background: var(--white); }
.stat__num { display: block; font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: .9rem; font-weight: 500; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* 6. Services
   -------------------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }

.service {
  --c: var(--accent);
  position: relative;
  overflow: hidden;
  padding: var(--space-4) 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service::before { content: ""; position: absolute; top: 0; left: 0; width: 0; height: 4px; background: var(--c); transition: width .4s; }
.service:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.service:hover::before { width: 100%; }
/* the six service cards step through the logo's rainbow (Interior = red via --accent) */
.service--sage { --c: #ef6a1b; }  /* orange  */
.service--blue { --c: #d8930f; }  /* gold    */
.service--gold { --c: #2f9e63; }  /* green   */
.service--plum { --c: #1f7fb2; }  /* blue    */
.service--teal { --c: #5a3fa0; }  /* indigo  */

.service__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-3); border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.service p { color: var(--ink-2); }
.service ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: .93rem; color: var(--ink-2); }
.service li { position: relative; padding: 4px 0 4px 22px; }
.service li::before { content: ""; position: absolute; left: 0; top: .8em; width: 9px; height: 9px; border-radius: 3px; background: var(--c); opacity: .75; }

@media (max-width: 960px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* 7. Paint layers ("What goes under the colour")
   -------------------------------------------------------------------------- */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.layers__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); min-height: 440px; perspective: 1400px; }
.stack { position: relative; width: 250px; height: 250px; transform: rotateX(58deg) rotateZ(-40deg); transform-style: preserve-3d; margin-top: 60px; }
.slab {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transform: translateZ(calc(var(--i) * 34px));
  box-shadow: 0 0 0 1px rgba(27, 33, 48, .08), -10px 14px 24px -8px rgba(27, 33, 48, .35);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .45s;
}
/* layers build up step by step: finished layers stay, the current one lifts, later ones wait above */
.stack.has-active .slab { opacity: 0; transform: translateZ(calc(var(--i) * 34px + 120px)); }
.stack .slab.is-below { opacity: 1; transform: translateZ(calc(var(--i) * 34px)); }
.stack .slab.is-active { opacity: 1; transform: translateZ(calc(var(--i) * 34px + 30px)); }

.slab--wall   { --i: 0; background: repeating-linear-gradient(0deg, #b9aa98 0 22px, #a8998a 22px 25px), #b9aa98; }
.slab--repair { --i: 1; background: radial-gradient(circle at 30% 35%, #efe7da 0 22px, transparent 23px), radial-gradient(circle at 70% 65%, #efe7da 0 16px, transparent 17px), radial-gradient(circle at 62% 22%, #efe7da 0 10px, transparent 11px), #cbbfae; }
.slab--sand   { --i: 2; background: repeating-linear-gradient(45deg, #ddd3c4 0 2px, #d6cbbb 2px 4px); }
.slab--prime  { --i: 3; background: #f6f4ef; }
.slab--coat1  { --i: 4; background: linear-gradient(100deg, rgba(79, 111, 168, .75), rgba(79, 111, 168, .55) 40%, rgba(79, 111, 168, .8)); }
.slab--coat2  { --i: 5; background: #3d5d93; }

.layers__caption { padding: 8px 18px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.layers__caption b { font-family: var(--font-heading); font-weight: 600; color: var(--accent); }

.layers__list { margin: var(--space-4) 0 var(--space-3); padding: 0; list-style: none; counter-reset: layer; border-top: 1px solid var(--line); }
.layer-btn {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px var(--space-2);
  width: 100%;
  padding: var(--space-2) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.layer-btn::before {
  counter-increment: layer;
  content: counter(layer, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--muted);
  transition: color .3s;
}
.layer-btn__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }
.layer-btn__text { display: grid; grid-template-rows: 0fr; color: var(--ink-2); font-size: .95rem; transition: grid-template-rows .4s; }
.layer-btn__text > span { overflow: hidden; }
.layer-btn.is-active::before { color: var(--accent); }
.layer-btn.is-active .layer-btn__text { grid-template-rows: 1fr; }
.layer-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-note { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-2) 20px; border-radius: 12px; background: var(--accent-soft); font-size: .95rem; color: var(--ink-2); }
.skip-note svg { flex: none; margin-top: 2px; color: var(--accent); }

@media (max-width: 960px) {
  .layers { grid-template-columns: 1fr; }
  .layers__stage { min-height: 0; gap: var(--space-3); }
  .stack { transform: rotateX(58deg) rotateZ(-40deg) scale(.8); margin-top: 20px; }
}

/* "hover" hint on mouse devices, "tap" hint on touch screens */
.hint-touch { display: none; }
@media (hover: none) {
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
}
.hint-hover, .hint-touch { color: var(--accent-dark); font-weight: 500; }

/* Owner note
   -------------------------------------------------------------------------- */
.owner { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; max-width: 900px; }
.owner__badge { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-heading); font-size: 2.8rem; font-weight: 600; box-shadow: var(--shadow); }
.owner__text { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; color: var(--ink); }
.owner__sign { margin-top: var(--space-3); color: var(--muted); }
.owner__sign b { display: block; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.owner__sign a { text-decoration: none; font-weight: 500; color: var(--accent-dark); }
@media (max-width: 620px) {
  .owner { grid-template-columns: 1fr; gap: var(--space-3); }
  .owner__badge { width: 80px; height: 80px; font-size: 2rem; }
}

/* 8. Our work gallery
   -------------------------------------------------------------------------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-4); }
.work-filter {
  padding: 9px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: 500 .93rem/1.2 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.work-filter:hover { border-color: var(--ink); }
.work-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: var(--space-3); }
.work-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.work-item--featured { grid-column: span 2; grid-row: span 2; }
.work-item__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.work-item__open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-item:hover img { transform: scale(1.05); }
.work-item__open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.work-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4) 20px 18px;
  background: linear-gradient(transparent, rgba(27, 33, 48, .85));
  color: #e4e7ee;
  font-size: .88rem;
  pointer-events: none;
}
.work-item figcaption b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--white); }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .work-item.is-last-odd { grid-column: span 2; }  /* no lonely half-width photo on the last row */
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .work-item--featured, .work-item.is-last-odd { grid-column: auto; grid-row: auto; }
}

/* lightbox */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--space-3);
  border: 0;
  background: rgba(15, 19, 28, .94);
  color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 80vh; margin-inline: auto; border-radius: 12px; }
.lightbox__figure figcaption { margin-top: var(--space-2); color: #c9cdd8; }
.lightbox__figure figcaption b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--white); }
.lightbox__close,
.lightbox__nav {
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__nav { width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox__close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; }
@media (max-width: 700px) {
  .lightbox__nav { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* 9. Process
   -------------------------------------------------------------------------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.process::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.step { padding-top: var(--space-4); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.step p { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* 10. Comparison table & reviews
   -------------------------------------------------------------------------- */
.section--dark h2 { color: var(--white); }
.section--dark .lead { color: #c9cdd8; }
.section--dark .eyebrow { color: var(--gold); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.vs { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .97rem; }
.vs th, .vs td { padding: 18px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.vs thead th { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--white); }
.vs thead th:nth-child(2) { background: var(--rainbow-strong); border-radius: var(--radius) var(--radius) 0 0; }
.vs tbody th { width: 26%; font-weight: 600; color: var(--white); }
.vs td { color: #c9cdd8; }
.vs td:nth-child(2) { background: rgba(214, 40, 40, .12); color: var(--white); }
.vs tbody tr:last-child td:nth-child(2) { border-radius: 0 0 var(--radius) var(--radius); }
.vs .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; font-size: .75rem; font-weight: 700; vertical-align: -5px; }
.vs .mark--yes { background: var(--success); color: var(--white); }
.vs .mark--ask { background: rgba(232, 176, 75, .18); color: var(--gold); }
/* phones: each row becomes a card, so both columns are readable without sideways scrolling */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; }
  .vs { min-width: 0; }
  .vs thead { display: none; }
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: 100%; }
  .vs tr { margin-bottom: var(--space-2); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); }
  .vs tbody th { width: 100%; padding: 14px 18px; background: rgba(255, 255, 255, .06); font-family: var(--font-heading); }
  .vs td { padding: 14px 18px; border-bottom: 0; }
  .vs td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9aa1b3; }
  .vs td:nth-child(2)::before { color: #f2b9a3; }
  .vs tbody tr:last-child td:nth-child(2) { border-radius: 0; }
}
.vs-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-5); color: #c9cdd8; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.review { display: flex; flex-direction: column; margin: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who small { display: block; color: var(--muted); }
.review__title { font-family: var(--font-heading); font-size: 1.1rem; }
.review > p { flex: 1; margin: 10px 0 var(--space-3); color: var(--ink-2); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* Instagram feed
   -------------------------------------------------------------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(214, 40, 40, .55), rgba(240, 96, 24, .35) 45%, rgba(59, 79, 160, .55)); opacity: 0; transition: opacity .3s; z-index: 1; }
.ig-tile__icon { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; z-index: 2; }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.06); }
.ig-tile:hover::before, .ig-tile:focus-visible::before { opacity: 1; }
.ig-tile:hover .ig-tile__icon, .ig-tile:focus-visible .ig-tile__icon { opacity: 1; transform: scale(1); }
.ig-cta { margin-top: var(--space-4); text-align: center; }
.ig-cta .btn { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 380px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* 11. Promise band
   -------------------------------------------------------------------------- */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.promise__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: var(--space-3); border-radius: 20px; background: rgba(255, 255, 255, .16); color: var(--white); }
.promise__icon svg { width: 36px; height: 36px; }
.promise h3 { font-size: 1.25rem; color: var(--white); }
.promise p { font-size: .97rem; color: #fff3ee; }
.promise-note { margin-top: var(--space-5); font-size: .85rem; color: #fff3ee; }
.promise-note a { color: var(--white); }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .promise-grid { grid-template-columns: 1fr; } }

/* paint drips running off the bottom of the orange band */
.has-drips { position: relative; }
.drips { position: absolute; top: calc(100% - 1px); left: 0; width: 100%; height: 90px; fill: url(#dripRainbow); pointer-events: none; opacity: 0; transition: opacity .3s; }
.is-painted .drips { opacity: 1; }
.drips .drip { transform-box: fill-box; transform-origin: top; transform: scaleY(0); }
.is-painted .drips .drip { animation: drip-grow 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
.drip--1 { animation-delay: .1s !important; }
.drip--2 { animation-delay: .5s !important; }
.drip--3 { animation-delay: .25s !important; }
.drip--4 { animation-delay: .7s !important; }
.drip--5 { animation-delay: .35s !important; }
.drip--6 { animation-delay: .6s !important; }
.drip--7 { animation-delay: .2s !important; }
@keyframes drip-grow { 0% { transform: scaleY(0); } 70% { transform: scaleY(1.08); } 100% { transform: scaleY(1); } }
.drips .drop { opacity: 0; }
.is-painted .drips .drop { animation: drop-fall 4s 2s ease-in infinite; }
.is-painted .drips .drop--late { animation-delay: 3.8s; }
@keyframes drop-fall {
  0%, 60% { opacity: 0; transform: translateY(0); }
  65% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(30px); }
}
@media (max-width: 620px) { .drips { height: 56px; } }

/* Scroll painting
   Coloured sections start as bare wall and get painted top to bottom as they scroll up
   the screen. --painted (px) is set by js/main.js; the roller sits on the paint edge.
   -------------------------------------------------------------------------- */
.js-paint .paintable { --painted: 0px; position: relative; isolation: isolate; background: var(--paper); }
.js-paint .paintable::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paint-colour);
  clip-path: inset(0 0 calc(100% - var(--painted)) 0);
}
.section--dark.paintable, .site-footer.paintable { --paint-colour: var(--ink); }
.section--accent.paintable { --paint-colour: var(--rainbow-band); }

.wall-roller {
  --roll: 0px;
  --paint-colour: var(--accent);
  position: fixed;
  left: 50%;
  top: 85vh;
  z-index: 40;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.wall-roller.is-active { opacity: 1; }
.wall-roller__cover {
  display: block;
  height: 30px;
  border-radius: 15px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .13) 0 3px, transparent 3px 10px) 0 var(--roll) / 100% 10px,
    linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .18)),
    var(--paint-colour);
  box-shadow: 0 10px 22px -8px rgba(27, 33, 48, .5), inset 0 0 0 1px rgba(0, 0, 0, .08);
}
/* one-piece handle: rod from the roller's end, bending down into the grip */
.wall-roller__handle { position: absolute; top: 0; right: -44px; width: 60px; height: 150px; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
@media (max-width: 620px) {
  /* thinner roller; the handle is scaled so its rod still meets the roller's centre */
  .wall-roller { width: calc(100% - 2 * var(--gutter) - 30px); margin-left: -15px; }
  .wall-roller__cover { height: 22px; border-radius: 11px; }
  .wall-roller__handle { right: -32px; width: 44px; height: 110px; }
}

/* 12. Areas & FAQ
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
.areas__city { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin: var(--space-3) 0 0; color: var(--ink-2); }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.areas span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); font-size: .9rem; font-weight: 500; }

.faq details { padding-block: 20px; border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-2); font-weight: 600; font-size: 1.05rem; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 13. Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { display: grid; gap: 20px; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 14px; }
.info-list__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); color: var(--accent); box-shadow: 0 1px 0 var(--line); }
.info-list b { display: block; }
.info-list a { text-decoration: none; }

.quote-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);          /* stops iOS from rendering select text in system blue */
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
/* give the dropdown the same look as the text inputs, with a custom chevron */
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6678' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214, 40, 40, .15); }
.field .is-invalid { border-color: var(--accent); }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.quote-form .btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* toast confirmation */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(460px, calc(100% - 32px));
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #d5d9e2;
  box-shadow: 0 24px 48px -12px rgba(27, 33, 48, .45);
  font-size: .93rem;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .3s, transform .3s;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; color: var(--white); background: var(--success); }
.toast--error .toast__icon { background: var(--accent); }
.toast__body { flex: 1; }
.toast__body b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--white); }
.toast__close { flex: none; padding: 0 4px; border: 0; background: none; color: #9aa1b3; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.toast__close:hover { color: var(--white); }
@media (max-width: 760px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } } /* clear the floating call button */
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* 14. Footer
   -------------------------------------------------------------------------- */
.site-footer { padding-block: var(--space-6) 28px; background: var(--ink); color: #aeb4c3; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
.site-footer h4 { margin-bottom: 14px; font-size: .95rem; color: var(--white); }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-logo { display: inline-flex; padding: 12px 16px; background: var(--white); border-radius: var(--radius); }
.footer-logo img { display: block; height: 52px; width: auto; }
.footer-about { max-width: 34ch; margin-top: 14px; }
.footer-bottom a { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid #2e3548; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  /* about + contact full width, Services and Company side by side */
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .site-footer { padding-bottom: 96px; } } /* room for the floating call button */

/* floating call button (mobile) */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: none;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(214, 40, 40, .8);
}
@media (max-width: 760px) { .fab { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .highlight > svg path { stroke-dashoffset: 0; }
  .hero-roller, .paint-progress, .wall-roller { display: none; }
  .drips .drip { transform: none; }
  .drips .drop { display: none; }
}

/* Privacy page
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: var(--space-5); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--accent-dark); }
.legal__updated { color: var(--muted); font-size: .9rem; }
