/* ============================================================
   UNITY ACQUISITIONS — Institutional Page Design System
   Dark navy / charcoal with gold accents — Goldman / Blackstone aesthetic
   Applied to all buyer-type and acquisition strategy pages.
   ============================================================ */

/* ── Colour tokens ─────────────────────────────────────────── */
:root {
    --ua-navy:      #0b1426;
    --ua-charcoal:  #141c2e;
    --ua-slate:     #1e2a42;
    --ua-gold:      #c9a84c;
    --ua-gold-lt:   #e2c97e;
    --ua-gold-dim:  rgba(201,168,76,0.18);
    --ua-white:     #f5f3ef;
    --ua-muted:     #e8e5df;
    --ua-border:    rgba(201,168,76,0.22);
    --ua-rule:      rgba(255,255,255,0.08);
}

/* ── Hero ──────────────────────────────────────────────────── */
.ua-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: var(--ua-navy);
    overflow: hidden;
}
.ua-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,20,38,0.97) 0%, rgba(20,28,46,0.68) 100%);
    z-index: 1;
}
.ua-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    z-index: 0;
}
.ua-hero-content {
    position: relative;
    z-index: 2;
    padding: 150px 0 80px;
    width: 100%;
}
.ua-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ua-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ua-border);
    padding-bottom: 8px;
}
.ua-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    color: var(--ua-white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.ua-hero h1 em {
    font-style: normal;
    color: var(--ua-gold);
}
.ua-hero-sub {
    font-size: 1.05rem;
    color: var(--ua-muted);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 40px;
}
.ua-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 28px 48px;
    border-top: 1px solid var(--ua-rule);
    padding-top: 32px;
    margin-top: 8px;
}
.ua-hero-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ua-gold);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ua-hero-stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ua-muted);
    margin-top: 6px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.ua-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ua-gold);
    color: var(--ua-navy) !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    text-decoration: none !important;
    transition: background 0.25s, transform 0.2s;
}
.ua-btn-gold:hover {
    background: var(--ua-gold-lt);
    transform: translateY(-1px);
}
.ua-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--ua-white) !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 30px;
    border: 1px solid rgba(255,255,255,0.35);
    text-decoration: none !important;
    transition: border-color 0.25s, background 0.25s;
}
.ua-btn-outline:hover {
    border-color: var(--ua-gold);
    color: var(--ua-gold) !important;
    background: rgba(201,168,76,0.07);
}

/* ── Section wrappers ──────────────────────────────────────── */
.ua-section {
    padding: 96px 0;
}
.ua-section-dark {
    background: var(--ua-navy);
    padding: 96px 0;
}
.ua-section-slate {
    background: var(--ua-slate);
    padding: 96px 0;
}
.ua-section-light {
    background: #f7f5f0;
    padding: 96px 0;
}

/* ── Global heading colour — all h2-h5 on dark/slate bg = gold ─ */
.ua-section-dark h2, .ua-section-dark h3, .ua-section-dark h4, .ua-section-dark h5,
.ua-section-slate h2, .ua-section-slate h3, .ua-section-slate h4, .ua-section-slate h5,
.ua-hero h2, .ua-hero h3, .ua-hero h4, .ua-hero h5 {
    color: var(--ua-gold);
}

/* ── Section headers ───────────────────────────────────────── */
.ua-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ua-gold);
    display: block;
    margin-bottom: 14px;
}
.ua-section-label.dark {
    color: #8a7045;
}
.ua-h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--ua-gold);
    margin-bottom: 20px;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.ua-h2.dark {
    color: var(--ua-navy);
}
.ua-h2 em {
    font-style: normal;
    color: var(--ua-gold);
}
.ua-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ua-muted);
    max-width: 680px;
}
.ua-lead.dark {
    color: #4a5568;
}

/* ── Inline contextual link (gold, used in body copy) ─────── */
.ua-clink {
    color: var(--ua-gold-lt);
    text-decoration: underline;
    text-decoration-color: rgba(226,201,126,0.35);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.ua-clink:hover {
    color: #f5e098;
    text-decoration-color: rgba(245,224,152,0.7);
}

/* ── Gold rule divider ─────────────────────────────────────── */
.ua-rule {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--ua-gold);
    margin-bottom: 28px;
}

/* ── Value proposition cards (dark bg) ────────────────────── */
.ua-card-dark {
    background: var(--ua-slate);
    border: 1px solid var(--ua-border);
    padding: 40px 36px;
    height: 100%;
    transition: border-color 0.25s, transform 0.25s;
}
.ua-card-dark:hover {
    border-color: var(--ua-gold);
    transform: translateY(-3px);
}
.ua-card-dark .ua-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ua-border);
    margin-bottom: 24px;
    color: var(--ua-gold);
    font-size: 1.3rem;
}
.ua-card-dark h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ua-gold);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.ua-card-dark p {
    font-size: 0.9rem;
    color: var(--ua-muted);
    line-height: 1.75;
    margin: 0;
}

