/* asmcservicing.com
   Colors and type sizes are tokens. Rules use the tokens, never raw values. */

:root {
  /* Brand */
  --green: #096A2E;          /* text, links, buttons: 6.7:1 on white */
  --green-hover: #06501F;
  --green-mid: #2F7D52;      /* the wordmark; header stripe, "Servicing", focus ring */
  --green-deep: #0B3320;     /* footer */

  /* Neutrals */
  --ink: #142019;
  --text-2: #35443B;
  --muted: #4B5A51;
  --rule: #D5DED8;
  --surface: #F3F6F4;
  --tint: #E3F1E7;
  --white: #FFFFFF;

  /* On the dark footer */
  --on-deep: #FFFFFF;
  --on-deep-2: #E2EEE6;
  --on-deep-muted: #C6DACD;
  --on-deep-label: #9CCBAE;
  --on-deep-rule: #24503A;

  /* Type */
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --fs-lockup: 12px;
  --fs-label: 15px;
  --fs-small: 16px;
  --fs-body-sm: 17px;
  --fs-body: 18px;
  --fs-lede: 20px;
  --fs-h3: 20px;
  --fs-h2-sm: 24px;
  --fs-h2-step: 28px;
  --fs-h2: clamp(28px, 3vw, 36px);
  --fs-h1: clamp(32px, 4.4vw, 52px);
  --fs-payee: 30px;
  --fs-phone: 30px;
  --fs-fee: 40px;
  --fs-stat: 46px;
  --fs-fee-lg: 52px;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-serif-4-600-latin.woff2") format("woff2");
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  /* Keeps the footer at the bottom of short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, address { margin: 0; }

img, svg { display: block; }

a { color: var(--green); }
a:hover { color: var(--green-hover); }

:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 12px; color: var(--white); }

.serif {
  font-family: var(--font-serif);
  font-weight: 600;
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: var(--fs-lede);
  color: var(--text-2);
  max-width: 36em;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.2;
}

.muted { color: var(--text-2); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--white); }

.btn-outline { background: var(--white); color: var(--green); }
.btn-outline:hover { background: var(--tint); color: var(--green-hover); }

.btn svg { width: 18px; height: 18px; flex: none; }

.text-link { font-weight: 700; }

/* Header */

.site-header {
  background: var(--white);
  border-top: 4px solid var(--green-mid);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  text-decoration: none;
}

.brand img { width: 137px; height: 34px; }

.brand span {
  font-size: var(--fs-lockup);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green-mid);
}

.nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover { background: var(--surface); color: var(--green); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--green); }

/* Page bands */

.band {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.band-both { border-top: 1px solid var(--rule); }

.section { padding-block: 80px; }

.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-28 { gap: 28px; }
.gap-36 { gap: 36px; }

.page-head .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 64px 56px;
}

/* Home hero */

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding-block: 72px 80px;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px;
}

.fees {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fee-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.fee-row + .fee-row { padding-top: 20px; border-top: 1px solid var(--rule); }

.fee {
  min-width: 92px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-fee);
  line-height: 1;
  color: var(--green);
}

.fee-row p { font-size: var(--fs-body-sm); line-height: 1.5; }

.note {
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--surface);
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--text-2);
}
.note strong { color: var(--ink); }

/* Entity list */

.entities {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  column-gap: 40px;
  border-top: 2px solid var(--green);
}

.entities li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}

.entities-lg li { font-size: var(--fs-lede); }

.entities small {
  display: block;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--muted);
}

/* Steps (home) */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps h3 { font-size: var(--fs-h3); line-height: 1.3; }
.steps p { font-size: var(--fs-body-sm); color: var(--text-2); }

.num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-body);
}

/* Split section (about strip, about head) */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.split > :first-child { flex: 999 1 460px; min-width: 0; }
.split > :last-child { flex: 1 1 340px; min-width: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.stats div { border-top: 2px solid var(--green); padding-top: 14px; }
.stats dt { font-size: var(--fs-label); color: var(--muted); }
.stats dd {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-stat);
  line-height: 1.1;
  color: var(--green);
}

/* Release page */

.layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  padding-block: 64px 80px;
}

.layout-main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.step {
  display: flex;
  gap: 20px;
}

.step .num { width: 44px; height: 44px; font-size: var(--fs-lede); }

.step-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.step h2, .layout-main > section > h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2-step);
  line-height: 1.25;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.option {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.option-featured { border: 2px solid var(--green); padding: 27px; }

.option .price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-fee-lg);
  line-height: 1;
  color: var(--green);
}

