/* =========================================================
   ACERBIC SYNERGY — INTERACTIVE MIND MAP (REDESIGN)
   Theme: Warm Ivory, Deep Teal, Dark Charcoal, Muted Gold
========================================================= */

:root {
    --sv-teal: #0B5D56;
    --sv-teal-dark: #084c47;
    --sv-ivory: #FAF8F4;
    --sv-charcoal: #23332F;
    --sv-gold: #C6A15B;
    --sv-gold-light: #f3eedc;
    --sv-border: #e6dfcf;
    --sv-shadow-card: 0 8px 24px rgba(35, 51, 47, 0.06);
    --sv-shadow-hover: 0 12px 32px rgba(11, 93, 86, 0.12);
}

/* ===== HERO SECTION (Adjusted for cohesiveness) ===== */
.services-hero {
    position: relative;
    background: var(--sv-teal);
    padding: 85px 0 75px;
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

.services-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
}

.services-hero-subtitle {
    font-size: 16px;
    color: #e0eceb;
    margin: 0 auto 20px;
    max-width: 600px;
    line-height: 1.6;
}

/* ===== MIND MAP SECTION ===== */
.mindmap-section {
    padding: 90px 0 110px;
    background-color: var(--sv-ivory);
    position: relative;
    overflow: hidden;
}

.mindmap-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
}

.mindmap-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--sv-charcoal);
    line-height: 1.3;
    margin-bottom: 12px;
}

.mindmap-desc {
    font-size: 17px;
    color: #4a5c59;
    margin-bottom: 24px;
}

/* ===== DESKTOP CANVAS (1200px Grid) ===== */
.mindmap-canvas {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 800px;
    display: block; /* Desktop only */
}

@media (max-width: 991px) {
    .mindmap-canvas {
        display: none;
    }
}

/* SVG Connection Lines */
.mindmap-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mm-line {
    fill: none;
    stroke: var(--sv-gold);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Center Illustration Node */
.mm-center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.mm-center-img {
    width: 320px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

.mm-center-label {
    background: #ffffff;
    border: 1px solid var(--sv-border);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--sv-charcoal);
    box-shadow: var(--sv-shadow-card);
    display: inline-block;
}

.mm-center-label span {
    font-size: 13px;
    color: var(--sv-teal);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Service Cards */
.mm-card {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--sv-border);
    border-radius: 16px;
    padding: 24px;
    width: 280px;
    box-shadow: var(--sv-shadow-card);
    z-index: 10;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

/* Hover & Focus Interactions */
.mm-card:hover,
.mm-card:focus {
    transform: translateY(-8px);
    box-shadow: var(--sv-shadow-hover);
    border-color: var(--sv-teal);
    outline: none;
}

.mm-card-icon {
    font-size: 24px;
    color: var(--sv-teal);
    background: var(--sv-gold-light);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.mm-card:hover .mm-card-icon {
    background: var(--sv-teal);
    color: #ffffff;
}

.mm-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--sv-charcoal);
    margin-bottom: 8px;
    line-height: 1.3;
}

.mm-card-desc {
    font-size: 13px;
    color: #586966;
    margin-bottom: 16px;
    line-height: 1.5;
}

.mm-card-arrow {
    font-size: 14px;
    color: var(--sv-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.mm-card:hover .mm-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Position the 6 Cards on a 1200x800 grid */
/* Center is 600, 400. Cards should connect nicely to center. */
.card-advisory { top: 80px; left: 80px; }
.card-ffs { top: -20px; left: 50%; transform: translateX(-50%); }
.card-ffs:hover { transform: translateX(-50%) translateY(-8px); }
.card-payroll { top: 80px; right: 80px; }
.card-strategic { bottom: 80px; left: 80px; }
.card-project { bottom: -20px; left: 50%; transform: translateX(-50%); }
.card-project:hover { transform: translateX(-50%) translateY(-8px); }
.card-recruitment { bottom: 80px; right: 80px; }

/* SVG Line Hover Targeting (Advanced CSS selector if JS is used, but we keep it simple here) */
.mm-card:hover ~ .mindmap-lines .line-hr-advisory { stroke: var(--sv-teal); stroke-width: 3; } /* Requires JS to target siblings reliably, but visually hovering the card is enough indication. */

/* ===== MOBILE VERTICAL LIST ===== */
.mindmap-mobile-list {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 992px) {
    .mindmap-mobile-list {
        display: none;
    }
}

.mm-mob-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--sv-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(35, 51, 47, 0.04);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.mm-mob-card:hover {
    border-color: var(--sv-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 93, 86, 0.08);
}

.mm-mob-icon {
    width: 48px;
    height: 48px;
    background: var(--sv-gold-light);
    color: var(--sv-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 16px;
    transition: all 0.3s ease;
}

.mm-mob-card:hover .mm-mob-icon {
    background: var(--sv-teal);
    color: #ffffff;
}

.mm-mob-content {
    flex: 1;
}

.mm-mob-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--sv-charcoal);
    margin: 0 0 4px;
}

.mm-mob-content p {
    font-size: 13px;
    color: #586966;
    margin: 0;
}

.mm-mob-arrow {
    color: var(--sv-gold);
    font-size: 16px;
    margin-left: 12px;
    transition: transform 0.25s ease;
}

.mm-mob-card:hover .mm-mob-arrow {
    transform: translateX(4px);
}

/* ===== LIVE METRICS STRIP ===== */
.live-metrics-strip {
    background: #ffffff;
    padding: 60px 0;
    border-top: 1px solid var(--sv-border);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 991px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .metrics-grid { grid-template-columns: 1fr; }
}
.metric-box {
    text-align: center;
    padding: 20px;
}
.metric-icon {
    font-size: 32px;
    color: var(--sv-teal);
    margin-bottom: 15px;
}
.metric-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--sv-charcoal);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 5px;
}
.metric-lbl {
    font-size: 15px;
    font-weight: 700;
    color: var(--sv-teal);
    margin-bottom: 10px;
}
.metric-desc {
    font-size: 13px;
    color: #586966;
    line-height: 1.5;
}

/* ===== BOTTOM CTA BANNER ===== */
.services-cta-banner {
    position: relative;
    background: var(--sv-charcoal);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}
.cta-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.cta-mini-tag {
    display: inline-block;
    color: var(--sv-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.cta-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}
.cta-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
}
.btn-gold {
    background: var(--sv-gold);
    color: #ffffff;
    border: none;
}
.btn-gold:hover {
    background: #a38241;
}
.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}
