/* ==========================================================================
   revivetoday.com — shared header and footer (rt- prefixed, collision-free)
   Loaded on every page, alongside either site.css (composed pages) or the
   re-vive.com page bundles (ported pages).
   ========================================================================== */
:root {
  --rt-navy: #24344d; --rt-navy-deep: #141f33; --rt-purple: #5a47b8; --rt-line: #e4e6ec; --rt-soft: #8a93a3;
  --rt-font: "Aptos", "Calibri", "Segoe UI", Arial, sans-serif;
  --rt-header-h: 76px;
  --banking-header-h: 76px; /* read by the ported banking sub-menu */
}
.rt-header { position: sticky; top: 0; z-index: 5000; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rt-line); font-family: var(--rt-font); }
.rt-header .rt-shell { display: flex; align-items: center; justify-content: space-between; height: var(--rt-header-h); gap: 24px; }
.rt-shell { width: min(1240px, calc(100% - 2 * clamp(20px, 3vw, 36px))); margin: 0 auto; box-sizing: border-box; }
.rt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rt-brand img { height: 46px; width: auto; display: block; }
.rt-brand span { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rt-purple); }
.rt-nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 15px; color: var(--rt-navy); }
.rt-nav a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.rt-nav a:hover, .rt-nav a[aria-current="page"], .rt-nav a.rt-on { border-color: var(--rt-purple); color: var(--rt-purple); }
/* Drop-down groups (Industries, Company): CSS only — open on hover and on keyboard focus */
.rt-item { position: relative; display: flex; align-items: center; }
.rt-item > .rt-parent::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; vertical-align: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.rt-item:hover > .rt-parent::after, .rt-item:focus-within > .rt-parent::after { transform: rotate(225deg); vertical-align: -2px; }
.rt-sub { display: none; position: absolute; top: calc(100% + 10px); left: -16px; min-width: 250px; padding: 8px 0; flex-direction: column; background: #fff; border: 1px solid var(--rt-line); border-radius: 12px; box-shadow: 0 18px 44px rgba(20,31,51,.16); z-index: 5001; }
.rt-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge between parent and menu */
.rt-item:hover > .rt-sub, .rt-item:focus-within > .rt-sub { display: flex; }
.rt-sub a { padding: 9px 18px; border-bottom: 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.rt-sub a:hover, .rt-sub a[aria-current="page"], .rt-sub a.rt-on { background: #f3f1fb; color: var(--rt-purple); border-color: transparent; }
.rt-sub-head { padding: 12px 18px 4px; margin-top: 6px; border-top: 1px solid var(--rt-line); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-soft); }
.rt-sub-head:first-child { border-top: 0; margin-top: 0; padding-top: 8px; }
.rt-nav .rt-cta { padding: 10px 18px; border-radius: 10px; background: var(--rt-navy); color: #fff; border: 0; }
.rt-nav .rt-cta:hover { background: var(--rt-navy-deep); color: #fff; }
.rt-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rt-line); border-radius: 10px; background: #fff; font-size: 22px; line-height: 1; color: var(--rt-navy); cursor: pointer; }
.rt-footer { background: #0f1727; color: #c9d1e0; padding: 48px 0 32px; font-size: 14px; font-family: var(--rt-font); }
.rt-footer .rt-shell { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.rt-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.rt-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rt-footer a { color: inherit; text-decoration: none; }
.rt-footer a:hover { color: #fff; }
.rt-footer .rt-brand img { height: 40px; }
.rt-footer .rt-tagline { margin: 14px 0 0; max-width: 32ch; }
.rt-footer .rt-bottom { grid-column: 1 / -1; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--rt-soft); font-size: 13px; }
/* Ported pages: hide what only makes sense on the live site */
.gate-veil, .gated-pdf-note { display: none !important; }
@media (max-width: 1080px) {
  .rt-footer .rt-shell { grid-template-columns: 1fr 1fr 1fr; }
  .rt-footer .rt-shell > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .rt-nav { display: none; }
  .rt-nav.open { display: flex; position: absolute; left: 0; right: 0; top: var(--rt-header-h); flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--rt-line); padding: 10px clamp(20px, 3vw, 36px) 18px; }
  .rt-nav.open { max-height: calc(100dvh - var(--rt-header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .rt-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--rt-line); }
  .rt-nav.open .rt-cta { margin-top: 12px; text-align: center; }
  .rt-nav.open .rt-item { display: block; }
  .rt-nav.open .rt-item > .rt-parent { display: block; }
  .rt-nav.open .rt-item > .rt-parent::after { display: none; }
  .rt-nav.open .rt-sub { display: flex; position: static; min-width: 0; padding: 0 0 0 18px; border: 0; border-radius: 0; box-shadow: none; }
  .rt-nav.open .rt-sub::before { display: none; }
  .rt-nav.open .rt-sub a { padding: 10px 0; border-bottom: 1px solid var(--rt-line); font-size: 14.5px; background: none; white-space: normal; }
  .rt-nav.open .rt-sub a[aria-current="page"], .rt-nav.open .rt-sub a.rt-on { color: var(--rt-purple); }
  .rt-toggle { display: inline-grid; place-items: center; }
  .rt-nav.open .rt-sub-head { border-top: 0; padding: 16px 0 4px; }
  .rt-nav.open .rt-sub-head:not(:first-child) { border-top: 1px solid var(--rt-line); margin-top: 10px; }
}
@media (max-width: 560px) { .rt-footer .rt-shell { grid-template-columns: 1fr 1fr; } }

/* Keep in-page anchor targets clear of the sticky header */
:target { scroll-margin-top: calc(var(--rt-header-h, 76px) + 16px); }
