/* =========================================================
   Diverse Claims Adjusters — components
   ========================================================= */

/* ---------------------------------------------------------
   Header — call bar
   Original: black box, right-aligned to the content column,
   36px tall, 7px down from the top of the page.
   --------------------------------------------------------- */

.callbar { padding-block: 7px 64px; }

/* A flex row rather than a float, so the 36px box contributes its full height
   to the header with no inline descender gap:
   7 + 36 + 64 = the original's 107px before the nav band starts. */
.callbar .shell {
  display: flex;
  justify-content: flex-end;
}

.callbar__box {
  display: flex;
  align-items: center;
  gap: .35em;
  padding: 0 10px;
  height: 36px;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--f-cond);
  font-size: var(--t-callbar);
  font-weight: 700;
  line-height: 36px;
  letter-spacing: var(--ls-cond);
  text-transform: uppercase;
  white-space: nowrap;
}

.callbar__sep { font-weight: 400; opacity: .9; }

.callbar__tel {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.callbar__tel:hover,
.callbar__tel:focus-visible { color: var(--c-brand); }

/* ---------------------------------------------------------
   Header — nav band
   --------------------------------------------------------- */

.navbar { background: var(--s-nav); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-band-h);
  padding-inline: var(--sp-2);
}

.logo { display: block; flex: none; }
.logo img { width: 180px; height: auto; }

/* On the original each label sits in a box 10px wider a side than its text,
   with a 10px gap between boxes — 30px between the words themselves. The
   negative margin lands the last label's text 7px from the column edge,
   as measured on the original. */
.nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: -11px;
}

.nav__link {
  display: block;
  padding: 4px 10px;
  font-family: var(--f-cond);
  font-size: var(--t-nav);
  letter-spacing: var(--ls-cond);
  line-height: 28px;
  color: var(--c-white);
  text-decoration: none;
  transition: color .15s ease;
}

.nav__link:hover,
.nav__link:focus-visible { color: var(--c-ink); }

.nav__link.is-current { color: var(--c-ink); }

/* Hamburger — hidden on desktop, shown by responsive.css */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: none;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--c-white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

/* The highlight blocks sit flush with the content column edge, outside the
   panel's 8px inset — hence the negative margin. */
.hero__title,
.hero__sub {
  font-weight: 400;
  margin-left: calc(var(--sp-2) * -1);
}

/* The slate-blue highlight blocks behind the two opening lines */
.mark {
  display: inline-block;
  background: var(--c-brand-dark);
  color: var(--c-white);
  font-family: var(--f-cond);
  font-weight: 400;
  letter-spacing: var(--ls-cond);
  padding-inline: 12px;
}

.mark--lg { font-size: var(--t-hero);     line-height: 65px; }
.mark--md { font-size: var(--t-hero-sub); line-height: 65px; }

.hero__tagline {
  margin-top: var(--sp-6);
  font-family: var(--f-mono);
  font-size: var(--t-tagline);
  line-height: 1;
  color: var(--c-ink);
}

/* ---------------------------------------------------------
   Body copy
   --------------------------------------------------------- */

/* Measured: the original's paragraph elements are 948px wide inside the
   980px column, which is what drives their line breaks. */
.prose { max-width: 948px; }
.prose p { margin-top: var(--sp-4); }
.prose p:first-child { margin-top: var(--sp-4); }
.prose p + p { margin-top: var(--sp-5); }

/* ---------------------------------------------------------
   Category bar (full-bleed black strip)
   --------------------------------------------------------- */

.catbar { background: var(--c-ink); }

.catbar__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 61px;
}

.catbar__link,
.catbar__slash {
  font-family: var(--f-mono);
  font-size: var(--t-catbar);
  line-height: 1;
  white-space: nowrap;
}

.catbar__link {
  color: var(--c-white);
  text-decoration: none;
  transition: color .15s ease;
}
.catbar__link:hover,
.catbar__link:focus-visible { color: var(--c-brand); }

.catbar__slash { font-weight: 700; }
.catbar__slash--dark  { color: var(--c-brand-dark); }
.catbar__slash--light { color: var(--c-brand); }

/* ---------------------------------------------------------
   Claim cards
   --------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.card {
  background: var(--c-card-bg);
  color: var(--c-card-text);
  padding: 27px var(--sp-3) 25px;
}

.card__media {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 108px;
  margin-bottom: 24px;
}
.card__media img { max-height: 108px; width: auto; }

.card__title {
  margin-left: 9px;
  font-family: var(--f-mono);
  font-size: var(--t-card);
  font-weight: 400;
  line-height: 1;
  color: var(--c-brand);
}

.card__list {
  margin-top: 15px;
  padding-left: 21px;
  list-style: disc;
  font-size: var(--t-card);
  line-height: 17px;
}
.card__list li { margin: 0; }

.card__prose { margin-top: 15px; font-size: var(--t-card); line-height: 17px; }
.card__prose p + p { margin-top: 15px; }

/* ---------------------------------------------------------
   Interior pages — dark content panel
   --------------------------------------------------------- */

.panel__inner--dark {
  background: var(--s-panel-dark);
  padding: 45px 0 0;
}

/* Links has no page title, so its content starts lower */
.panel__inner--links {
  min-height: 500px;
  padding: 97px 29px 60px;
}

/* Contact places the form card 16px above the title's top edge */
.panel__inner--contact {
  min-height: 894px;
  padding: 29px 59px 0 60px;
}

/* Page title: black highlight block, inset 60px from the column edge.
   line-height:0 on the heading plus vertical-align:top on the block removes
   the inline strut, so the block's top edge lands exactly on the panel's
   45px padding rather than 18px lower. */
.page-title {
  font-weight: 400;
  line-height: 0;
  margin-left: 60px;
}

