/**
 * Purpose: Public and owner styles for PG Pro Painting, LLC. Navy and paper from the business card.
 * Author: Doug Hesseltine
 * Created: 2026-09-17
 * Modified: 2026-09-30
 * Version: 1.3.0
 */

@font-face {
  font-family: Figtree;
  src: url("/assets/fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/fonts/figtree-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/fonts/figtree-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/big-shoulders-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1c2335;
  --muted: #4a5160;
  --navy: #1c2335;
  --paper: #f6f5f2;
  --line: #1c2335;
  --danger: #8b2e2e;
  --on-navy: #f6f5f2;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: Figtree, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 0;
  --header-h: 72px;
  --z-header: 20;
  --z-skip: 30;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --surface: #1c2335;
    --ink: #f6f5f2;
    --muted: #c5c9d4;
    --navy: #f6f5f2;
    --paper: #12151c;
    --line: #f6f5f2;
    --on-navy: #1c2335;
    --danger: #e08a8a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  z-index: var(--z-skip);
}
.skip:focus { left: 12px; top: 12px; background: var(--navy); color: var(--on-navy); padding: 8px 12px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding: 0 6vw;
  border-bottom: 2px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.logo {
  width: 48px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.llc {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--on-navy);
  border: 2px solid var(--navy);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle:active { transform: scale(0.98); }
nav { display: flex; gap: 22px; font-weight: 600; white-space: nowrap; }
nav a { text-decoration: none; color: var(--ink); }
nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--navy); }

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100dvh - var(--header-h));
  border-bottom: 2px solid var(--line);
}
.hero-copy {
  padding: 2.5rem 6vw 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  max-width: 40rem;
}
.eyebrow {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}
.facts li {
  border: 2px solid var(--navy);
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.88rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  max-width: 8.2em;
}
.lede { margin: 0; max-width: 36ch; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-left: 2px solid var(--line);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.hero-logo { width: min(240px, 55%); height: auto; }
.hero-side {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  white-space: nowrap;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn { transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 120ms cubic-bezier(0.16, 1, 0.3, 1); }
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active, button[type="submit"]:active { transform: scale(0.98); }

section { padding: 4.5rem 6vw; }
h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  line-height: 1.05;
}

.jobs {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 36px;
  align-items: stretch;
  border-bottom: 2px solid var(--line);
}
.job-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.job-stack article {
  padding: 18px 0;
  border-top: 2px solid var(--line);
}
.job-stack article:last-child { border-bottom: 2px solid var(--line); }
.job-stack h3 {
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0 0 6px;
  font-size: 1.7rem;
}
.job-stack p { margin: 0; color: var(--muted); }

.call-board {
  background: var(--navy);
  color: var(--on-navy);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.call-board h2 { color: var(--on-navy); margin-bottom: 0.4rem; }
.call-board a { color: var(--on-navy); }
.person {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-top: 1px solid color-mix(in srgb, var(--on-navy) 35%, transparent);
  padding: 12px 0;
}
.person .who { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.person .num { font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.mail { font-weight: 600; word-break: break-all; }

.towns { border-bottom: 2px solid var(--line); }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0 0 1rem;
}
.area-list li {
  background: var(--ink);
  color: var(--surface);
  padding: 8px 12px;
  font-weight: 600;
}

.contact {
  background: var(--surface);
  color: var(--ink);
}
.contact h2 { color: var(--navy); }
.contact .lede { color: var(--muted); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
form {
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--line);
  padding: 18px;
}
label { display: block; font-weight: 650; margin: 12px 0 4px; color: var(--ink); }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
}
.hp { position: absolute; left: -9999px; }
.err { color: var(--danger); font-size: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button[type="submit"] {
  margin-top: 16px;
  width: 100%;
  font: inherit;
  font-weight: 800;
  background: var(--navy);
  color: var(--on-navy);
  border: 2px solid var(--navy);
  padding: 12px;
  cursor: pointer;
  white-space: nowrap;
}

footer {
  padding: 22px 6vw 48px;
  border-top: 2px solid var(--line);
  background: var(--navy);
  color: var(--on-navy);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  position: relative;
}
footer a { color: var(--on-navy); }
.foot-copy p { margin: 6px 0 0; }
.motto { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 36px 0 0 72px;
  border-color: transparent transparent transparent #05050f;
}

.help { color: var(--muted); font-size: 0.95rem; }
.thanks {
  min-height: calc(100dvh - var(--header-h) - 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
}

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      animation-timeline: view();
      animation-range: entry 8% entry 40%;
    }
    .reveal.is-in { transition: none; }
  }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

.portfolio-intro { padding-bottom: 0; }
.shot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}
.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--line);
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface),
      var(--surface) 12px,
      color-mix(in srgb, var(--ink) 8%, var(--surface)) 12px,
      color-mix(in srgb, var(--ink) 8%, var(--surface)) 13px
    );
  display: grid;
  place-items: center;
  position: relative;
  min-height: 160px;
}
.shot:nth-child(3) .shot-frame { aspect-ratio: 3 / 4; }
.shot:nth-child(6) .shot-frame { aspect-ratio: 16 / 9; }
.shot-tape {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 48px;
  height: 14px;
  background: var(--navy);
}
.shot-empty {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.shot figcaption { margin-top: 8px; font-weight: 600; }
.portfolio-note { color: var(--muted); max-width: 42ch; }

.owner-shell { min-height: 100dvh; background: var(--bg); }
.owner-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--surface);
}
.owner-bar a { color: var(--on-navy); text-decoration: none; font-weight: 600; }
.owner-wrap { padding: 24px; max-width: 1100px; margin: 0 auto; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.counts a {
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.counts a.on { background: var(--navy); color: var(--on-navy); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding: 10px; text-align: left; vertical-align: top; }
th { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.status { font-weight: 700; }
.qr-page { max-width: 64rem; }
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}
.qr-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--navy);
  background: var(--surface);
  padding: 16px;
  text-align: center;
}
.qr-card img { width: 100%; height: auto; background: var(--paper); }
.qr-card strong { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; }
@media print {
  .site-header, footer, .skip, .nav-toggle { display: none !important; }
  .qr-page { padding: 0; }
}

.login-card {
  max-width: 420px;
  margin: 12vh auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 24px;
}
.flash { padding: 10px 12px; border: 2px solid var(--ink); background: var(--navy); color: var(--on-navy); margin: 0 0 16px; }
.flash.bad { background: #f3d0d0; color: #132019; }

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding: 10px 5vw;
  }
  .nav-toggle { display: inline-block; }
  nav { display: none; gap: 12px; font-size: 0.92rem; width: 100%; padding: 0 0 10px; }
  nav.is-open { display: flex; flex-wrap: wrap; }
  .wordmark { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .jobs, .contact-grid, .form-row, .shot-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy, section, footer { padding-left: 5vw; padding-right: 5vw; }
  .hero-copy { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .hero-card {
    min-height: 220px;
    border-left: 0;
    border-top: 2px solid var(--line);
  }
  .hero-side { display: none; }
  .qr-grid { grid-template-columns: 1fr; }
  .shot-frame,
  .shot:nth-child(3) .shot-frame,
  .shot:nth-child(6) .shot-frame {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  h1 { font-size: 2.2rem; max-width: none; }
}
