/* Randy the Painter & Crew
   Red field + one line of blue painter's tape. Everything else is quiet. */

:root {
  --red: #B3222A;        /* van lettering red */
  --red-d: #8E161E;
  --navy: #15233F;       /* logo navy: text, reviews, footer */
  --tape: #1F6FBF;       /* painter's tape */
  --cloth: #EFEBE1;      /* canvas drop cloth */
  --white: #FFFFFF;
  --line: #D9D3C6;
  --muted: #4A546B;
  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1240px;
  --gut: 16px;
  --jh: 300px;           /* job photo height */
  --drop: 150px;         /* how far the hero photo hangs below the red */
}
@media (min-width: 700px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.125rem/1.6 var(--sans); color: var(--navy); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.top :focus-visible, .hero__copy :focus-visible, .reviews :focus-visible, .foot :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible, .offer :focus-visible, .mobile-menu :focus-visible { outline-color: #fff; }
section[id], h3[id] { scroll-margin-top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, .group__head h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 28px; border: 2px solid transparent; border-radius: 4px;
  font: 700 1.125rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--cloth); }
.btn--line { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }

/* Tape label: a strip of blue painter's tape with torn ends */
.tape {
  position: absolute; left: -8px; top: 16px; z-index: 2;
  background: var(--tape); color: #fff;
  font: 600 1rem/1.2 var(--sans); padding: 7px 18px 7px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 22%, 100% 44%, calc(100% - 4px) 68%, 100% 100%, 0 100%, 4px 74%, 0 50%, 5px 24%);
}

