/* Valoir Remodeling. Colors sampled from the logo and capability sheet. */
:root {
  --blue-900: #02496e;
  --blue-700: #0a6793;
  --blue-500: #1b83ad;
  --blue-300: #48adcf;
  --sky: #79c6e1;
  --cream: #f5f2ef;
  --cream-line: #d9d3cc;
  --white: #ffffff;
  --taupe: #6b6058;
  --ink: #2f2a26;
  --error: #b3261e;

  --font-body: "Jost", "Century Gothic", "Segoe UI", sans-serif;
  --font-script: "Allura", "Segoe Script", cursive;
  --font-numeral: "Cormorant Garamond", Georgia, serif;

  --space-section: clamp(4rem, 9vw, 7rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-offset: 8rem;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-weight: 400; line-height: 1.12; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--blue-900); }
h3 { font-weight: 500; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; border-radius: 2px; }
:target { scroll-margin-top: var(--header-offset); }

.container { width: min(100%, 76rem); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--white); color: var(--blue-900);
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--lg { width: 1.75rem; height: 1.75rem; stroke-width: 1.4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.6rem;
  border: 1px solid transparent; border-radius: 3px;
  font: inherit; font-weight: 500; letter-spacing: .02em; text-align: center; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--solid { background: var(--blue-700); color: var(--white); }
.btn--solid:hover { background: var(--blue-900); }
.btn--light { background: var(--cream); color: var(--blue-900); }
.btn--light:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .75); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--blue-900); color: var(--white); }

.utility { border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; font-weight: 300; }
.utility__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .3rem; }
.utility__item { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
a.utility__item:hover { text-decoration: underline; text-underline-offset: 3px; }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .5rem; }
.brand { flex: none; display: block; }
.brand img { width: auto; height: 5rem; }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.primary-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 400; text-decoration: none; white-space: nowrap;
}
.primary-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nav-phone { font-weight: 500 !important; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .9rem;
  background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 3px;
  color: var(--white); font: inherit; cursor: pointer;
}

/* Hero: the logo's deep-to-sky gradient melting into the room */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--blue-900); }
.hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__wash {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    var(--blue-900) 0%,
    rgba(2, 73, 110, .94) 26%,
    rgba(10, 103, 147, .72) 50%,
    rgba(27, 131, 173, .16) 76%,
    rgba(27, 131, 173, 0) 100%);
}
.hero__content {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(15rem, 30vw, 24rem);
}
.hero h1 { max-width: 15em; font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 300; }
.script { font-family: var(--font-script); font-size: 1.5em; line-height: .8; letter-spacing: 0; padding-inline: .05em; }
.hero__lede { max-width: 36em; margin-top: 1.25rem; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero__arc { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(2.5rem, 7vw, 6.5rem); fill: var(--white); }

/* Promises */
.promises { background: var(--white); padding-block: 1rem clamp(2.5rem, 5vw, 3.5rem); }
.promises__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); }
.promises__list li { display: flex; align-items: center; gap: .9rem; color: var(--blue-900); font-weight: 500; line-height: 1.35; }
.promises__list .icon { color: var(--blue-500); }

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

.section-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head p:not(.numeral) { margin-top: .9rem; color: var(--taupe); }
.section-head .mark { margin-inline: auto; }
.section-head--light h2 { color: var(--white); }

.mark { width: 5rem; height: auto; margin-bottom: 1rem; }

.numeral { font-family: var(--font-numeral); font-weight: 400; color: var(--taupe); line-height: 1; }
.section-head .numeral { font-size: clamp(5rem, 12vw, 8.5rem); margin-bottom: .1em; }

/* Trades */
.trades { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.trade img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.trade h3 {
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--cream-line);
  color: var(--blue-900); font-size: .95rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.trade p { margin-top: .5rem; color: var(--taupe); }

.plus-one {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(100deg, var(--blue-900), var(--blue-700));
  color: var(--white);
}
.plus-one__numeral { font-family: var(--font-numeral); font-size: clamp(4rem, 8vw, 6rem); line-height: 1; }
.plus-one h3 { font-size: 1.35rem; font-weight: 400; }
.plus-one p:not(.plus-one__numeral) { margin-top: .35rem; max-width: 40em; font-weight: 300; }

/* How we work */
.work { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 5.5rem); }
.work__copy p { margin-top: 1.1rem; max-width: 34em; }
.work__copy strong { font-weight: 600; color: var(--blue-900); }
.work__copy .btn { margin-top: 1.9rem; }

