/* ARR SEO report — brand-consistent with the Alabama Reliable Roofing remake */

:root {
  --red: #CA181E;
  --red-dark: #A21015;
  --brick: #702014;
  --ink: #111922;
  --slate: #5A5A68;
  --fog: #F8F8F8;
  --white: #FFFFFF;
  --line: #E6E4E1;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --radius: 8px;
  --container: 920px;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(202, 24, 30, 0.07);
  color: var(--brick);
  padding: 1px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px,
      transparent 2px, transparent 72px),
    var(--ink);
  color: var(--white);
  padding: clamp(64px, 10vw, 110px) 0 clamp(110px, 14vw, 150px);
}

.masthead h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  font-weight: 700;
  color: var(--white);
}

.masthead-sub {
  margin-top: 1rem;
  color: #ABB4BE;
  max-width: 56ch;
}

.masthead-sub a { color: #FFB4AE; }

.doc-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFB4AE;
  margin-bottom: 1rem;
}

.doc-label .chalk { display: inline-block; width: 34px; height: 2px; background: currentColor; flex: none; }

.section-findings .doc-label { color: var(--red); }

.roofline {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(44px, 7vw, 90px);
}

/* ---------- summary ---------- */

.section { padding: clamp(48px, 7vw, 80px) 0; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) { .summary-grid { grid-template-columns: repeat(4, 1fr); } }

.sum-card {
  background: var(--fog);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
}

.sum-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brick);
}

.sum-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.alert {
  background: #FFF6F0;
  border: 1px solid #F0D9CB;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
}

.alert h2 { font-size: 1.7rem; margin-bottom: 0.6rem; color: var(--brick); }
.alert p { margin-bottom: 0.8rem; }
.alert p:last-child { margin-bottom: 0; }

/* ---------- findings ---------- */

.section-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.finding {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
}

.finding-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: center;
  padding: 18px 22px 14px;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
}

.rank {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brick);
  border-radius: 50%;
}

.finding-head h3 { font-size: 1.5rem; font-weight: 600; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sev-critical { background: var(--red); color: #fff; }
.sev-high { background: var(--brick); color: #fff; }
.sev-med { background: #E8B7AD; color: var(--brick); }
.sev-low { background: var(--line); color: var(--slate); }
.scope-fixed { background: #E7F0E7; color: #22582A; border: 1px solid #C4D9C6; }
.scope-offsite { background: #FFF; color: var(--brick); border: 1px solid #E0C4BB; }
.scope-partial { background: #FDF3DC; color: #7A5A12; border: 1px solid #EBD9A8; }

.finding-body { padding: 20px 22px 22px; }

.finding-body > p { color: var(--ink); margin-bottom: 1rem; }

.finding-body strong { color: var(--ink); }

/* before / after */

.ba {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

@media (min-width: 720px) { .ba { grid-template-columns: 1fr 1fr; } }

.ba-col {
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--line);
}

.ba-before { background: #FBF3F3; border-color: #EDD2D2; }
.ba-after { background: #F2F7F2; border-color: #CFE0CF; }

.ba-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ba-before h4 { color: var(--red-dark); }
.ba-after h4 { color: #22582A; }

.ba-col ul { list-style: none; }

.ba-col li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.96rem;
  color: var(--slate);
}

.ba-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
}

.ba-before li::before { background: var(--red); }
.ba-after li::before { background: #22582A; }

.action-note {
  font-size: 0.96rem;
  color: var(--slate);
  background: var(--fog);
  border-left: 3px solid var(--brick);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- off-site actions ---------- */

.section-actions {
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px,
      transparent 2px, transparent 72px),
    var(--brick);
  color: var(--white);
}

.section-actions .section-title { color: var(--white); }

.doc-label-light { color: #FFB4AE; }

.action-list {
  list-style: none;
  counter-reset: action;
  display: grid;
  gap: 16px;
}

.action-list > li {
  counter-increment: action;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 20px 22px 18px 64px;
}

.action-list > li::before {
  content: counter(action);
  position: absolute;
  left: 16px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brick);
  background: var(--white);
  border-radius: 50%;
}

.action-list h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.5rem; color: #FFD9D4; }

.action-list ul { list-style: none; }

.action-list ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.88);
}

.action-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 2px;
  background: #FFB4AE;
}

.action-list code { background: rgba(255, 255, 255, 0.14); color: #FFD9D4; }

.action-list a { color: #FFB4AE; }

/* ---------- footer ---------- */

.report-footer {
  background: var(--ink);
  color: #ABB4BE;
  padding: 28px 0;
  font-size: 0.88rem;
}

.report-footer a { color: #D3D9DF; }
