/* J Brown Claims Consulting
   Palette taken from the logo file:
   navy  #203244  (wordmark)
   gold  #D2B280  (monogram and "CLAIMS CONSULTING")
   Gold is an accent, a border, and a button fill on navy.
   It is not used for small text on white (that pairing fails WCAG AA).
   Navy text on gold passes AA. White and cream text on navy pass AA.

   Logo size: assets/logo.png is 194×48. Do not display it larger.
   --logo-max is the one place that caps header and footer size.
   Replace assets/logo.png to swap the artwork. Raise --logo-max
   only after a higher-resolution file is in place.
*/

:root {
  color-scheme: light;
  --navy: #203244;
  --gold: #D2B280;
  --gold-hover: #c9ae78;
  --ink: #203244;
  --muted: #3e4e5c;
  --cream: #f7f6f3;
  --paper: #ffffff;
  --danger: #8e1e18;
  --logo-max: 194px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --header-offset: 5.75rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.65rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.utility :focus-visible,
.hero-panel :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}

/* The skip link moves focus to main. The landmark is not a control. */
#main:focus {
  outline: none;
}

h2,
h3,
[id] {
  scroll-margin-top: var(--header-offset);
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #ffffff;
  color: var(--navy);
  padding: 0.65rem 1rem;
  border: 2px solid var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: 1.2rem;
  max-width: 42rem;
}

hr.rule {
  width: 4.5rem;
  height: 4px;
  margin: 1rem 0 1.25rem;
  border: 0;
  background: var(--gold);
}

.section {
  padding: 2.15rem 0;
}

.section + .section {
  padding-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.button-navy:hover {
  background: #172633;
  border-color: #172633;
  color: #ffffff;
}

.button-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.button-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy);
}

.button-ghost-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.button-ghost-dark:hover {
  background: var(--navy);
  color: #ffffff;
}

.button-ghost-light {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.button-ghost-light:hover {
  background: #ffffff;
  color: var(--navy);
}

.utility {
  background: var(--navy);
  color: #f7f6f3;
  font-size: 0.9375rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
}

.utility p {
  margin: 0;
}

.utility a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 4px solid var(--gold);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.75rem;
}

.brand {
  display: block;
  min-width: 0;
  line-height: 0;
}

.brand img,
.footer-logo img {
  display: block;
  width: min(var(--logo-max), 100%);
  height: auto;
}

/* Shown only if assets/logo.png fails to load. Not a redraw of the logo. */
.logo-fallback {
  display: none;
  max-width: 12.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 3px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
}

.site-logo.logo-missing {
  display: none;
}

.site-logo.logo-missing + .logo-fallback {
  display: block;
  line-height: 1.15;
}

.brand:has(.logo-missing),
.footer-logo:has(.logo-missing) {
  line-height: normal;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--navy);
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.site-nav {
  display: none;
}

.nav-details[open] .site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 1rem 1rem;
  background: #ffffff;
  border-bottom: 2px solid var(--navy);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
}

.site-nav a.button {
  color: #ffffff;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

@media (min-width: 960px) {
  .nav-details {
    display: flex;
    align-items: center;
  }

  .nav-details > .nav-toggle {
    display: none;
  }

  .nav-details .site-nav,
  .nav-details[open] .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem 1rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1rem;
  }
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 2.1rem 0 1.25rem;
  background-image: linear-gradient(180deg, rgba(210, 178, 128, 0.16), rgba(247, 246, 243, 0) 8.5rem);
}

.hero::after {
  content: "";
  grid-column: 1 / -1;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--navy) 0 72%, var(--gold) 72% 100%);
}

.hero-panel {
  background: var(--navy);
  color: #ffffff;
  padding: 1.35rem 1.35rem 1.5rem;
  border-top: 4px solid var(--gold);
}

.hero-panel h2 {
  color: #ffffff;
}

.hero-panel p,
.hero-panel li {
  color: #f7f6f3;
}

.hero-panel a:not(.button) {
  color: #ffffff;
}

.hero-panel .eyebrow {
  color: var(--gold);
}

.contact-lines {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.hero-panel .contact-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel .contact-lines li + li {
  margin-top: 0.15rem;
}

.hero-panel .contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
    align-items: start;
    gap: 2rem;
  }
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: start;
    gap: 1.5rem;
  }

  .grid-2.even {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.card {
  background: #ffffff;
  border: 1px solid var(--navy);
  border-top: 4px solid var(--gold);
  padding: 1rem 1rem 1.1rem;
}

.card h3 {
  margin-top: 0;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  border: 1px solid var(--gold);
  background: var(--cream);
  color: var(--navy);
}

.icon svg {
  display: block;
}

.loss-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.loss-list li {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--navy);
  border-top: 3px solid var(--gold);
  background: #ffffff;
  font-size: 0.9375rem;
}

.note {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  background: #ffffff;
  border-left: 4px solid var(--navy);
}

.placeholder {
  margin: 0.65rem 0;
  padding: 0.45rem 0.7rem;
  background: #ffffff;
  border: 2px dashed var(--navy);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.placeholder p {
  margin: 0;
}

.placeholder p + p {
  margin-top: 0.35rem;
}

.card .placeholder {
  margin-bottom: 0;
}

.placeholder-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  text-align: center;
}

.on-page ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.on-page a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.faq details {
  margin-bottom: 0.75rem;
  padding: 0.7rem 1rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--navy);
  border-top: 4px solid var(--gold);
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin-top: 0.35rem;
}

.cta-band {
  background: var(--navy);
  color: #ffffff;
  padding: 2.6rem 0;
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band p {
  max-width: 40rem;
  color: #f7f6f3;
}

.cta-band a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
}

.grid-2 > *,
.grid-3 > *,
.hero > *,
.contact-layout > * {
  min-width: 0;
}

.site-footer {
  background: var(--navy);
  color: #f7f6f3;
  padding: 2.5rem 0 2rem;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1.2rem;
}

.site-footer a {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.55rem 0.7rem;
  background: #ffffff;
  line-height: 0;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.site-footer .contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.site-footer .placeholder {
  background: #ffffff;
  color: var(--navy);
}

.site-footer .placeholder a {
  color: var(--navy);
}

.legal-line,
.copyright {
  font-size: 0.9375rem;
}

.copyright {
  margin-top: 1rem;
}

.contact-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.9fr 0.9fr;
  }
}

.form-notice,
.form-errors {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  background: #ffffff;
  border: 2px solid var(--navy);
}

.form-errors {
  border-color: var(--danger);
}

.form-errors a {
  color: var(--danger);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.hint,
.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}

.hint {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--navy);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-actions .button {
  min-width: 10rem;
}

::selection {
  background: var(--navy);
  color: #f7f6f3;
}

@media (max-width: 700px) {
  .section {
    padding: 1.45rem 0;
  }

  .hero {
    gap: 1rem;
    padding: 1.35rem 0 0.85rem;
  }

  .card {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .grid-3 {
    gap: 0.65rem;
  }

  .placeholder-media {
    min-height: 8.5rem;
  }

  .cta-band {
    padding: 1.75rem 0;
  }
}

@media (max-width: 600px) {
  .form-actions .button,
  .hero-panel .button,
  .cta-band .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.25rem));
  }

  h1 {
    font-size: 1.85rem;
  }
}

@media print {
  .utility,
  .nav-toggle,
  .actions,
  .cta-band {
    display: none;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
  }
}
