/* Resources mega-menu with RedOwl Investigations promo */
.mega-menu.res-mega { width: min(1020px, calc(100vw - 32px)) !important; padding: 0; overflow: hidden; }
.nav-item:has(.res-mega) { position: static; }
.nav-links-desktop:has(.res-mega) { position: relative; }
.res-grid { display: grid; grid-template-columns: 58fr 42fr; min-height: 340px; }
.res-links { padding: 1.5rem 1.25rem 1.25rem; }
.res-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.res-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 .6rem .75rem; }
.res-item { align-items: center !important; position: relative; outline: none; }
.res-item:hover, .res-item:focus-visible { background: #F1F5F9; transform: none !important; }
.res-item:focus-visible { box-shadow: inset 0 0 0 2px #161C16; }
.res-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; border-radius: 0.125rem; background: #FF0000; opacity: 0; transition: opacity .15s; }
.res-item:hover::before, .res-item:focus-visible::before { opacity: 1; }
.res-text { display: block; flex: 1; min-width: 0; }
.res-text .mega-title, .res-text .mega-desc { display: block; }
.res-arrow { color: var(--text-muted); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.res-item:hover .res-arrow, .res-item:focus-visible .res-arrow { opacity: 1; transform: none; color: #FF0000; }
[data-theme="dark"] .res-item:hover, [data-theme="dark"] .res-item:focus-visible { background: rgba(255,255,255,.06); }
[data-theme="dark"] .res-item:focus-visible { box-shadow: inset 0 0 0 2px #F5F5ED; }

.res-promo { position: relative; display: block; overflow: hidden; background: #161C16; color: #F5F5ED; border-radius: 0.125rem; margin: .75rem; min-height: 300px; isolation: isolate; outline: none; font-family: Inter, system-ui, sans-serif; }
.res-promo picture, .res-promo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.res-promo img { object-fit: cover; object-position: 78% 30%; transition: transform .6s ease; z-index: -2; }
.res-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 28, 22,.92) 0%, rgba(22, 28, 22,.7) 38%, rgba(22, 28, 22,0) 70%), linear-gradient(0deg, rgba(22, 28, 22,.55), transparent 45%); }
.res-promo:hover img { transform: scale(1.03); }
.res-promo:focus-visible { box-shadow: none; }
.res-promo-copy { position: absolute; left: 1.4rem; bottom: 1.3rem; top: 1.3rem; max-width: 56%; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; }
.res-eyebrow { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); padding-bottom: .4rem; border-bottom: 1px solid #FF0000; align-self: flex-start; }
.res-title { font-size: 1.5rem; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-top: .35rem; }
.res-sub { font-size: .85rem; color: rgba(255,255,255,.8); }
.res-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: .4rem; }
.res-status i { width: 7px; height: 7px; border-radius: 50%; background: #FF0000; box-shadow: none; }
.res-cta { font-size: .85rem; font-weight: 600; margin-top: .55rem; }
.res-promo:hover .res-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile drawer promo */
.mnd-promo { margin: .5rem 0 .75rem; min-height: 170px; }
.mnd-promo .res-promo-copy { left: 1rem; bottom: 1rem; top: 1rem; max-width: 62%; }
.mnd-promo .res-title { font-size: 1.15rem; }
.mnd-promo .res-cta { display: none; }

@media (max-width: 1100px) { .res-promo-copy { max-width: 64%; } .res-title { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .res-promo img, .res-arrow { transition: none; } .res-promo:hover img { transform: none; } .mega-menu.res-mega { transition-property: opacity, visibility !important; } }
.res-promo img { object-position: 64% 35%; }
.res-promo-copy { max-width: 40%; left: 1.2rem; }
.res-title { font-size: 1.35rem; }
.res-promo, .res-promo * { color: #F5F5ED !important; }
.res-eyebrow { color: rgba(255,255,255,.75) !important; }
.res-promo::after { background: linear-gradient(90deg, rgba(22, 28, 22,.95) 0%, rgba(22, 28, 22,.8) 30%, rgba(22, 28, 22,0) 52%), linear-gradient(0deg, rgba(22, 28, 22,.5), transparent 40%); }
#mobile-nav-drawer a.res-promo { padding: 0 !important; display: block; border: 0; font-weight: 400; }
.mnd-promo img { object-position: 70% 35%; }
.mnd-promo .res-promo-copy { max-width: 55%; }
/* Desktop: keep the face clear — copy sits low over the coat */
.res-promo img { object-position: 88% 0%; }
.res-promo-copy { top: auto; max-width: 86%; gap: .3rem; }
.res-promo::after { background: linear-gradient(0deg, rgba(22, 28, 22,.96) 0%, rgba(22, 28, 22,.85) 28%, rgba(22, 28, 22,.2) 52%, rgba(22, 28, 22,0) 64%), linear-gradient(90deg, rgba(22, 28, 22,.35), transparent 40%); }
.res-title { font-size: 1.5rem; }
.mnd-promo { min-height: 180px; }
.mnd-promo .res-promo-copy { max-width: 50%; top: 1rem; }
.mnd-promo .res-title { font-size: 1.05rem; }
.mnd-promo .res-sub { font-size: .75rem; }
.mnd-promo img { object-position: 78% 30%; }
.mnd-promo::after { background: linear-gradient(90deg, rgba(22, 28, 22,.95) 0%, rgba(22, 28, 22,.85) 40%, rgba(22, 28, 22,0) 62%); }

/* About Us mega-menu with Latest coverage carousel */
.mega-menu.ab-mega { width: min(980px, calc(100vw - 32px)) !important; }
.ab-grid { display: grid; grid-template-columns: 42fr 58fr; }
.ab-latest { padding: 1.25rem 1.25rem 1rem; border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column; min-width: 0; }
.ab-head { display: flex; justify-content: space-between; align-items: baseline; }
.ab-head .res-heading { margin-left: 0; }
.ab-all { font-size: .78rem; font-weight: 600; color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #FF0000; }
.ab-track { display: grid; flex: 1; }
.ab-slide { grid-area: 1 / 1; opacity: 0; transform: translateX(10px); transition: opacity .4s ease, transform .4s ease; }
.ab-slide.is-active { opacity: 1; transform: none; }
.ab-slide[hidden] { display: block; visibility: hidden; pointer-events: none; }
.ab-card { display: grid; grid-template-columns: 46% 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 1rem; row-gap: .35rem; color: var(--text-primary); text-decoration: none; border-radius: 0.125rem; padding: .25rem; outline: none; }
.ab-card:focus-visible { box-shadow: inset 0 0 0 2px var(--text-primary); }
.ab-media { grid-row: 1 / 5; display: block; position: relative; aspect-ratio: 16 / 9; background: var(--bg-surface-inset); border: 1px solid var(--border-subtle); border-radius: 0.125rem; overflow: hidden; align-self: start; }
.ab-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ab-meta { font-size: .72rem; color: var(--text-muted); }
.ab-title { font-size: .98rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ab-sum { font-size: .8rem; line-height: 1.45; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ab-read { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 600; }
.ab-card:hover .ab-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ab-card:hover .ab-read svg { color: #FF0000; }
.ab-controls { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; }
.ab-controls button { font: inherit; font-size: .78rem; min-width: 30px; height: 30px; border-radius: 0.125rem; border: 1px solid var(--border-strong); background: transparent; color: var(--text-secondary); cursor: pointer; }
.ab-controls button:hover { color: var(--text-primary); border-color: var(--text-muted); }
.ab-controls button:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.ab-dots { display: flex; gap: .35rem; }
.ab-dot[aria-current="true"] { background: var(--text-primary) !important; color: var(--bg-main) !important; border-color: var(--text-primary) !important; }
@media (prefers-reduced-motion: reduce) { .ab-slide { transition: none; transform: none; } }
/* Mobile drawer: one static latest-coverage card */
.mnd-latest { display: block; margin: .5rem 0 .25rem; padding: .75rem !important; border: 1px solid var(--border-subtle) !important; border-radius: 0.125rem; }
.mnd-latest img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--bg-surface-inset); border-radius: 0.125rem; display: block; margin-bottom: .5rem; }
.mnd-latest small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.mnd-latest strong { display: block; font-size: .9rem; line-height: 1.3; margin-top: .2rem; }

/* Solutions menu: two columns (4 left, 3 right) on desktop */
@media (min-width: 1025px) {
  .mega-menu:has(> .mega-grid > a[href$="construction.html"]) { width: 760px !important; }
  .mega-grid:has(> a[href$="construction.html"]) { grid-template-columns: 1fr 1fr !important; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 1rem; }
}
/* Latest coverage: all stories in one view (no carousel) */
.ab-track { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.ab-slide, .ab-slide[hidden] { grid-area: auto; opacity: 1; transform: none; visibility: inherit; pointer-events: inherit; display: block; }
.ab-slide .ab-card { grid-template-columns: 28% 1fr; grid-template-rows: auto auto 1fr; row-gap: .2rem; }
.ab-slide .ab-media { grid-row: 1 / 4; }
.ab-slide .ab-title { font-size: .88rem; }
.ab-slide .ab-sum { -webkit-line-clamp: 1; font-size: .76rem; }
.ab-slide .ab-read { display: none; }
.ab-controls { display: none; }
.ab-latest .ab-slide .ab-sum { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
