/* ===========================
   TÍTULO PRINCIPAL
=========================== */

.contabilidade-titulo {
    font-family: "Evo2", Arial, sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    text-align: center;
    margin-top: 120px;
    color: #e8f8ff;
    text-shadow:
        0 0 10px rgba(0,0,0,0.8),
        0 0 20px rgba(102,204,255,0.6);
}

.contabilidade-linha {
    width: 80%;
    max-width: 600px;
    height: 2px;
    background: rgba(102,204,255,0.35);
    margin: 20px auto 40px auto;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(102,204,255,0.45);
}

/* ===========================
   CONTAINER
=========================== */

.contabilidade-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 120px auto;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.6;
    color: #e8f8ff;
}

/* ===========================
   ACORDEÃO PRINCIPAL (GLASS)
=========================== */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.accordion-item {
    background: radial-gradient(circle at top left,
                rgba(102,204,255,0.25),
                rgba(0,0,0,0.75));
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(102,204,255,0.45);
    border-radius: 16px;

    box-shadow:
        0 0 22px rgba(102,204,255,0.45),
        inset 0 0 16px rgba(102,204,255,0.25);

    overflow: hidden;
    transition: 0.35s ease;
}

/* ===========================
   HEADER PRINCIPAL
=========================== */

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: rgba(0,0,0,0.35);
    border: none;

    font-family: "Evo2", Arial, sans-serif;
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 800;
    color: #66ccff;

    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    background: rgba(102,204,255,0.15);
}

.accordion-header::after {
    content: "▼";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ===========================
   CONTEÚDO DO ACORDEÃO
=========================== */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;

    border-left: 2px solid rgba(102,204,255,0.35);
    background: rgba(0,0,0,0.25);
    box-shadow: inset 0 0 12px rgba(102,204,255,0.25);

    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height 0.45s ease,
        padding 0.3s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px 22px 30px;
    opacity: 1;
    transform: translateY(0);
}

.accordion-content p,
.accordion-content li {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.6;
    color: #e8f8ff;
    margin-bottom: 1rem;
}

.accordion-content ul {
    padding-left: 32px;
    margin-bottom: 1.2rem;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

/* ===========================
   SUB-ACORDEÃO (4.x)
=========================== */

.sub-header {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin-top: 1rem;

    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(102,204,255,0.35);
    border-radius: 10px;

    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 600;
    color: #66ccff;

    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
}

.sub-header:hover {
    background: rgba(102,204,255,0.15);
}

.sub-header::after {
    content: "▶";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.sub-header.active::after {
    transform: translateY(-50%) rotate(90deg);
}

.sub-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    margin-left: 15px;

    border-left: 2px solid rgba(102,204,255,0.6);
    background: rgba(0,0,0,0.25);
    box-shadow: inset 0 0 10px rgba(102,204,255,0.25);
    border-radius: 0 0 8px 8px;

    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height 0.45s ease,
        padding 0.3s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

.sub-content.open {
    padding: 15px 16px 28px;
    opacity: 1;
    transform: translateY(0);
}

.sub-content p,
.sub-content li {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.6;
    color: #e8f8ff;
}

/* ===========================
   LINKS
=========================== */

.accordion-content a,
.sub-content a {
    color: #66ccff;
    text-decoration: underline;
    transition: 0.25s ease;
}

.accordion-content a:hover,
.sub-content a:hover {
    color: #88ddff;
    text-shadow: 0 0 8px rgba(102,204,255,0.75);
}

/* ===========================
   RESPONSIVIDADE
=========================== */

@media (max-width: 600px) {
    .accordion-content,
    .sub-content {
        padding: 15px;
    }

    .sub-content {
        margin-left: 5px;
    }
}