.work__figure { position: relative; padding: 0 3rem 3rem 0; }
.work__photo { position: relative; width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.work__block {
  position: absolute; right: 0; bottom: 0; width: 72%; height: 44%;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: .55rem;
  background: linear-gradient(160deg, var(--blue-700), var(--blue-300));
}
.work__block img { width: 3.6rem; height: auto; }
.work__vertical {
  position: absolute; top: 0; right: .55rem;
  writing-mode: vertical-rl;
  color: var(--taupe); font-size: .85rem; letter-spacing: .28em; text-transform: uppercase;
}

/* Before/after */
.project {
  display: grid; grid-template-columns: minmax(0, 31rem) minmax(0, 24rem); justify-content: center; align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.project__copy h3 {
  color: var(--blue-900); font-size: .95rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.project__copy p { margin-top: .75rem; font-size: 1.3rem; font-weight: 300; line-height: 1.4; color: var(--blue-900); }
.project__copy .expect-list { margin-top: 1.25rem; }
.project__copy .btn { margin-top: 1.9rem; }

.compare {
  position: relative; --pos: 50%;
  width: 100%; aspect-ratio: 1000 / 1391; overflow: hidden;
  background: var(--cream-line); touch-action: pan-y;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag {
  position: absolute; top: .9rem; padding: .15rem .7rem;
  background: var(--blue-900); color: var(--white); font-size: .875rem; pointer-events: none;
}
.compare__tag--before { left: .9rem; }
.compare__tag--after { right: .9rem; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.compare__knob {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center;
  width: 3rem; height: 3rem; transform: translate(-50%, -50%);
  background: var(--white); border-radius: 50%; color: var(--blue-900);
}
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.compare:focus-within { outline: 3px solid var(--blue-300); outline-offset: 3px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.steps li { padding-top: 1rem; border-top: 1px solid var(--cream-line); }
.numeral--step { display: block; color: var(--blue-500); font-size: 4rem; }
.steps h3 { margin-top: .5rem; color: var(--blue-900); font-size: 1.2rem; }
.steps p { margin-top: .45rem; color: var(--taupe); }

/* Contact */
.contact {
  padding-block: var(--space-section);
  background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-500) 100%);
}
.contact__panel { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--white); }

.quote-form { padding: clamp(1.5rem, 4vw, 3rem); }
.quote-form h3, .contact__side h3 { color: var(--blue-900); font-size: 1.4rem; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1.4rem 1.6rem; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .25rem; color: var(--ink); font-size: .95rem; font-weight: 500; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .6rem .8rem;
  background: var(--white); color: var(--ink);
  border: 1px solid #8f867e; border-radius: 3px;
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { margin-top: .25rem; color: var(--error); font-size: .925rem; line-height: 1.35; }
.form-status { margin-top: 1rem; color: var(--blue-900); font-weight: 500; }
.form-status[data-state="error"] { color: var(--error); }
.form-status:empty { display: none; }
.botcheck { position: absolute; left: -9999px; }
.btn:disabled { opacity: .6; cursor: progress; }

.contact__side { padding: clamp(1.5rem, 4vw, 3rem); background: var(--cream); }
.contact__phone {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem;
  color: var(--blue-900); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.contact__phone:hover { color: var(--blue-700); }
.contact__email { display: block; margin-top: .5rem; color: var(--blue-700); overflow-wrap: anywhere; }
.contact__expect { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--cream-line); }
.expect-list { margin-top: 1rem; }
.expect-list li { position: relative; padding-left: 1.5rem; margin-top: .65rem; color: var(--ink); line-height: 1.45; }
.expect-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: .7rem; height: .4rem;
  border-left: 2px solid var(--blue-500); border-bottom: 2px solid var(--blue-500); transform: rotate(-45deg);
}

/* Footer */
.site-footer { background: var(--blue-900); color: var(--white); font-weight: 300; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding-block: 3rem 2rem; }
.site-footer__logo { width: 11.5rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-footer a { display: inline-block; padding-block: .2rem; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }
.site-footer__legal { padding: 1rem var(--gutter); border-top: 1px solid rgba(255, 255, 255, .16); font-size: .875rem; text-align: center; }

/* Tablet */
@media (max-width: 62rem) {
  :root { --header-offset: 6rem; }
  .utility { display: none; }
  .brand img { height: 4.25rem; }

  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--blue-900); border-top: 1px solid rgba(255, 255, 255, .16);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav .btn { margin-top: .75rem; }

  .promises__list { grid-template-columns: 1fr; gap: 1rem; max-width: 34rem; }
  .trades, .steps { grid-template-columns: repeat(2, 1fr); }
  .work, .project { grid-template-columns: minmax(0, 1fr); }
  .project { justify-items: start; }
  .compare { max-width: 31rem; }
  .work__figure { max-width: 34rem; }
  .contact__panel { grid-template-columns: 1fr; }
  .plus-one { grid-template-columns: auto 1fr; }
  .plus-one .btn { grid-column: 1 / -1; justify-self: start; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 36rem) {
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .trade img { aspect-ratio: 3 / 2; }
  .trades, .steps, .form-grid { grid-template-columns: 1fr; }
  .plus-one { grid-template-columns: 1fr; }
  .plus-one .btn { width: 100%; }
  .quote-form .btn { width: 100%; }
  .project__copy .btn { width: 100%; }
  .work__figure { padding: 0 2.25rem 2.25rem 0; }
  .work__block { height: 26%; }
  .work__vertical { font-size: .75rem; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
