/* ============================================================
   ProCleanNE homepage — "the well-kept board" (taste-skill trial)
   Brand kept: navy #1F3C88 + action blue #2BB3E0, Rubik + Heebo.
   Every block is a filled tile on an 8px grid: no outlines, no
   shadows, no gradients. Action blue is the one accent; it carries
   navy ink, never white (white on #2BB3E0 is 2.4:1, unreadable).
   ============================================================ */

:root {
  --navy: #1F3C88;
  --ink: #0f1d45;          /* body text and the ink on accent tiles */
  --soft: #4a5a80;         /* secondary text, 6.5:1 on --ground */
  --action: #2BB3E0;
  --action-press: #1f97c0;
  --ground: #F5F7FA;
  --tile: #e7ecf4;         /* one tone step from the ground */
  --tile-2: #dbe3ee;
  --paper: #ffffff;
  --sky: #4FC3F7;
  --sky-1: #e6f6fd;
  --sky-2: #c4e9f8;

  --font-display: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Heebo", "Helvetica Neue", Arial, sans-serif;

  /* five type steps */
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-lead: clamp(22px, 2.1vw, 30px);
  --fs-head: clamp(34px, 3.8vw, 54px);
  --fs-display: clamp(96px, 13.4vw, 210px);
  --fs-marquee: clamp(56px, 8vw, 120px);  /* the one size for running and footer wordmarks */

  --gap: 8px;
  --edge: 8px;
  --radius: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font-body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
.hidden, [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--action-press); outline-offset: 2px; }

.tile {
  background: var(--tile);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0;
}
.photo-tile { padding: 0; overflow: clip; background: var(--tile-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--radius);
  background: var(--action); color: var(--ink);
  font: 600 var(--fs-body)/1 var(--font-display);
  text-decoration: none; cursor: pointer;
  transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.btn:hover { background: var(--action-press); }
.btn:active { transform: scale(0.97); }

.board, .foot { padding: 0 var(--edge); }

/* ===================== FIRST SCREEN ===================== */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 64px auto minmax(240px, 1fr);
  gap: var(--gap);
  padding-top: var(--edge);
  min-height: 100svh;
}

.brand-row {
  grid-column: 1 / -1; background: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 28px;
}
.brand-logo img { height: clamp(56px, 6vw, 88px); width: auto; }
.brand-cta { min-height: 56px; padding: 0 30px; }

.links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.link-tile {
  display: flex; align-items: flex-start;
  padding: 18px 22px; font-weight: 500; text-decoration: none;
  transition: background var(--t-hover) var(--ease-out);
}
.link-tile:hover { background: var(--tile-2); }

.statement {
  grid-column: 1 / 7; grid-row: 3;
  position: relative; overflow: clip; isolation: isolate;
  background: var(--navy); color: #fff; padding: clamp(28px, 3vw, 44px);
}
/* the brand pattern: the real shield mark, tiled and turned like the kit's sheet.
   It goes on every navy surface (the brief: navy with the brand pattern overlay). */
