:root {
  --site-text: #26364a;
  --site-shadow: 0 18px 40px -28px rgba(10, 37, 64, 0.45), 0 4px 14px -8px rgba(10, 37, 64, 0.18);
}

body {
  color: var(--site-text);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.font-display {
  letter-spacing: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  line-height: 1.08;
}

h2 {
  line-height: 1.14;
}

h3,
h4 {
  line-height: 1.22;
}

p,
li {
  line-height: 1.7;
}

a {
  text-underline-offset: 3px;
}

header > .max-w-7xl {
  min-height: 80px;
  gap: 1.5rem;
}

header > .max-w-7xl > a:first-child {
  flex: 0 1 auto;
  min-width: 0;
  gap: 0.6rem;
}

header > .max-w-7xl > a:first-child picture {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header > .max-w-7xl > a:first-child img {
  width: auto;
  height: 2.6rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(10, 37, 64, 0.16));
}

/* The client asked for the firm name on one line. It never wraps; on phones
   both lines scale with the viewport so the name, crest and menu button fit
   side by side down to 320px. */
header > .max-w-7xl > a:first-child > div {
  min-width: 0;
}

header > .max-w-7xl > a:first-child > div > div:first-child {
  font-size: clamp(10.5px, calc((100vw - 150px) / 16.5), 1rem);
  line-height: 1.16;
  white-space: nowrap;
}

header > .max-w-7xl > a:first-child > div > div:last-child {
  white-space: nowrap;
  font-size: clamp(7.5px, calc((100vw - 150px) / 25), 10px);
  letter-spacing: 0.06em;
}

@media (min-width: 640px) {
  header > .max-w-7xl > a:first-child {
    gap: 0.85rem;
  }

  header > .max-w-7xl > a:first-child img {
    height: 3.65rem;
  }

  header > .max-w-7xl > a:first-child > div > div:last-child {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 768px) {
  header > .max-w-7xl > a:first-child img {
    height: 4rem;
  }

  header > .max-w-7xl > a:first-child > div > div:first-child {
    font-size: 1.08rem;
  }
}

header a[href="tel:+12405538010"] {
  display: none !important;
}

/* From xl the full nav sits in the header, and with the one-line firm name
   there is no room left for phone buttons. Both numbers stay visible, labeled,
   in the gold bar directly above. */
@media (min-width: 1280px) {
  header a[href^="tel:"] {
    display: none !important;
  }
}

.hero-grad {
  position: relative;
  overflow: hidden;
}

.hero-grad > .max-w-7xl {
  position: relative;
  z-index: 1;
}

.hero-grad p {
  color: rgba(255, 255, 255, 0.88);
}

.chip {
  letter-spacing: 0;
}

.card-shadow {
  box-shadow: var(--site-shadow);
}

.services-hero {
  min-height: 390px;
}

.services-hero .max-w-3xl {
  max-width: 46rem;
}

.services-hero-art {
  display: none;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .services-hero-art {
    display: block;
    position: absolute;
    inset: 0 0 0 50%;
    z-index: 0;
    background:
      linear-gradient(90deg, #123A63 0%, rgba(18, 58, 99, 0.48) 30%, rgba(7, 27, 47, 0.08) 100%),
      linear-gradient(180deg, rgba(7, 27, 47, 0.08), rgba(7, 27, 47, 0.28)),
      url("/assets/img/services-1040-review.jpg") center right / cover;
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 92%, transparent 100%);
  }
}
