/* Thomas Handyman LLC, Des Moines IA
   Truck white, trailer gunmetal, yard-sign yellow. Epilogue + Lato. */

:root {
  --white: #FFFFFF;
  --ink: #17181A;
  --gun: #56585B;        /* trailer side */
  --gun-deep: #2E3033;   /* trailer in shade */
  --alu: #EEEFF0;        /* aluminum trim */
  --sign: #F5B81F;       /* yard sign */
  --sign-pale: #FFF3CC;
  --text-2: #4D5054;
  --line: #D4D6D9;
  --wrap: 1200px;
  --head: "Epilogue", "Arial Black", system-ui, sans-serif;
  --body: "Lato", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
cite { font-style: normal; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 96px 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.hero__band :focus-visible, .quote :focus-visible, .foot :focus-visible, .lightbox :focus-visible { outline-color: var(--sign); }
.form :focus-visible { outline-color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 24px; border: 2px solid transparent; border-radius: 6px; font-family: var(--body); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; flex: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sign { background: var(--sign); color: var(--ink); }
.btn--sign:hover { background: #FFC93A; }
.btn--big { width: 100%; min-height: 58px; font-size: 1.125rem; }
.textlink { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.textlink:hover { text-decoration-color: var(--sign); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 12px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--sign); }
.top__call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top__call:hover { background: #000; }
.top__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; }

/* Hero */
.hero { --split: 190px; }
.hero__top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; padding-top: 56px; padding-bottom: 44px; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); letter-spacing: -0.035em; line-height: .98; }
.hero__side p { font-size: 1.1875rem; line-height: 1.5; color: var(--text-2); max-width: 34em; margin-bottom: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__band { position: relative; background: linear-gradient(to bottom, var(--white) var(--split), var(--gun) var(--split)); color: #fff; padding-bottom: 8px; }
/* rivet line along the top edge of the trailer panel */
.hero__band::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--split) + 10px); height: 6px; background: radial-gradient(circle, rgba(255,255,255,.38) 0 2px, transparent 2.6px) left center / 34px 6px repeat-x; }
.trio { position: relative; display: grid; grid-template-columns: 1.28fr .75fr .75fr; gap: 16px; }
.trio img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; background: var(--alu); }
.trio__a img { aspect-ratio: 1536 / 1200; }
.trio__b img, .trio__c img { aspect-ratio: 3 / 4; }
.trio figcaption { padding: 10px 2px 0; font-size: .9375rem; color: rgba(255,255,255,.88); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-top: 1px solid rgba(255,255,255,.22); }
.facts li { position: relative; padding: 26px 24px 30px 26px; }
.facts li:first-child { padding-left: 0; }
.facts li + li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 6px; background: radial-gradient(circle, rgba(255,255,255,.38) 0 2px, transparent 2.6px) center top / 6px 22px repeat-y; }
.facts b { display: block; font-family: var(--head); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.015em; line-height: 1.2; }
.facts span { display: block; color: rgba(255,255,255,.86); font-size: 1rem; margin-top: 2px; }

