/* ============================================================
   ma.css  –  M&A Section Styles
   Extends style.css; uses the same design tokens.
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.ma-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
    padding: 120px 0 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ma-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(59,130,246,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ma-hero .container {
    position: relative;
    z-index: 1;
}

.ma-hero__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.ma-hero__tag {
    display: inline-block;
    background: rgba(59,130,246,0.25);
    border: 1px solid rgba(59,130,246,0.5);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.ma-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1.5rem;
}

.ma-hero__lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.ma-hero__lead strong {
    color: #fff;
}

.ma-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* outline variant of the shared cta-button */
.cta-button.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
}

.cta-button.outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.ma-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(8px);
}

.ma-hero__meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.4rem;
}

.ma-hero__meta-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.ma-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.ma-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.ma-breadcrumb a:hover {
    color: #1d4ed8;
}

.ma-breadcrumb__sep {
    margin: 0 8px;
    color: #94a3b8;
    font-size: 0.7rem;
}

/* ── Sections ──────────────────────────────────────────────── */
.ma-section {
    padding: 80px 0;
    background: #ffffff;
}

.ma-section--alt {
    background: #f8fafc;
}

.ma-section .section-title,
.ma-section--alt .section-title {
    color: #7B5EA7;
}

.ma-section .section-subtitle,
.ma-section--alt .section-subtitle {
    color: #1f2937;
}

/* ── Issue Cards (4-up grid) ───────────────────────────────── */
.ma-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.ma-issue-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ma-issue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B5EA7, #9B72CF);
    opacity: 0;
    transition: opacity 0.3s;
}

.ma-issue-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(155,114,207,0.2);
}

.ma-issue-card:hover::before {
    opacity: 1;
}

.ma-issue-card__number {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(31,41,55,0.25);
    line-height: 1;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.ma-issue-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.ma-issue-card p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}

/* ── Service Link Cards ────────────────────────────────────── */
.ma-service-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.ma-service-link-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ma-service-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(155,114,207,0.2);
}

.ma-service-link-card__icon {
    width: 56px;
    height: 56px;
    background: #f3f4f6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.ma-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1f2937;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 3px 10px;
    border-radius: 50px;
    width: fit-content;
}

.ma-service-link-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.ma-service-link-card p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    flex: 1;
}

.ma-service-link-card .cta-button {
    margin-top: auto;
    width: fit-content;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
}

/* ── Service Overview (sub-pages) ──────────────────────────── */
.ma-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .ma-overview-grid {
        grid-template-columns: 1fr;
    }
}

.ma-overview-body {
    font-size: 1rem;
    color: #374151;
    line-height: 1.9;
}

.ma-kv-panel {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 2rem;
}

.ma-kv-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ma-kv-item {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.6;
}

.ma-kv-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #3b82f6;
    padding: 2px 10px;
    border-radius: 50px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ── Support / Fit Grid (sub-pages) ────────────────────────── */
.ma-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .ma-support-grid {
        grid-template-columns: 1fr;
    }
}

.ma-support-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 2rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* ── Fee Box ────────────────────────────────────────────────── */
.ma-fee-box {
    background: linear-gradient(135deg, #1e3a5f, #1a56db);
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.ma-fee-box__icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 1.5rem;
}

.ma-fee-box h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.ma-fee-box p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ── Contact CTA (override global blue) ───────────────────── */
.ma-section ~ #contact.contact-section,
#contact.contact-section {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

#contact.contact-section .contact-title {
    color: #7B5EA7;
}

#contact.contact-section .contact-description {
    color: #1f2937;
}

#contact.contact-section .cta-button {
    background: #1f2937;
    color: #ffffff;
}

#contact.contact-section .cta-button:hover {
    background: #374151;
}

/* ── article-link-btn ──────────────────────────────────────── */

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 768px) {
    .ma-hero {
        padding: 100px 0 60px;
    }

    .ma-hero__actions {
        flex-direction: column;
    }

    .ma-hero__meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ma-cards-grid,
    .ma-service-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ma-cards-grid,
    .ma-service-links {
        grid-template-columns: 1fr;
    }
}
