/* BestCo Property Management — shared stylesheet
   Fictional demonstration company created by Opsurant. */

:root {
  --navy-950: #101c30;
  --navy-800: #1b2f4e;
  --navy-600: #2e4a74;
  --blue-tint: #e9eff7;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --ink: #1d2530;
  --muted: #5a6778;
  --line: #d9e1ec;
  --terra: #b14e2c;
  --terra-tint: #f7e9e3;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 28, 48, 0.06);
  --shadow-hover: 0 10px 24px rgba(16, 28, 48, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy-800);
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.2rem, 3vw + 1.4rem, 3.4rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.05rem; font-weight: 600; }

p {
  margin: 0 0 1.1em;
}

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

a {
  color: var(--navy-800);
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover, a:focus {
  color: var(--terra);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

main {
  display: block;
}

section {
  padding: 5rem 0;
}

section + section {
  border-top: 1px solid var(--line);
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-800);
  text-decoration: none;
  margin-right: auto;
}

.wordmark:hover {
  color: var(--terra);
}

.wordmark:hover .mark rect {
  fill: var(--terra);
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.mark rect {
  fill: var(--navy-800);
  transition: fill 0.15s ease;
}

.mark path {
  fill: #ffffff;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--navy-800);
  border-bottom-color: var(--terra);
}

.fiction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terra);
  background: var(--surface);
  border: 1.5px solid var(--terra);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.fiction-badge:hover,
.fiction-badge:focus-visible {
  background: var(--terra-tint);
  color: var(--terra);
}

.fiction-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  flex: none;
}

/* Eyebrow */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 1em;
}

/* Hero (home) */

.hero {
  position: relative;
  background: var(--navy-950);
  color: #ffffff;
  padding-top: 4.5rem;
  padding-bottom: 6.5rem;
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #ffffff;
}

.hero-sub {
  font-family: "Archivo", sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  color: #dbe4f2;
  margin-bottom: 0.9em;
}

.hero-body {
  font-size: 1.1rem;
  color: #c6d3e6;
}

.hero-body a,
.honesty a {
  color: #ffffff;
  text-decoration-color: var(--terra);
}

.hero-body a:hover,
.honesty a:hover {
  color: var(--terra);
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 110px;
  z-index: 1;
  pointer-events: none;
}

.skyline rect,
.skyline path {
  fill: none;
  stroke: var(--navy-600);
  stroke-width: 1.5;
}

/* Stat band */

.stat-band {
  padding: 0;
  border-top: none;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  margin-top: -3.25rem;
  position: relative;
  z-index: 3;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
  margin-bottom: 3.25rem;
}

.stat {
  text-align: center;
  padding: 0 0.5rem;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-number {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

.stat-label {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.25em;
}

/* Page header (non-home pages) */

.page-hero {
  background: var(--navy-950);
  color: #ffffff;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  border-top: none;
}

.page-hero .wrap {
  max-width: 760px;
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  font-size: 1.08rem;
  color: #c6d3e6;
  margin-bottom: 0;
}

.page-hero a {
  color: #ffffff;
  text-decoration-color: var(--terra);
}

.page-hero a:hover {
  color: var(--terra);
}

/* Section headers */

.section-head {
  margin-bottom: 0;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--terra);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  stroke: var(--navy-800);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.85rem;
}

.card h3 {
  margin-bottom: 0.3em;
  color: var(--navy-800);
}

.card-figure {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--terra);
  margin-bottom: 0.7em;
}

.card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

/* Two-column tinted band */

.split {
  background: var(--blue-tint);
}

.split .wrap {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
}

.split .split-copy p {
  color: var(--ink);
}

.split .split-copy p:first-child {
  margin-top: 0;
}

/* CTA buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--navy-800);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-600);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--terra);
  color: #ffffff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--terra);
  color: var(--navy-950);
}

.link-arrow {
  display: inline-block;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  margin-top: 0.4rem;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--terra);
}

/* Honesty / closing dark band */

.honesty {
  background: var(--navy-950);
  color: #ffffff;
}

.honesty h2 {
  color: #ffffff;
}

.hero .eyebrow,
.page-hero .eyebrow,
.honesty .eyebrow {
  color: #e08a63;
}

.honesty .wrap {
  max-width: 720px;
}

.honesty p {
  color: #c6d3e6;
  font-size: 1.08rem;
}

/* Alternating section backgrounds */

.tint {
  background: var(--blue-tint);
}

/* Property table */

.table-scroll {
  overflow-x: auto;
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 660px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 1.15rem 1.25rem 0;
  font-weight: 600;
  color: var(--muted);
}

thead th {
  text-align: left;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  background: var(--navy-800);
}

thead th:first-child {
  border-top-left-radius: var(--radius);
}

thead th:last-child {
  border-top-right-radius: var(--radius);
}

tbody td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: var(--paper);
}

tbody tr:hover {
  background: var(--blue-tint);
}

tbody tr:last-child td {
  border-bottom: none;
}

td.code {
  white-space: nowrap;
}

.code-chip {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--terra);
  background: var(--terra-tint);
  border-radius: 4px;
  padding: 0.2em 0.55em;
}

/* Team roster */

.dept {
  margin-top: 3rem;
}

.dept:first-of-type {
  margin-top: 2.25rem;
}

.dept h3 {
  color: var(--navy-800);
  font-size: 1.15rem;
  margin-bottom: 1.25em;
  padding-bottom: 0.6em;
  position: relative;
}

.dept h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--terra);
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.person-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.person-body {
  min-width: 0;
}

.roster .person-name {
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.roster .person-title {
  color: var(--terra);
  font-size: 0.88rem;
  font-weight: 600;
  display: block;
  margin: 0.15em 0 0.4em;
}

.roster .person-line {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* Rules cards on transparency page */

.rules-grid {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.rules-grid li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--terra);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.rules-grid h3 {
  color: var(--navy-800);
  margin-bottom: 0.4em;
}

.rules-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Closing panel */

.closing-panel {
  background: var(--blue-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-top: 2.25rem;
}

.closing-panel p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.closing-panel a {
  font-weight: 600;
  color: var(--navy-800);
}

.closing-panel a:hover {
  color: var(--terra);
}

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: #c6d3e6;
  padding: 2.75rem 0;
  margin-top: 0;
  border-top: 2px solid var(--terra);
}

.site-footer .disclosure {
  font-size: 1.02rem;
  max-width: 760px;
  margin-bottom: 0.85em;
  color: #c6d3e6;
}

.site-footer a {
  color: #ffffff;
  text-decoration-color: var(--terra);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--terra);
}

.footer-links {
  font-size: 0.88rem;
  color: #93a4bd;
  margin-bottom: 0;
}

/* 404 */

.not-found {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  max-width: 640px;
}

/* Responsive */

@media (max-width: 760px) {
  .split .wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(2n+1) {
    border-left: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .wordmark {
    margin-right: 0;
  }

  .fiction-badge {
    order: 3;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding-bottom: 5.5rem;
  }

  .stat-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  .stat-card {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}
