/* ============================================================
   Moore's Painting & Services — Erie, PA
   Spec build #3, RESTRUCTURED 2026-08-20.
   Layout archetype: "portfolio / gallery-led" (painter's
   lookbook) — centered frontispiece masthead, editorial cover
   headline, masonry wall of framed job "plates" with review
   quotes as captions, fanned color deck, painter's-tape fact
   strips, paint-chip estimate card, centered colophon footer.
   Deliberately NOT the boutique-brochure skeleton (Studio Lox)
   or the work-order skeleton (American Handyman) — see
   spec-builds/DESIGN-RULES.md.
   Palette kept from v1: primer white, deep pine ink, brush
   green, ochre. Serif display (system stack) — no external
   fonts, no CDNs.
   ============================================================ */

:root {
  --canvas: #faf8f3;        /* primer white */
  --canvas-deep: #f1ece1;   /* drop cloth */
  --pine: #24382e;          /* deep pine ink */
  --pine-soft: #55645b;     /* muted copy */
  --green: #3e7d5c;         /* brush green */
  --green-deep: #2c5f45;
  --ochre: #d9a13b;         /* warm accent */
  --swatch-blue: #7f9bb3;
  --swatch-clay: #c98d6b;
  --swatch-sage: #a8bfa0;
  --line: #e3ddcf;
  --white: #fffdf9;

  --font-display: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --frame-shadow: 0 2px 0 rgba(36, 56, 46, 0.06), 0 14px 34px rgba(36, 56, 46, 0.1);
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--pine);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

/* The hidden attribute must always win — display classes like .sheet-grid
   would otherwise override the UA's [hidden] rule (estimate-form confirm). */
[hidden] { display: none !important; }

a { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

.smallcaps {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pine-soft);
}

/* ============================================================
   MASTHEAD — centered lookbook frontispiece (not sticky, no
   pill CTA, no utility strip). Wordmark over a brushstroke,
   contact line in italic serif, hairline-ruled nav beneath.
   ============================================================ */

.masthead {
  padding-top: clamp(1.6rem, 4vw, 2.8rem);
  text-align: center;
}

.mast-brand {
  display: inline-block;
  text-decoration: none;
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}
.mast-brand em {
  font-style: italic;
  color: var(--green-deep);
}
.mast-stroke {
  width: min(240px, 60%);
  height: 10px;
  margin: 0.35rem auto 0.9rem;
}

.mast-contact {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--pine-soft);
}
.mast-contact a { color: inherit; }
.mast-contact .dot { color: var(--ochre); font-style: normal; padding-inline: 0.45rem; }

.mast-rule {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 1.1rem;
  position: relative;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: 0.7rem 0;
}
.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  padding: 0.15rem 0;
}
.site-nav a[aria-current="page"] {
  color: var(--green-deep);
  box-shadow: 0 3px 0 var(--ochre);
}
.site-nav a:hover { color: var(--green-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--pine);
  padding: 0.45rem 0.7rem;
  margin: 0.5rem auto;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav { display: none; flex-direction: column; gap: 0; padding: 0; }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
  }
  .site-nav a:first-child { border-top: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
}

/* ============================================================
   COVER — editorial headline, no buttons, no chips
   ============================================================ */

.cover {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.6rem, 4vw, 3rem);
}
.cover .smallcaps { display: block; margin-bottom: 1.1rem; }
.cover h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  max-width: 21ch;
  margin-inline: auto;
  letter-spacing: -0.01em;
}
.cover h1 .brushed {
  position: relative;
  white-space: nowrap;
}
.cover h1 .brushed svg {
  position: absolute;
  left: -2%;
  bottom: -0.18em;
  width: 104%;
  height: 0.42em;
  z-index: -1;
}
.cover-lede {
  max-width: 56ch;
  margin: 1.4rem auto 0;
  color: var(--pine-soft);
  font-size: 1.1rem;
}
.cover-links {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}
.cover-links .dot { color: var(--ochre); padding-inline: 0.6rem; }

/* ---------- Section headers: brush bar + big serif title ---------- */

.gal-head {
  margin: clamp(2.2rem, 6vw, 4rem) 0 1.6rem;
  max-width: 620px;
}
.gal-head .brushbar {
  width: 84px;
  height: 12px;
  margin-bottom: 0.9rem;
}
.gal-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.6rem;
}
.gal-head p { color: var(--pine-soft); }

/* ============================================================
   THE WALL — masonry of framed plates + swatch-card quotes
   ============================================================ */

.plates {
  columns: 3 300px;
  column-gap: 1.6rem;
  padding-bottom: 1rem;
}

.plate,
.chip-quote {
  break-inside: avoid;
  margin: 0 0 1.6rem;
}

/* A framed "plate": art in a matboard frame, caption beneath */
.plate {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--frame-shadow);
  padding: 0.9rem 0.9rem 1.1rem;
}
.plate .art {
  border: 1px solid var(--line);
  background: var(--canvas-deep);
}
.plate figcaption { padding: 0.9rem 0.35rem 0; }
.plate-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: block;
}
.plate-fact {
  display: block;
  color: var(--pine-soft);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}
