/* SAI mega menu: header panels (desktop) and accordion (mobile). Loads after site.css. */


.desktop-nav .mega-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.desktop-nav > li.is-open > .mega-top,
.desktop-nav > li > .mega-top[aria-expanded="true"] {
  color: var(--red);
}
.desktop-nav > li.is-open > .mega-top .caret,
.desktop-nav > li > .mega-top[aria-expanded="true"] .caret {
  opacity: 1;
  transform: rotate(180deg);
}
.desktop-nav .caret {
  transition: transform .18s ease, opacity .18s ease;
  transform-origin: 50% 45%;
}

/* Full-width mega panel, pinned to the sticky header */
.mega-panels {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 85;
  pointer-events: none;
}
.mega-panel {
  display: none;
  pointer-events: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11, 11, 12, .12);
}
.mega-panel.is-open { display: block; }

.mega-inner {
  width: min(1160px, calc(100% - var(--page-pad)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr minmax(280px, 320px);
  gap: 12px 40px;
  padding: 28px 0 24px;
  align-items: start;
}
.mega-inner.is-split-3 {
  grid-template-columns: 1fr 1fr minmax(280px, 320px);
}
.mega-inner.is-split-2 {
  grid-template-columns: 1.15fr minmax(300px, 340px);
  gap: 32px 56px;
}
.mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}
.mega-inner.is-split-2 .mega-cols {
  grid-template-columns: 1fr 1fr;
}
.mega-col { min-width: 0; }
.mega-col-label {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.mega-link:hover,
.mega-link:focus-visible {
  background: var(--red-soft);
}
.mega-link:hover .mega-link-title,
.mega-link:focus-visible .mega-link-title { color: var(--red); }

.mega-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.mega-link:hover .mega-ico,
.mega-link:focus-visible .mega-ico {
  background: #fff;
}
.mega-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-link-text { min-width: 0; }
.mega-link-title {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--black);
}
.mega-link-desc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.mega-feature {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mega-feature:hover,
.mega-feature:focus-visible {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.mega-feature-media {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ececec;
}
.mega-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.mega-feature-media img.is-contain {
  object-fit: contain;
  object-position: center top;
  background: #f3f3f3;
}
.mega-feature-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.mega-feature-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.mega-feature-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--black);
}
.mega-feature-body p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  flex: 1;
}
.mega-feature .btn { align-self: flex-start; padding: 9px 14px; font-size: 13.5px; }

.mega-panel-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-wash);
}
.mega-panel-foot-inner {
  width: min(1160px, calc(100% - var(--page-pad)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.mega-panel-foot-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.mega-panel-foot-phone:hover,
.mega-panel-foot-phone:focus-visible { color: var(--red); }
.mega-panel-foot-actions { display: flex; align-items: center; gap: 10px; }
.mega-panel-foot-actions .btn { padding: 10px 16px; font-size: 13.5px; }

.mega-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, .18);
  z-index: 70;
}
.mega-backdrop.is-open { display: block; }

/* Mobile accordion */
.mobile-nav .nav-acc {
  border-bottom: 1px solid var(--line);
}
.mobile-nav .nav-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.mobile-nav .nav-acc-btn:hover,
.mobile-nav .nav-acc-btn:focus-visible { color: var(--red); }
.mobile-nav .nav-acc-btn .caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: .55;
  transition: transform .18s ease;
}
.mobile-nav .nav-acc.is-open .nav-acc-btn .caret { transform: rotate(180deg); opacity: 1; }
.mobile-nav .nav-acc-panel {
  display: none;
  padding: 0 0 14px;
}
.mobile-nav .nav-acc.is-open .nav-acc-panel { display: block; }
.mobile-nav .nav-acc-panel a {
  display: block;
  padding: 9px 0 9px 2px;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.3;
}
.mobile-nav .nav-acc-panel a:hover,
.mobile-nav .nav-acc-panel a:focus-visible { color: var(--red); }
.mobile-nav .nav-acc-panel .nav-desc {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 1320px) {
  .mega-inner,
  .mega-inner.is-split-3 {
    grid-template-columns: 1fr 1fr minmax(250px, 300px);
    gap: 8px 28px;
  }
}
@media (max-width: 1100px) {
  .mega-inner,
  .mega-inner.is-split-3,
  .mega-inner.is-split-2 {
    grid-template-columns: 1fr minmax(250px, 300px);
  }
  .mega-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mega-panels,
  .mega-backdrop { display: none !important; }
}

.mega-col-label.is-spacer { visibility: hidden; }

/* Current page */
.mega-link.is-active .mega-link-title { color: var(--red); }
.mobile-nav .nav-acc-panel a[aria-current="page"] { color: var(--red); }

@media (max-width: 900px) {
  /* Let the last buttons scroll clear of the sticky Call / Request bar. */
  .header-wrap .mobile-nav.is-open { padding-bottom: 96px; }
}


.mega-feature-media.is-flipbook,
.mega-feature-media.is-about,
.mega-feature-media.is-healthcare,
.mega-feature-media.is-epic,
.mega-feature-media.is-plans {
  height: auto;
  aspect-ratio: 3 / 2;
}
.mega-feature-media.is-healthcare img { object-position: center 30%; }
.mega-feature-media.is-epic img { object-position: center center; }
.mega-feature-media.is-plans img { object-position: center 35%; }
.mega-feature-media.is-flipbook img { object-position: center 30%; }
.mega-feature-media.is-about img { object-position: center 32%; }

