/* ==========================================================================
   O'Fallon Pressure Washing — Property Exterior Assessment system
   Direction: the page reads like a clean, authoritative exterior condition
   report rather than a generic before/after pressure-washing template.
   Findings (services) carry tag IDs, the hero carries a real inspection-tag
   callout, coverage reads as a jurisdiction ledger. See index.html's opening
   comment for the full direction contract.
   ========================================================================== */

/* Self-hosted fonts — zero Google products on the RaR fleet (hard rule).
   Subsetted to Latin only, matching what this page actually needs. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FAF9F5;
  --paper-line: #E4E1D6;
  --ink: #1A1D19;
  --muted: #5B6259;
  --line: #D9D6C9;
  --orange: #D9560D;
  --orange-dk: #B3440A;
  --slate: #2F4858;
  --slate-dk: #223642;
  --white: #FFFFFF;
  --radius: 6px;
  --shadow-sm: 0 2px 6px -2px rgba(26, 29, 25, 0.14), 0 1px 2px rgba(26, 29, 25, 0.08);
  --shadow-md: 0 12px 28px -10px rgba(26, 29, 25, 0.22), 0 2px 6px -2px rgba(26, 29, 25, 0.1);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --disp: 'Barlow Condensed', var(--sans);
  color-scheme: light;
}

* { box-sizing: border-box; }

::selection { background: var(--orange); color: var(--white); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background:
    linear-gradient(var(--paper-line) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--paper);
}

:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

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

a { color: var(--slate); }

/* -------------------- header -------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.brand {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand em { font-style: normal; color: var(--orange); }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a.plain { font-weight: 600; font-size: 0.94rem; text-decoration: none; color: var(--slate-dk); }
.bar nav a.plain:hover { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dk);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  box-shadow: var(--shadow-sm);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.btn:hover { background: #983908; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

/* -------------------- hero -------------------- */
.hero { padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

.lede { font-size: 1.1rem; line-height: 1.65; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }

.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-cta-row .note { font-size: 0.88rem; color: var(--muted); }

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.report-meta div { padding: 14px 0; border-right: 1px solid var(--line); padding-right: 16px; }
.report-meta div:last-child { border-right: 0; }
.report-meta .k {
  font-family: var(--disp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.report-meta .v { font-size: 0.96rem; font-weight: 600; color: var(--ink); }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px 9px 14px;
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  line-height: 1.3;
  max-width: 210px;
  animation: tag-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 400ms;
}
.tag::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(217, 86, 13, 0.22);
}
.tag .k {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dk);
  margin-bottom: 2px;
}
.tag .v { color: var(--ink); font-weight: 500; }
.tag.tag-1 { top: 20px; left: 20px; }

@keyframes tag-in {
  from { opacity: 0; transform: translateX(-10px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tag { animation: none; }
}

/* -------------------- sections -------------------- */
section { padding: 76px 0; }
section.bordered { border-top: 1px solid var(--line); }

.section-head { max-width: 62ch; margin: 0 0 44px; }
h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-head p { color: var(--muted); font-size: 1.03rem; margin: 0; }

/* -------------------- findings (services) -------------------- */
.finding {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.finding:last-child { border-bottom: 1px solid var(--line); }
.finding:nth-child(even) .finding-media { order: 2; }

.finding-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.finding-media img { width: 100%; height: 100%; object-fit: cover; }

.finding-id {
  display: inline-block;
  font-family: var(--disp);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange-dk);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.finding h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
}
.finding p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0; max-width: 46ch; }

/* -------------------- process -------------------- */
.process-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.process-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1 / 1;
}
.process-media img { width: 100%; height: 100%; object-fit: cover; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li .n {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--orange);
  line-height: 1.4;
}
.steps li strong { display: block; color: var(--ink); font-size: 1.04rem; margin-bottom: 4px; }
.steps li span.d { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* -------------------- coverage -------------------- */
.coverage-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.coverage-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.coverage-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.coverage-row .place { font-weight: 600; color: var(--ink); }
.coverage-row .zone {
  font-family: var(--disp);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* -------------------- guides -------------------- */
.guides-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-row {
  display: block;
  background: var(--white);
  padding: 22px 24px;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.guide-row:hover { background: #FFF7F0; }
.guide-row h3 { font-family: var(--disp); font-weight: 600; font-size: 1.18rem; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.005em; }
.guide-row p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* -------------------- faq -------------------- */
.faq-list { display: grid; gap: 0; max-width: 74ch; }
.faq-item { padding: 26px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.24rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink);
}
.faq-item p { margin: 0; color: var(--muted); font-size: 1.01rem; line-height: 1.65; }

/* -------------------- legal / prose pages -------------------- */
.prose { max-width: 72ch; padding: 8px 0 16px; }
.prose h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  margin: 38px 0 12px;
}
.prose h2:first-of-type { margin-top: 8px; }
.prose p { color: var(--muted); margin: 0 0 15px; line-height: 1.7; }
.prose ul { color: var(--muted); margin: 0 0 18px; padding-left: 1.15rem; line-height: 1.7; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }
.updated {
  font-family: var(--disp);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}

/* -------------------- form -------------------- */
.form-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
label {
  display: block;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-dk);
  margin: 18px 0 6px;
}
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 1rem/1.4 var(--sans);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(217, 86, 13, 0.14);
  outline: none;
}
textarea { min-height: 100px; resize: vertical; }
.req { color: var(--orange-dk); }
.msg { margin-top: 16px; padding: 13px 15px; border-radius: 5px; display: none; font-size: 0.95rem; line-height: 1.5; }
.msg.ok { display: block; background: #EEF6F0; border: 1px solid #C6E0CD; color: #205C34; }
.msg.err { display: block; background: #FBECEA; border: 1px solid #F0C4BE; color: #8E2F22; }

.form-side .section-head { margin-bottom: 28px; }
.form-side ul.plain { list-style: none; margin: 0; padding: 0; }
.form-side ul.plain li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  display: flex;
  gap: 10px;
}
.form-side ul.plain li:last-child { border-bottom: 1px solid var(--line); }
.form-side ul.plain li::before { content: "—"; color: var(--orange); flex: 0 0 auto; }

/* -------------------- footer -------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--slate);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
footer a { color: #fff; }
footer .brand-f { font-family: var(--disp); font-weight: 600; letter-spacing: 0.01em; color: #fff; text-transform: uppercase; font-size: 1rem; }

/* -------------------- responsive -------------------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
  .tag.tag-1 { left: 12px; top: 12px; }
  .report-meta { grid-template-columns: 1fr; }
  .report-meta div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .report-meta div:last-child { border-bottom: 0; }
  .finding, .finding:nth-child(even) .finding-media { grid-template-columns: 1fr; order: 0; }
  .finding-media { order: -1; }
  .process-wrap { grid-template-columns: 1fr; gap: 32px; }
  .coverage-wrap { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .bar { flex-wrap: wrap; row-gap: 12px; padding: 14px 0; }
  .bar nav { gap: 16px; }
  .brand { font-size: 1.05rem; }
  .bar nav a.plain { font-size: 0.9rem; }
  .btn { padding: 10px 14px; font-size: 0.86rem; white-space: nowrap; }
  h1 { font-size: 2rem; }
}
