/* ==========================================================================
   SJNY Construction Inc.  v2
   Palette: #F0EBD8 parchment / #748CAB steel / #0D1321 ink
   Derived: #1D2D44 ink-soft / #3E5C76 slate
   Type: Fraunces (display) / Libre Franklin (text)
   ========================================================================== */

:root {
  --parchment: #F0EBD8;
  --steel: #748CAB;
  --ink: #0D1321;
  --ink-soft: #1D2D44;
  --slate: #3E5C76;
  --rule-dark: rgba(13, 19, 33, 0.14);
  --rule-light: rgba(240, 235, 216, 0.18);
  --body-dark: rgba(13, 19, 33, 0.85);
  --body-light: rgba(240, 235, 216, 0.82);
  --track-label: 0.22em;
  --track-eyebrow: 0.3em;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body-dark);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

::selection { background: var(--slate); color: var(--parchment); }

img { display: block; max-width: 100%; }

section { scroll-margin-top: 100px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--steel);
}

.on-dark .eyebrow { color: var(--steel); }
.on-dark h2 { color: var(--parchment); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn-ink { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.btn-ink:hover { background: var(--slate); border-color: var(--slate); }

.btn-parchment { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.btn-parchment:hover { background: transparent; color: var(--parchment); }

.btn-ghost-light { background: transparent; color: var(--parchment); border-color: rgba(240, 235, 216, 0.5); }
.btn-ghost-light:hover { background: var(--parchment); color: var(--ink); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule-dark);
}

.nav.is-scrolled { box-shadow: 0 1px 0 var(--rule-dark), 0 12px 32px rgba(13, 19, 33, 0.07); }

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark-img {
  display: block;
  height: 84px;
  width: auto;
}

.footer .brand-mark-img { height: 116px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--slate); border-color: var(--steel); }

.nav-phone {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--ink);
  padding: 16px 24px;
  transition: background 0.22s ease, color 0.22s ease;
}

.nav-phone:hover { background: var(--ink); color: var(--parchment); }

.nav-cta { padding: 17px 30px; font-size: 13px; white-space: nowrap; }

.nav-only { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(91svh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-columns.jpg");
  background-size: cover;
  background-position: center 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(13, 19, 33, 0.42), rgba(13, 19, 33, 0.42)),
    linear-gradient(to top, rgba(13, 19, 33, 0.97) 0%, rgba(13, 19, 33, 0.62) 34%, rgba(13, 19, 33, 0.38) 62%, rgba(13, 19, 33, 0.52) 100%);
}

.hero-content {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 140px 40px 64px;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 26px;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--steel);
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--parchment);
  max-width: 940px;
  margin: 0 auto 26px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--parchment);
  opacity: 0.88;
}

.hero-scope {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--parchment);
  margin-bottom: 18px;
}

.hero-scope .sep {
  color: var(--steel);
  font-weight: 300;
  padding: 0 8px;
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(240, 235, 216, 0.75);
  transition: color 0.2s ease;
}

.hero-social a:hover { color: var(--parchment); }

.hero-social svg { width: 23px; height: 23px; }

.hero-lede {
  font-size: 18.5px;
  font-weight: 300;
  color: rgba(240, 235, 216, 0.92);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-bar {
  position: relative;
  border-top: 1px solid var(--rule-light);
  background: rgba(13, 19, 33, 0.55);
  backdrop-filter: blur(6px);
}

.hero-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-bar-item {
  padding: 22px 28px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-bar-item + .hero-bar-item { border-left: 1px solid var(--rule-light); padding-left: 28px; }

.hero-bar-item b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.02em;
}

.hero-bar-item span {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(240, 235, 216, 0.75);
}

/* ---------- About ---------- */

.story { padding: 76px 0 60px; }

.about-head { max-width: 760px; margin-bottom: 32px; }

.about-head h2 { font-size: clamp(34px, 4vw, 52px); }

.bios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.bio {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 30px;
  align-items: start;
}

.bio figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-soft);
}

.bio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.bio h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.bio p {
  font-size: 15px;
  margin-bottom: 14px;
}

.bio p:last-child { margin-bottom: 0; }


/* ---------- Services ---------- */

.services {
  background: var(--ink);
  padding: 76px 0 84px;
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.services-head h2 { font-size: clamp(34px, 4vw, 52px); }

.services-head p { color: var(--body-light); font-size: 17px; max-width: 46ch; }

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 90px;
  border-top: 1px solid var(--rule-light);
}

.ledger-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--rule-light);
  transition: background 0.25s ease;
}

.ledger-row .num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel);
  padding-top: 9px;
}

.ledger-row h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 6px;
  transition: color 0.25s ease;
}

.ledger-row:hover h3 { color: var(--steel); }

.ledger-row p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(240, 235, 216, 0.62);
  max-width: 44ch;
}

a.ledger-row {
  color: inherit;
  text-decoration: none;
}

