/* H2O Surface Cleaners v0.1.0: tokens, reset, type, buttons, chrome. Spec: design/DESIGN.md sections 2 and 5. */
:root {
  --navy: #1d3049;
  --navy-2: #13213a;
  --orange: #f07a21;
  --orange-ink: #c4560a;
  --fill: #eef1f5;
  --line: rgb(29 48 73 / .14);
  --white: #fff;
  --water: #5aa9d6;
  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --text: 'Outfit', system-ui, sans-serif;
  --gutter: 4rem;
  --max: 132rem;
  --shadow: 0 1.2rem 4rem rgb(19 33 58 / .12);
  --ease: cubic-bezier(.2, 0, 0, 1);
  color-scheme: light;
  /* fluid root, 10% under the template (client 2026-10-19): 8.1 px at 1440, held between 7.2 and 9.9 px */
  font-size: clamp(7.2px, calc(100vw / 177.78), 9.9px);
  --hr: calc(1rem / .9);  /* header unit: the header and menu keep their size from before the 10% cut */
  --nav-gutter: calc(4 * var(--hr));
}
@media (max-width: 767px) { :root { font-size: 9px; --gutter: 1.6rem; --nav-gutter: calc(1.6 * var(--hr)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12rem; scrollbar-gutter: stable; }  /* locking scroll never shifts the page */
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.8rem/1.45 var(--text); overflow-x: clip; }
@media (max-width: 767px) { body { font-size: 1.6rem; } }
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1.6rem; top: -10rem; z-index: 100; background: var(--navy); color: var(--white); padding: 1.2rem 1.8rem; border-radius: 1rem; }
.skip:focus { top: 1.6rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: .4rem; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

/* Type */
h1, h2, .section__title { font: 800 6rem/.92 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
h1 .tone, h2 .tone { display: inline; }
.tone--accent { color: var(--orange-ink); }
.on-navy .tone--accent, .covered .tone--accent, .footer .tone--accent { color: var(--orange); }
.section__title { text-align: center; }
.section__lead { max-width: 64rem; margin: 2.4rem auto 0; text-align: center; font-size: 1.9rem; }
@media (max-width: 767px) { h1, h2, .section__title { font-size: clamp(3.2rem, 12vw, 4.2rem); } }

/* Buttons: label doubled, rolls up on hover (template nav button) */
.btn { --bg: var(--orange); --bg-hover: #f58d3f; --fg: var(--navy); display: inline-flex; align-items: center; justify-content: center; height: 5.2rem; padding: 0 2.4rem; border-radius: 1rem; border: 0; background: var(--bg); color: var(--fg); font: 600 1.6rem/1 var(--text); text-decoration: none; text-shadow: none; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 0 rgb(19 33 58 / 0); transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--bg-hover); transform: translateY(-2px); box-shadow: 0 .8rem 2rem -.6rem rgb(19 33 58 / .35); }
.btn--white { --bg: var(--white); --bg-hover: var(--fill); --fg: var(--navy); }
.btn--navy { --bg: var(--navy); --bg-hover: var(--navy-2); --fg: var(--white); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.chip { display: inline-grid; place-items: center; width: 4.8rem; height: 4.8rem; border-radius: 50%; background: var(--white); color: var(--navy); flex: none; }
.chip svg { width: 2rem; height: 2rem; }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: background-color .3s, color .3s; }
.chip--line:hover { background: var(--orange); color: var(--navy); box-shadow: none; }
.pill { display: inline-block; padding: .5rem 1.2rem; border-radius: 99rem; background: var(--fill); font: 500 1.3rem/1.2 var(--text); }

/* Navbar (template Navbar): floating white strip */
.nav { position: fixed; inset: calc(2.4 * var(--hr)) var(--nav-gutter) auto; z-index: 50; pointer-events: none; }
.nav__strip { pointer-events: auto; max-width: calc(150 * var(--hr)); margin: 0 auto; display: flex; align-items: center; gap: calc(2.4 * var(--hr)); padding: calc(.6 * var(--hr)) calc(.6 * var(--hr)) calc(.6 * var(--hr)) calc(2.2 * var(--hr)); background: var(--white); border-radius: calc(1.6 * var(--hr)); box-shadow: 0 calc(1.2 * var(--hr)) calc(4 * var(--hr)) rgb(19 33 58 / .12); }
.nav .btn, .menu .btn { height: calc(5.2 * var(--hr)); padding: 0 calc(2.4 * var(--hr)); border-radius: calc(1 * var(--hr)); font-size: calc(1.6 * var(--hr)); }
.nav__logo { flex: none; display: flex; align-items: center; gap: calc(1.2 * var(--hr)); text-decoration: none; }
.nav__mark { height: calc(5.6 * var(--hr)); width: auto; }
.nav__word { height: calc(2.4 * var(--hr)); width: auto; }
.nav__links { display: flex; align-items: center; gap: calc(3.2 * var(--hr)); margin-left: auto; }
.nav__link { font: 500 calc(1.5 * var(--hr))/1 var(--text); text-decoration: none; padding: calc(.6 * var(--hr)) 0; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { background-size: 100% 2px; }
.nav__phone { display: inline-flex; align-items: center; gap: calc(.8 * var(--hr)); font: 600 calc(1.5 * var(--hr))/1 var(--text); text-decoration: none; white-space: nowrap; }
.nav__phone svg { width: calc(1.8 * var(--hr)); color: var(--orange-ink); }
.nav__square { display: none; place-items: center; width: calc(5.2 * var(--hr)); height: calc(5.2 * var(--hr)); border-radius: calc(1 * var(--hr)); border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); cursor: pointer; flex: none; }
.nav__square--orange { background: var(--orange); box-shadow: none; }
.nav__square svg { width: calc(2.2 * var(--hr)); }
/* Hamburger: no box; its two bars turn into the X in place, so nothing in the header moves when the menu opens. */
.nav__toggle { display: none; position: relative; width: calc(5.2 * var(--hr)); height: calc(5.2 * var(--hr)); flex: none; border: 0; padding: 0; background: none; color: var(--navy); cursor: pointer; }
.nav__toggle i { position: absolute; left: 50%; top: 50%; width: calc(2.4 * var(--hr)); height: 2px; margin: -1px 0 0 -1.2rem; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle i:first-of-type { transform: translateY(-.45rem); }
.nav__toggle i:last-of-type { transform: translateY(calc(.45 * var(--hr))); }
.nav__toggle[aria-expanded="true"] i:first-of-type { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-of-type { transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .nav__links, .nav__phone { display: none; }
  .nav__square, .nav__toggle { display: grid; }
  .nav__strip { gap: calc(1 * var(--hr)); }
  .nav__strip > .btn { margin-left: auto; }
}
@media (max-width: 767px) {
  .nav { inset: calc(1.2 * var(--hr)) calc(1.2 * var(--hr)) auto; }
  .nav__strip { padding-left: calc(1.4 * var(--hr)); }
  .nav__logo { gap: calc(.8 * var(--hr)); }
  .nav__mark { height: calc(4 * var(--hr)); }
  .nav__word { height: calc(1.4 * var(--hr)); }
  .nav__strip > .btn { padding: 0 calc(1.6 * var(--hr)); height: calc(4.6 * var(--hr)); }
  .nav__square, .nav__toggle { width: calc(4.6 * var(--hr)); height: calc(4.6 * var(--hr)); }  /* hamburger matches the call button */
}
@media (max-width: 767px) {  /* phone: menu left, logo centred, call right (client 2026-10-19) */
  .nav__strip { display: grid; grid-template-columns: calc(4.6 * var(--hr)) 1fr calc(4.6 * var(--hr)); gap: calc(.8 * var(--hr)); padding: calc(.6 * var(--hr)); }
  .nav__strip > .btn { display: none; }
  .nav__toggle { order: -1; }
  .nav__logo { justify-self: center; }
}

/* Menu sheet (phone) */
/* Menu sheet: opens under the fixed header (non-modal, below its z-index), so the header never moves or redraws. */
.menu { position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: calc(9.6 * var(--hr)) var(--nav-gutter) calc(3.2 * var(--hr)); border: 0; background: var(--white); color: var(--navy); overflow-y: auto; }
.menu[open] { display: flex; flex-direction: column; }
.menu__links { margin: calc(3.2 * var(--hr)) 0 auto; }
.menu__links li { border-bottom: 1px solid var(--line); }
.menu__links a { display: block; padding: calc(1.6 * var(--hr)) calc(.4 * var(--hr)); font: 800 calc(3.4 * var(--hr))/1 var(--display); text-transform: uppercase; text-decoration: none; }
.menu__foot { display: grid; gap: calc(1.6 * var(--hr)); margin-top: calc(3.2 * var(--hr)); }
.menu__call { display: inline-flex; align-items: center; justify-content: center; gap: calc(.8 * var(--hr)); font-weight: 600; text-decoration: none; }
.menu__call svg { width: calc(1.8 * var(--hr)); }
.menu { font-size: calc(1.6 * var(--hr)); }
html.locked, html.locked body { overflow: hidden; }

/* Footer (template Footer) */
.footer { background: var(--white); color: var(--navy); padding: 6.4rem 0 3.2rem; border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 3.2rem; padding-bottom: 4.8rem; border-bottom: 1px solid var(--line); }
.footer__logo { display: flex; align-items: center; gap: 1.6rem; min-width: 0; }
.footer__mark { height: 9.6rem; width: auto; flex: none; }
.footer__word { height: 3rem; width: auto; min-width: 0; }
.footer__side { display: flex; align-items: center; gap: 2.4rem; }
.footer__tag { font: 800 2.6rem/1 var(--display); text-transform: uppercase; color: var(--orange-ink); white-space: nowrap; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1.4fr; gap: 4rem; padding-top: 4.8rem; }
.footer address { font-style: normal; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange-ink); }
.footer h2 { font: 600 1.5rem/1 var(--text); text-transform: none; letter-spacing: 0; margin-bottom: 1.6rem; color: var(--orange-ink); }
.footer__col li { padding: .4rem 0; white-space: nowrap; }
.footer__towns ul { columns: 2; column-gap: 3.2rem; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 7.2rem; padding-top: 2.4rem; border-top: 1px solid var(--line); font-size: 1.4rem; }
.credit { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; }
.credit svg { flex: none; width: 1.4rem; height: 1.4rem; }
.credit__mark { font-weight: 600; letter-spacing: -.04em; color: var(--navy); }
.credit__dot { color: oklch(67.9% .183 44.6); }  /* happyllama brand orange */
.social { display: flex; gap: 1.2rem; }
.social__link { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); transition: border-color .3s, color .3s, background-color .3s; }
.social__link:hover { border-color: var(--orange); background: var(--orange); color: var(--navy); }
.social__link svg { width: 2rem; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__top { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) {
  .footer { padding: 4rem 0 2.4rem; }
  .footer__top { gap: 1.6rem; padding-bottom: 2.4rem; }
  .footer__mark { height: 5.6rem; } .footer__word { height: 1.7rem; }
  .footer__side { width: 100%; justify-content: space-between; gap: 1.2rem; }
  .footer__tag { font-size: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.6rem; padding-top: 2.4rem; font-size: 1.5rem; }
  .footer__grid > :first-child, .footer__towns { grid-column: 1 / -1; }
  .footer h2 { margin-bottom: .8rem; }
  .footer__col li { padding: .2rem 0; }
  .footer__legal { margin-top: 3.2rem; padding-top: 1.6rem; font-size: 1.3rem; }
}

/* Still mode: reduced motion or paused. Everything static and visible. */
html.still *, html.still *::before, html.still *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

/* Hyphenated words stay on one line (tools/parts.py keep_words). */
.nb { white-space: nowrap; }