.option h3 { font-size: var(--fs-h3); line-height: 1.35; }
.option p:last-child { font-size: var(--fs-body-sm); color: var(--text-2); }

.payee {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 22px 24px;
  border-radius: 10px;
  background: var(--tint);
}
.payee span:first-child { font-size: var(--fs-small); color: var(--text-2); }
.payee span:last-child {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-payee);
  line-height: 1.2;
}

.aside {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
}
.aside h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2-sm);
  line-height: 1.25;
}
.aside p { font-size: var(--fs-body-sm); color: var(--text-2); }
.aside .btn { width: 100%; padding-inline: 12px; }
.aside .btn-outline { font-size: var(--fs-small); }

/* About page */

.about-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 56px;
  padding-block: 64px 56px;
}
.about-head .wrap > :first-child { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-head .stats { flex: 1 1 320px; min-width: 0; }

.prose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 64px 88px;
}

.prose section { display: flex; flex-direction: column; gap: 16px; }

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2-step);
  line-height: 1.25;
}

.quote {
  padding: 18px 22px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
}

.ext {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.ext svg { width: 16px; height: 16px; }

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px;
  border-radius: 10px;
  border: 2px solid var(--green);
}
.callout p { font-weight: 600; }
.callout-tint { border: 0; background: var(--tint); padding: 24px 28px; }

/* Contact page */

.contact {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 56px 88px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.contact-grid .card { display: flex; flex-direction: column; gap: 16px; }
.contact-grid .card-featured { border: 2px solid var(--green); padding: 27px; }

.contact-grid address { font-style: normal; font-size: var(--fs-lede); line-height: 1.55; }

.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-phone);
  line-height: 1.2;
  text-decoration: none;
}
.big-phone svg { width: 24px; height: 24px; }

.big-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: 600;
}
.big-email svg { width: 22px; height: 22px; flex: none; }

/* Privacy policy */

.legal-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 64px;
  padding-block: 56px 88px;
  font-size: var(--fs-body-sm);
  line-height: 1.65;
}

.toc { flex: 1 1 240px; min-width: 0; padding-top: 8px; }
.toc h2 { margin-bottom: 12px; font-size: var(--fs-label); }
.toc ol { list-style: none; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 8px 0 8px 16px; font-size: var(--fs-label); }

.legal {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal .updated { margin-bottom: 8px; font-size: var(--fs-label); color: var(--muted); }

.legal h2 {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2-step);
  line-height: 1.25;
}

.legal h3 { margin-top: 8px; font-size: var(--fs-h3); line-height: 1.35; }

.legal h4 {
  margin-top: 4px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal ul { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }

.legal .defs {
  list-style: none;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--surface);
  gap: 14px;
}

.legal .cookie-meta { display: block; color: var(--text-2); }

/* 404 */

.lost {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 88px 24px 104px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lost-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  padding-top: 16px;
}

.lost-links a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lost-links a:first-child { border: 2px solid var(--green); padding: 27px; }
.lost-links a:hover { border-color: var(--green-hover); background: var(--surface); }
.lost-links strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2-sm);
  line-height: 1.25;
  color: var(--green);
}
.lost-links span { font-size: var(--fs-body-sm); color: var(--text-2); }

body.not-found { background: var(--surface); }

/* Footer */

.site-footer { margin-top: auto; background: var(--green-deep); color: var(--on-deep); }
.site-footer a { color: var(--on-deep); }
.site-footer a:hover { color: var(--on-deep-label); }

.footer-full {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 36px;
}

.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid > div:first-child { gap: 14px; }
.footer-grid img { width: 145px; height: 36px; }

.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-lede);
  line-height: 1.3;
}

.footer-grid h2 {
  margin-bottom: 4px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-deep-label);
}

.footer-grid .contact-link { font-size: var(--fs-small); font-weight: 600; }

.footer-grid address {
  font-style: normal;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--on-deep-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: var(--fs-label);
  color: var(--on-deep-muted);
}
.footer-full .footer-bottom { padding-top: 24px; border-top: 1px solid var(--on-deep-rule); }
.footer-bottom a { color: var(--on-deep-muted); }

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

.footer-slim { padding-block: 40px 32px; }
.footer-slim .brand-mini { display: flex; align-items: center; gap: 14px; }
.footer-slim img { width: 113px; height: 28px; }

/* Utilities */
.measure { max-width: 44em; }
.start { align-self: flex-start; }
