/* Integrity Painting, LLC. Palette: primer gray, white, card black, deck slate, rail gray, bare pine. */
:root {
  --primer: #E6E8E8;
  --white: #FFFFFF;
  --ink: #17191B;
  --black: #000000;
  --slate: #434D56;
  --slate-deep: #343C44;
  --rail: #BCC3C6;
  --pine: #DDC9A1;
  --muted: #4E555A;
  --line: #C9CDCE;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.125rem, 3.5vw, 3.125rem); line-height: 1.06; }
h3 { font: 600 1.25rem/1.3 var(--sans); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.deck__done :focus-visible, .deck__pairs :focus-visible, .about :focus-visible, .foot :focus-visible,
.sticky-book :focus-visible, .lightbox :focus-visible, .mobile-menu :focus-visible, .hero__stage :focus-visible { outline-color: var(--white); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--black); color: var(--white); padding: 12px 16px; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 2px solid transparent; border-radius: 3px; font: 600 1.0625rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--ink { background: var(--black); color: var(--white); }
.btn--ink:hover { background: var(--slate); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }

.tag { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px 6px; font: 600 0.875rem/1.2 var(--sans); border-radius: 2px; }
.tag--before { background: var(--white); color: var(--ink); }
.tag--after { background: var(--black); color: var(--white); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; background: var(--primer); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font: italic 600 1.625rem/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand span { font-style: normal; font-weight: 500; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { font-size: 1rem; font-weight: 500; text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.top__nav a:hover { border-bottom-color: var(--ink); }
.top__phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.top__phone:hover { text-decoration: underline; }
.top__cta { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.top__menu { display: none; width: 48px; height: 48px; margin-left: auto; place-items: center; background: none; border: 0; cursor: pointer; }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--black); color: var(--white); z-index: 50; padding: 16px 24px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu__close { align-self: flex-end; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 8px; }
.mobile-menu nav a { font: 500 1.625rem/1.2 var(--serif); text-decoration: none; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.mobile-menu__phone { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--pine); color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 3px; }

/* Hero */
.hero { background: var(--primer); }
.hero__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; padding-block: 48px 40px; }
h1 { font-size: clamp(2.625rem, 5.1vw, 4.75rem); line-height: 1; max-width: 16ch; }
.hero__lead { font-size: 1.1875rem; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__stage { background: linear-gradient(to bottom, var(--primer) 0, var(--primer) 240px, var(--slate) 240px); color: var(--white); padding-bottom: 44px; }
.hero__fig { position: relative; }
.hero__after { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; object-position: 50% 62%; }
.hero__tag { left: auto; right: 16px; bottom: 16px; }
.hero__print { position: absolute; left: 20px; bottom: 20px; width: 27%; border: 6px solid var(--white); background: var(--white); }
.hero__print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.hero__print .tag { left: 8px; bottom: 8px; background: var(--ink); color: var(--white); }
.hero__cap { margin-top: 12px; font-size: 0.9375rem; color: var(--rail); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, .28); }
.facts li { padding: 22px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .28); }
.facts b { display: block; font: 500 1.4375rem/1.2 var(--serif); }
.facts span { display: block; margin-top: 4px; font-size: 1rem; color: var(--rail); }

/* Shared section head */
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; margin-bottom: 48px; }
.sec-head p { max-width: 38em; color: var(--muted); }

/* Services */
.services { padding-block: 104px 88px; }
.svc { columns: 3; column-gap: 40px; }
.svc__item { break-inside: avoid; margin-bottom: 44px; }
.svc__item img { width: 100%; }
.svc__item:nth-child(6) img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.svc__item:nth-child(3) img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 60%; }
.svc__item h3 { margin-top: 16px; font: 500 1.625rem/1.15 var(--serif); letter-spacing: -0.01em; }
.svc__item p { margin-top: 6px; color: var(--muted); font-size: 1.0625rem; }
.svc__also { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 52em; }

/* One deck, start to finish */
.deck__split { background: linear-gradient(to right, var(--pine) 0, var(--pine) calc(50% - 48px), var(--slate) calc(50% - 48px)); }
.deck__split { display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 552px) minmax(0, 648px) minmax(24px, 1fr); }
.deck__bare { grid-column: 2; padding: 96px 48px 96px 0; }
.deck__done { grid-column: 3; padding: 96px 0 96px 48px; color: var(--white); }
.deck__bare h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1; max-width: 8ch; }
.deck__intro { margin-top: 22px; max-width: 26em; }
.stages { display: grid; gap: 36px; }
.deck__bare .stages { margin-top: 48px; gap: 44px; }
.stage img { width: 100%; }
.deck__done .stage img { aspect-ratio: 3 / 2; object-fit: cover; }
.stage__txt { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; }
.stage__n { flex: none; font: 500 3.25rem/0.9 var(--serif); min-width: 0.7em; }
.stage__txt h3 { font-size: 1.25rem; }
.stage__txt p { margin-top: 2px; font-size: 1.0625rem; }
.deck__done .stage__txt p { color: #DDE2E4; }
.deck__quote { margin-top: 44px; padding-left: 24px; border-left: 4px solid var(--pine); }
.deck__quote blockquote { font: 400 1.5rem/1.38 var(--serif); }
.deck__quote figcaption { margin-top: 12px; font-size: 1rem; color: var(--rail); }
.deck__pairs { background: var(--slate-deep); color: var(--white); padding-block: 72px 96px; }
.deck__sub { font: 500 1.875rem/1.15 var(--serif); letter-spacing: -0.01em; }
.deck__dates { margin-top: 6px; color: var(--rail); font-size: 1rem; }
.pairs2 { display: grid; grid-template-columns: 16fr 9fr; gap: 40px; margin-top: 32px; align-items: start; }

.pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair__img { position: relative; }
.pair__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 15 / 16; }
.pair--wide .pair__img img, .pair--porch .pair__img img { aspect-ratio: 4 / 3; }
.pair--tall .pair__img img { aspect-ratio: 3 / 4; }
.pair figcaption { margin-top: 12px; font-size: 1.0625rem; }
.deck__pairs .pair figcaption { color: #DDE2E4; }

/* Before and after */
.ba { padding-block: 104px; }
.ba__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.ba .pair figcaption { color: var(--muted); }
.ba .pair figcaption b { color: var(--ink); font-weight: 600; }

/* Recent work */
.work { background: var(--primer); padding-block: 104px; }
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.g { position: relative; padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g:hover img { opacity: .9; }
.g--a { grid-column: span 6; height: 440px; }
.g--b, .g--g { grid-column: span 3; height: 440px; }
.g--c, .g--d, .g--f { grid-column: span 4; height: 290px; }
.g--e { grid-column: span 7; height: 320px; }
.g--h { grid-column: span 5; height: 320px; }

/* Reviews */
.reviews { padding-block: 104px; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.reviews__score { display: flex; align-items: baseline; gap: 14px; }
.reviews__score b { font: 500 3.5rem/0.9 var(--serif); }
.reviews__score span { color: var(--muted); font-size: 1.0625rem; }
.rev figcaption { margin-top: 12px; font-weight: 600; font-size: 1rem; }
.rev figcaption span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.rev--lead { padding-block: 44px; border-bottom: 1px solid var(--line); }
.rev--lead blockquote { font: 400 clamp(1.5rem, 2.3vw, 2rem)/1.34 var(--serif); max-width: 34em; letter-spacing: -0.005em; }
.revs { columns: 2; column-gap: 64px; padding-top: 44px; }
.revs .rev { break-inside: avoid; margin-bottom: 40px; }

/* About */
.about { background: var(--black); color: var(--white); padding-block: 104px; }
.about__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.about__txt > p { margin-top: 20px; max-width: 32em; color: #E3E5E6; }
.about__say { margin-top: 32px; padding-left: 24px; border-left: 4px solid var(--pine); }
.about__say p { font: italic 500 1.5rem/1.38 var(--serif); }
.about__say footer { margin-top: 10px; font-size: 1rem; color: var(--rail); }
.about__facts { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .26); }
.about__facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .26); }
.about__facts dt { font-size: 0.9375rem; color: var(--rail); }
.about__facts dd { font-weight: 600; }
.about__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.about__pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__porch { margin-top: 56px; object-position: 50% 40%; }

/* Quote */
.quote { background: var(--primer); padding-block: 104px; }
.quote__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.quote__txt > p { margin-top: 18px; max-width: 28em; }
.quote__phone a { font: 500 clamp(2.25rem, 4vw, 3.25rem)/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.quote__phone a:hover { text-decoration: underline; }
.quote__txt > .quote__phone { margin-top: 32px; }
.quote__txt > .quote__mail { margin-top: 8px; overflow-wrap: anywhere; }
.hours { margin-top: 36px; width: 100%; max-width: 380px; border-collapse: collapse; font-size: 1.0625rem; }
.hours caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.hours th, .hours td { padding: 8px 0; border-top: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.form { background: var(--white); padding: 40px; border-top: 6px solid var(--black); }
.form__row + .form__row { margin-top: 20px; }
.form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.form label span { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid #7B8388; border-radius: 3px; background: var(--white); color: var(--ink); font: 400 1.125rem/1.4 var(--sans); }
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--ink); }
.form__err { margin-top: 16px; padding: 12px 14px; background: #FBE9E7; color: #7A1A10; font-weight: 500; }
.form__send { margin-top: 24px; width: 100%; }
.form__hint { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }

/* Footer */
.foot { background: var(--black); color: var(--white); padding-block: 56px; }
.foot__in { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.foot__card { width: 340px; border-radius: 14px; }
.foot__txt { font-size: 1.0625rem; }
.foot__txt p + p { margin-top: 4px; }
.foot__name { font: italic 600 1.5rem/1.2 var(--serif); margin-bottom: 8px; }
.foot__txt a { text-underline-offset: 3px; overflow-wrap: anywhere; }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 78vh; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 1.0625rem; color: #DADDDE; padding-inline: 72px; }
.lightbox__btn { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: var(--white); border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 44%; }
.lightbox__next { right: 16px; top: 44%; }

/* Tablet */
@media (max-width: 1100px) {
  .top__nav { display: none; }
  .top__phone { margin-left: auto; }
  .top__menu { display: grid; margin-left: 0; }
  .top__in { gap: 16px; }
  .hero__copy { gap: 40px; }
  .about__in, .quote__in { gap: 48px; }
}
@media (max-width: 1247px) {
  .deck__split { background: linear-gradient(to right, var(--pine) 0, var(--pine) calc(46% + 1.92px), var(--slate) calc(46% + 1.92px)); grid-template-columns: 24px minmax(0, 46fr) minmax(0, 54fr) 24px; }
  .deck__bare { padding-right: 32px; }
  .deck__done { padding-left: 32px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 32px); }
  .top__in { min-height: 62px; }
  .brand { font-size: 1.375rem; }
  .top__phone, .top__cta { display: none; }
  .top__menu { margin-left: auto; }

  .hero__copy { grid-template-columns: 1fr; gap: 20px; padding-block: 36px 32px; }
  h1 { max-width: none; }
  .hero__lead { font-size: 1.125rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stage { background: linear-gradient(to bottom, var(--primer) 0, var(--primer) 120px, var(--slate) 120px); padding-bottom: 36px; }
  .hero__stage .wrap { width: 100%; }
  .hero__after { aspect-ratio: 4 / 3.3; object-position: 66% 60%; }
  .hero__print { left: 12px; bottom: 12px; width: 38%; border-width: 4px; }
  .hero__tag { right: 12px; bottom: 12px; }
  .hero__cap, .facts { margin-inline: 16px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 0; }
  .facts li, .facts li + li { padding: 16px 12px 16px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .28); }
  .facts b { font-size: 1.25rem; }

  .sec-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .services, .ba, .work, .reviews, .about, .quote { padding-block: 64px; }
  .svc { columns: 1; }
  .svc__item { margin-bottom: 36px; }
  .svc__item img, .svc__item:nth-child(3) img, .svc__item:nth-child(6) img { aspect-ratio: 4 / 3; object-fit: cover; }
  .svc__item:nth-child(2) img { object-position: 50% 70%; }

  .deck__split { display: block; background: none; }
  .deck__bare { background: var(--pine); padding: 64px 16px 48px; }
  .deck__done { background: var(--slate); padding: 48px 16px 56px; }
  .deck__quote blockquote { font-size: 1.3125rem; }
  .deck__pairs { padding-block: 56px 64px; }
  .pairs2 { grid-template-columns: 1fr; gap: 36px; }
  .ba__row { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }

  .gal { grid-template-columns: 1fr 1fr; gap: 6px; grid-auto-flow: dense; }
  .g, .g--a, .g--b, .g--c, .g--d, .g--e, .g--f, .g--g, .g--h { grid-column: span 1; height: auto; aspect-ratio: 1 / 1; }
  .g--a, .g--e { grid-column: span 2; aspect-ratio: 4 / 3; }

  .reviews__score b { font-size: 3rem; }
  .rev--lead { padding-block: 32px; }
  .revs { columns: 1; padding-top: 32px; }
  .revs .rev { margin-bottom: 32px; }

  .about__in, .quote__in { grid-template-columns: 1fr; gap: 40px; }
  .about__say p { font-size: 1.3125rem; }
  .about__porch { margin-top: 32px; }
  .form { padding: 24px 20px; }
  .foot { padding-bottom: 124px; }
  .foot__in { gap: 28px; }
  .foot__card { width: 100%; max-width: 360px; }

  .sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--black); transform: translateY(110%); visibility: hidden; }
  .sticky-book.is-visible { transform: none; visibility: visible; transition: transform .2s ease; }
  .sticky-book a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 3px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
  .sticky-book__call { background: var(--white); color: var(--ink); }
  .sticky-book__quote { background: var(--pine); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-book.is-visible { transition: none; }
}