/* Make your list */
.list__head { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.list__intro > p { font-size: 1.1875rem; margin-bottom: 20px; }
.tip { border-left: 6px solid var(--sign); padding: 4px 0 4px 20px; }
.tip p { margin: 0 0 6px; color: var(--ink); }
.tip cite, .room__quote cite { font-size: .9375rem; color: var(--text-2); }

.list__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.room { padding: 28px 0 44px; border-top: 3px solid var(--ink); }
.room:last-child { padding-bottom: 0; }
.room h3 { margin-bottom: 20px; }
.room__note { margin: 18px 0 0; color: var(--text-2); max-width: 44em; }
.room__quote { background: var(--alu); padding: 20px 24px; border-radius: 4px; max-width: 46em; }
.room__quote p { margin: 0 0 6px; }

.pics { display: grid; gap: 12px; }
.pic { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--alu); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pics figcaption { font-size: .9375rem; color: var(--text-2); padding-top: 6px; }
.pics--bath { grid-template-columns: 1.6fr 1fr; }
.pics--bath .pic { aspect-ratio: auto; height: 300px; }
.pics--pair { grid-template-columns: 1fr 1fr; }
.pics--pair .pic { aspect-ratio: 4 / 3; }
.pics--doors { grid-template-columns: 1fr 1fr 1.3fr; align-items: stretch; }
.pics--doors .pic { aspect-ratio: 3 / 4; }
.room__quote--side { display: flex; flex-direction: column; justify-content: center; }
.pics--out { grid-template-columns: repeat(4, 1fr); }
.pics--out > .pic { grid-column: span 2; aspect-ratio: 4 / 3; }
.pics--out figure { grid-column: span 2; }
.pics--out figure .pic { aspect-ratio: 16 / 9; }
.pics--tree { grid-template-columns: 1.55fr 1fr; }
.pics--tree .pic { height: 320px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 18px; }
.checks label { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 10px 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 700; line-height: 1.3; border-radius: 3px; }
.checks label:hover { background: var(--alu); }
.checks input { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: 0; border: 2px solid var(--ink); border-radius: 4px; background: #fff center / 18px 18px no-repeat; cursor: pointer; }
.checks input:checked { background-color: var(--sign); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 9.5l4 4 8-9' fill='none' stroke='%2317181A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks label:has(input:checked) { background: var(--sign-pale); }

/* Your list: the yard sign */
.sign { position: sticky; top: 104px; padding-bottom: 46px; }
.sign::before, .sign::after { content: ""; position: absolute; bottom: 0; width: 5px; height: 50px; background: linear-gradient(90deg, #8E9195, #C9CCD0 50%, #8E9195); border-radius: 0 0 2px 2px; }
.sign::before { left: 26%; }
.sign::after { right: 26%; }
.sign__in { position: relative; z-index: 1; background: var(--sign); color: var(--ink); padding: 26px 24px 24px; border-radius: 4px; }
.sign h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 12px; }
.sign__empty { margin-bottom: 18px; }
.sign__items { margin: 0 0 18px; counter-reset: n; border-top: 2px solid var(--ink); }
.sign__items:empty { display: none; }
.sign__items li { display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 2px; border-bottom: 1px solid rgba(23,24,26,.35); font-weight: 700; line-height: 1.3; }
.sign__items li span { flex: 1; }
.sign__x { flex: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 4px; }
.sign__x:hover { background: rgba(23,24,26,.12); }
.sign__x svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.sign__send { width: 100%; }
.sign__alt { margin: 14px 0 0; font-size: 1rem; line-height: 1.45; }
.sign__alt a { font-weight: 700; white-space: nowrap; }

/* Recent work */
.work { background: var(--alu); }
.work h2 { margin-bottom: 36px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 216px; gap: 12px; }
.g--big { grid-column: span 2; grid-row: span 2; }
.g img { transition: transform .3s ease; }
.g:hover img { transform: scale(1.03); }

/* Reviews */
.reviews__in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; }
.reviews__score { position: sticky; top: 112px; }
.reviews__score h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 28px; }
.score { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.score__n { font-family: var(--head); font-weight: 800; font-size: 6rem; line-height: .9; letter-spacing: -0.04em; }
.score__stars svg { width: 150px; height: 30px; fill: var(--sign); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.score__src { font-weight: 700; margin-bottom: 10px; }
.quotes { columns: 2; column-gap: 48px; }
.q { break-inside: avoid; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.q p { margin: 0 0 .7em; }
.q cite { display: block; margin-top: 12px; font-size: 1rem; color: var(--text-2); }
.q cite b { display: block; color: var(--ink); font-size: 1.0625rem; }

/* About */
.about { padding-top: 0; }
.about__in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about__photo img { width: 100%; object-fit: cover; border-radius: 4px; }
.about__text h2 { margin-bottom: 24px; }
.about__text > p { max-width: 36em; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 28px 0 0; border-top: 3px solid var(--ink); }
.about__facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { font-size: .9375rem; color: var(--text-2); }
.about__facts dd { margin: 0; font-weight: 700; font-size: 1.125rem; line-height: 1.35; }
.about__trailer { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
.about__trailer img { width: 100%; border-radius: 4px; }
.about__trailer figcaption { font-family: var(--head); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.15; padding-bottom: 8px; border-bottom: 6px solid var(--sign); padding-bottom: 20px; }

/* Quote */
.quote { background: var(--gun-deep); color: #fff; padding: 96px 0; position: relative; }
.quote::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 6px; background: radial-gradient(circle, rgba(255,255,255,.3) 0 2px, transparent 2.6px) left center / 34px 6px repeat-x; }
.quote__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.quote__info h2 { margin-bottom: 18px; }
.quote__info > p { color: rgba(255,255,255,.88); max-width: 30em; }
.quote__phone { display: block; width: fit-content; font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.2; color: var(--sign); text-decoration: none; margin-top: 22px; }
.quote__phone:hover { text-decoration: underline; text-underline-offset: 6px; }
.quote__mail { display: inline-block; padding: 10px 0; color: #fff; text-underline-offset: 4px; overflow-wrap: anywhere; }
.quote__info h3 { margin: 30px 0 10px; font-size: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--sign); }
.quote__where { margin: 18px 0 0; color: rgba(255,255,255,.88); }

.form { background: #fff; color: var(--ink); padding: 32px; border-radius: 6px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field label:has(a) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.field label span { font-weight: 400; color: var(--text-2); }
.form__edit { font-weight: 400; font-size: 1rem; text-underline-offset: 3px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #8B8F94; border-radius: 6px; padding: 12px 14px; min-height: 54px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field ::placeholder { color: #6B6F74; opacity: 1; }
.form__err { color: #A1140F; font-weight: 700; margin-bottom: 12px; }
.form__fine { margin: 12px 0 0; font-size: .9375rem; color: var(--text-2); text-align: center; }

/* Footer */
.foot { background: var(--ink); color: rgba(255,255,255,.88); padding: 44px 0 48px; font-size: 1rem; }
.foot__in { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; }
.foot img { height: 84px; width: auto; }
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 3px 0; text-underline-offset: 3px; }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(23, 24, 26, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: min(92vw, 1200px); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 22px; margin: 0; text-align: center; font-size: 1.125rem; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 0; border-radius: 6px; color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .hero { --split: 15vw; }
  .nav { gap: 20px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .top__call { margin-left: auto; }
  .menu-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-menu a { padding: 14px 0; min-height: 52px; font-weight: 700; font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu__call { border-bottom: 0 !important; }
  .list__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
  .reviews__in { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .quotes { columns: 1; }
  .quote__in { gap: 40px; }
}
@media (max-width: 900px) {
  .section, .quote { padding: 72px 0; }
  .about { padding-top: 0; }
  .hero__top { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; padding-bottom: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li:first-child { padding: 20px 16px 20px 20px; }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts li:nth-child(3)::before { display: none; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
  .list__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .list__grid { grid-template-columns: 1fr; }
  .sign { position: static; padding-bottom: 0; max-width: 520px; }
  .sign::before, .sign::after { display: none; }
  .gallery { grid-auto-rows: 24vw; }
  .reviews__in { grid-template-columns: 1fr; gap: 32px; }
  .reviews__score { position: static; }
  .score { flex-direction: row; align-items: center; gap: 18px; }
  .score__n { font-size: 4.5rem; }
  .about__in { grid-template-columns: 1fr; gap: 32px; }
  .about__trailer { grid-template-columns: 1fr; gap: 20px; }
  .about__trailer figcaption { font-size: 1.375rem; }
  .about__photo img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .quote__in { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; gap: 20px; }

  body { padding-bottom: 0; }
  .sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(23, 24, 26, .14); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { min-height: 52px; padding: 10px 12px; }
  .foot { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top__in { min-height: 68px; gap: 10px; }
  .brand img { height: 46px; }
  .top__call { padding: 8px 12px; font-size: 1rem; }
  .mobile-menu:not([hidden]) { padding: 8px 16px 20px; }
  .hero { --split: 30vw; }
  .hero__side p { font-size: 1.125rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .trio { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trio__a { grid-column: span 2; }
  .trio figcaption { padding-top: 6px; font-size: .9375rem; }
  .trio__a figcaption { padding-bottom: 6px; }
  .facts { margin-top: 24px; }
  .facts b { font-size: 1.125rem; }
  .checks { grid-template-columns: 1fr; }
  .pics--bath { grid-template-columns: 1fr; }
  .pics--bath .pic { height: auto; aspect-ratio: 4 / 3; }
  .pics--bath .pic:nth-child(2) { display: none; }
  .pics--doors { grid-template-columns: 1fr 1fr; }
  .room__quote--side { grid-column: span 2; }
  .pics--out > .pic { grid-column: span 4; }
  .pics--out figure .pic { aspect-ratio: 4 / 3; }
  .pics--tree { grid-template-columns: 1fr; }
  .pics--tree .pic { height: auto; aspect-ratio: 4 / 3; }
  .pics--tree .pic:nth-child(2) { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; gap: 8px; }
  .g:last-child { display: none; }
  .about__facts { grid-template-columns: 1fr; }
  .form { padding: 22px 16px; }
  .quote__phone { font-size: 2.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .g img, .sticky-book { transition: none; }
  .g:hover img { transform: none; }
}
