/* Restorely Home
   Palette: harbor (ink), mist (page), paper, hi-vis (the call colour), water, fir. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --harbor: #0F2D40;
  --harbor-2: #1E4A63;
  --slate: #47606E;
  --mist: #EDF2F3;
  --paper: #FFFFFF;
  --line: #C9D5D8;
  --hivis: #FFC629;
  --hivis-deep: #F0B200;
  --hivis-tint: #FFF1BF;
  --water: #4BA3D6;
  --fir: #2E6B52;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(3rem, 7vw, 5.5rem);
  --r: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--harbor);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--harbor); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--harbor); color: #fff; padding: .6rem 1rem; border-radius: var(--r);
}
.skip:focus { top: 1rem; }

/* ---------- type ---------- */

h1 {
  font-size: clamp(2.125rem, 1.25rem + 3.1vw, 3.375rem);
  font-weight: 800;
  font-stretch: 94%;
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  font-weight: 800;
  font-stretch: 94%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }

.more {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--hivis-deep);
}
.more:hover { text-decoration-color: var(--harbor); }

/* ---------- call buttons ---------- */

.call {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--hivis); color: var(--harbor);
  font-weight: 800; font-size: 1.125rem; line-height: 1.1;
  text-decoration: none;
  padding: .95em 1.4em;
  border-radius: var(--r);
  transition: background-color .15s;
}
.call:hover { background: var(--hivis-deep); }
.call svg { width: 1.15em; height: 1.15em; flex: none; }

.call-sm { font-size: 1rem; padding: .7em 1em; }

.call-xl {
  font-size: clamp(1.375rem, 1rem + 1.7vw, 2rem);
  font-stretch: 108%;
  padding: .8em 1.1em;
  border-radius: 14px;
  box-shadow: 0 2px 0 var(--hivis-deep), 0 14px 28px -14px rgb(15 45 64 / .45);
}

.call-dark { background: var(--harbor); color: #fff; font-size: 1rem; font-weight: 700; padding: .75em 1.1em; }
.call-dark:hover { background: var(--harbor-2); }
.call-dark svg { color: var(--hivis); }

/* ---------- header ---------- */

.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; padding-block: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { font-size: 1.3125rem; font-weight: 800; font-stretch: 96%; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-name span { font-weight: 500; }
.brand-light { color: #fff; }

.site-nav { display: flex; gap: clamp(.9rem, 2vw, 1.75rem); }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 1rem; padding-block: .4rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--hivis-deep); }

.menu-toggle {
  display: none;
  font: inherit; font-weight: 650; font-size: 1rem; color: var(--harbor);
  background: none; border: 2px solid var(--harbor); border-radius: var(--r);
  padding: .5em .8em; cursor: pointer;
}

@media (min-width: 66rem) {
  .top { position: sticky; top: 0; z-index: 20; }
}

@media (max-width: 65.99rem) {
  .top-row { flex-wrap: wrap; }
  .site-nav { order: 5; flex-basis: 100%; flex-wrap: wrap; gap: .25rem 1.25rem; padding-bottom: .25rem; }
  .js .menu-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; flex-direction: column; gap: 0; }
  .js .site-nav a { padding-block: .8rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 33rem) {
  .top-call-label { display: none; }
  .brand-name { font-size: 1.125rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .top-row { gap: .6rem; }
  .call-sm { padding: .7em .8em; }
}
@media (max-width: 24.5rem) {
  .top-call > span { display: none; }
}
@media (max-width: 22rem) {
  .brand-name { font-size: 1rem; }
  .brand { gap: .45rem; }
  .menu-toggle { padding: .45em .6em; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(1.75rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }

.hero-grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); }
}

.lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.45; max-width: 34em; margin-top: 1.1rem; color: var(--harbor-2); }

.hero-copy .call-xl { margin-top: 1.75rem; }
@media (max-width: 33rem) { .hero-copy .call-xl { display: flex; } }