/* Top bar */
.top { background: var(--red); color: #fff; }
.top__row { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand__name { font: 400 1.75rem/1 var(--serif); }
.brand__crew { font: 600 1rem/1 var(--sans); opacity: .92; }
.nav { display: none; gap: 30px; }
.nav a { font-weight: 500; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: #fff; }
.top__phone { display: none; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; min-height: 48px; padding: 0 18px; border: 2px solid rgba(255, 255, 255, .75); border-radius: 4px; white-space: nowrap; }
.top__phone:hover { background: rgba(255, 255, 255, .12); }
.menu-btn { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 2px solid rgba(255, 255, 255, .75); border-radius: 4px; color: #fff; cursor: pointer; }

/* Mobile menu */
.scrim { position: fixed; inset: 0; background: rgba(13, 21, 40, .55); z-index: 40; }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--navy); color: #fff; z-index: 50; padding: 20px 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; color: #fff; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 8px; }
.mobile-menu nav a { font: 400 1.75rem/1.2 var(--serif); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.mobile-menu__phone { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 56px; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; border-radius: 4px; }

/* Hero: red wall, tape line, photo hanging over the line */
.hero { position: relative; background: var(--white); }
.hero__copy { position: relative; background: var(--red); color: #fff; margin-inline: calc(var(--gut) * -1); padding: 20px var(--gut) 120px; border-bottom: 10px solid var(--tape); }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 5rem); line-height: 1.0; max-width: 12em; text-wrap: balance; }
.hero__copy p { margin-top: 20px; max-width: 34em; font-size: 1.125rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__photo { position: relative; margin-top: -92px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; object-position: 30% 72%; }
.hero__facts { display: grid; gap: 0; padding: 22px 0 8px; }
.hero__facts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hero__facts li:last-child { border-bottom: 0; }
.hero__facts strong { font-weight: 700; }
.hero__facts span { color: var(--muted); font-size: 1.0625rem; }

/* Sections */
.lead { max-width: 46em; }
.lead p { margin-top: 14px; color: var(--muted); }
.services { padding-top: 64px; }
.group { padding-bottom: 56px; }
.group__head { display: grid; gap: 6px; margin: 44px 0 26px; padding-top: 22px; border-top: 2px solid var(--navy); }
.group__head h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1; }
.group__head p { color: var(--muted); max-width: 40em; }
.group--out { background: var(--cloth); padding-top: 8px; }
.group--out .group__head { margin-top: 48px; }

.jobs { display: grid; gap: 36px 24px; }
.job figcaption { margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); max-width: 38em; }
.job figcaption strong { display: block; font-size: 1.25rem; line-height: 1.3; color: var(--navy); margin-bottom: 2px; }
.shot { position: relative; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair img { object-position: 30% 50%; }
.pair .tape { top: 10px; left: -6px; font-size: .9375rem; padding: 5px 14px 5px 12px; }
.job--wide .shot img { aspect-ratio: 2 / 1; }
.offer { background: var(--tape); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.offer__big { font: 400 2rem/1.08 var(--serif); }
.offer a { align-self: flex-start; font-weight: 700; font-size: 1.25rem; min-height: 48px; display: inline-flex; align-items: center; text-underline-offset: 4px; }
.also { margin-top: 40px; padding-top: 22px; border-top: 1px solid #CFC7B6; max-width: 46em; }

/* Gallery */
.work { padding: 72px 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
.g { padding: 0; border: 0; background: var(--line); cursor: zoom-in; overflow: hidden; aspect-ratio: 1 / 1; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g:hover img { transform: scale(1.03); }
.g--a { grid-column: span 2; aspect-ratio: 4 / 3; }
.g--a img { object-position: 50% 45%; }
@media (max-width: 699px) { .g--h { grid-column: span 2; aspect-ratio: 16 / 9; } }

/* Reviews */
.reviews { background: var(--navy); color: #fff; padding: 72px 0; }
.reviews__head { display: grid; gap: 24px; }
.scores { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.scores dt { font: 400 1.75rem/1.1 var(--serif); }
.scores dd { color: #C3CADB; font-size: 1.0625rem; }
.quote-big { margin-top: 44px; padding-left: 20px; border-left: 6px solid var(--tape); max-width: 58em; }
.quote-big blockquote { font: 400 clamp(1.5rem, 2.5vw, 2.125rem)/1.28 var(--serif); }
.quotes { margin-top: 48px; display: grid; gap: 34px; }
.quotes figure { break-inside: avoid; }
.quotes blockquote { font-size: 1.125rem; line-height: 1.6; }
.reviews figcaption { margin-top: 12px; color: #C3CADB; font-size: 1.0625rem; font-weight: 500; }

/* About */
.about { padding: 72px 0; }
.about__grid { display: grid; gap: 36px; }
.about__photo img { width: 100%; }
.about__photo figcaption { margin-top: 10px; font-size: 1.0625rem; color: var(--muted); }
.about__text > p { margin-top: 18px; max-width: 36em; }
.facts { margin-top: 26px; border-top: 1px solid var(--line); max-width: 36em; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.facts strong { display: block; color: var(--navy); font-size: 1.1875rem; }
.about__text h3 { margin-top: 40px; font: 700 1.1875rem/1.3 var(--sans); }
.about__text .area { margin-top: 8px; font: 400 clamp(1.625rem, 2.6vw, 2.125rem)/1.2 var(--serif); max-width: 22em; }
.about__text .area__note { margin-top: 10px; color: var(--muted); }

/* Contact */
.contact { background: var(--cloth); padding: 72px 0 80px; }
.contact__grid { display: grid; gap: 36px; }
.contact__info p { margin-top: 16px; max-width: 30em; }
.contact__phone { display: inline-block; margin-top: 22px; font: 400 clamp(2.5rem, 5vw, 3.5rem)/1.05 var(--serif); color: var(--red); text-decoration: none; white-space: nowrap; }
.contact__phone:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact__mail { display: flex; align-items: center; min-height: 48px; margin-top: 4px; font-weight: 600; width: fit-content; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__info .contact__where { color: var(--muted); margin-top: 12px; }
.contact__offer { position: relative; display: inline-block; margin-top: 30px !important; background: var(--tape); color: #fff; font-weight: 600; padding: 12px 18px; }
.form { background: #fff; padding: 24px 20px 26px; border-top: 10px solid var(--tape); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 2px solid #A9A493; border-radius: 4px; background: #fff; font-size: 1.125rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tape); outline: 3px solid rgba(31, 111, 191, .3); outline-offset: 0; }
.form__error { color: var(--red-d); font-weight: 600; }
.form__hint { font-size: 1.0625rem; color: var(--muted); }
.form .btn { width: 100%; }

/* Footer */
.foot { background: var(--navy); color: #fff; padding: 30px 0 34px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.foot__brand { font: 400 1.5rem/1.2 var(--serif); margin-right: auto; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; text-underline-offset: 4px; }

.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(13, 21, 40, .97); color: #fff; }
.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: #D6DBE8; padding-inline: 72px; }
.lightbox__btn { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 44%; }
.lightbox__next { right: 16px; top: 44%; }

/* Tablet */
@media (min-width: 700px) {
  .jobs { grid-template-columns: 1fr 1fr; }
  .job--pair, .job--wide { grid-column: span 2; }
  .offer { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 23vw; }
  .g { aspect-ratio: auto; min-height: 0; }
  .g--a { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .g--e { grid-column: 4; grid-row: 2 / 4; }
  .quotes { display: block; columns: 2; column-gap: 48px; }
  .quotes figure { margin-bottom: 36px; }
  .form { padding: 34px 32px 36px; }
  .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 40px; }
  .hero__facts li { display: block; border-bottom: 0; }
  .hero__facts span { display: block; }
}

/* Desktop */
@media (min-width: 1000px) {
  .nav { display: flex; }
  .top__phone { display: inline-flex; }
  .menu-btn { display: none; }

  .hero::before { content: ""; position: absolute; inset: 0 0 var(--drop) 0; background: var(--red); }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--drop) - 10px); height: 10px; background: var(--tape); }
  .hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: 1fr var(--drop); column-gap: 64px; padding-top: 28px; }
  .hero__copy { grid-column: 1; grid-row: 1; background: none; margin: 0; padding: 16px 0 56px; border: 0; align-self: center; }
  .hero h1 { font-size: clamp(3.5rem, 5.6vw, 5.25rem); }
  .hero__copy p { font-size: 1.25rem; margin-top: 26px; }
  .hero__cta { margin-top: 32px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__photo { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: stretch; min-height: 600px; }
  .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 32% 55%; }
  .hero__facts { grid-column: 1; grid-row: 2; align-self: center; padding: 10px 0 0; gap: 0 56px; }
  .hero__facts strong { font-size: 1.25rem; }

  .services { padding-top: 96px; }
  .group { padding-bottom: 72px; }
  .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
  .offer { grid-column: span 1; height: var(--jh); padding: 28px; }
  .shot img, .job--wide .shot img { aspect-ratio: auto; height: var(--jh); }
  .job--wide .shot img { object-position: 50% 62%; }
  .pair { gap: 6px; }

  .work { padding: 104px 0; }
  .gallery { gap: 10px; margin-top: 40px; grid-auto-rows: min(23vw, 300px); }
  .reviews { padding: 104px 0; }
  .reviews__head { grid-template-columns: 1fr auto; align-items: end; }
  .quotes { columns: 3; column-gap: 56px; margin-top: 64px; }
  .about { padding: 104px 0; }
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .contact { padding: 104px 0 112px; }
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
}

/* Phone: sticky Call / Get a quote bar */
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .sticky-book {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy); border-top: 4px solid var(--tape);
    transform: translateY(110%); visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s;
  }
  .sticky-book.is-visible { transform: none; visibility: visible; transition: transform .2s ease; }
  .sticky-book a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 4px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .sticky-book__call { background: #fff; color: var(--navy); }
  .sticky-book__quote { background: var(--red); color: #fff; }
  .brand__name { font-size: 1.5rem; }
  .top__row { min-height: 68px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
