/* ===== JBSG Marketing — Shared patterns across all subpages ===== */

/* Brand wordmark used in nav */
.jbsg-wordmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em; color: var(--ink);
}
.jbsg-wordmark strong { color: var(--brand); font-weight: 800; }

/* Page banner — top of every subpage */
.page-banner {
  background: var(--surface);
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(0,149,213,0.06), transparent 60%);
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .breadcrumb {
  font-family: var(--font-eyebrow); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-banner .breadcrumb a { color: inherit; opacity: 0.6; }
.page-banner .breadcrumb a:hover { opacity: 1; }
.page-banner h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 6.4vw, 96px); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--ink); margin: 0 0 24px; max-width: 18ch;
}
.page-banner .lede {
  color: var(--ink-muted); max-width: 60ch; font-size: 19px; line-height: 1.55;
}
@media (max-width: 880px) {
  .page-banner { padding: 110px 0 60px; }
  .page-banner h1 { font-size: clamp(40px, 9vw, 64px); }
}

/* Generic section eyebrow + headline pattern */
.section-head {
  margin-bottom: 48px;
}
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { color: var(--ink); margin: 0; max-width: 24ch; }

/* Final CTA section — dark photo background with centered headline */
.final-cta {
  position: relative; min-height: 60vh; padding: 120px 0;
  color: #fff; overflow: hidden;
  display: flex; align-items: center; text-align: center;
}
.final-cta .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.final-cta .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,42,59,0.7), rgba(29,42,59,0.88));
}
.final-cta .container { position: relative; z-index: 2; }
.final-cta .display {
  color: #fff; font-size: clamp(40px, 5vw, 72px);
  margin: 0 auto 24px; line-height: 1.05; max-width: 32ch;
}
.final-cta .eyebrow { color: var(--brand-bright); margin-bottom: 16px; display: block; }
.final-cta .lede { color: rgba(255,255,255,0.85); margin: 0 auto 32px; max-width: 50ch; font-size: 18px; }

/* Footer */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px;
  margin-bottom: 60px;
}
.footer .footer-brand p {
  color: rgba(255,255,255,0.6); font-size: 14px; max-width: 320px;
  line-height: 1.55;
}
.footer h4 {
  font-family: var(--font-eyebrow); font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-bright); margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 16px;
}
.footer .socials { display: flex; gap: 16px; }
.footer .socials a { color: rgba(255,255,255,0.7); display: flex; align-items: center; }
.footer .socials a:hover { color: #fff; }
@media (max-width: 880px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Generic eyebrow used on light bg */
.section-eyebrow {
  font-family: var(--font-eyebrow); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px; display: block;
}

/* Standard 3-column card grid */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) {
  .cards-3 { grid-template-columns: 1fr; }
}

/* Standard 2-column grid */
.two-col-50 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .two-col-50 { grid-template-columns: 1fr; gap: 40px; }
}

/* Active nav state — only on regular nav links, NOT the CTA button */
.nav-links a:not(.nav-cta).active strong,
.nav-links a:not(.nav-cta) strong { font-weight: 800; color: var(--brand); }
.nav-links a.nav-cta.active,
.nav-links a.nav-cta strong { color: #fff; font-weight: 700; }

/* Services dropdown (pure CSS, no JS) */
.nav-dropdown {
  position: relative;
  display: inline-flex; align-items: center;
}
.nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
  transition: transform 180ms ease;
}
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
  transform: rotate(225deg) translateY(-2px);
}
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 48px -16px rgba(29,42,59,0.18), 0 0 0 1px rgba(0,0,0,0.02);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  z-index: 50;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(2px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 0s;
}
.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.nav-dropdown .dropdown-menu a:hover {
  background: var(--surface);
  color: var(--brand);
}
.nav-dropdown .dropdown-menu .divider {
  height: 1px; background: var(--border); margin: 6px 4px;
}
.nav-dropdown .dropdown-menu .menu-eyebrow {
  font-family: var(--font-eyebrow);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-quiet); padding: 8px 14px 4px;
}
@media (max-width: 880px) {
  .nav-dropdown .dropdown-menu { display: none; }
}
