/* Mesa Vale LLC — "Custody Drawing" Design System */

:root {
  --blue: #203f69;
  --navy: #172d49;
  --steel: #dce8f2;
  --custody: #eaf0f4;
  --paper: #f5f8fa;
  --white: #ffffff;
  --amber: #ffcb78;
  --amber-hover: #f5bc5e;
  --focus: #da8222;
  --rule: #839eb8;
  --rule-soft: #91a9bf;
  --muted-blue: #476787;
  --hero-copy: #dce8f7;
  --text: #172d49;
  --text-soft: #334e6c;
  --border: #c9d8e6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.55 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 14px;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 5%;
}

/* Links & Focus */
a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--navy);
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--navy);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  text-decoration: none;
  border-bottom-color: var(--rule);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--blue);
}

/* Typography */
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1px;
}

h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.03;
  letter-spacing: -1.6px;
}

h2 {
  font-size: clamp(26px, 3.2vw, 33px);
  line-height: 1.14;
  margin-bottom: 14px;
}

h3 {
  font-size: 15.5px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--navy);
}

.eyebrow {
  display: inline-block;
  font: 13px/1.3 Georgia, serif;
  letter-spacing: 0.6px;
  color: var(--hero-copy);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  border: 0;
  border-radius: 4px;
  padding: 11px 16px;
  font: 700 13px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--amber-hover);
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(220, 232, 247, 0.5);
  border-radius: 4px;
  padding: 10px 15px;
  font: 700 13px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--white);
  text-decoration: none;
}

.btn-dark {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  border: 0;
  border-radius: 4px;
  padding: 11px 16px;
  font: 700 13px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn-dark:hover {
  background: var(--navy);
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Home Hero */
.hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  padding-block: 44px 48px;
}

.drawing {
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  margin-top: 20px;
}

.hero-lead {
  max-width: 54%;
  color: var(--hero-copy);
  margin: 15px 0 24px;
  font-size: 14.5px;
}

/* Subpage Hero */
.sub-hero {
  position: relative;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.sub-hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.sub-hero-inner {
  padding-block: 36px 40px;
}

.sub-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-top: 12px;
  max-width: 22ch;
}

.sub-hero .hero-lead {
  max-width: 62ch;
  margin-bottom: 0;
}

/* Sections */
.band {
  padding-block: 38px;
}

.band-steel {
  background: var(--steel);
}

.band-custody {
  background: var(--custody);
}

.band-paper {
  background: var(--paper);
}

.band-white {
  background: var(--white);
}

.section-intro {
  max-width: 72ch;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.section-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* Facts Grid */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  margin: 0 0 14px;
}

.facts dt {
  font-size: 12.5px;
  color: var(--muted-blue);
}

.facts dd {
  margin: 3px 0 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.status-note {
  font-size: 13.5px;
  color: var(--text-soft);
  max-width: 72ch;
}

/* Services Grid */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
}

.services article {
  padding-left: 14px;
  border-left: 3px solid var(--rule);
}

.services p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: 5px;
}

.service-detail-list {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.service-detail-list li {
  margin-bottom: 4px;
}

/* Chain of Custody Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  padding: 0;
  list-style: none;
  margin: 20px 0 0;
  counter-reset: stage;
}

.flow li {
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
  counter-increment: stage;
}

.flow li::before {
  content: "0" counter(stage);
  display: block;
  font: italic 20px/1.1 Georgia, serif;
  color: var(--muted-blue);
  margin-bottom: 6px;
}

.flow p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: 5px;
}

/* Notice / Callout Box */
.callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: 16px 18px;
  margin-top: 22px;
}

.callout h3 {
  margin-bottom: 5px;
}

.callout p {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* Two-Column Panels */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px 32px;
  align-items: start;
}

.leader-role {
  display: block;
  font-size: 12.5px;
  color: var(--muted-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leader h2 {
  margin-bottom: 0;
}

.leader-copy p + p {
  margin-top: 12px;
}

/* Check / Packet List */
.packet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-top: 16px;
}

.packet-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.packet-item p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline li {
  border-left: 3px solid var(--rule);
  padding-left: 14px;
}

.timeline-period {
  display: block;
  font: italic 13px/1.3 Georgia, serif;
  color: var(--muted-blue);
  margin-bottom: 2px;
}

.timeline p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* Contact Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font: 14px/1.4 Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: 9px 10px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted-blue);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px 20px;
  border-bottom: 1px solid rgba(220, 232, 247, 0.16);
}

.footer-top h2 {
  margin: 0;
  font-size: 25px;
  color: var(--white);
}

.footer-email {
  font-size: 14px;
  color: var(--amber);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 14px 20px;
  font-size: 12.5px;
  color: #b7cadf;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: #dce8f7;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    gap: 14px;
  }

  .drawing {
    opacity: 0.24;
    width: 60%;
  }

  .hero-lead {
    max-width: 100%;
  }

  .facts,
  .services,
  .packet-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