/* ── Light cards (on light bg sections) ───────────────────── */
.ua-card-light {
    background: #ffffff;
    border: 1px solid #e8e3d8;
    border-top: 3px solid var(--ua-gold);
    padding: 40px 36px;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s;
}
.ua-card-light:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}
.ua-card-light .ua-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ua-gold-dim);
    margin-bottom: 24px;
    color: #8a7045;
    font-size: 1.3rem;
}
.ua-card-light h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ua-navy);
    margin-bottom: 12px;
}
.ua-card-light p {
    font-size: 0.9rem;
    color: #5a6478;
    line-height: 1.75;
    margin: 0;
}

/* ── Process steps ─────────────────────────────────────────── */
.ua-process-step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 36px 0;
    border-bottom: 1px solid var(--ua-rule);
}
.ua-process-step:last-child { border-bottom: none; }
.ua-step-num {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid var(--ua-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ua-gold);
}
.ua-step-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ua-white);
    margin-bottom: 8px;
}
.ua-step-body p {
    font-size: 0.9rem;
    color: var(--ua-muted);
    line-height: 1.75;
    margin: 0;
}

/* ── Credential bar ────────────────────────────────────────── */
.ua-credential-bar {
    background: var(--ua-charcoal);
    border-top: 1px solid var(--ua-border);
    border-bottom: 1px solid var(--ua-border);
    padding: 36px 0;
}
.ua-credential-item {
    text-align: center;
    padding: 0 24px;
    border-right: 1px solid var(--ua-rule);
}
.ua-credential-item:last-child { border-right: none; }
.ua-credential-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ua-gold);
    letter-spacing: -0.03em;
    line-height: 1;
}
.ua-credential-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ua-muted);
    margin-top: 6px;
}

/* ── Quote / pull quote ────────────────────────────────────── */
.ua-quote {
    border-left: 3px solid var(--ua-gold);
    padding: 24px 32px;
    background: var(--ua-slate);
    margin: 48px 0;
}
.ua-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ua-white);
    line-height: 1.7;
    margin: 0;
}

/* ── CTA section ───────────────────────────────────────────── */
.ua-cta {
    background: var(--ua-charcoal);
    border: 1px solid var(--ua-border);
    padding: 72px 48px;
    text-align: center;
}
.ua-cta h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--ua-gold);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.ua-cta p {
    font-size: 1rem;
    color: var(--ua-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

/* ── Two-col content split ─────────────────────────────────── */
.ua-split-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* ── Checklist ─────────────────────────────────────────────── */
.ua-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ua-checklist li {
    position: relative;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid var(--ua-rule);
    font-size: 0.92rem;
    color: var(--ua-muted);
    line-height: 1.6;
}
.ua-checklist li:last-child { border-bottom: none; }
.ua-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--ua-gold);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.ua-checklist.dark li {
    color: #4a5568;
    border-bottom-color: #e8e3d8;
}
.ua-checklist.dark li::before {
    border-color: #8a7045;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%238a7045' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ── Related pages strip ───────────────────────────────────── */
.ua-related-strip {
    background: var(--ua-navy);
    padding: 64px 0;
    border-top: 1px solid var(--ua-border);
}
.ua-related-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 18px 20px 18px 0;
    border-bottom: 1px solid var(--ua-rule);
    color: var(--ua-muted) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
    box-sizing: border-box;
    gap: 12px;
}
.ua-related-link:hover { color: var(--ua-gold) !important; }
.ua-related-link::before {
    content: "→";
    flex-shrink: 0;
    color: #e2c97e;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s;
}
.ua-related-link:hover::before {
    color: #f5e098;
}

/* ── Hero right-side chart visuals ────────────────────────── */
.ua-hero-chart-col {
    display: none;
}
@media (min-width: 992px) {
    .ua-hero-chart-col {
        display: flex;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 44%;
        align-items: center;
        justify-content: center;
        z-index: 2;
        pointer-events: none;
        padding: 32px 28px;
    }
}
.ua-hero-chart {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.38;
}

/* ── Desktop nav: hover-open dropdowns ────────────────────── */
@media (min-width: 992px) {
    /* Keep panel visible while mouse travels from trigger into panel */
    .nav-item.dropdown:hover .dropdown-menu.ua-mega-menu {
        display: block;
    }
    /* Right-align the "More" panel so it doesn't overflow the viewport */
    .dropdown-menu.ua-mega-end {
        right: 0;
        left: auto;
    }
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 991px) {
    .ua-hero-content { padding: 80px 0 60px; }
    .ua-section, .ua-section-dark, .ua-section-slate, .ua-section-light { padding: 64px 0; }
    .ua-hero-stats { gap: 28px; }
    .ua-cta { padding: 48px 24px; }
    .ua-credential-item { border-right: none; border-bottom: 1px solid var(--ua-rule); padding: 16px 0; }
}
@media (max-width: 767px) {
    .ua-hero h1 { font-size: 2rem; }
    .ua-card-dark, .ua-card-light { padding: 28px 24px; }
}