.flank-colour, .foot-word { position: relative; overflow: clip; isolation: isolate; }
.statement::before, .flank-colour::before, .foot-word::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: url("img/brand/logo-single.png") 0 0 / 64px auto repeat;
  filter: brightness(0) invert(1); opacity: 0.07; transform: rotate(-14deg);
}
/* the truck-wrap slash: action blue across the far corner */
.statement::after {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 36%; height: 100%;
  background: var(--action);
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 22% 100%);
  opacity: 0.9;
}
.statement h1 {
  font-size: clamp(48px, 6vw, 92px); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em;
}
.statement .sub { margin-top: 12px; font: 700 var(--fs-lead)/1.15 var(--font-display); color: var(--sky); }
.statement p:not(.sub) { margin-top: 18px; max-width: 40ch; color: #e3e9f6; }
.sparks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; }
.sparks li::before, .spark {
  content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 8px; vertical-align: -0.05em;
  background: var(--sky);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.hero-photo { grid-column: 1 / 7; grid-row: 4; }
.hero-photo img { animation: drift 24s var(--ease-out) infinite alternate; }

/* ---- the estimator ---- */
.ticket { grid-column: 7 / 11; grid-row: 3 / 5; background: var(--paper); padding: 24px; display: flex; flex-direction: column; }
.ticket-step { font-size: var(--fs-small); color: var(--soft); margin-bottom: 12px; }
.plan {
  display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start;
  min-height: 52px; margin-bottom: 8px;
}
.plan i { display: block; height: 24px; background: var(--action); border-radius: 3px; animation: place 320ms var(--ease-out); }
.plan .room { width: 24px; }
.plan .hall { width: 52px; height: 10px; align-self: center; background: var(--navy); }
.plan .stair { width: 24px; background: repeating-linear-gradient(0deg, var(--navy) 0 4px, transparent 4px 7px); } /* taste-skill-ignore: stair treads drawn as stripes, not a decorative gradient */
.field-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 6px 0;
}
.row-label { font-weight: 500; display: flex; flex-direction: column; }
.row-hint { font-size: var(--fs-small); color: var(--soft); font-weight: 400; }
.stepper { display: inline-flex; align-items: center; background: var(--tile); border-radius: var(--radius); }
.stepper button {
  width: 44px; height: 44px; border: 0; background: none; color: var(--navy);
  font: 700 var(--fs-body)/1 var(--font-display); cursor: pointer; border-radius: var(--radius);
  transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.stepper button:hover { background: var(--tile-2); }
.stepper button:active { transform: scale(0.9); }
.stepper output { min-width: 28px; text-align: center; font: 700 var(--fs-body)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.check-row { cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--navy); vertical-align: -4px; margin: 0 8px 0 0; }
.addon-price { font-size: var(--fs-body); color: var(--soft); white-space: nowrap; }
.ticket-total {
  display: flex; align-items: baseline; justify-content: space-between;
  background: var(--sky-1); border-radius: var(--radius);
  padding: 16px 18px; margin-top: 10px; font: 500 var(--fs-body)/1.3 var(--font-display);
}
.ticket-total output { font: 700 var(--fs-lead)/1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.ticket-fine { font-size: var(--fs-small); color: var(--soft); margin: 10px 0 14px; }
.ticket .btn { width: 100%; }
.ticket-form { display: grid; gap: 10px; }
.ticket-form input, .ticket-form select, .ticket-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #b9c6da; border-radius: var(--radius); background: #fff; color: var(--ink);
  font: 400 var(--fs-body)/1.3 var(--font-body);
}
.ticket-form textarea { min-height: 90px; resize: vertical; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.back-link { background: none; border: 0; color: var(--navy); font: 500 var(--fs-small)/1 var(--font-body); text-decoration: underline; cursor: pointer; justify-self: start; padding: 8px 0; }

.rail-right { grid-column: 11 / 13; grid-row: 3 / 5; display: grid; grid-template-rows: repeat(5, 1fr); gap: var(--gap); }
.rail-tile { font-family: var(--font-display); font-size: var(--fs-body); font-weight: 500; line-height: 1.35; text-decoration: none; padding: 16px; }
.rail-tile span { display: block; font: 700 var(--fs-lead)/1.1 var(--font-display); color: var(--navy); }
.r1 { background: var(--sky-1); }
.r2 { background: var(--sky-2); }
.r3 { background: var(--tile-2); }
.r4 { background: var(--navy); color: #fff; }
.r5 { background: var(--action); color: var(--ink); font: 600 var(--fs-body)/1.25 var(--font-display); display: flex; align-items: flex-end; transition: background var(--t-hover) var(--ease-out); }
.r5:hover { background: var(--action-press); }

/* ===================== WHAT WE CLEAN ===================== */
.services { padding: clamp(120px, 12vw, 200px) clamp(0px, 4vw, 64px) 0; }
.services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.services-head h2 { font-size: var(--fs-head); line-height: 1.04; max-width: 15ch; color: var(--navy); }
.services-head .soft { display: block; color: var(--soft); }
.services-body { display: grid; grid-template-columns: 190px 1fr; gap: 40px; margin-top: 56px; }
.tabs-col { display: grid; gap: 6px; align-content: start; }
.tabs { display: grid; gap: 6px; align-content: start; }
.tabs-photo { aspect-ratio: 4 / 3; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 72px; padding: 14px 16px; border: 0; border-radius: var(--radius);
  background: var(--tile); color: var(--ink); text-align: left; cursor: pointer;
  font: 600 var(--fs-body)/1.2 var(--font-display);
  transition: background var(--t-hover) var(--ease-out);
}
.tab span { font: 400 var(--fs-small)/1.2 var(--font-display); color: var(--soft); }
.tab:hover { background: var(--tile-2); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab[aria-selected="true"] span { color: var(--sky-2); }
.bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bands li {
  display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 20px;
  min-height: 76px; padding: 12px 20px; border-radius: var(--radius); background: var(--tile);
}
.bands li:nth-child(even) { background: var(--tile-2); }
.bands b { font: 700 var(--fs-lead)/1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.bands .what { font-family: var(--font-display); font-weight: 600; display: flex; flex-direction: column; }
.bands small { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 400; color: var(--soft); }
.bands a { font-weight: 500; font-size: var(--fs-small); color: var(--navy); text-underline-offset: 3px; }

/* ===================== RATE CARD ===================== */
.ratecard {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(120px, 12vw, 200px) clamp(0px, 4vw, 64px) 0;
}
.ratecard-side { grid-column: 1 / 5; display: grid; gap: 28px; align-content: start; }
.ratecard-side h2 { font-size: var(--fs-head); line-height: 1.04; color: var(--navy); }
.ratecard-side .photo-tile { aspect-ratio: 4 / 5; max-width: 340px; }
.menu { grid-column: 5 / 13; columns: 2; column-gap: 64px; }
.menu-group { break-inside: avoid; padding-top: 48px; }
.menu-group:first-child { padding-top: 0; }
.menu h3 { font: 500 var(--fs-lead)/1.2 var(--font-display); color: var(--navy); margin-bottom: 14px; }
.item { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; font-weight: 500; }
.item small { display: block; font-size: var(--fs-small); font-weight: 400; color: var(--soft); max-width: 36ch; }
.item b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===================== PROMISES ===================== */
.proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(120px, 12vw, 200px) 0 0;
}
.proof .tile { aspect-ratio: 3 / 2; }
.proof-head {
  grid-column: span 2; aspect-ratio: auto !important;
  background: var(--action); color: var(--ink);
  padding: 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.proof-head h2 { font-size: var(--fs-head); line-height: 1; }
.proof-head img { height: clamp(72px, 7vw, 110px); width: auto; align-self: flex-end; }
.proof-tile h3 { font-size: var(--fs-lead); line-height: 1.1; color: var(--navy); }
.proof-tile p { margin-top: 10px; max-width: 30ch; }

/* ===================== MARQUEE ===================== */
.marquee { overflow: clip; margin-top: clamp(120px, 12vw, 200px); background: var(--navy); color: #fff; border-radius: var(--radius); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .spark { width: 0.5em; height: 0.5em; margin: 0 0.35em; vertical-align: 0.12em; }
.marquee span {
  font: 700 var(--fs-marquee)/1.25 var(--font-display);
  letter-spacing: -0.03em; white-space: nowrap; padding-right: 0.6em;
}

/* ===================== COMMERCIAL ===================== */
.close {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  margin: var(--gap) calc(var(--edge) * -1) 0;
}
.close > * { height: 360px; }
.close .flank:first-child { grid-column: 1 / 3; border-radius: 0 var(--radius) var(--radius) 0; }
.action-tile {
  grid-column: 3 / 11; background: var(--action); color: var(--ink);
  display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: 40px; row-gap: 14px; padding: 40px;
}
.action-tile p { grid-column: 1; }
.action-tile .btn { grid-column: 2; grid-row: 1 / 3; align-self: end; }
.action-tile h2 { font-size: var(--fs-head); line-height: 1.04; }
.action-tile p { max-width: 52ch; }
.flank-colour { grid-column: 11 / 13; background: var(--navy); border-radius: var(--radius) 0 0 var(--radius); }

/* ===================== FAQ ===================== */
.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(120px, 12vw, 200px) clamp(0px, 4vw, 64px) 120px;
}
.faq h2 { grid-column: 1 / 5; font-size: var(--fs-head); line-height: 1.04; color: var(--navy); align-self: start; max-width: 8ch; }
.faq-list { grid-column: 5 / 13; display: grid; gap: var(--gap); }
.faq details { background: var(--tile); border-radius: var(--radius); transition: background var(--t-hover) var(--ease-out); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 72px; display: flex; align-items: center; padding: 18px 64px 18px 24px;
  font: 600 var(--fs-body)/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px;
  background: currentColor; transition: transform var(--t-hover) var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--action); color: var(--ink); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 24px; max-width: 52ch; }

/* ===================== FOOTER ===================== */
.foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding-bottom: var(--edge);
}
.foot > .tile { min-height: 220px; }
.foot-statement { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.foot-statement p:first-child { font-size: var(--fs-lead); line-height: 1.2; font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.legal { font-size: var(--fs-small); color: var(--soft); }
.foot-nav { grid-column: 5 / 8; display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-time { grid-column: 8 / 10; display: flex; flex-direction: column; justify-content: space-between; }
.clock { font: 700 var(--fs-lead)/1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.foot-phone { grid-column: 10 / 13; display: flex; flex-direction: column; justify-content: space-between; }
.foot-phone a { font: 700 var(--fs-lead)/1.1 var(--font-display); color: var(--navy); text-decoration: none; }
.foot-word {
  grid-column: 1 / 9; min-height: 320px !important; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: clip;
}
.foot-word img { width: min(78%, 760px); height: auto; filter: brightness(0) invert(1); } /* the brief's reverse white logo */
.foot-cta {
  grid-column: 9 / 13; min-height: 320px !important; background: var(--action); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none;
  font: 700 var(--fs-lead)/1.1 var(--font-display);
  transition: background var(--t-hover) var(--ease-out);
}
.foot-cta svg { align-self: flex-end; transition: transform var(--t-hover) var(--ease-out); }
.foot-cta:hover { background: var(--action-press); }
.foot-cta:hover svg { transform: translateX(6px); }

/* ===================== MOTION ===================== */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-2%); } }
@keyframes place { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); }
  .js .rise.in {
    opacity: 1; transform: none;
    transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== TABLET AND PHONE: the board in two columns ===================== */
@media (max-width: 1023px) {
  :root { --gap: 6px; --edge: 8px; }
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "brand brand"
      "state state"
      "ticket ticket"
      "links links"
      "photo photo"
      "rail rail";
    min-height: 0;
  }
  .brand-row { grid-area: brand; padding: 14px 16px; }
  .brand-logo img { height: clamp(44px, 11vw, 64px); }
  .brand-cta { min-height: 48px; padding: 0 16px; white-space: nowrap; }
  .statement { grid-area: state; }
  .statement::after { width: 18%; } /* the slash stays clear of the text on narrow screens */
  .statement h1 { font-size: clamp(38px, 10.4vw, 64px); }
  .hero-photo { grid-area: photo; aspect-ratio: 4 / 3; }
  .ticket { grid-area: ticket; }
  .links { grid-area: links; grid-template-columns: 1fr 1fr; }
  .rail-right { grid-area: rail; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .r5 { grid-column: 1 / -1; min-height: 72px; }

  .services, .ratecard, .faq { padding-left: 8px; padding-right: 8px; }
  .services-head { flex-direction: column; align-items: stretch; }
  .services-head .btn { width: 100%; }
  .services-body { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .tabs-photo { display: none; }
  .tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr)); position: sticky; top: 0; z-index: 2;
    background: var(--ground); padding: 6px 0;
  }
  .tab { min-height: 64px; padding: 10px; font-size: var(--fs-small); }
  .bands li { grid-template-columns: 1fr; gap: 6px; padding: 16px; }

  .ratecard { grid-template-columns: 1fr; }
  .ratecard-side, .menu { grid-column: 1 / -1; }
  .ratecard-side .photo-tile { max-width: 60%; }
  .menu { columns: 1; margin-top: 40px; max-width: 560px; }
  .menu-group { padding-top: 40px; }

  .proof { grid-template-columns: 1fr 1fr; }
  .proof-head { grid-column: 1 / -1; min-height: 120px; }
  .proof .tile { aspect-ratio: auto; min-height: 150px; }
  .proof-photo { aspect-ratio: 1 !important; }

  .close { grid-template-columns: 1fr 1fr; margin: var(--gap) 0 0; }
  .close > * { height: auto; }
  .action-tile { grid-column: 1 / -1; grid-row: 1; padding: 28px 22px; min-height: 300px; grid-template-columns: 1fr; }
  .action-tile .btn { width: 100%; grid-column: 1; grid-row: auto; }
  .close .flank:first-child { grid-column: 1; grid-row: 2; height: 120px; border-radius: var(--radius); }
  .flank-colour { grid-column: 2; grid-row: 2; height: 120px; border-radius: var(--radius); }

  .faq { grid-template-columns: 1fr; }
  .faq h2, .faq-list { grid-column: 1 / -1; }
  .faq h2 { position: static; font-size: clamp(34px, 9vw, 54px); max-width: none; margin-bottom: 16px; }
  .faq summary { min-height: 64px; }

  .foot { grid-template-columns: 1fr 1fr; }
  .foot > .tile { min-height: 0; }
  .foot-word { grid-column: 1 / -1; grid-row: 1; min-height: 160px !important; }
  .foot-cta { grid-column: 1 / -1; grid-row: 2; min-height: 140px !important; }
  .foot-nav { grid-column: 1; }
  .foot-phone { grid-column: 2; }
  .foot-time { grid-column: 1; min-height: 120px !important; }
  .foot-statement { grid-column: 2; }
}

@media (max-width: 480px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-nav, .foot-phone, .foot-time, .foot-statement { grid-column: 1 / -1; }
  .two-up { grid-template-columns: 1fr; }
}

/* On the action-blue tile the button inverts to navy so it stays visible. */
.action-tile .btn { background: var(--navy); color: #fff; }
.action-tile .btn:hover { background: var(--ink); }
