/* Peirson Home Inspections — shared styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0B0B09;
  --charcoal: #14130F;
  --card: #1B1913;
  --card-edge: #26231A;
  --gold: #D7B23F;
  --gold-soft: #EFDDA6;
  --gold-dark: #9B7625;
  --red: #B3402E;
  --paper: #F7F4EC;
  --white: #FDFDFB;
  --text: #EDE8DA;
  --muted: #B3AB99;
  --muted-2: #8C8574;
  --border: rgba(215, 178, 63, 0.20);
  --border-strong: rgba(215, 178, 63, 0.42);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', Arial, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
p { color: var(--muted); }

h1, h2, h3 {
  font-family: 'Archivo', Arial, sans-serif;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

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

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--gold); color: var(--black);
  padding: 10px 14px; z-index: 9999; text-decoration: none;
  font-weight: 700; border-radius: 6px;
}
.skip-link:focus { top: 16px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.section { padding: 88px 0; }
.section-alt { background: var(--charcoal); border-top: 1px solid var(--card-edge); border-bottom: 1px solid var(--card-edge); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  margin-bottom: 14px;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.section-heading { max-width: 800px; margin-bottom: 44px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 24px; border-radius: 6px;
  text-decoration: none; font-family: 'Archivo', sans-serif;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--black); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid rgba(237, 232, 218, 0.45); }
.btn-secondary:hover { border-color: var(--text); }

/* ---------- NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 9, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-edge);
}
.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto; padding: 14px 0;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: 0.03em; white-space: nowrap; }
.brand .slash { color: var(--gold); }
.brand-sub { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-phone {
  background: var(--gold); color: var(--black);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.85rem;
  padding: 9px 16px; border-radius: 6px; text-decoration: none; white-space: nowrap;
}
.nav-phone:hover { background: var(--gold-soft); }
.nav-toggle {
  display: none; border: 1px solid var(--border); background: transparent;
  color: var(--text); border-radius: 6px; padding: 9px 14px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.mobile-menu {
  display: none; border-top: 1px solid var(--card-edge);
  padding: 14px 20px 20px; background: var(--black);
}
.mobile-menu.is-open { display: grid; gap: 4px; }
.mobile-menu a {
  text-decoration: none; color: var(--text); font-weight: 500;
  padding: 12px 10px; border-radius: 6px; font-size: 0.95rem;
}
.mobile-menu a:hover { background: var(--card); color: var(--gold); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-phone { margin-left: 0; }
}

/* ---------- HOME HERO ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(215, 178, 63, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 178, 63, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(215, 178, 63, 0.07), transparent 45%),
    var(--black);
  background-size: 38px 38px, 38px 38px, auto, auto;
  padding: 84px 0 92px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("LOGO.jpg") no-repeat center center;
  background-size: min(1500px, 135%);
  background-attachment: fixed;
  opacity: 0.10;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 800; margin-bottom: 20px; color: var(--white);
}
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 54ch; margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.trust-row { display: flex; gap: 10px 24px; flex-wrap: wrap; }
.trust-row div {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2);
}
.trust-row div::before { content: "\25A0"; color: var(--gold); font-size: 7px; margin-right: 8px; vertical-align: 2px; }

.diagram svg { width: 100%; height: auto; display: block; }
.dr { stroke: rgba(215, 178, 63, 0.85); stroke-width: 1.6; fill: none; stroke-linecap: square; }
.dr-soft { stroke: rgba(237, 232, 218, 0.22); stroke-width: 1; fill: none; stroke-dasharray: 4 4; }
.callout { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.06em; fill: var(--text); }
.callout-sub { font-family: 'IBM Plex Mono', monospace; font-size: 9px; fill: var(--muted-2); }
.leader { stroke: var(--gold); stroke-width: 1; fill: none; }
.dot { fill: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .dr { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.2s ease forwards 0.2s; }
  .anno { opacity: 0; animation: fadein 0.8s ease forwards 1.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fadein { to { opacity: 1; } }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- SUBPAGE HERO ---------- */
