/*
  Brand colors, the same as the portal (contrast ratios in the portal's CLAUDE.md, Brand):
  ivory on navy 16.21:1 · navy on sand 13.72:1 · navy on gold 12.04:1 · navy on amber 5.77:1 · dark amber on ivory 5.35:1.
  Gold only on navy. Amber only as a background with navy text. Dark amber for links on ivory.
*/
:root {
  --navy: #141B34;
  --gold: #FFD46A;
  --amber: #C98A1B;
  --amber-dark: #8B5F13;
  --ivory: #FFF9EE;
  --sand: #F3E6C8;
  --radius: 8px;
  color-scheme: light;
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: var(--ivory);
}

body {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.2;
}

a {
  color: var(--amber-dark);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Off screen until a keyboard user tabs to it. */
.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip:focus {
  top: 8px;
}

main:focus {
  outline: none;
}

/* Header: navy with a gold line, like the portal. */
.header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 12px 16px 8px;
}

.header :focus-visible,
.footer :focus-visible,
.hero :focus-visible {
  outline-color: var(--gold);
}

.bar {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.logo img {
  display: block;
  width: 150px;
}

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

/* Outlined ivory buttons on navy (16.21:1). */
.button-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ivory);
  border-radius: var(--radius);
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.95rem;
}

.button-outline:hover {
  text-decoration: underline;
}

.nav {
  list-style: none;
  margin: 8px auto 0;
  padding: 0;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ivory);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

/* The current page: navy on gold (12.04:1). */
.nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

main {
  display: block;
}

/* Hero: navy band with ivory text and the main buttons. */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 40px 16px 48px;
  text-align: center;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 12px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--ivory);
}

.lead {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

/* Main button: navy text on amber (5.77:1). */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

/* Second button on navy: navy text on ivory (16.21:1). */
.button-light {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button-light:hover {
  text-decoration: underline;
}

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 8px;
}

/* Service cards: navy text on sand (13.72:1); links navy and underlined, since dark amber on sand is only 4.53:1. */
.cards {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.cards a {
  display: flex;
  align-items: center;
  min-height: 56px;
  height: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--navy);
  font-weight: 600;
}

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

.steps {
  counter-reset: step;
}

.steps li,
.why li {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 16px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}

.steps h3,
.why h3 {
  margin: 8px 0 4px;
  font-size: 1.1rem;
}

.steps p,
.why p {
  margin: 0;
}

/* Footer: navy with the attorney notice, conspicuous (bold, ivory on navy 16.21:1, not smaller than body text). */
.footer {
  margin-top: 48px;
  background: var(--navy);
  color: var(--ivory);
  border-top: 3px solid var(--gold);
  padding: 24px 16px;
}

.footer > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.notice p {
  margin: 0 0 12px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 16px auto 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ivory);
}

.rights {
  margin-top: 8px;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .logo img {
    width: 120px;
  }
}

/* Inner pages. */
.lead-dark {
  font-size: 1.1rem;
  max-width: 760px;
}

.small {
  font-size: 0.95rem;
}

.crumbs {
  margin: 0 0 4px;
}

.actions-left {
  margin: 24px 0 8px;
}

.section ul li {
  margin: 4px 0;
}

/* Services overview: one card per service. Navy on white with a sand edge. */
.service-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.section .service-list li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--sand);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.service-list h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.service-list p {
  margin: 0;
}

/* Legal pages: readable line length, tables that scroll sideways on phones instead of squeezing. */
.legal {
  max-width: 820px;
}

.legal h2 {
  margin-top: 28px;
}

.legal hr {
  border: none;
  border-top: 2px solid var(--sand);
  margin: 32px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sand);
}

th {
  background: var(--sand);
}

/* Contact form. Labels and text navy on ivory (16.21:1); fields white with a navy edge. */
.narrow {
  max-width: 680px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 24px;
}

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

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
  box-sizing: border-box;
}

.hint {
  margin: 0;
  font-size: 0.95rem;
}

.form .button {
  align-self: flex-start;
  border: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* The spam trap: off screen and out of the keyboard order. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Blog. */
.meta {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.related {
  margin-top: 28px;
  padding: 16px;
  background: var(--sand);
  border-radius: var(--radius);
}

.related p {
  margin: 0 0 10px;
}

/* On sand, links are navy and underlined (dark amber on sand is only 4.53:1). */
.related a:not(.button) {
  color: var(--navy);
}

.related .button {
  margin: 0;
}

/* Collapsible topics on service pages: one fold-out box per item. Navy on white with a sand edge; the open box
   gets an amber edge. The arrow turns when open. */
.topic {
  margin-top: 28px;
}

.folds {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.folds details {
  background: #fff;
  border: 1px solid var(--sand);
  border-left: 4px solid var(--sand);
  border-radius: var(--radius);
}

.folds details[open] {
  border-left-color: var(--amber);
}

.folds summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  min-height: 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.folds summary::-webkit-details-marker {
  display: none;
}

.folds summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
}

.folds details[open] summary::after {
  content: '−';
}

.folds details p {
  margin: 0;
  padding: 0 16px 14px;
}

/* The home banner's quieter second link: ivory, underlined, on navy (16.21:1). */
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: var(--ivory);
  font-weight: 700;
}
