/* Five Star Handyman home page (scroll-craft build). Brand tokens come from styles.min.css. */
:root {
  --sc-canvas: #02172d; --sc-surface: #042a4f;
  --sc-ink: #fcfbf8; --sc-ink-soft: #c9d3de;
  --sc-accent: #c5a35a; --sc-accent-ink: #02172d;
  --sc-font-display: "Playfair Display", "Times New Roman", serif;
  --sc-font-text: Inter, "Segoe UI", system-ui, sans-serif;
}
body.fs-page main { overflow: visible; }
/* scrollcraft.css colors the whole page light; keep the site's normal text color outside the dark sections */
body.fs-page { color: var(--ink, #1c2530); }
.fs-page main h1, .fs-page main h2, .fs-page main h3 { text-align: left; letter-spacing: 0; }
.fs-kicker { margin: 0 0 .9rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold-light, #e0c57e); }
.fs-kicker--dark { color: var(--gold-dark, #7a5f28); }
.fs-h2 { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.08; margin: 0 0 .7rem; color: var(--navy, #042a4f); text-wrap: balance; }
.fs-lede { margin: 0; font-size: clamp(1.02rem, .98rem + .25vw, 1.2rem); line-height: 1.6; color: var(--muted, #5c6670); max-width: 56ch; }
.fs-head { margin-bottom: 2.6rem; }
.fs-head--light .fs-h2 { color: var(--ivory, #fcfbf8); }
.fs-head--light .fs-lede { color: var(--sc-ink-soft); }
.fs-btn { display: inline-block; padding: .95rem 1.4rem; border-radius: 4px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .14s ease-out, background-color .16s ease-out, color .16s ease-out; }
.fs-btn:active { transform: translateY(1px); }
.fs-btn--gold { background: var(--gold, #c5a35a); color: var(--navy-deep, #02172d); }
.fs-page .fs-hero__actions a.fs-btn--line[href] { border: 1px solid rgba(252, 251, 248, .7); color: #fff; }
.fs-page .fs-btn--gold { color: var(--navy-deep, #02172d); }
@media (hover: hover) and (pointer: fine) {
  .fs-btn--gold:hover { background: var(--gold-light, #e0c57e); }
  .fs-btn--line:hover { background: rgba(252, 251, 248, .12); }
}
.fs-page main a:focus-visible, .fs-page main button:focus-visible { outline: 2px solid var(--gold, #c5a35a); outline-offset: 3px; }

/* Pinned stages sit below the sticky header. */
.fs-page .sc-stage { top: var(--fs-head, 0px); height: calc(100vh - var(--fs-head, 0px)); height: calc(100svh - var(--fs-head, 0px)); }

/* ---------- 1 · Hero ---------- */
.fs-hero__stage { overflow: hidden; background: var(--navy-deep, #02172d); }
.fs-hero__photo { position: absolute; inset: 0; transform: scale(calc(1.04 + var(--sc-p, 0) * .08)); transform-origin: 55% 60%; will-change: transform; }
.fs-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.fs-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 23, 45, .86) 0%, rgba(2, 23, 45, .62) 40%, rgba(2, 23, 45, .08) 72%); }
.fs-hero__copy { position: absolute; left: max(1.25rem, 6vw); bottom: 11vh; width: min(600px, 50vw); color: #fff; }
.fs-hero__title { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2.3rem, 1.4rem + 3vw, 4.1rem); line-height: 1.04; margin: 0 0 1.1rem; color: #fff; text-wrap: balance; }
.fs-hero__sub { margin: 0 0 1.7rem; font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); line-height: 1.6; color: #e6ecf2; max-width: 46ch; }
.fs-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }

/* ---------- 2 · The list ---------- */
.fs-list { background: var(--navy-deep, #02172d); color: var(--sc-ink); padding: 20vh 0 16vh; }
.fs-list__line { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.6rem); line-height: 1.04; margin: 0 0 2rem; max-width: 15ch; color: var(--ivory, #fcfbf8); }
.fs-list__body { margin: 0 0 0 auto; max-width: 50ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.65; color: var(--sc-ink-soft); }

/* ---------- 3 · The walkthrough (signature) ---------- */
.fs-walk { background: var(--cream, #f6f1e6); }
.fs-walk__stage { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: 4vh max(1.25rem, 5vw); background: var(--cream, #f6f1e6); }
.fs-walk__frame { position: relative; height: min(74vh, 640px); border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px rgba(4, 42, 79, .18); background: #ddd; }
.fs-walk__photo { position: absolute; inset: 0; transform: translate3d(var(--fs-tx, 0px), var(--fs-ty, 0px), 0) scale(var(--fs-z, 1)); will-change: transform; }
.fs-walk__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-walk__title { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.08; margin: 0 0 1.6rem; color: var(--navy, #042a4f); }
.fs-walk__notes { list-style: none; margin: 0; padding: 0; counter-reset: w; }
.fs-walk__notes li { counter-increment: w; position: relative; padding: .85rem 0 .85rem 2.6rem; border-top: 1px solid rgba(197, 163, 90, .45); color: #8a929b; line-height: 1.5; transition: color .2s ease-out; }
.fs-walk__notes li::before { content: counter(w); position: absolute; left: 0; top: .8rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: .8rem; font-weight: 700; transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out; }
.fs-walk__notes li strong { color: inherit; }
.fs-walk__notes li:nth-child(2)::before { content: "2"; } .fs-walk__notes li:nth-child(3)::before { content: "3"; } .fs-walk__notes li:nth-child(4)::before { content: "4"; }
.fs-walk__notes li.is-current { color: var(--ink, #1c2530); }
.fs-walk__notes li.is-current strong { color: var(--navy, #042a4f); }
.fs-walk__notes li.is-current::before { background: var(--gold, #c5a35a); border-color: var(--gold, #c5a35a); color: var(--navy-deep, #02172d); }

/* ---------- 4 · Services ---------- */
.fs-services { background: var(--ivory, #fcfbf8); padding: 16vh 0; scroll-margin-top: var(--fs-head, 0px); }
.fs-svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line, rgba(197,163,90,.5)); }
.fs-svc li { padding: 1.6rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--line, rgba(197,163,90,.5)); }
.fs-svc li:not(:nth-child(3n + 1)) { padding-left: 1.6rem; border-left: 1px solid var(--line, rgba(197,163,90,.5)); }
.fs-svc h3 { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 .45rem; color: var(--navy, #042a4f); }
.fs-svc p { margin: 0; color: var(--muted, #5c6670); line-height: 1.55; }

/* ---------- 5 · Work ---------- */
.fs-work { background: var(--navy, #042a4f); padding: 16vh 0; scroll-margin-top: var(--fs-head, 0px); }
.fs-gallery { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.2rem; align-items: stretch; }
.fs-gallery__col { display: grid; gap: 1.2rem; }
.fs-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--navy-deep, #02172d); cursor: zoom-in; text-align: left; }
.fs-shot picture, .fs-shot img { display: block; width: 100%; height: 100%; }
.fs-shot img { object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.fs-shot--tall { min-height: 100%; }
@media (hover: hover) and (pointer: fine) { .fs-shot:hover img { transform: scale(1.03); } }
.fs-shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.2rem 1rem; color: #e6ecf2; font-size: .92rem; line-height: 1.4; background: linear-gradient(0deg, rgba(2, 23, 45, .88), rgba(2, 23, 45, 0)); }
.fs-shot__cap strong { display: block; color: #fff; font-family: var(--sc-font-display); font-size: 1.15rem; font-weight: 600; }

/* ---------- 6 · Why + how ---------- */
.fs-how { background: var(--ivory, #fcfbf8); padding: 16vh 0; scroll-margin-top: var(--fs-head, 0px); }
.fs-how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.fs-why { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.fs-why li { padding: .8rem 0; border-top: 1px solid var(--line, rgba(197,163,90,.5)); color: var(--muted, #5c6670); line-height: 1.5; }
.fs-why strong { color: var(--navy, #042a4f); }
.fs-how__steps { scroll-margin-top: var(--fs-head, 0px); }
.fs-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; position: relative; }
.fs-steps li { counter-increment: s; position: relative; padding: 0 0 2rem 3.6rem; color: var(--muted, #5c6670); line-height: 1.6; }
.fs-steps li::before { content: counter(s); position: absolute; left: 0; top: -.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy, #042a4f); color: var(--gold-light, #e0c57e); display: grid; place-items: center; font-family: var(--sc-font-display); font-size: 1.15rem; }
.fs-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.15rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--gold, #c5a35a); opacity: .55; }
.fs-steps strong { display: block; color: var(--navy, #042a4f); font-size: 1.08rem; margin-bottom: .15rem; }
.fs-steps a { color: var(--navy, #042a4f); font-weight: 700; }

/* ---------- Phones: own art direction ---------- */
@media (max-width: 760px) {
  .fs-hero__shade { background: linear-gradient(0deg, rgba(2, 23, 45, .92) 0%, rgba(2, 23, 45, .66) 46%, rgba(2, 23, 45, .1) 78%); }
  .fs-hero__photo img { object-position: 40% 50%; }
  .fs-hero__copy { left: 1.25rem; right: 1.25rem; bottom: 4vh; width: auto; }
  .fs-hero__title { font-size: 2.15rem; }
  .fs-hero__sub { font-size: 1rem; margin-bottom: 1.2rem; }
  .fs-list { padding: 14vh 0 11vh; }
  .fs-walk__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 1rem; padding: 2vh 1.25rem; }
  .fs-walk__frame { height: 38vh; }
  .fs-walk__title { font-size: 1.45rem; margin-bottom: .6rem; }
  .fs-walk__panel .fs-kicker { display: none; }
  .fs-walk__notes li { padding: .5rem 0 .5rem 2.3rem; font-size: .93rem; }
  .fs-walk__notes li::before { top: .45rem; width: 1.5rem; height: 1.5rem; }
  .fs-walk__notes li:not(.is-current) { display: none; }
  .fs-services, .fs-work, .fs-how { padding: 11vh 0; }
  .fs-svc { grid-template-columns: 1fr; }
  .fs-svc li, .fs-svc li:not(:nth-child(3n + 1)) { padding: 1.1rem 0; border-left: 0; }
  .fs-gallery { grid-template-columns: 1fr; }
  .fs-how__grid { grid-template-columns: 1fr; }
}
@media (min-width: 761px) and (max-width: 1024px) { .fs-svc { grid-template-columns: 1fr 1fr; } .fs-svc li, .fs-svc li:not(:nth-child(3n + 1)) { padding: 1.4rem 1.2rem 1.4rem 0; border-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fs-hero__photo, .fs-walk__photo { transform: none !important; }
  .fs-walk__notes li { color: var(--ink, #1c2530); }
  .fs-walk__notes li:not(.is-current) { display: block; }
}