.alt-line { margin-top: .9rem; font-weight: 600; color: var(--harbor-2); }
.alt-line a { color: var(--harbor); font-weight: 800; text-decoration: underline; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.facts { margin-top: 1.5rem; display: grid; gap: .55rem; font-weight: 550; }
.facts li { display: flex; gap: .65rem; align-items: flex-start; }
.facts svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .22rem; color: var(--fir); }

.fine { margin-top: 1.5rem; font-size: .875rem; line-height: 1.5; color: var(--slate); max-width: 40em; }

/* ---------- house picker ---------- */

.picker { max-width: 36rem; }
.picker-title { font-size: 1.375rem; font-stretch: 100%; letter-spacing: 0; }
.picker-hint { color: var(--harbor-2); margin-top: .15rem; }

.house { width: 100%; height: auto; margin-top: .75rem; overflow: hidden; border-radius: 14px; }

.house .zone { cursor: pointer; outline: none; }
.house .zone-fill { fill: var(--paper); stroke: var(--harbor); stroke-width: 5; stroke-linejoin: round; transition: fill .18s; }
.house .zone-roof .zone-fill { fill: var(--harbor-2); }
.house .zone-ink { stroke: var(--harbor); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.house .zone-roof .zone-ink { stroke: rgb(255 255 255 / .28); transition: stroke .18s; }
.house .zone-label { font-size: 21px; font-weight: 750; fill: var(--harbor); }
.house .zone-roof .zone-label { fill: #fff; transition: fill .18s; }
.house .water { fill: var(--water); }

.house .zone:hover .zone-fill { fill: var(--hivis-tint); }
.house .zone-roof.zone:hover .zone-fill { fill: #2C6282; }
.house .zone.is-on .zone-fill { fill: var(--hivis); }
.house .zone-roof.is-on .zone-label { fill: var(--harbor); }
.house .zone-roof.is-on .zone-ink { stroke: rgb(15 45 64 / .3); }
.house .zone:focus-visible .zone-fill { stroke: var(--water); stroke-width: 8; }

.house .rain { animation: rain .9s linear infinite; }
@keyframes rain { to { transform: translate(-10.2px, 48px); } }

.panels { margin-top: .6rem; }
.panel { background: var(--paper); border-radius: var(--r); padding: 1.1rem 1.2rem 1.2rem; }
.panel + .panel { margin-top: .6rem; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .9rem; }
.js .panel[hidden] { display: none; }

/* ---------- bands ---------- */

.band { padding-block: var(--band); }
.band-paper { background: var(--paper); }

.split { display: grid; gap: 1.75rem; }
.split-head p { margin-top: .9rem; color: var(--harbor-2); max-width: 26em; }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
}

/* how it works */
.steps { counter-reset: step; display: grid; gap: 1.75rem 2.25rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 5px solid var(--harbor); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 2.75rem; font-weight: 800; font-stretch: 112%; line-height: 1;
  color: var(--harbor-2);
  margin-bottom: .6rem;
}
.steps p { margin-top: .4rem; color: var(--harbor-2); }
@media (max-width: 39.99rem) {
  .steps { gap: 1.25rem; margin-top: 1.5rem; }
  .steps li { display: grid; grid-template-columns: 2.75rem 1fr; border-top-width: 3px; padding-top: .9rem; }
  .steps li::before { grid-row: 1 / span 2; font-size: 2.25rem; margin-bottom: 0; }
  .steps li > * { grid-column: 2; }
}

/* directory */
.band-intro { margin-top: .75rem; color: var(--harbor-2); max-width: 40em; }
.directory { display: grid; gap: 2.25rem 2.25rem; margin-top: 2.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.dir-col { border-top: 5px solid var(--harbor); padding-top: 1rem; }
.dir-col h3 { font-size: 1.375rem; font-weight: 800; }
.dir-col h3 a { text-decoration: none; }
.dir-col h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dir-call {
  display: inline-flex; align-items: center; gap: .45em; margin-top: .5rem;
  background: var(--hivis); color: var(--harbor); text-decoration: none;
  font-weight: 800; font-size: 1.0625rem; line-height: 1.1;
  padding: .55em .8em; border-radius: var(--r);
}
.dir-call:hover { background: var(--hivis-deep); }
.dir-call svg { width: 1em; height: 1em; flex: none; }
.dir-col ul { margin-top: .9rem; }
.dir-col li { padding-block: .5rem; border-bottom: 1px solid var(--line); color: var(--harbor-2); }
.dir-col li a { color: var(--harbor); font-weight: 600; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dir-col li a:hover { text-decoration-color: var(--harbor); }

.shutoff {
  margin-top: 3rem;
  background: var(--harbor); color: #fff;
  border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  display: grid; gap: .6rem 2.5rem; align-items: center;
  border-left: 10px solid var(--water);
}
.shutoff h3 { font-size: 1.4375rem; font-weight: 800; }
.shutoff p { color: #DCE7EA; max-width: 40em; }
.shutoff .call { margin-top: .6rem; justify-self: start; }
.shutoff :focus-visible { outline-color: #fff; }
@media (min-width: 60rem) {
  .shutoff { grid-template-columns: 1fr auto; }
  .shutoff .call { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* areas */
.region { font-size: 1.375rem; font-weight: 800; border-top: 5px solid var(--harbor); padding-top: 1rem; }
.region:not(:first-child) { margin-top: 2.75rem; }
.region-intro { margin-top: .4rem; color: var(--harbor-2); }
.region-extra { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.cities { margin-top: .75rem; }
.metros { margin-top: .75rem; }
.metros li { display: grid; gap: .1rem 1.5rem; padding-block: .7rem; border-bottom: 1px solid var(--line); color: var(--harbor-2); }
.metros strong { color: var(--harbor); }
.metros a { color: var(--harbor); font-weight: 600; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.metros a:hover { text-decoration-color: var(--harbor); }
@media (min-width: 40rem) { .metros li { grid-template-columns: 11rem 1fr; } }

/* cities */
.cities { columns: 2; column-gap: 2rem; }
@media (min-width: 40rem) { .cities { columns: 3; } }
@media (min-width: 72rem) { .cities { columns: 4; } }
.cities li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.cities a { display: block; padding-block: .6rem; text-decoration: none; font-weight: 600; }
.cities a:hover { text-decoration: underline; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* checklist */
.checklist { display: grid; gap: 1.25rem 2.25rem; }
@media (min-width: 40rem) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; color: var(--harbor-2); }
.checklist strong { color: var(--harbor); }
.checklist svg {
  width: 1.75rem; height: 1.75rem; flex: none; padding: .3rem;
  background: var(--paper); color: var(--fir);
  border: 2px solid var(--harbor); border-radius: 6px;
}

/* faq */
.faq { border-top: 5px solid var(--harbor); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1.1875rem; font-weight: 700; line-height: 1.3;
  padding-block: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .7rem; height: .7rem; margin-right: .3rem;
  border-right: 3px solid var(--harbor); border-bottom: 3px solid var(--harbor);
  transform: translateY(-.15rem) rotate(45deg);
  transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(.15rem) rotate(-135deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--harbor-2); max-width: 44em; }

/* ---------- service and city pages ---------- */

.crumbs { display: flex; gap: .5rem; font-size: .9375rem; font-weight: 600; color: var(--slate); margin-bottom: .9rem; }
.crumbs a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: var(--harbor); }

.firststeps { background: var(--paper); border-radius: 14px; border-top: 8px solid var(--hivis); padding: clamp(1.25rem, 3vw, 2rem); }
.firststeps h2 { font-size: 1.5rem; }
.firststeps ol { counter-reset: fs; margin-top: 1rem; display: grid; gap: .9rem; }
.firststeps li { counter-increment: fs; display: grid; grid-template-columns: 2rem 1fr; gap: .25rem; color: var(--harbor-2); }
.firststeps li::before { content: counter(fs); font-weight: 800; font-stretch: 112%; font-size: 1.25rem; line-height: 1.3; color: var(--harbor); }
.firststeps strong { color: var(--harbor); }

.article-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .article-grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; align-items: start; } }

.prose { max-width: 42rem; }
.prose-section + .prose-section { margin-top: 2.75rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.prose p, .prose .bullets { margin-top: 1rem; color: var(--harbor-2); }
.prose p .call { margin-top: .25rem; }
.prose a:not(.call), .faq a { color: var(--harbor); font-weight: 600; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:not(.call):hover, .faq a:hover { text-decoration-color: var(--harbor); }
.prose strong { color: var(--harbor); }
.bullets { display: grid; gap: .55rem; }
.bullets li { padding-left: 1.4rem; position: relative; }
.bullets li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .5rem; height: .5rem; background: var(--hivis-deep); border-radius: 2px; }

.sidecall { background: var(--harbor); color: #DCE7EA; border-radius: 14px; padding: 1.5rem; display: grid; gap: .8rem; }
.sidecall-title { color: #fff; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.sidecall .call { font-size: 1.25rem; font-stretch: 104%; }
.sidecall-note { font-size: .875rem; }
.sidecall :focus-visible { outline-color: #fff; }
@media (min-width: 60rem) { .sidecall { position: sticky; top: 6rem; } }

.band-tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.related { display: grid; gap: 0 2rem; }
@media (min-width: 40rem) { .related { grid-template-columns: 1fr 1fr; } }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding-block: .6rem; font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.related + .fine { margin-top: 1.5rem; max-width: 48em; }

/* ---------- standing pages ---------- */

.hero-solo { grid-template-columns: minmax(0, 46rem); }
.hero-article.hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.prose h3 { margin-top: 1.5rem; font-size: 1.1875rem; }

.service-row { display: grid; gap: 1.25rem 3rem; padding-block: 2rem; border-top: 5px solid var(--harbor); }
.service-row:last-child { padding-bottom: 0; }
@media (min-width: 60rem) { .service-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.service-row h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.service-row h2 a { text-decoration: none; }
.service-row h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.service-row p { margin-top: .6rem; color: var(--harbor-2); max-width: 34em; }
.service-row .bullets { color: var(--harbor-2); align-content: start; }
.service-row .bullets a { color: var(--harbor); font-weight: 600; text-decoration-color: var(--hivis-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.service-row .service-actions { margin-top: 1.1rem; }

.lines { border-top: 5px solid var(--harbor); }
.lines li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.line-name { font-size: 1.1875rem; font-weight: 700; }
.line-name a { text-decoration: none; }
.line-name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lines .dir-call { margin-top: 0; }

.cities span { display: block; padding-block: .6rem; color: var(--harbor-2); }

/* ---------- closing call band ---------- */

.callband { background: var(--hivis); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.callband h2 { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); }
.bignum {
  display: inline-flex; align-items: center; gap: .3em;
  margin-top: .5rem;
  font-size: clamp(1.5rem, 8vw, 6.5rem);
  font-weight: 800; font-stretch: 112%; line-height: 1.05; letter-spacing: -0.02em;
  text-decoration: none;
}
.bignum svg { width: .62em; height: .62em; flex: none; }
.bignum:hover .num { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }
.callband p { margin-top: .6rem; font-weight: 600; max-width: 40em; margin-inline: auto; }

/* ---------- footer ---------- */

.foot { background: var(--harbor); color: #DCE7EA; padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.foot :focus-visible { outline-color: #fff; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand p { margin-top: 1.25rem; }
.foot-num { font-size: 1.5rem; font-weight: 800; font-stretch: 108%; color: #fff; text-decoration: none; }
.foot-num:hover { text-decoration: underline; }
.foot h2 { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; color: #fff; }
.foot nav ul { margin-top: .6rem; }
.foot nav a { display: inline-block; padding-block: .3rem; text-decoration: none; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .18); font-size: .875rem; display: grid; gap: .6rem; }
.foot-legal p { max-width: 62em; }

/* ---------- sticky call bar (phones) ---------- */

.stickycall { display: none; }
@media (max-width: 47.99rem) {
  .stickycall {
    display: flex;
    position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 30;
    box-shadow: 0 10px 30px -8px rgb(15 45 64 / .55), 0 0 0 2px var(--harbor);
    transition: transform .2s, opacity .2s;
  }
  .stickycall.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .foot { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .house .rain { animation: none; }
  * { transition: none !important; }
}
