/*
 * Jan web family core v3
 * Canonical shared source: /home/ari/projects/web-family-core/family-core-v3.css
 * Deploy as a local copy on each site, after its site-specific stylesheet.
 */
:root {
  --navy: #071d3d;
  --navy-soft: #0e294f;
  --gold: #ecc770;
  --gold-light: #ecc770;
  --logo-gold: #ecc770;
  --paper: #f5f6f7;
  --paper-alt: #eef4f2;
  --ink: #111926;
  --muted: #4d5968;
  --line: #dce0e5;
  --white: #fff;
}

:focus-visible { outline-color: var(--gold); }

.site-head {
  z-index: 50;
  background: var(--navy);
  color: var(--white);
}

.head-inner {
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
}

.brand { gap: 10px; white-space: nowrap; }
.brand-icon {
  width: 30px;
  height: 30px;
  object-fit: none;
  object-position: left center;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(84%) sepia(33%) saturate(674%) hue-rotate(344deg) brightness(99%) contrast(87%);
}
.brand-name {
  color: rgba(255, 255, 255, .9);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-first { color: var(--gold); }

.top-nav { gap: 18px; }
.top-nav a {
  color: rgba(255, 255, 255, .9);
  font-size: .96rem;
  font-weight: 800;
}
.top-nav a:hover { color: var(--gold); }

.top-cta {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  font-size: .96rem;
  font-weight: 900;
  white-space: nowrap;
}
.top-cta:hover { background: var(--gold); filter: brightness(1.05); }

.hero::before {
  background:
    linear-gradient(90deg, rgba(7, 29, 61, .98), rgba(7, 29, 61, .9)),
    radial-gradient(circle at 22% 60%, rgba(236, 199, 112, .14), transparent 34%);
}
.hero-inner {
  min-height: 342px;
  grid-template-columns: 1fr 1.08fr;
  gap: 22px;
}
.hero-photo,
.hero-visual {
  min-height: 342px;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-photo picture {
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-photo img,
.hero-visual img {
  width: min(575px, 154%);
  max-width: none;
  max-height: 398px;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: 804 / 760;
}
.hero-text { padding: 34px 0; }
.hero-text h1 {
  max-width: 560px;
  font-size: clamp(2rem, 3.55vw, 2.92rem);
  line-height: 1.03;
}
.hero-text h1 span,
.hero-text h1 .hero-accent { color: var(--gold); }
.hero-text > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 13px;
  font-size: .98rem;
  font-weight: 650;
}
.hero-buttons { gap: 12px; margin-top: 20px; }
.btn, .button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 900;
}
.btn.gold, .button { background: var(--gold); color: var(--navy); }
.btn:hover, .button:hover { filter: brightness(1.05); }

.section-heading,
.section-head { max-width: 760px; margin-bottom: 16px; }
.section-heading h2,
.section-head h2 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.12;
}

.situation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.situation-grid article {
  display: flex;
  flex-direction: column;
  min-height: 192px;
  padding: 13px;
  border: 1px solid rgba(7, 29, 61, .12);
  border-radius: 2px;
  background: var(--white);
}
.situation-grid article:hover {
  border-color: rgba(236, 199, 112, .7);
  box-shadow: 0 6px 14px rgba(17, 25, 38, .1);
}
.situation-grid h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 1rem;
}
.situation-grid p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}
.situation-grid a {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.service-icon {
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-section {
  background: var(--gold);
  color: var(--navy);
}

@media (max-width: 900px) {
  .situation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Keep the full navigation, but shorten the CTA before it can overflow. */
@media (min-width: 761px) and (max-width: 840px) {
  .top-nav { gap: 10px; }
  .top-nav a { font-size: .72rem; }
  .top-cta { padding-inline: 10px; }
  .top-cta-full { display: none; }
  .top-cta-short { display: inline; }
}

@media (max-width: 760px) {
  .head-inner {
    min-height: 64px;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 8px;
  }
  .top-cta {
    min-height: 34px;
    padding: 0 12px;
    font-size: .96rem;
    width: auto;
    max-width: max-content;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 3px;
    color: var(--white);
  }
  .nav-toggle span { background: currentColor; }
  .hero-inner {
    min-height: 0;
    grid-template-columns: .85fr 1fr;
    gap: 8px;
  }
  .hero-photo,
  .hero-visual { min-height: 270px; }
  .hero-photo img,
  .hero-visual img {
    max-height: 335px;
    width: min(405px, 145%);
  }
  .hero-text { padding: 30px 0 24px; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero-text > p:not(.eyebrow) { font-size: 1rem; line-height: 1.5; }
  .situation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .situation-grid article { min-height: unset; padding: 10px; }
  .situation-grid article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .wrap { width: min(100% - 20px, 980px); }
  .head-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: normal;
    column-gap: 16px;
  }
  .brand { gap: 7px; }
  .brand-name { font-size: 1.08rem; }
  .top-cta {
    min-height: 32px;
    padding: 0 9px;
    font-size: .96rem;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-photo,
  .hero-visual {
    order: 2;
    min-height: 0;
    align-items: flex-end;
    justify-content: flex-end;
  }
  .hero-photo img,
  .hero-visual img {
    width: 100%;
    max-height: 335px;
    object-position: center bottom;
  }
  .hero-text h1 { font-size: 2rem; }
  .hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .hero-buttons .btn {
    width: 100%;
    padding-inline: 7px;
    font-size: .78rem;
    white-space: nowrap;
  }
  .situation-grid { grid-template-columns: 1fr; }
  .situation-grid article:last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 340px) {
  .hero-buttons .btn { white-space: normal; line-height: 1.12; }
  .brand-name { font-size: .9rem; }
  .top-cta { padding: 0 7px; font-size: .82rem; }
}