.plate blockquote {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--pine);
}
.plate cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--pine-soft);
  margin-top: 0.35rem;
}
.plate-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* A review presented as an oversized paint-chip card */
.chip-quote {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--frame-shadow);
}
.chip-quote .chip-color { height: 64px; }
.chip-quote .chip-color.green { background: var(--green); }
.chip-quote .chip-color.ochre { background: var(--ochre); }
.chip-quote .chip-color.blue  { background: var(--swatch-blue); }
.chip-quote .chip-color.sage  { background: var(--swatch-sage); }
.chip-quote .chip-color.clay  { background: var(--swatch-clay); }
.chip-quote blockquote {
  padding: 1.1rem 1.2rem 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.14rem;
}
.chip-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--pine-soft);
  padding: 0 1.2rem 1.1rem;
}
.chip-quote .chip-code {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-soft);
  padding: 0 1.2rem 0.9rem;
}

.wall-footnote {
  color: var(--pine-soft);
  font-size: 0.95rem;
  max-width: 62ch;
  padding-bottom: 1rem;
}

/* ============================================================
   THE COLOR DECK — fanned swatch cards + consultation copy
   ============================================================ */

.deck {
  background: var(--canvas-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.2rem, 6vw, 4rem) 0;
  overflow: hidden;
}
.deck-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}
.deck-fan {
  display: flex;
  justify-content: center;
  padding: 1.4rem 0;
}
.deck-card {
  width: clamp(96px, 12vw, 132px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--frame-shadow);
  padding: 0.45rem 0.45rem 0.6rem;
  margin-left: -34px;
  transform-origin: 50% 115%;
}
.deck-card:first-child { margin-left: 0; }
.deck-card .swatch { height: clamp(96px, 13vw, 148px); }
.deck-card .swatch-name {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--pine-soft);
  padding-top: 0.4rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deck-card:nth-child(1) { transform: rotate(-9deg); }
.deck-card:nth-child(2) { transform: rotate(-4.5deg); }
.deck-card:nth-child(3) { transform: rotate(0deg); }
.deck-card:nth-child(4) { transform: rotate(4.5deg); }
.deck-card:nth-child(5) { transform: rotate(9deg); }

.deck-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.deck-copy p { color: var(--pine-soft); margin-bottom: 0.9rem; }
.deck-copy p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .deck-grid { grid-template-columns: 1fr; }
  .deck-fan { order: 2; }
}

/* ============================================================
   ON THE TIN — facts on strips of painter's tape
   ============================================================ */

.tin { padding: clamp(2.2rem, 6vw, 4rem) 0 1rem; }
.tape-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  justify-content: center;
  padding: 0.6rem 0 1.4rem;
}
.tape {
  background: var(--swatch-blue);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  max-width: 300px;
  box-shadow: 0 6px 16px rgba(36, 56, 46, 0.16);
  position: relative;
}
.tape::before,
.tape::after {
  /* torn tape ends */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: inherit;
  clip-path: polygon(0 0, 100% 8%, 20% 22%, 100% 38%, 10% 55%, 100% 70%, 25% 84%, 100% 100%, 0 100%);
}
.tape::before { left: -7px; }
.tape::after { right: -7px; transform: scaleX(-1); }
.tape:nth-child(odd) { transform: rotate(-1.4deg); }
.tape:nth-child(even) { transform: rotate(1.2deg); background: var(--green); }
.tape strong { display: block; font-size: 1.02rem; }
.tape span { font-size: 0.88rem; opacity: 0.92; }
.tape a { color: inherit; }

/* ============================================================
   THE FIRST COAT — estimate invitation as a giant paint chip
   ============================================================ */

.chip-cta {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.6rem, 6vw, 4.5rem);
}
.chip-cta-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--frame-shadow);
  max-width: 780px;
  margin-inline: auto;
  position: relative;
}
.chip-cta-card::after {
  /* punched hole, like a real fan-deck chip */
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line);
}
.chip-strip { display: grid; grid-template-rows: repeat(5, 1fr); }
.chip-strip i:nth-child(1) { background: var(--green-deep); }
.chip-strip i:nth-child(2) { background: var(--green); }
.chip-strip i:nth-child(3) { background: var(--swatch-sage); }
.chip-strip i:nth-child(4) { background: var(--ochre); }
.chip-strip i:nth-child(5) { background: var(--swatch-clay); }
.chip-cta-body { padding: clamp(1.4rem, 4vw, 2.4rem); }
.chip-cta-body h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.5rem; }
.chip-cta-body p { color: var(--pine-soft); max-width: 48ch; }
.chip-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  color: var(--green-deep);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: var(--ochre);
  margin: 0.9rem 0 0.4rem;
}
.chip-cta-fine { font-size: 0.9rem; color: var(--pine-soft); }