.row-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px solid rgba(116, 140, 171, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ledger-row:hover .row-more {
  color: var(--parchment);
  border-color: var(--parchment);
}

/* ---------- Service landing pages ---------- */

.landing-hero {
  background: var(--ink);
  padding: 72px 0 64px;
}

.landing-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  color: var(--parchment);
  margin-bottom: 18px;
  max-width: 820px;
}

.landing-hero .lede {
  font-size: 17.5px;
  color: var(--body-light);
  max-width: 60ch;
  margin-bottom: 34px;
}

.landing-hero .hero-actions { justify-content: flex-start; }

.landing-main { padding: 68px 0 84px; }

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

.landing-prose h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 20px;
}

.landing-prose p {
  font-size: 16.5px;
  margin-bottom: 18px;
  max-width: 58ch;
}

.landing-trust {
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  font-size: 13.5px;
  color: var(--slate);
}

.landing-aside figure {
  overflow: hidden;
  margin-bottom: 26px;
}

.landing-aside img {
  width: 100%;
  height: auto;
  display: block;
}

.scope-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}

.scope-table { border-top: 1px solid var(--rule-dark); }

.scope-table .row {
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 15px;
}

/* ---------- Work / flowing strips ---------- */

.work {
  padding: 56px 0 40px;
  overflow: clip;
  border-top: 1px solid var(--rule-dark);
}

.work-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.work-head h2 { font-size: clamp(34px, 4vw, 52px); }

.work-head p {
  font-size: 17px;
  color: var(--slate);
  max-width: 58ch;
  margin-top: 14px;
}

.strip {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.strip.is-dragging { cursor: grabbing; user-select: none; }
.strip.is-dragging .shot img { transition: none; }

.strip + .strip { margin-top: 14px; }

.strip-track {
  display: flex;
  width: max-content;
}

.shot {
  position: relative;
  height: 300px;
  margin-right: 14px;
  border: none;
  padding: 0;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  flex: none;
}

.shot img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.shot:hover img { transform: scale(1.04); opacity: 0.85; }

.shot .shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-align: left;
  color: var(--parchment);
  background: linear-gradient(to top, rgba(13, 19, 33, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: var(--ink);
  padding: 28px;
}

.lightbox.is-open { display: flex; }

.lightbox-top {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.lightbox-stage img {
  max-width: min(1100px, 92vw);
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 40px 90px rgba(13, 19, 33, 0.5);
}

.lightbox-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 6px;
}

.lightbox-foot .lb-loc {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.lightbox-foot .lb-title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 6px;
}

.lightbox-foot .lb-summary {
  font-size: 14.5px;
  color: var(--body-light);
  max-width: 62ch;
}

.lightbox-foot .lb-count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel);
  white-space: nowrap;
}

.lb-btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(240, 235, 216, 0.35);
  color: var(--parchment);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex: none;
}

.lb-btn:hover { background: var(--ink-soft); border-color: var(--steel); }

.lb-btn svg { width: 20px; height: 20px; }

/* ---------- Reviews ---------- */

.reviews { padding: 40px 0 76px; }

.reviews-head { max-width: 760px; margin-bottom: 26px; }

.reviews-head h2 { font-size: clamp(34px, 4vw, 52px); }

.reviews-head p {
  font-size: 17px;
  color: var(--slate);
  margin-top: 14px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
}

.review {
  background: var(--ink);
  padding: 30px 32px 26px;
  display: flex;
  flex-direction: column;
}

.review footer { margin-top: auto; }

.review-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
}

.review-stars svg {
  width: 15px;
  height: 15px;
  fill: #E6B450;
}

.review p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--parchment);
  margin-bottom: 20px;
}

.review footer b {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  font-style: normal;
  color: var(--parchment);
}

.review footer span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
}

.reviews-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 6px;
}

.reviews-link:hover { color: var(--slate); }

/* ---------- Credentials ---------- */

.credentials {
  background: var(--ink-soft);
  padding: 68px 0 76px;
}

.credentials-head { max-width: 760px; margin-bottom: 30px; }

.credentials-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--parchment);
}

.credentials-head p {
  font-size: 17px;
  color: var(--body-light);
  margin-top: 12px;
}

.cred-table { border-top: 1px solid var(--rule-light); }

.cred-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-light);
}

.cred-row dt {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 3px;
}

.cred-row dd {
  font-size: 16px;
  color: var(--body-light);
}

/* ---------- Estimate ---------- */

.estimate {
  position: relative;
  background: var(--ink);
  padding: 76px 0 84px;
  isolation: isolate;
}

.estimate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/brownstone-restoration.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}

.estimate-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.estimate-intro h2 {
  font-size: clamp(34px, 4vw, 52px);
  color: var(--parchment);
  margin-bottom: 24px;
}

.estimate-intro > p {
  color: var(--body-light);
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 44ch;
}