.mark-mono {
  display: inline-block;
  vertical-align: top;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--f-mono);
  font-size: 28px;
  line-height: 28px;
  font-weight: 400;
}

/* ---------------------------------------------------------
   Staff biography blocks
   Column arithmetic, measured from the original:
   58 + 276 + 68 + 518 + 60 = 980
   --------------------------------------------------------- */

.bio {
  display: flex;
  gap: 68px;
  padding: 54px 60px 49px 58px;
}

/* Blocks are separated by spacing alone — the original's full-bleed blue
   rules were removed at the owner's request. */
.bio + .bio { padding-top: 74px; }

/* Blocks with no photograph keep the text in the same column */
.bio--nophoto { padding-left: 402px; }

.bio__media {
  flex: 0 0 276px;
  height: 292px;
  border: 5px solid var(--c-frame);
  background: var(--c-frame);
}
.bio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio__body { flex: 1 1 auto; min-width: 0; }

.bio__name {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  color: var(--c-white);
}

.bio__role {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 16px;
  color: var(--c-brand);
}

.bio__text {
  margin-top: 20px;
  font-size: var(--t-card);
  line-height: 17px;
  color: var(--c-card-text);
}
.bio__text p + p { margin-top: 17px; }

/* ---------------------------------------------------------
   Jobs page
   --------------------------------------------------------- */

.jobs-banner {
  margin-top: 19px;
  aspect-ratio: 980 / 315;
  background: #223440;
}
.jobs-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.subpanel {
  margin-top: 37px;
  background: rgba(0, 0, 0, .5);
  padding: 28px 60px 65px;
}

.subpanel__heading {
  font-family: var(--f-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  color: var(--c-white);
}

.subpanel__text {
  margin-top: 21px;
  font-size: var(--t-card);
  line-height: 17px;
  color: var(--c-card-text);
}
.subpanel__text a { color: var(--c-brand); }

/* ---------------------------------------------------------
   Links page
   --------------------------------------------------------- */

.linklist { display: grid; gap: 17px; }

.linklist a {
  display: inline-block;
  font-size: var(--t-card);
  line-height: 17px;
  color: var(--c-card-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linklist a:hover,
.linklist a:focus-visible { color: var(--c-brand); }

/* ---------------------------------------------------------
   Contact page
   --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 233px minmax(0, 1fr);
  align-items: start;
}

.contact-grid .page-title { margin: 16px 0 0; }

.contact-address {
  margin-top: 39px;
  font-style: normal;
  font-size: var(--t-card);
  line-height: 17px;
  color: var(--c-card-text);
}
.contact-address strong { font-weight: 400; color: var(--c-white); }
.contact-address a { color: inherit; text-decoration: none; }
.contact-address a:hover,
.contact-address a:focus-visible { text-decoration: underline; }

/* --- The form card ---
   Reproduces the Wix Forms widget's own styling, which is deliberately
   distinct from the rest of the site: white card, electric blue, pill
   button. Futura is Wix-licensed; Jost is the substitute. */
.contact-form {
  --form-blue: #1a2df3;
  --form-ok:   #05c8a1;

  width: 100%;
  max-width: 628px;
  background: var(--c-white);
  padding: 22px 60px 70px;
  font-family: "Jost", "Century Gothic", var(--f-body);
}

.contact-form__title {
  font-size: 30px;
  font-weight: 300;
  line-height: 40px;
  color: var(--form-blue);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.contact-form__grid > .field--wide { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 15px;
  color: var(--form-blue);
  background: rgba(26, 45, 243, .1);
}
.contact-form input { height: 50px; padding: 3px 3px 3px 22px; }
.contact-form input[type="email"],
.contact-form input[type="tel"] { background: rgba(26, 45, 243, .15); }
.contact-form textarea {
  height: 129px;
  margin-top: 1px;
  padding: 11px 10px 3px 22px;
  background: rgba(26, 45, 243, .4);
  resize: vertical;
}
.contact-form ::placeholder { color: var(--form-blue); opacity: 1; }

.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--form-blue); outline-offset: 2px; }

/* Labels are present for screen readers but visually replaced by the
   placeholders, exactly as the original presents the form. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__actions { margin-top: 15px; text-align: center; }

.contact-form__submit {
  min-width: 142px;
  height: 47px;
  padding: 0 24px;
  border-radius: 300px;
  background: var(--form-blue);
  color: var(--c-white);
  font: inherit;
  font-size: 15px;
}
.contact-form__submit:hover { background: #0f1fc9; }
.contact-form__submit[disabled] { opacity: .6; cursor: default; }

.form-error {
  display: block;
  margin: 4px 0 0 22px;
  font-size: 13px;
  color: #c62828;
}

.form-status {
  margin-top: 18px;
  text-align: center;
  font-size: 24px;
  font-weight: 300;
  color: var(--form-ok);
}
.form-status[hidden] { display: none; }
.form-status--error { color: #c62828; font-size: 15px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer { position: relative; }

/* Two columns: the heading block is 652px wide so the address starts 692px
   from the column edge, matching the original. */
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 652px) 1fr;
  align-items: start;
  min-height: 272px;
  padding: 43px 40px;
  background: var(--s-footer);
  color: var(--c-white);
}

.footer__heading {
  margin-top: 35px;
  font-family: var(--f-body);
  font-size: var(--t-footer-h);
  font-weight: 400;
  line-height: 27px;
  text-transform: uppercase;
}

.footer__address {
  font-style: normal;
  font-size: var(--t-footer);
  line-height: 16px;
}
.footer__block + .footer__block { margin-top: 32px; }
.footer__address a { text-decoration: none; }
.footer__address a:hover,
.footer__address a:focus-visible { text-decoration: underline; }

/* ---------------------------------------------------------
   Motion preferences
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