.page-hero {
  background:
    linear-gradient(rgba(215, 178, 63, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 178, 63, 0.045) 1px, transparent 1px),
    var(--black);
  background-size: 38px 38px;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--card-edge);
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.page-hero .lede { max-width: 62ch; font-size: 1.05rem; }

/* ---------- BIO ---------- */
.bio-grid { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: start; }
.photo-slot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--charcoal));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.points { display: grid; gap: 24px; margin-top: 8px; }
.point .tag {
  font-family: 'IBM Plex Mono', monospace; display: block;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.point p { font-size: 0.98rem; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: 1fr; } .photo-slot { max-width: 380px; } }

/* ---------- GRIDS & CARDS ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--card), var(--charcoal));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 26px;
}
.service-card { border-top: 3px solid var(--gold); }
.service-card p { font-size: 0.92rem; }

/* ---------- REPORT ---------- */
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 820px) { .report-grid { grid-template-columns: 1fr; } }
.report-card { padding: 0; overflow: hidden; }
.report-image-wrap { background: var(--paper); padding: 14px; }
.report-image-wrap img { border-radius: 6px; width: 100%; }
.report-card-content { padding: 20px 22px; }
.report-card-content h3 { color: var(--gold); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }
.report-card-content p { font-size: 0.92rem; }
.report-points { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 26px; }
.report-points div { font-size: 0.9rem; color: var(--muted); padding-left: 22px; position: relative; }
.report-points div::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- PRICING ---------- */
.price-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .price-layout { grid-template-columns: 1fr; } }
.price-hero {
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(circle at 30% 0%, rgba(215, 178, 63, 0.12), transparent 45%),
    linear-gradient(180deg, var(--card), var(--charcoal));
  border: 1px solid var(--border);
}
.price-num { font-family: 'Archivo', sans-serif; font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 800; color: var(--gold); line-height: 1; margin: 8px 0 6px; letter-spacing: -0.03em; }
.price-sub { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.price-fine { font-size: 0.88rem; }
.addon-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.addon-table td { padding: 12px 4px; border-bottom: 1px solid var(--card-edge); font-size: 0.95rem; color: var(--text); }
.addon-table td:last-child { text-align: right; font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-weight: 500; }
.addon-table tr:last-child td { border-bottom: none; }
.discount-strip {
  margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  background: rgba(215, 178, 63, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 24px;
}
.discount-strip strong { color: var(--gold-soft); font-family: 'Archivo', sans-serif; }
.discount-strip span { color: var(--muted); font-size: 0.92rem; }

/* ---------- JASPR ---------- */
.jaspr-strip { align-items: center; }
.jaspr-media { display: grid; gap: 14px; width: 340px; max-width: 100%; }
.video-wrap { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-wrap a { position: relative; display: block; width: 100%; height: 100%; }
.video-wrap a img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.16s ease; }
.video-wrap a:hover img { opacity: 1; }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
@media (max-width: 860px) { .jaspr-media { width: 100%; } }

/* ---------- REVIEWS ---------- */
.review-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; font-size: 0.95rem; }
.review-card p { font-size: 0.95rem; margin-bottom: 14px; }
.review-card .who {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
}
.review-cta { text-align: center; margin-top: 30px; }

/* ---------- HOMECARE ---------- */
.homecare {
  background:
    linear-gradient(rgba(215, 178, 63, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 178, 63, 0.04) 1px, transparent 1px),
    var(--charcoal);
  background-size: 38px 38px;
  border-top: 1px solid var(--card-edge);
  border-bottom: 1px solid var(--card-edge);
}
.hc-head { display: grid; grid-template-columns: 1fr 280px; gap: 44px; align-items: center; margin-bottom: 44px; }
.hc-photo img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hc-photo figcaption {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
  margin-top: 10px; text-align: center;
}
@media (max-width: 820px) { .hc-head { grid-template-columns: 1fr; } .hc-photo { max-width: 320px; } }
.tier-card { display: flex; flex-direction: column; }
.tier-card .tier-name {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.tier-price { font-family: 'Archivo', sans-serif; font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.tier-price small { font-size: 0.8rem; font-weight: 500; color: var(--muted-2); font-family: 'Public Sans', sans-serif; }
.tier-meta { font-size: 0.82rem; color: var(--muted-2); margin: 6px 0 16px; }
.tier-card ul { list-style: none; display: grid; gap: 9px; margin-top: auto; padding: 0; }
.tier-card li { font-size: 0.9rem; color: var(--muted); padding-left: 20px; position: relative; }
.tier-card li::before { content: "\2014"; position: absolute; left: 0; color: var(--gold); }
.tier-featured { border: 1px solid var(--border-strong); position: relative; }
.tier-featured::after {
  content: "MOST POPULAR STARTING POINT";
  font-family: 'IBM Plex Mono', monospace; font-size: 0.58rem; letter-spacing: 0.12em;
  color: var(--black); background: var(--gold);
  position: absolute; top: -10px; left: 22px; padding: 3px 10px; border-radius: 4px;
}
.score-band { margin-top: 22px; }
.score-bars { display: grid; gap: 10px; margin-top: 18px; }
.score-row { display: grid; grid-template-columns: 220px 1fr 46px; gap: 14px; align-items: center; }
.score-row .label { font-size: 0.85rem; color: var(--text); }
.score-row .bar { height: 8px; background: var(--card-edge); border-radius: 99px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); border-radius: 99px; }
.score-row .pts { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--muted-2); text-align: right; }
@media (max-width: 620px) { .score-row { grid-template-columns: 1fr 60px; } .score-row .bar { display: none; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
details.faq {
  background: linear-gradient(180deg, var(--card), var(--charcoal));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
}
details.faq summary {
  cursor: pointer; padding: 18px 22px; list-style: none;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 700; flex: 0 0 auto; }
details.faq[open] summary::after { content: "\2013"; }
details.faq[open] { border-color: var(--border); }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }
.faq-a a { color: var(--gold); }

/* ---------- SCHEDULER ---------- */
.spectora-wrap {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.spectora-wrap iframe { display: block; border: 0; height: 1100px; width: 100%; }

/* ---------- AREA ---------- */
.area-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 10px; padding: 0; }
.area-list li {
  padding: 9px 16px; border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); font-size: 0.88rem; font-weight: 500;
  background: rgba(215, 178, 63, 0.04);
}

/* ---------- CONTACT ---------- */
.contact-card {
  max-width: 860px; margin: 0 auto; text-align: center; padding: 48px 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 178, 63, 0.1), transparent 50%),
    linear-gradient(180deg, var(--card), var(--charcoal));
  border: 1px solid var(--border);
}
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 10px; }
@media (max-width: 620px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-method {
  text-decoration: none; background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-edge); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 4px; transition: border-color 0.16s ease;
}
.contact-method:hover { border-color: var(--border-strong); }
.contact-method strong {
  font-family: 'IBM Plex Mono', monospace; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; font-weight: 500;
}
.contact-method span { color: var(--white); font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1.05rem; word-break: break-word; }

/* ---------- CTA BAND ---------- */
.cta-band {
  text-align: center; padding: 72px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 178, 63, 0.09), transparent 55%),
    var(--charcoal);
  border-top: 1px solid var(--card-edge);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 56ch; margin: 0 auto 26px; }

/* ---------- FOOTER ---------- */
.site-footer { background: #070706; border-top: 1px solid var(--card-edge); padding: 44px 0 96px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; font-weight: 500;
}
.site-footer p, .site-footer a { font-size: 0.9rem; color: var(--muted); }
.foot-logo { width: 200px; border-radius: 8px; border: 1px solid var(--card-edge); margin-bottom: 16px; }
.scope {
  margin-top: 34px; border-top: 1px solid var(--card-edge); padding-top: 20px;
  font-size: 0.78rem !important; color: var(--muted-2) !important; line-height: 1.7;
}

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-sticky-cta { display: none; }
@media (max-width: 700px) {
  .mobile-sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999; }
  .mobile-sticky-cta a {
    display: block; text-align: center; background: var(--gold); color: var(--black);
    padding: 15px 18px; border-radius: 8px; font-family: 'Archivo', sans-serif;
    font-weight: 800; text-decoration: none; font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }
  .section { padding: 60px 0; }
}

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