/* ---- Calmer typography and spacing (A-calm) ---- */
/* Option A-calm: quieter typography and spacing for the live mega menu. Live menu typography and spacing. */

/* More breathing room in the panel; vertical padding only so columns stay wide enough for one-line descriptions.
   Stretch so the featured card fills the same height as the link columns. */
.mega-inner,
.mega-inner.is-split-3 {
  padding: 36px 0 32px;
  gap: 16px 48px;
  align-items: stretch;
}
.mega-inner.is-split-2 {
  padding: 36px 0 32px;
  gap: 32px 64px;
  align-items: stretch;
}
.mega-feature { height: 100%; }
.mega-cols { gap: 12px 40px; }

/* Section labels: SAI red, a little larger and bolder, still quiet all-caps above the links.
   Left indent stays lined up with the titles, not the icons. */
.mega-col-label {
  margin: 0 0 14px;
  padding: 0 0 0 42px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C71F30;
}
@media (max-width: 1320px) {
  .mega-inner,
  .mega-inner.is-split-3 { gap: 12px 32px; }
}

/* Larger, slightly lighter titles; more space between rows. */
.mega-link {
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  margin: 0 -10px;
  border-radius: 12px;
}
.mega-link:hover,
.mega-link:focus-visible {
  background: var(--bg-wash);
}
.mega-link-title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.mega-link-desc {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #6F6F6F;
  white-space: nowrap;
}

/* Softer, smaller icon tiles so they don’t compete with the titles. */
.mega-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FBF4F5;
  color: var(--red);
  margin-top: 0;
}
.mega-link:hover .mega-ico,
.mega-link:focus-visible .mega-ico {
  background: #F8E8EA;
}
.mega-ico svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.65;
}

/* Featured card: same 16px radius, quieter type, no lift on hover. */
.mega-feature {
  border-radius: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mega-feature:hover,
.mega-feature:focus-visible {
  border-color: var(--red);
  box-shadow: none;
  transform: none;
}
.mega-feature-body { padding: 16px 18px 18px; }
.mega-feature-kicker {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
}
.mega-feature-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
/* Keep the title and short line together; pin the button to the bottom of the stretched card. */
.mega-feature-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6F6F6F;
  flex: 0 0 auto;
}
.mega-feature .btn { margin-top: auto; }

/* Footer: same light-gray bar, a little more padding. */
.mega-panel-foot-inner { padding: 16px 0; }

/* Mobile accordion: same quieter descriptions and a bit more space. */
.mobile-nav .nav-acc-btn { padding: 16px 0; }
.mobile-nav .nav-acc-panel { padding: 2px 0 16px; }
.mobile-nav .nav-acc-panel a {
  padding: 11px 0 11px 2px;
  font-size: 16px;
  font-weight: 600;
}
.mobile-nav .nav-acc-panel .nav-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #6F6F6F;
  margin-top: 3px;
}

@media (max-width: 900px) {
  /* A little extra room so the last menu buttons can scroll clear of the sticky Call / Request bar. */
  .header-wrap .mobile-nav.is-open { padding-bottom: 120px; }
}

/* ---- Five-item header (Resources split from Company) ---- */
/* A-calm-5: fifth top item (Resources), fifth top item (Resources). */

/* Five-item header with only the Request button in the actions cluster.
   The 24/7 number stays in the utility bar and in each panel footer.
   Mid-width gaps can be roomier now that the duplicate header phone is gone.
   Keep the tight 1100px and 901–980px rules so the five items still fit. */
.header { gap: 24px; }
.desktop-nav { gap: 0; flex-wrap: nowrap; }
.desktop-nav > li > .mega-top {
  padding: 10px 12px;
  white-space: nowrap;
}
.header-actions { margin-left: 8px; }

@media (max-width: 1320px) {
  .header { gap: 22px; }
  .desktop-nav > li > .mega-top { padding: 10px 10px; }
}
@media (max-width: 1180px) {
  /* Phone was already hidden at these widths; keep enough tightening to avoid wrap. */
  .header { gap: 14px; }
  .desktop-nav > li > .mega-top { padding: 10px 7px; }
  .header-actions { margin-left: 0; }
}
@media (max-width: 1100px) {
  .header { gap: 12px; }
  .desktop-nav > li > .mega-top { padding: 10px 5px; font-size: 14.5px; }
  .header-cta { padding: 9px 10px; font-size: 13px; }
}
@media (min-width: 901px) and (max-width: 980px) {
  .header { gap: 10px; }
  .desktop-nav > li > .mega-top { padding: 10px 4px; font-size: 14px; }
  .logo img { height: 34px; }
  .header-cta { padding: 8px 9px; font-size: 12.5px; }
}

/* Featured-card photos are 3:2 crops from the full originals; object-position is set per card above. */

/* Corporate hover: SAI red title on a very soft red tint (hover and keyboard focus). */
.mega-link { transition: background-color .15s ease; }
.mega-link-title { transition: color .15s ease; }
.mega-ico { transition: background-color .15s ease; }
.mega-link:hover,
.mega-link:focus-visible {
  background: rgba(199, 31, 48, 0.06);
}
.mega-link:hover .mega-link-title,
.mega-link:focus-visible .mega-link-title {
  color: #C71F30;
}
.mega-link:hover .mega-ico,
.mega-link:focus-visible .mega-ico {
  background: #fff;
}
.mega-link:focus-visible {
  outline: 2px solid rgba(199, 31, 48, 0.35);
  outline-offset: -2px;
}
