/* Richard Peters Realty — site styles
   Palette derived from the RPR logo: slate ink + brand cyan.
   Red is used semantically: it marks the wholesaler/scam content only. */

:root {
  --ink: #14181d;
  --ink-2: #1e242b;
  --ink-3: #2b333c;
  --slate: #4a535d;
  --paper: #ffffff;
  --paper-2: #f0f2f4;
  --paper-3: #e3e7ea;
  --signal: #0c8fd6;
  --signal-deep: #0a6ea6;
  --signal-soft: #e6f4fb;
  --stamp: #b8402c;
  --stamp-soft: #fbeeeb;
  --text: #191f26;
  --text-2: #545f6b;
  --line: #d6dbe0;
  --line-dark: rgba(255, 255, 255, 0.14);

  --w: 1160px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--signal-deep); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--w)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

/* ---------- utility type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-deep);
  margin: 0 0 1rem;
  font-weight: 500;
}
.eyebrow--warn { color: var(--stamp); }
.eyebrow--onink { color: #6ec5ee; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  padding: 0.95rem 1.4rem;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--signal); color: #fff; border-color: var(--signal); }
.btn--primary:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding-block: 0.6rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand .wordmark {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  max-width: 7.5em;
}

.nav { display: flex; align-items: center; gap: 1.1rem; justify-content: flex-end; }
.nav-cta { display: none; }
.nav a {
  color: #cdd5dd;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--signal); }

.header-cta { font-size: 0.76rem; padding: 0.7rem 1rem; max-width: 15rem; line-height: 1.3; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: #fff;
  padding: 0.5rem 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--ink-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; margin-top: 1rem; justify-content: center; text-align: center; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: 0;
}
.hero-copy { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem) 0; }
.hero-grid > .hero-copy { padding-left: max(1.25rem, calc((100vw - var(--w)) / 2)); }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero p.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: #b9c3cd; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-media { position: relative; min-height: 340px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(20,24,29,0.35) 38%, rgba(20,24,29,0.1) 100%);
}
.hero--compact .hero-copy { padding-block: clamp(2.5rem, 5vw, 4rem); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > .hero-copy { padding: 2.75rem 1.25rem 2.5rem; order: 2; }
  .hero-media { order: 1; min-height: 220px; height: 34vh; }
  .hero-media::after { background: linear-gradient(180deg, rgba(20,24,29,0.15) 0%, var(--ink) 100%); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--flush { padding-bottom: 0; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #b9c3cd; }
.page-head { padding-block: clamp(2.4rem, 4.5vw, 3.5rem); }
.page-head h1 { margin-bottom: 0; max-width: 20ch; }
.page-head .lede { color: #b9c3cd; margin-top: 1rem; max-width: 46ch; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- clause list (the signature element) ---------- */
.clauses { border-top: 1px solid var(--line); }
.clause {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.clause-no {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--stamp);
  padding-top: 0.45rem;
  font-weight: 500;
}
.clause--calm .clause-no { color: var(--signal-deep); }
.clause h3 { margin-bottom: 0.5rem; font-size: clamp(1.15rem, 2vw, 1.42rem); }
.clause .body { color: var(--text-2); max-width: 46rem; }
.clause h3 { max-width: 40rem; }
.clause .body p { margin-bottom: 0.9em; }

@media (max-width: 620px) {
  .clause { grid-template-columns: 1fr; gap: 0.35rem; }
  .clause-no { padding-top: 0; }
}

/* ---------- difference cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem); }
.card h3 { margin-bottom: 0.7rem; }
.card .body { color: var(--text-2); font-size: 0.99rem; }
.card ul { margin: 0.9em 0 0; padding-left: 1.1em; }
.card li { margin-bottom: 0.5em; text-align: left !important; }
.card .rule { width: 40px; height: 3px; background: var(--signal); margin-bottom: 1.2rem; }

/* ---------- steps (numbered process) ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step {
  background: var(--paper);
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.step-no {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  color: var(--signal);
  font-weight: 500;
  line-height: 1;
  padding-top: 0.3rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step .body { color: var(--text-2); }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- proof strip ---------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
}
.proof-strip a { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.proof-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 0.4s ease, filter 0.3s ease; }
.proof-strip a:hover img { transform: scale(1.04); filter: saturate(1); }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery img { width: 100%; border: 1px solid var(--line); background: var(--paper-2); }

/* ---------- ordered legal list ---------- */
.commandments { counter-reset: cmd; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.commandments li {
  counter-increment: cmd;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.commandments li::before {
  content: counter(cmd, upper-roman);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--signal-deep);
  padding-top: 0.32rem;
  letter-spacing: 0.06em;
}
@media (max-width: 620px) {
  .commandments li { grid-template-columns: 2.4rem 1fr; gap: 0.75rem; }
}

/* ---------- embeds ---------- */
.embed-shell { background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-2); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c3cd; max-width: 52ch; }
.cta-band .hero-actions { margin-top: 1.75rem; }

/* ---------- form ---------- */
.form-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-aside { position: sticky; top: 100px; }
.form-aside h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.form-aside .body { color: var(--text-2); }
@media (max-width: 900px) { .form-aside { position: static; } }

.field { margin-bottom: 1.5rem; }
.field > label, .field-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.4rem 1.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--text); line-height: 1.45; }
.check input { margin-top: 0.32rem; accent-color: var(--signal); width: 1rem; height: 1rem; flex: none; }
.consent { background: var(--paper-2); border: 1px solid var(--line); padding: 1.1rem 1.2rem; font-size: 0.88rem; color: var(--text-2); }
.consent .check { font-size: 0.88rem; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.error { color: var(--stamp); }
.form-status.ok { color: var(--signal-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #9aa6b2; padding-block: clamp(2.75rem, 5vw, 4rem); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand span {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  max-width: 8em;
  line-height: 1.25;
}
.site-footer h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e7c89;
  margin: 0 0 1rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: #cdd5dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.credentials { background: #fff; padding: 0.7rem 0.9rem; border-radius: 3px; display: inline-block; }
.credentials img { height: 46px; width: auto; }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6e7c89;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- prose (privacy etc.) ---------- */
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 16, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
}

/* ---------- a11y ---------- */
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip {
  position: absolute;
  left: -9999px;
  background: var(--signal);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