@media (max-width: 560px) {
  .chip-cta-card { grid-template-columns: 44px 1fr; }
}

/* ============================================================
   SERVICES — "The Finish Schedule": spec-sheet rows with
   swatch keys and dotted leaders (no cards, no ledger numbers)
   ============================================================ */

.sched {
  padding: clamp(1.6rem, 4vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
}
.sched:first-of-type { border-top: 0; }
.sched-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.4rem;
}
.sched-key {
  width: 22px;
  height: 22px;
  flex: none;
  align-self: center;
  border: 1px solid rgba(36, 56, 46, 0.2);
}
.sched-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
.sched-intro { color: var(--pine-soft); max-width: 62ch; margin-bottom: 1.2rem; }

.sched-list { list-style: none; max-width: 820px; }
.sched-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
}
.sched-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
  max-width: 60%;
}
.sched-list .leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
  min-width: 24px;
}
.sched-note {
  color: var(--pine-soft);
  font-size: 0.95rem;
  text-align: right;
  max-width: 46%;
}

@media (max-width: 640px) {
  .sched-list li { flex-wrap: wrap; }
  .sched-item, .sched-note { max-width: 100%; }
  .sched-note { text-align: left; flex-basis: 100%; padding-left: 0; }
  .sched-list .leader { display: none; }
  .sched-list li { border-bottom: 1px dotted var(--line); padding: 0.7rem 0; }
  .sched-list li:last-child { border-bottom: 0; }
}

.tin-note {
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-left: 6px solid var(--ochre);
  padding: 1.1rem 1.4rem;
  max-width: 820px;
  color: var(--pine-soft);
  margin: 1.5rem 0;
}
.tin-note strong { color: var(--pine); }

/* Page covers on inner pages */
.page-cover {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.6rem) 0 clamp(1rem, 3vw, 2rem);
}
.page-cover .smallcaps { display: block; margin-bottom: 0.9rem; }
.page-cover h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
.page-cover .cover-lede { max-width: 58ch; margin: 1.1rem auto 0; color: var(--pine-soft); }

/* ============================================================
   CONTACT — the estimate sheet
   ============================================================ */

.estimate-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.2rem, 4vw, 2.5rem) 0 clamp(2.2rem, 6vw, 4rem);
}
@media (max-width: 820px) {
  .estimate-grid { grid-template-columns: 1fr; }
}

.reach-list { list-style: none; }
.reach-list li {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.reach-list li:first-child { border-top: 0; padding-top: 0; }
.reach-list .smallcaps { display: block; margin-bottom: 0.2rem; }
.reach-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--green-deep);
}
.reach-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--pine-soft);
  margin-top: 1rem;
}

/* The form, dressed as a job sheet on painted paper */
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--frame-shadow);
  position: relative;
}
.sheet-edge { height: 14px; }
.sheet-body { padding: clamp(1.3rem, 4vw, 2rem); }
.sheet-body > h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}
.form-note { font-size: 0.92rem; color: var(--pine-soft); }

.sheet-grid { display: grid; gap: 1.1rem; margin-top: 1.3rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-soft);
  margin-bottom: 0.3rem;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--pine);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
}

.btn-submit {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: var(--green-deep);
  color: var(--white);
  border: 0;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
}
.btn-submit:hover { background: var(--pine); }

/* ============================================================
   COLOPHON FOOTER — painted edge + centered single column
   ============================================================ */

.paint-edge {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 14px;
}
.paint-edge i:nth-child(1) { background: var(--green-deep); }
.paint-edge i:nth-child(2) { background: var(--green); }
.paint-edge i:nth-child(3) { background: var(--swatch-sage); }
.paint-edge i:nth-child(4) { background: var(--ochre); }
.paint-edge i:nth-child(5) { background: var(--swatch-clay); }
.paint-edge i:nth-child(6) { background: var(--swatch-blue); }

.colophon {
  background: var(--pine);
  color: var(--canvas);
  text-align: center;
  padding: clamp(2.2rem, 6vw, 3.6rem) 0 2rem;
}
.colophon-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
}
.colophon-brand em { font-style: italic; color: var(--ochre); }
.colophon-line {
  margin-top: 0.7rem;
  color: rgba(250, 248, 243, 0.8);
  font-size: 0.98rem;
}
.colophon-line a { color: var(--canvas); }
.colophon-line .dot { color: var(--ochre); padding-inline: 0.45rem; }
.colophon-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1.4rem;
}
.colophon-nav a {
  color: var(--canvas);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 248, 243, 0.35);
  padding-bottom: 2px;
}
.colophon-nav a:hover { border-bottom-color: var(--ochre); }
.colophon-legal {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(250, 248, 243, 0.6);
}
.colophon-legal a { color: rgba(250, 248, 243, 0.75); }

/* ---------- Scroll reveal (JS-gated so no-JS stays visible) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