.estimate-phones {
  border-top: 1px solid var(--rule-light);
  padding-top: 26px;
}

.estimate-phones span {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}

.estimate-phones a {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--parchment);
  text-decoration: none;
  line-height: 1.5;
}

.estimate-phones a:hover { color: var(--steel); }

.estimate-phones a small {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  margin-left: 10px;
}

.services-index { padding-top: 56px; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--parchment);
  background: rgba(240, 235, 216, 0.05);
  border: 1px solid rgba(240, 235, 216, 0.24);
  padding: 15px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(240, 235, 216, 0.45); opacity: 1; }

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23748CAB' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field select option { color: var(--ink); background: var(--parchment); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--steel);
  background: rgba(240, 235, 216, 0.09);
  outline: none;
}

.field textarea { min-height: 128px; resize: vertical; }

.field input[type="file"] {
  padding: 11px 12px;
  font-size: 13.5px;
  color: rgba(240, 235, 216, 0.75);
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment);
  background: transparent;
  border: 1px solid rgba(240, 235, 216, 0.4);
  padding: 8px 14px;
  margin-right: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input[type="file"]::file-selector-button:hover {
  border-color: var(--steel);
  background: rgba(240, 235, 216, 0.08);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: rgba(240, 235, 216, 0.62);
}

.quote-form .btn { justify-self: start; }

.form-status {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--steel);
  min-height: 20px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--rule-light);
  padding: 64px 0 40px;
  color: var(--body-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr);
  gap: 48px;
  margin-bottom: 48px;
}


.footer-blurb { margin-top: 22px; font-size: 14px; max-width: 340px; }

.footer h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; font-size: 14px; }
.footer a { color: var(--body-light); text-decoration: none; }
.footer a:hover { color: var(--parchment); }

.footer-base {
  border-top: 1px solid var(--rule-light);
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(240, 235, 216, 0.62);
}

/* ---------- Motion & focus ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shot[aria-hidden="true"] { display: none; }
  .shot img { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav-phone { display: none; }
}

@media (max-width: 1020px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--rule-dark);
    padding: 10px 40px 26px;
    display: none;
  }

  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule-dark); }
  .nav-links .nav-only { display: block; }

  .hero-bar-inner { grid-template-columns: 1fr 1fr; }
  .hero-bar-item { padding: 16px 20px 16px 0; }
  .hero-bar-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .hero-bar-item:nth-child(3) { border-top: 1px solid var(--rule-light); }
  .hero-bar-item:nth-child(4) { border-top: 1px solid var(--rule-light); }

  .estimate-grid { grid-template-columns: 1fr; gap: 64px; }
  .bios { grid-template-columns: 1fr; gap: 48px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .landing-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-head { grid-template-columns: 1fr; gap: 24px; }
  .ledger { grid-template-columns: 1fr; column-gap: 0; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .work-head p { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 0 24px; height: 84px; }
  .nav-links { top: 84px; padding: 10px 24px 24px; }
  section { scroll-margin-top: 84px; }

  .brand-mark-img { height: 66px; }
  .footer .brand-mark-img { height: 96px; }

  .hero { min-height: calc(91svh - 84px); }
  .hero-content { padding: 110px 24px 60px; }
  .hero-bar-inner { padding: 0 24px; grid-auto-rows: 1fr; }
  .hero-bar-item { padding: 14px 10px 14px 0; }
  .hero-bar-item b { font-size: clamp(13.5px, 4.2vw, 16px); white-space: nowrap; }
  .hero-bar-item span { font-size: 9px; letter-spacing: 0.16em; }

  .story, .services, .estimate { padding: 52px 0 60px; }
  .story { padding-bottom: 44px; }
  .work { padding: 40px 0 24px; }
  .reviews { padding: 24px 0 60px; }
  .credentials { padding: 48px 0 56px; }

  .about-head h2,
  .services-head h2,
  .work-head h2,
  .reviews-head h2,
  .estimate-intro h2 { font-size: 29px; }
  .credentials-head h2 { font-size: 26px; }

  .about-head, .work-head, .reviews-head { margin-bottom: 32px; }
  .services-head { margin-bottom: 36px; }

  .hero h1 { font-size: clamp(31px, 9vw, 40px); }
  .hero-content { padding: 96px 24px 52px; }
  .hero p { font-size: 16.5px; }

  .bios { gap: 40px; }
  .review p { font-size: 17px; }
  .estimate-phones a { font-size: 23px; }
  .footer { padding: 52px 0 36px; }

  .bios { grid-template-columns: 1fr; gap: 44px; }

  .shot { height: 210px; }

  .bio { grid-template-columns: 1fr; gap: 20px; }
  .bio figure { max-width: 210px; }
  .cred-row { grid-template-columns: 1fr; gap: 6px; }

  .quote-form { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }

  .lightbox { padding: 16px; }
  .lightbox-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-bar-inner { grid-template-columns: 1fr 1fr; }
}
